obey-robots.txt
View Thread
Post your improvements and modifications to viewthread.php here.
 Print Thread
Add edit message to Quickreply panel
Fusioneer
You just posted a message and want to add extra information to your message.
Lots of people just hit the reply button or even worse quote themselves.

In php-fusion we have a post merger option, but I don't use it for two reasons.
  1. I don't find it nice.
  2. It seems to have a bug when quoting a post.


To emphasize the edit option this little mod shows a warning only when your the last poster in a thread.
In the quick reply panel a message "Want to add something to your last post? Preferably use edit" is shown containing an edit link on the image.
When you are not the last poster, no message is shown.

Download source  GeSHi: PHP
  1. // mod Wanabo, emphasize edit instead of reply
  2. if ($fdata['thread_lastuser'] == $userdata['user_id']) {
  3. echo "<td align='center' class='tbl1'>Want to add something to your last post? Preferably use <a href='post.php?action=edit&forum_id=".$fdata['forum_id']."&thread_id=".$fdata['thread_id']."&post_id=".$_GET['pid']."' title='".$locale['568']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>.</td></tr>\n<tr>\n";
  4. }
  5. // End mod
  6.  
Parsed in 0.023 seconds, using GeSHi 1.0.8.10


After integration a part of viewthread.php it looks like this:
Download source  GeSHi: PHP
  1. if ($can_reply && !$fdata['thread_locked']) {
  2. require_once INCLUDES."bbcode_include.php";
  3. opentable($locale['512']);
  4. echo "<form name='inputform' method='post' action='".FORUM."post.php?action=reply&forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'>\n";
  5. echo "<table cellpadding='0' cellspacing='1' class='tbl-border center'>\n<tr>\n";
  6. // mod Wanabo, emphasize edit instead of reply
  7. if ($fdata['thread_lastuser'] == $userdata['user_id']) {
  8. echo "<td align='center' class='tbl1'>Want to add something to your last post? Preferably use <a href='post.php?action=edit&forum_id=".$fdata['forum_id']."&thread_id=".$fdata['thread_id']."&post_id=".$_GET['pid']."' title='".$locale['568']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>.</td></tr>\n<tr>\n";
  9. }
  10. // End mod
  11. echo "<td align='center' class='tbl1'><textarea name='message' cols='70' rows='10' class='textbox' style='width:70%'></textarea>\n";
  12. echo display_bbcodes("70%", "message")."</td>\n"; //Mod Wanabo
  13. echo "</tr>\n<tr>\n";
  14. echo "<td align='left' class='tbl2'><label><input type='checkbox' name='disable_smileys' value='1' /> ".$locale['513']."</label>"; //Mod Wanabo
  15. if (array_key_exists("user_sig", $userdata) && $userdata['user_sig']) {
  16. echo "\n<label><input type='checkbox' name='show_sig' value='1' checked='checked' /> ".$locale['513a']."</label>";
  17. }
  18. if ($settings['thread_notify']) {
  19. if (dbcount("(thread_id)", DB_THREAD_NOTIFY, "thread_id='".$_GET['thread_id']."' AND notify_user='".$userdata['user_id']."'")) {
  20. $notify_checked = " checked='checked'";
  21. } else {
  22. $notify_checked = " checked='checked'"; //Mod Wanabo
  23. }
  24. echo "\n<label><input type='checkbox' name='notify_me' value='1'".$notify_checked." /> ".$locale['513b']."</label>";
  25. }
  26. echo "</td>\n";
  27. echo "</tr>\n<tr>\n";
  28. echo "<td align='center' class='tbl1'>\n";
  29. echo "<input type='submit' name='previewreply' value='".$locale['514a']."' class='button' />&nbsp;\n";
  30. echo "<input type='submit' name='postreply' value='".$locale['514']."' class='button' />\n";
  31. echo "</td>\n";
  32. echo "</tr>\n</table>\n</form><!--sub_forum_thread-->\n";
  33. closetable();
  34. }
  35.  
Parsed in 0.015 seconds, using GeSHi 1.0.8.10

Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum
New Thread Post Reply
Use BBcode or HTML to refer to; 'Add edit message to Quickreply panel'
BBcode:
HTML:
Simular threads
Subject Discussion Forum         Last Post
function hide_email with noscript message for v7 and v9 Modifications to maincore.php : 1 27-12-2015
Trio panel with latest threads, news and articles Panels/infusions (add ons) : 23 15-07-2015
Insert an advertisement panel between forum posts Panels, share youre code : 2 16-12-2014
Navigation panel without CSS Panels/infusions (add ons) : 1 14-09-2014
Improved Last seen users panel Panels/infusions (add ons) : 3 17-12-2013