![]() |
|
#1
|
||||
|
||||
|
First off I'm no coder by no means..
This is why this took me hours to get working by studing the plugins that I have installed from other mods.. Feel free to change what ever you like. Feel free to use it in the next release This bothered me that I would view WOL and see unknown location and a link to the home page / portal.. so I have a quick fix.. Go to Admincp>Plugin & Products>Add New Plugin Create two plugins using the following hooks. Product: vBadvanced CMPS Hook Location: online_location_process Title: vBadvanced CMPS WOL process Plugin PHP Code : copy & paste from below Code:
switch ($filename)
{
case 'adv_index.php':
$userinfo['activity'] = 'Home';
break;
}
Save Now go back to Admincp>Plugin & Products>Add New Plugin Product: vBadvanced CMPS Hook Location: online_location_unknown Title: vBadvanced CMPS WOL unknown Plugin PHP Code : copy & paste from below Code:
switch ($userinfo['activity'])
{
case 'Home':
$userinfo['where'] = '<a href="adv_index.php'.$vbulletin->session->vars[sessionurl].'">Home</a>';
$userinfo['action'] = "Viewing The Portal";
$handled = true;
break;
}
Save you can change home to what ever you want to call your vBadvanced page.. they have to be the same name in both plugins. I use adv_index.php as my home page file name. you will need to change that in both plugins to what ever you have yours named to. "Viewing The Portal" and "Home" in vBadvanced CMPS WOL unknown plugin you can change to what ever you like as well.. here are a couple screen shots of before and after.. enjoy!
__________________
Backup Backup Backup.. Thats all I can say
Last edited by r_hippy; 05-02-2010 at 08:52 PM. Reason: small edit |
|
#2
|
|||
|
|||
|
work from me , thanks for tips
|
|
#3
|
||||
|
||||
|
indeed.. your welcome
still working flawlessly for me as well.. enjoy
__________________
Backup Backup Backup.. Thats all I can say
|
|
#5
|
|||
|
|||
|
Didn't work for vB 4.1.7..
|
|
#6
|
|||
|
|||
|
__________________
Talk about hosting: http://www.talkhosting.org |
|
#7
|
||||
|
||||
|
weird because it's still working even wit hthe 4.1.10 beta releases
check your work
__________________
Backup Backup Backup.. Thats all I can say
|
|
#8
|
|||
|
|||
|
Works perfectly on 4.1.10. Thank you, this is exactly what I needed!
|
|
#9
|
|||
|
|||
|
Am I wrong but this was working OK on 3.8.x version WITHOUT that plugin? I just checked my vb 3.8.7 and there no plugin needed, but why for vb4 do I need one?
Quote:
Quote:
Last edited by M.C.; 02-17-2012 at 01:38 PM. |
|
#10
|
||||
|
||||
|
dunno .. what are you looking it to say ?
__________________
Backup Backup Backup.. Thats all I can say
|
|
#11
|
|||
|
|||
|
Excellent, many thanks, this was just what I was looking for
|
|
#12
|
||||
|
||||
|
Works well with 4.1.11...thanks m8
|
|
#13
|
||||
|
||||
|
welcome
__________________
Backup Backup Backup.. Thats all I can say
|
|
#14
|
||||
|
||||
|
Hi, there. I'm an assistant administrator at KH-MediaFlare Forum, and I was wondering if this worked on vBulletin 4.2.0?
Here's a screenshot I took yesterday: ![]() That should say Viewing Page Home, although I'll probably edit it in the Phrase Manager so it says Viewing Homepage. |
|
#15
|
||||
|
||||
|
yes
__________________
Backup Backup Backup.. Thats all I can say
|
|
#16
|
||||
|
||||
|
|
|
#17
|
||||
|
||||
|
That's odd. It's not working.
Edit: Here are screenshots: ![]() ![]() Edit 2: Fixed it. I was missing the file name. Now, is there a way I can make it more specific? For example, we have a music archive that's part of our homepage, but instead of it saying Viewing Page Home, we would like it to say Viewing Page Music Archive. Last edited by Amaury; 05-31-2012 at 12:20 AM. Reason: Note |
|
#18
|
||||
|
||||
|
your Product is set to vBulletin Advanced CMS
needs to be set to Product: vBadvanced CMPS
__________________
Backup Backup Backup.. Thats all I can say
|
|
#19
|
||||
|
||||
|
Quote:
example Code:
switch ($userinfo['activity'])
{
case 'Home':
$userinfo['where'] = '<a href="adv_index.php'.$vbulletin->session->vars[sessionurl].'">Music Archive</a>';
$userinfo['action'] = "Viewing Page Music Archive";
$handled = true;
break;
}
Code:
switch ($filename)
{
case 'adv_index.php':
$userinfo['activity'] = 'Music Archive';
break;
}
__________________
Backup Backup Backup.. Thats all I can say
|
|
#20
|
||||
|
||||
|
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about vBadvanced CMPS and vBadvanced Dynamics | SherryG | Pre-Sale Questions | 1 | 08-27-2007 10:57 AM |
| The difference between vBadvanced CMPS and vBadvanced Dynamics | yanono | Pre-Sale Questions | 7 | 08-12-2007 09:09 PM |
| vBadvanced.com running vBadvanced CMPS v2.2.1 | RS_Jelle | Site Feedback & Updates | 3 | 10-15-2006 04:50 PM |
| vBadvanced Links Directory & vBadvanced CMPS | vBGJ | Pre-Sale Questions | 3 | 04-09-2006 10:15 PM |
| Difference btw vBadvanced CMPS & vBadvanced Homepage? | Millionaire | Chit Chat | 5 | 08-27-2004 01:24 PM |