Advertisement:

Author Topic: Post Template Mod  (Read 42494 times)

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: Post Template Mod
« Reply #60 on: November 09, 2011, 10:11:22 PM »
Update for 2.0.1 gold?

Offline divecall

  • Jr. Member
  • **
  • Posts: 142
Re: Post Template Mod
« Reply #61 on: December 08, 2011, 05:45:24 PM »
Please, can somebody update this Mod/Idea to an RC5 / 2.0.1 - Release?

Thanks in advance

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Post Template Mod
« Reply #62 on: December 28, 2011, 05:35:39 PM »
Download the   post_template_mod_0.1.3.zip   on the MOD page.  It's compatible up to SMF 2.0.2

When you get an install error on /Themes/default/ManageBoards.template.php  , just do this edit in the file ...

Find
Code: [Select]
<input type="checkbox" name="count" ', $context['board']['count_posts'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';

Replace with
Code: [Select]
<input type="checkbox" name="count" ', $context['board']['count_posts'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';

// Text area for Post Template Mod
echo '
<tr>
<td valign="top">
<b>', $txt['post_template_title'], '</b><br />
', $txt['post_template_description'], '<br />
</td>
<td valign="top" align="right">
<textarea name="post_template" rows="5" cols="29">'.
$context['board']['post_template'] .
'</textarea>
</td>
</tr>';


Any other install errors you'll have to manually do yourself.  this was the only install error i got on a clean smf 2.0.2 forum, and it's because smf 2 and hogher stopped using the <tr> tags


« Last Edit: December 28, 2011, 05:47:14 PM by hcfwesker »

Offline OCJ

  • Full Member
  • ***
  • Posts: 494
  • Gender: Male
Re: Post Template Mod- 'Hacking attempt' - not work with some characters
« Reply #63 on: December 29, 2011, 09:40:24 AM »
I said this before and even trying the edits here ... it does install but when you save the template it says
Quote
An Error Has Occurred!
Hacking attempt...
Back

It does not save the template.
When I tried taking out everything except the first few words ... it worked. Seems like it is rejecting some special characters or its too long... I havent found out which yet.
First few lines did save ... will have to keep testing to see where it fails.

Text rejected by the template mod
Quote
UPDATES [更新]:
People signed up so far [人々はこれまでにサインアップ]:
Title and Date [タイトル, 日付]:
Location [場所]:
Event Grade [イベント等級]:
Contact Details (and sign up conditions) [連絡先詳細(と参加の条件)]
Organizer's email here, also phone number ok, or ask to sign up on the website page, or send you private message on the website (PM).

Event Details [イベント詳細], Route and Time [ルートと時間]
Maps and Useful links [地図と役に立つリンク]
Things to Bring [持参するもの]
Meeting Time and Place [集合時間と場所]
Travel Details [旅行の詳細]
Cost [費用]

REMEMBER - to join an event see the 'Contact Details'. Website reply, email, phone, PM-private message.

SAFETY! (Event Grade, Safety & Insurance / イベント等級、安全&保険) Read before joining events!

The board edit page is also squashed 1/2 width ... can live with that.
Also another error now trying slightly shorter text.

Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's email here, also phone number ok, or ask to sign up on the website page, or se' at line 6
File: /home2/outdoor3/public_html/Sources/Subs-Boards.php
Line: 674

My system is up to date smf 202.
« Last Edit: December 29, 2011, 09:46:14 AM by igirisjin »

Offline OCJ

  • Full Member
  • ***
  • Posts: 494
  • Gender: Male
Re: Post Template Mod
« Reply #64 on: December 29, 2011, 10:00:21 AM »
Its some character in there ....
& ...? maybe.

Also it doesnt work when topic posted from the calendar   :P wonderful...
Not much use after I just potty trained everyone to always add events from the calendar.

Offline marex86

  • Semi-Newbie
  • *
  • Posts: 12
Re: Post Template Mod
« Reply #65 on: January 25, 2012, 09:13:55 PM »
Did anybody made this to work on every reply not just on new topic?

Offline dzembak

  • Jr. Member
  • **
  • Posts: 103
  • Gender: Male
    • Daihatsu YRV club
Re: Post Template Mod
« Reply #66 on: November 02, 2012, 06:12:44 AM »
How to make it work for 1.1.16? Does manual installation "how to" exists?

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: Post Template Mod
« Reply #67 on: November 02, 2012, 10:35:03 AM »
New suggestion? Allow "canned replies" as part of mod, or possibly part of a new, "pro" version?

Offline Neek

  • Semi-Newbie
  • *
  • Posts: 34
Re: Post Template Mod
« Reply #68 on: December 22, 2012, 07:04:57 PM »
I've updated this package for 2.0.3 and attached it to this reply. All tests in the package manager are successful and it installs without any errors.

<<Attachment removed by K@. Sorry and all that.>>
« Last Edit: March 24, 2013, 11:22:17 AM by K@ »

Offline OCJ

  • Full Member
  • ***
  • Posts: 494
  • Gender: Male
Re: Post Template Mod
« Reply #69 on: March 24, 2013, 08:30:53 AM »
The attached update files do indeed install perfectly (and on 2.04)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Post Template Mod
« Reply #70 on: March 24, 2013, 08:46:36 AM »
* Arantor notifies the administrators that the above package is technically illegal without the original author's permission to do so.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: Post Template Mod
« Reply #71 on: September 09, 2013, 03:00:21 PM »
I know nobody has posted in this topic in months, and not sure it's even supported anymore; but I just found this mod, and it was exactly what I was looking for.

I have a question that hopefully someone that uses this mod can answer. I am interested in starting one board with a pre-filled template in it. When the person fills the template out, they will then have a drop down box with all the other boards of the forum in it (except the private boards they can't see or have access to), allowing them to simply choose the board they want their topic redirected to.

Has anyone added this to the mod, or does anyone have any idea of how something like this can be accomplished?

___________________________________________________________________________________________________

Edit: Um, nevermind. I just realized this can be accomplished by default by setting board permissions. ;)
« Last Edit: September 09, 2013, 05:52:30 PM by br360 »

Offline Neek

  • Semi-Newbie
  • *
  • Posts: 34
Re: Post Template Mod
« Reply #72 on: January 29, 2014, 06:41:53 AM »
I continue to get PMs asking me for my attachment that the moderators removed...

The forum policy here seems to be counter-productive in this particular case.

I still have the fixed package file if the original author or a moderator wants it to officially fix this mod.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Post Template Mod
« Reply #73 on: January 29, 2014, 07:02:27 AM »
The policy is because of a little thing called copyright law which we are unfortunately bound to uphold.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.


Offline 2greedy

  • Semi-Newbie
  • *
  • Posts: 48
Re: Post Template Mod
« Reply #75 on: March 23, 2014, 01:14:05 AM »
is there anything else like this? i really need a new topic template mod

Offline minimono

  • Semi-Newbie
  • *
  • Posts: 32
Re: Post Template Mod
« Reply #76 on: May 26, 2019, 02:02:42 AM »
is Error > Call to undefined function mysql_num_rows()
SMF 2.0.15 | PHP 7.X | MySql 5.6 | Softer theme | SMFAds

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Post Template Mod
« Reply #77 on: May 26, 2019, 03:08:56 AM »
The mod needs updating for PHP 7.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline StarredSkies

  • Semi-Newbie
  • *
  • Posts: 72
    • Beasts of Beyond
Re: Post Template Mod
« Reply #78 on: July 31, 2019, 07:19:52 PM »
Any hopes of adding this into 2.1? or adding responsiveness to the templates? This is something my site *adores* and I would love to keep it going.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Post Template Mod
« Reply #79 on: August 01, 2019, 01:32:00 AM »
There is zero chance it will become part of 2.1 but it’s not impossible to update for 2.1.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.