vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-26-2005, 07:52 PM
Albus Albus is offline
Senior Member
 
Join Date: Apr 2005
Posts: 137
Default Get Online.php to see page locations.

I am not sure if this is in the install, or if I just missed it, but here's my remedy. This fixes online.php so that it will report the "Viewing x" text and a link to the page using it's proper title and link. This will only be usefull to you if you routinely create pages using the vBa "Add Page" function.

[includes/functions_online.php]


Code:
find this:


function construct_online_bit($userinfo, $doall = 0)
{


add under:


	global $DB_site;


find this:


		case 'bugs':
			$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
			break;


add under:


		case 'page':
			$name = $userinfo['values']['page'];
			$page_rows = $DB_site->query("select title from " . TABLE_PREFIX . "adv_pages where name = '$name'");
			while($page_row = $DB_site->fetch_array($page_rows)) { $title = $page_row['title']; }
			$DB_site->free_result($page_rows);
			unset($page_rows, $page_row);
			$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], $title);
			$userinfo['where'] = "<a href=\"$vboptions[bburl]/index.php?$session[sessionurl]page=$name\">$title</a>";
			break;


find this:


	default:
		$userinfo['activity'] = 'unknown';
	}


replace with:


	default:
		if (isset($userinfo['values']['page']) && !empty($userinfo['values']['page'])) {
			$userinfo['activity'] = 'page';
		} else {
			$userinfo['activity'] = 'unknown';
		}
	}
__________________
2 owned vB licenses and proud of it.

Last edited by Albus; 05-26-2005 at 08:02 PM.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Your Homepage to Your "Who's Online" Locations Brian Add-On Modules & Modifications 50 07-12-2006 09:40 AM
Links locations in Who's Online? Torqued "How Do I..." Questions 13 07-03-2005 04:08 PM
Various locations chet Troubleshooting / "How do I..." Questions 2 03-26-2005 06:34 AM
Who's online for CMPS page? rinkrat Troubleshooting / "How do I..." Questions 4 08-22-2004 02:21 AM
Add my CMPS homepage to my "Who's Online" locations cLord Troubleshooting / "How do I..." Questions 3 07-18-2004 01:18 PM


All times are GMT -4. The time now is 01:38 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.