[2 Question 4 viewonline.php]

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

[2 Question 4 viewonline.php]

Post by ThunderCrew » Tue Apr 05, 2011 4:32 am

if your page has different extentions like music.php?cat=rock music.php?cat=rap etc does it matter or will it show them as long as they are on that php.
In example if I set up
case 'music':
$location = $user->lang['LISTEN_MUSIC'];
$location_url = append_sid("{$phpbb_root_path}music.$phpEx");
break;

but I also have
music/php?cat=rock
music/php?cat=rap
music/php?cat=country

and so on and would like it to show what cat they are listening to how would I do this?

IE id want to view them as
Listening to rock
Listening to rap
Listening to country

if that is not possible at least will it show them all as Listening to music no matter what cat they are in ?

So again the 2 questions are
1. is it possible to make them show up on specific cat separate for each cat in view online
2. if not does it at least show them all as listening to music even if on the cat of the page and not just the main music.php

For Q1 I assume I would have to do something like this?

Code: Select all

		case 'music_rock':
			$location = $user->lang['LISTEN_MUSIC_ROCK'];
			$location_url = append_sid("{$phpbb_root_path}music.$phpEx?cat=rock");
		break;

Code: Select all

		case 'music_rap':
			$location = $user->lang['LISTEN_MUSIC_RAP'];
			$location_url = append_sid("{$phpbb_root_path}music.$phpEx?cat=rap");
		break;

? or is that wrong what exactly does "case ''string"; call for ? is it a page header or anything ?
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it

Locked

Return to “[3.0.x] MOD Writers Discussion”