[For 1.6] Last Poster Trophy On Postbit v1.01 - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html) +---- Thread: [For 1.6] Last Poster Trophy On Postbit v1.01 (/thread-128266.html) Pages:
1
2
|
Last Poster Trophy On Postbit v1.01 - Wildcard - 2012-10-26 One of (if not the) most inane forum games ever created, devoid of all creativity and productivity and yet insanely, widely popular is 'The Last Poster Wins'. Almost every forum has some version of it and I thought I might make a simple little plugin to display a trophy on the postbit of the user in your forum that currently has the last post in your forum's version of 'The Last Poster Wins' thread. Installation:
Then you should see your trophy image on the postbit of the user that currently has the last post in your last poster thread. Removal: Uninstall the plugin and remove all files. Upgrade: Uninstall the plugin and repeat steps 1,3 and 4 from the installation instructions. Support: I make no guarantees of support but I will always try. If you need support for this plugin please create a support thread at MyBB forums. Omar G. provided a much better idea for getting the information the plugin needs without so many queries Thanks Omar have updated the plugin and attached a copy to serve until the plugin is updated on the mods site. The plugin had been updated at the mods site and is available for download: http://mods.mybb.com/download/last-poster-trophy-on-postbit RE: Last Poster Trophy On Postbit v1.0 - Polarbear541 - 2012-10-30 Approved RE: Last Poster Trophy On Postbit v1.0 - Wildcard - 2012-10-30 Thanks so much RE: Last Poster Trophy On Postbit v1.0 - crazy4cs - 2012-10-30 Nice idea. RE: Last Poster Trophy On Postbit v1.0 - Wildcard - 2012-10-30 Thank you RE: Last Poster Trophy On Postbit v1.0 - Leefish - 2012-10-30 Congratulations on the plugin - a really neat idea. RE: Last Poster Trophy On Postbit v1.0 - Omar G. - 2012-10-30 This will awfully increase a query by post To solve this find:
Replace with:
As you can see, you don't really need to query, good plugin and nice idea! RE: Last Poster Trophy On Postbit v1.0 - Wildcard - 2012-10-30 (2012-10-30, 03:31 PM)Leefish Wrote: Congratulations on the plugin - a really neat idea. Thanks a lot (2012-10-30, 06:09 PM)Omar G. Wrote: This will awfully increase a query by post To solve this find: First of all, thanks for taking the time to help me with my code. The only thing is my friend I do not understand how this code can work . . . this line:
Doesn't seem to be looking up the last two posters in the LPW thread, but rather the last two posts in the current thread which isn't the same thing. If I can do this without a query (or if I am wrong about the code) please let me know. (2012-10-30, 06:09 PM)Omar G. Wrote: As you can see, you don't really need to query, good plugin and nice idea! Thanks so much for that and for your advice that I will try to understand. RE: Last Poster Trophy On Postbit v1.0 - Omar G. - 2012-10-30 I failed to understand you code, sorry. Check my last post, it should work now. RE: Last Poster Trophy On Postbit v1.0 - Wildcard - 2012-10-30 (2012-10-30, 08:31 PM)Omar G. Wrote: I failed to understand you code, sorry. Check my last post, it should work now. Okay now that is a great idea! I had 34 queries per page and now I'm at 25! The only problem is this line:
doesn't correctly retrieve the last two poster's uid (from the LPW thread). Instead it places the uid for the Last Poster in both $last_post and $next_to_last_post . . . so the JavaScript to clear the old trophies is never coded (and the old trophies stay on the screen |