PDA

View Full Version : Forum Display Enhancements - Corrected thread visitors count


bahisyeri
10-02-2007, 10:00 PM
Hi,
This is my first free public addon i'm coding for people one of my customers wanted to display who is viewing threads on forumdisplay so i checked here first and i saw Atakan KOC's addon but it was giving wrong information so i decided to integrate vBulletin's own source to it.So here it is ;).

What does this plugin do?
It is simple this plugin shows how many people visiting/browsing the thread on forumdisplay.

Installing
Open your admin control panel and then
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-nx-threadvisitors.xml' from your computer then press 'Import'

Please feel free to ask any questions
This may be copied, reproduced or published anywhere without my permission.

Changelog
v1.0: Initial release
v2.0: Fixed bug with UserCP cause of function which fetch_online_status is not needed

bahisyeri
10-03-2007, 12:48 PM
Reserved for future requests/dialogs

In screenshot "1 kişi okuyor means 1 Viewing"

bollie
10-03-2007, 04:18 PM
Nice ;)

Handbag
10-05-2007, 08:03 AM
Hi there,

For some reason when I activate it my users can't access their user CP at all. I've seen this problem with this plugin as well, so the problem may be the same..
https://vborg.vbsupport.ru/showthread.php?p=1323941#post1323941

yoyoyoyo
10-05-2007, 10:41 AM
Hi there,

For some reason when I activate it my users can't access their user CP at all. I've seen this problem with this plugin as well, so the problem may be the same..
https://vborg.vbsupport.ru/showthread.php?p=1323941#post1323941I installed this, and then logged in as various members, but was able to access all of their User CP's just fine. Perhaps another hack or mod is in conflict.

Handbag
10-05-2007, 12:34 PM
That's probably it then. Thanks!

bahisyeri
10-05-2007, 01:39 PM
Hi,
Could you please paste if there is an error showing up when your users trying to access their cp?
Between this plugin does not changing anything about usercp :/

mrghostno1
10-05-2007, 11:52 PM
Dude! I'v been trying to do this mod for ages... god bless you! This plugin is just perfect!

Just to make it clear, it doesn't show who is viewing, it shows how many users are browsing, or viewing, each thread. perfect.

If anyone want to remove that color, or change, just find this code


style=\"color:#FFCC99;\"

So i would suggest you to do an admincp option to chage color/font size ect. :) Just in case someone need it.

The erro i get is this:
Fatal error: Call to undefined function fetch_online_status() in /forum/usercp.php(503) : eval()'d code on line 97

Dunno if this would be a fix... i just removed on line 61 of the plugin

fetch_online_status($loggedinx); and everything seems to be working fine.

bahisyeri
10-06-2007, 11:01 AM
hehe yes , you are right "fetch_online_status" thing i changed it myself when i was modifiying customers web i noticed error but i thought it was from other thing and i added just include , and the color was made for that theme on customers ^^

KURTZ
10-06-2007, 11:06 AM
the xml is fixed?

Zachery
10-06-2007, 04:15 PM
So what exactly is the point of this modification?

bahisyeri
10-07-2007, 02:55 AM
So what exactly is the point of this modification?

It is simple this plugin shows how many people visiting/browsing the thread on forumdisplay.

the xml is fixed?

Yep you can download new one

Zachery
10-08-2007, 01:30 AM
Wait, are you running a query per thread to do this ?

bahisyeri
10-08-2007, 08:57 PM
yea and i just implented vB's source to it, Atakan KOC has same mod but his mod gives wrong information btw uses 2 hooks and same per query.

Zachery
10-08-2007, 09:30 PM
So you're running an extra 25 queries per page by default? Thats abit excessive.

mrghostno1
10-08-2007, 10:34 PM
But is there another option? Any other working mod that would give the same result? :( i guess not.
For me this is worth

bahisyeri
10-08-2007, 11:06 PM
Well all mods will use same way i dont think is there any way to use? of course we need to do use query and for me 1 query is not so big deal and i dont think it will lower speed of forum we do not use p2 machines for hosting only 1 and simple query and it uses just 1 hook as i said there is another mod tries to give same info made by Atakan KOC and its using 2 hooks and 1 query...
PS: Atakan KOC's plugin: here (https://vborg.vbsupport.ru/showthread.php?t=117948)