vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




How do you Display a Custom Location

dcteam
04-26-2005, 08:00 AM
I’ve been working of an addon page for vB to display various monthly and overall reputation tables (http://forums.hostmatrix.org/rep.php) my final problem is how can I change the location when viewing "whose online" or a members profile. Currently when somebody is viewing it, their location is displayed as Unknown Location /rep.php .

Does anybody have any ideas on how to fix this, thanks.

noppid
04-26-2005, 08:29 AM
You can look at almost any hack on vbulletin.org for the code. It's very common.

It's two edits of includes/functions_online.php.

Here's how I did it in vBgarage....


In INCLUDES/FUNCTIONS_ONLINE.PHP:

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

Below Add:
// begin vBG hack
case 'vbgarage':
$userinfo['action'] = 'In the Garage';
$userinfo['where'] = "<a href=\"vbgarage.php?$session[sessionurl]&do=list\">$vboptions[bbtitle] vBGarage</a>";
break;
// end vBG hack

Find:
case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;

Below Add:
// begin vBG hack
case 'vbgarage.php':
$userinfo['activity'] = 'vbgarage';
break;
// end vBG hack

dcteam
04-26-2005, 08:36 AM
Thanks noppid that is just what I was after. I do find it difficult finding specific code on vbulletin.org just doesn't seem the right way to organise it (using a forum)

Cheers

noppid
04-26-2005, 11:36 AM
Thanks noppid that is just what I was after. I do find it difficult finding specific code on vbulletin.org just doesn't seem the right way to organise it (using a forum)

Cheers


The more I learn, the more flaws I see over there and in the product, but the complaints and suggestions mostly fall on deaf ears, so I gave up.

They are riding the teens that play forum for income. They will do well to scrap vB3 and come out with 4 done right and market to professionals that want to make money. I'd pay more for that too.

There are penty of good things about the product, but just as many short comings IMO. But nothing is perfect.

theMusicMan
05-02-2005, 03:09 PM
Informative stuff here Greg... I found this out recently too re functions_online.php

noppid
05-02-2005, 05:56 PM
HAHA, I just re-read my editorial. That was the week I found three things I couldn't do with vB without hacking. LOL, guess I got it off my chest.

contactsonia
05-02-2005, 11:07 PM
I have installed a few hacks on my forums and I was also looking for this.
Thanks for sharing this.

You people are really helpful :)


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum