The thread viewer mod by Michael83 doesn't work. If someone wants to take a look at it, possibly fix it, that'd be really cool. Just a heads up.
EDIT: There is a similar plugin by Lapsetur. Why did I just deactivate it? It has a link advert for their site. That's really not what I should need to have on the top of every thread of my forum. Sorry.
Try this; but the file in the zipfile is from Arash_j13 and not Michael83; and the plugin file was like totally messed up ^^ . You probably need to move the display var {$viewer} in your showthread template, cause the current threadviewers are shown at the bottom of the showthread page ... was original in the plugin.
as usaul will done LeX-
If the plugin file was all messed up, will the provided file work? I'm confused.
PHP_Paul Wrote:If the plugin file was all messed up, will the provided file work? I'm confused.
Yeah it will work =P i've 'cleaned' it up
Well, Lex, I have to commend you (again). Your plugins are always brilliant, so I am downloading this now,
BP
PHP_Paul Wrote:The thread viewer mod by Michael83 doesn't work. If someone wants to take a look at it, possibly fix it, that'd be really cool. Just a heads up.
EDIT: There is a similar plugin by Lapsetur. Why did I just deactivate it? It has a link advert for their site. That's really not what I should need to have on the top of every thread of my forum. Sorry.
I allow you to delete my link from the Plugin
Thanks much Lex~
And Lap, usually I don't want to mess with copyrights or anything ;<
LeX- Wrote:Try this; but the file in the zipfile is from Arash_j13 and not Michael83; and the plugin file was like totally messed up ^^ . You probably need to move the display var {$viewer} in your showthread template, cause the current threadviewers are shown at the bottom of the showthread page ... was original in the plugin.
Hello,
I used your modified file and it worked very nice but there is one small problem !
That when you click on any name it open your profile not the viewer ??
Can you fix this please
Thank you,
Try:
Open the file
Find
$userlist .= $sep."<a href=\"member.php?action=profile&uid={$uid}\">".format_name($username, $user['usergroup'], $user['displaygroup'])."</a>";
Replace by
$userlist .= $sep."<a href=\"member.php?action=profile&uid={$user['uid']}\">".format_name($username, $user['usergroup'], $user['displaygroup'])."</a>";