obey-robots.txt
July 22 2017 21:38:40
Navigation
Your ad can be here below
Facebook Like
Portfolio
BetterClimate.Net
ComplaintSupport.Com
Daily-Breaking-News.Com
Kidiot.Org
Php-Fusion.Asia
Php-Fusion.Cn
Php-Fusion.Fr
Php-Fusion.In
Php-Fusion.Start-Pages.Com
Rain-Radar.Com
Speed-Testing.Net
Start-Pages.Com
WebhostingTrouble.Com
WebmasterTrouble.Com
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&amp;forum_id=".$fdata['forum_id']."&amp;thread_id=".$fdata['thread_id']."&amp;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.029 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&amp;forum_id=".$fdata['forum_id']."&amp;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&amp;forum_id=".$fdata['forum_id']."&amp;thread_id=".$fdata['thread_id']."&amp;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><br />\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 "<br />\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 "<br />\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.040 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
Gebruik BBcode of HTML om naar; 'Add edit message to Quickreply panel', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Thread Forum Replies Last Post
function hide_email with noscript message for v7 and v9 Modifications to maincore.php 1 27-12-2015 20:08
Trio panel with latest threads, news and articles Panels/infusions (add ons) 23 15-07-2015 13:56
Insert an advertisement panel between forum posts Panels, share youre code 2 16-12-2014 10:41
Navigation panel without CSS Panels/infusions (add ons) 1 14-09-2014 16:23
Improved Last seen users panel Panels/infusions (add ons) 3 17-12-2013 05:47
Users Online
Guests Online: 2

Members Online: 0

Total Members: 51
Newest Member: SprDave
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Last Seen Users
Fusioneer 1 day
Language Switcher
Theme Switcher
Shoutbox
You must login to post a message.

No messages have been posted.
Member Poll
PHP-Fusion, I might try it.

Yes
Member Poll: PHP-Fusion, I might try it. Yes 100% [5 Votes]
100% [5 Votes]

No
Member Poll: PHP-Fusion, I might try it. No 0% [0 Votes]
0% [0 Votes]

Maybe
Member Poll: PHP-Fusion, I might try it. Maybe 0% [0 Votes]
0% [0 Votes]

Votes: 5
You must login to vote.
Started: 20-10-2011
Latest Articles
No Articles available
673,073 unique visits