unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Web / Scripting > VB Script

- Sponsored Advertisement -
http://www.myfpscheats.com/

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2006, 07:06 AM
zero_tolerance zero_tolerance is offline
Senior Member
 
Join Date: Dec 2006
Posts: 289
Default "Unknown Location" While viewing User Profile

By Patrick

Sometimes with addons and things to your website, the most common being a "Portal", while looking at online user profiles, you wont be able to see where they are at. ie. Whilst viewing, for example "Shoot"s user profile it says he is viewing "Unknown Location" /Forum/Main.php To me that just looks bad so here is a little tutorial to fix a problem like that:

Go to this file:

functions_online.php

Find this:

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

Code:
		case 'cmps index': 
            			$userinfo['action'] = 'Viewing CMPS Index';
			$userinfo['where'] = "<a href=\"cmps_index.php?$session[sessionurl]\">$vboptions[hometitle]</a>";
			break;
Now Find:

Code:
	case 'bugs.php':
		$userinfo['activity'] = 'bugs';
		break;
After that add:

Code:
	case 'cmps_index.php': 
        		$userinfo['activity'] = 'cmps index'; 
        		break;
Save functions_online.php

**********************************************************************************************************************************************************

Big note!!! Change cmps_index.php to what ever php you want to locate and define.

Example for GTE portal we want to change cmps_index.php to main.php (since the portal page is main.php) and define it as the GTE Portal.

So where we added this first section:

Code:
		case 'cmps index': 
            			$userinfo['action'] = 'Viewing CMPS Index';
			$userinfo['where'] = "<a href=\"cmps_index.php?$session[sessionurl]\">$vboptions[hometitle]</a>";
			break;
We would change to:

Code:
		case 'main': 
            			$userinfo['action'] = 'Viewing GTE Portal';
			$userinfo['where'] = "<a href=\"main.php?$session[sessionurl]\">$vboptions[hometitle]</a>";
			break;
And where we added this:

Code:
	case 'cmps_index.php': 
        		$userinfo['activity'] = 'cmps index'; 
        		break;
Should now look like this:

Code:
	case 'main.php': 
        		$userinfo['activity'] = 'main'; 
        		break;

Your done that should be self explainitory and it will work for any page your trying to define.
Im not sure if it will work for 3.5.x , but its tested and working on 3.0.x
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
profile, unknown location, user, viewing

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



All times are GMT. The time now is 05:52 PM.


- Sponsored Advertisement -
http://www.myfpscheats.com/