[MOD] add "Ref...
 
Notifications
Clear all

[MOD] add "Refresh the Shoutbox"

1 Posts
1 Users
0 Reactions
1,512 Views
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
Topic starter
 

Add a Refresh the Shoutbox link to the bottom of your shout box.

Good for Version 3.x.

---

My users like to refresh the page sometimes to see if anyone has added anything new to the shoutbox. Often they had just posted something, so the message they posted is sent again when they refresh, ending up in a double, and sometimes triple post.

This is how you add a Refresh the Shoutbox link at the bottom of the shout box to avoid resending data.

Open /blocks/shoutbox/shoutbox.php.

At the bottom (line 66) add this before the closing ?>

$content .= "<center><a href="'"._BASEDIR."'>Refresh" the Shoutbox</a></center>";

If you don't want it centered, you can take out the center tags.

View it in action: http://www.potionsandsnitches.net/fanfiction/


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 24/09/2007 1:26 am
Share: