[ABD] Visitors Today (1.0.4)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

Re: [RC2] Visitors Today (1.0.4)

Post by rohithathie »

DanoruX wrote:
Stitch625 wrote:Hello Anti,

Just curious when you might have the update ready?
I'm curious too. I'm running 1.0.1 :mrgreen:
uh this download is version Visitors Today (1.0.4)

:roll:

and its work on rc3 8-)
Anti.Social
Registered User
Posts: 51
Joined: Wed Dec 13, 2006 6:12 pm
Location: 6' Under with no marker
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by Anti.Social »

I've been busy with the family recently. I hope to be able to work on this today, and possibly have an update later this afternoon, or Monday. Sorry for the wait guys/gals?

Thank you all for your translations, input, bug reports, and suggestions during this little mods development. You have helped make it what it is to date.
DanoruX
Registered User
Posts: 58
Joined: Tue Nov 21, 2006 2:20 am
Location: MA
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by DanoruX »

rohithathie wrote:
DanoruX wrote:
Stitch625 wrote:Hello Anti,

Just curious when you might have the update ready?
I'm curious too. I'm running 1.0.1 :mrgreen:
uh this download is version Visitors Today (1.0.4)

:roll:

and its work on rc3 8-)
Well rather, I'd love to know what to update to get from 1.0.1 to 1.0.4

Yes, 1.0.1 works on RC3 too (see sig) ;)
rohithathie
Registered User
Posts: 48
Joined: Wed Jul 11, 2007 7:31 pm

Re: [RC2] Visitors Today (1.0.4)

Post by rohithathie »

i don't think there are sql changes

so you need to check all the templates and update it with the new code ;)
desihaven
Registered User
Posts: 36
Joined: Sat Apr 28, 2007 7:55 pm

Re: [RC2] Visitors Today (1.0.4)

Post by desihaven »

Hi mate,

Applied the mod seems to work however when i make another user an Admin his username colour changes in the visitors today section but the style i.e. bold doesnt??

See attached image:
http://www.desihaven.com/temp/visitorstoday.gif
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by Dr.Death »

Hi, tthis MOD uses non valid XHTML 1.0 strict.

To correct this issue:

OPEN includes/functions_visitors.php:

SEARCH:

Code: Select all

	if($row['allow_viewonline'] == false && !isset($row['bot_id']))
	{
		if(($auth->acl_gets('a_', 'm_') == true || $user->data['user_id'] == $row['user_id']) && $config['visit_display_hidden'] == true)
		{
			$today->visitlist[$i] = '<a href="./memberlist.php?mode=viewprofile&u='.$row['user_id'].'" '.$display_color;
			(($config['visit_display_time'] == true)) ? $today->visitlist[$i] .= ' title="'.sprintf($user->lang['VISITORS_LASTVISIT_TITLE'], $user->format_date($row['last_visit'], $config['visit_time_format_hmsa'])).'"><i>'.$row['username'].'</i></a>' : $today->visitlist[$i] .= '><i>'.$row['username'].'</i></a>';
		} else {
			$i--;
		}
		$today->counts['hidden']++;
	} else {
		if(!isset($row['bot_id'])  && $row['user_id'] != 1)
		{
			$today->visitlist[$i] = '<a href="./memberlist.php?mode=viewprofile&u='.$row['user_id'].'" '.$display_color;
			(($config['visit_display_time'] == true)) ? $today->visitlist[$i] .= ' title="'.sprintf($user->lang['VISITORS_LASTVISIT_TITLE'], $user->format_date($row['last_visit'], $config['visit_time_format_hmsa'])).'">'.$row['username'].'</a>' : $today->visitlist[$i] .= '>'.$row['username'].'</a>';
			$today->counts['users']++;
		}
	}
REPLACE WITH:

Code: Select all

	if($row['allow_viewonline'] == false && !isset($row['bot_id']))
	{
		if(($auth->acl_gets('a_', 'm_') == true || $user->data['user_id'] == $row['user_id']) && $config['visit_display_hidden'] == true)
		{
			$today->visitlist[$i] = '<a href="./memberlist.php?mode=viewprofile&u='.$row['user_id'].'" '.$display_color;
			(($config['visit_display_time'] == true)) ? $today->visitlist[$i] .= ' title="'.sprintf($user->lang['VISITORS_LASTVISIT_TITLE'], $user->format_date($row['last_visit'], $config['visit_time_format_hmsa'])).'"><i>'.$row['username'].'</i></a>' : $today->visitlist[$i] .= '><i>'.$row['username'].'</i></a>';
		} else {
			$i--;
		}
		$today->counts['hidden']++;
	} else {
		if(!isset($row['bot_id'])  && $row['user_id'] != 1)
		{
			$today->visitlist[$i] = '<a href="./memberlist.php?mode=viewprofile&u='.$row['user_id'].'" '.$display_color;
			(($config['visit_display_time'] == true)) ? $today->visitlist[$i] .= ' title="'.sprintf($user->lang['VISITORS_LASTVISIT_TITLE'], $user->format_date($row['last_visit'], $config['visit_time_format_hmsa'])).'">'.$row['username'].'</a>' : $today->visitlist[$i] .= '>'.$row['username'].'</a>';
			$today->counts['users']++;
		}
	}
After this change, the MOD output is XHTML 1.0 strict ;-)

Changes: ( two times )

OLD:
<a href="./memberlist.php?mode=viewprofile&u=
NEW:
<a href="./memberlist.php?mode=viewprofile&u=
Doc.
desihaven
Registered User
Posts: 36
Joined: Sat Apr 28, 2007 7:55 pm

Re: [RC2] Visitors Today (1.0.4)

Post by desihaven »

That still didnt work the second admis is still not BOLD
Anti.Social
Registered User
Posts: 51
Joined: Wed Dec 13, 2006 6:12 pm
Location: 6' Under with no marker
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by Anti.Social »

dr.death wrote:Hi, tthis MOD uses non valid XHTML 1.0 strict.
A minor oversight, because at this point I really couldn't care less about XHTML 1.0 Strict, but I will make the changes in the next release.
desihaven wrote:Hi mate,

Applied the mod seems to work however when i make another user an Admin his username colour changes in the visitors today section but the style i.e. bold doesnt??

See attached image:
http://www.desihaven.com/temp/visitorstoday.gif
The mod will only bold bots and FOUNDER level admins at this time. I will see about making changes to bold moderators and admins as well. Should see these in the next release.
dougblur
Registered User
Posts: 12
Joined: Mon Jun 11, 2007 9:35 am

Re: [RC2] Visitors Today (1.0.4)

Post by dougblur »

Firstly I would like to say I greatly appreciate this mod.

Background: I installed 1.0.1 a while back and just recently upgraded to 1.0.4.

Issues: When installing 1.0.4, I noticed that you now use completely different files and now I have a bunch of 1.0.1 remnants left behind i.e. (/language/en/mods/lang_wwh.php). It would be nice if you still left older versions up to be downloaded so I can track down these unused files and remove them.

Concerning 1.0.4 everything is working well. I just wish I could unbold the founder admin and I would be completely happy.


Keep up the good work!
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by nickvergessen »

dougblur wrote:remnants left behind i.e. (/language/en/mods/lang_wwh.php)
These file should be from my MOD (Who Was Here)
No Support via PM
Anti.Social
Registered User
Posts: 51
Joined: Wed Dec 13, 2006 6:12 pm
Location: 6' Under with no marker
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by Anti.Social »

nickvergessen wrote:
dougblur wrote:remnants left behind i.e. (/language/en/mods/lang_wwh.php)
These file should be from my MOD (Who Was Here)
what he said ;) as for unbolding founder level admins:

OPEN: root/includes/functions_visitors.php

FIND:

Code: Select all

	(($row['user_type'] == USER_FOUNDER || $row['bot_id'] != '')) ? $font_weight = ' font-weight: bold;' : $font_weight = '';
REPLACE WITH

Code: Select all

	(($row['bot_id'] != '')) ? $font_weight = ' font-weight: bold;' : $font_weight = '';
dougblur
Registered User
Posts: 12
Joined: Mon Jun 11, 2007 9:35 am

Re: [RC2] Visitors Today (1.0.4)

Post by dougblur »

Fixed the code so I validate XHTML strict again, thanks!

Also edited the founder admin bold code so he is no longer bolded, thanks!


I removed that other guys visitors online files. I've come across like 3 different projects of this same mod; sort of confusing. I book marked this one so when I go looking for it again, I don't go install someone else's mod.
Forum-UK.co.uk
Registered User
Posts: 39
Joined: Thu Jul 26, 2007 2:31 pm
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by Forum-UK.co.uk »

I had this mod before on my board but then screwed up another mod to had to do a clean install. I then come back here and there are new versions out.
Brilliant!!!

I ill hope get this installed again tonight
dannyflap
Registered User
Posts: 91
Joined: Sun Jul 29, 2007 6:30 pm
Location: BOLTON, LANCASHIRE
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by dannyflap »

cant wait to use this mod when will it be out for rc4?
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan
Contact:

Re: [RC2] Visitors Today (1.0.4)

Post by Stitch625 »

This mod seems to be working on RC4.
Locked

Return to “[3.0.x] Abandoned MODs”