vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v4.x > Add-On Modules (version 4.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2010, 03:05 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default vBadvanced WOL

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;
}
Plugin is Active: yes

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;
}
Plugin is Active: yes

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!
Attached Images
File Type: gif wol-orginal.gif (3.1 KB, 806 views)
File Type: gif wol-fix.gif (2.7 KB, 669 views)
__________________
Backup Backup Backup.. Thats all I can say

Last edited by r_hippy; 05-02-2010 at 08:52 PM. Reason: small edit
Reply With Quote
  #2  
Old 10-05-2011, 05:40 AM
Sanphing Sanphing is offline
www.threepoint.us
 
Join Date: May 2010
Posts: 1
Default

work from me , thanks for tips
Reply With Quote
  #3  
Old 10-05-2011, 04:29 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

indeed.. your welcome
still working flawlessly for me as well..

enjoy
__________________
Backup Backup Backup.. Thats all I can say
Reply With Quote
  #4  
Old 10-06-2011, 07:12 AM
i.s.s.w's Avatar
i.s.s.w i.s.s.w is offline
Security team
 
Join Date: May 2007
Location: KUWAIT
Posts: 58
Default

enjoy
__________________

i.s.s.w
Reply With Quote
  #5  
Old 11-04-2011, 10:53 AM
willisx719 willisx719 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 5
Default

Didn't work for vB 4.1.7..
Reply With Quote
  #6  
Old 11-09-2011, 04:04 PM
skaterag skaterag is offline
Junior Member
 
Join Date: Dec 2007
Posts: 14
Default

Thanks - working for me in vb 4.1.7 PL2

See: http://www.LinuxForum.com
__________________
Talk about hosting: http://www.talkhosting.org
Reply With Quote
  #7  
Old 01-05-2012, 09:59 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

Quote:
Originally Posted by willisx719 View Post
Didn't work for vB 4.1.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
Reply With Quote
  #8  
Old 01-18-2012, 10:27 AM
cbiweb cbiweb is offline
Member
 
Join Date: Mar 2005
Location: Nova Scotia, Canada
Posts: 53
Default

Works perfectly on 4.1.10. Thank you, this is exactly what I needed!
Reply With Quote
  #9  
Old 02-17-2012, 01:14 PM
M.C. M.C. is offline
Junior Member
 
Join Date: May 2004
Posts: 15
Default

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:
"Viewing The Portal" and "Home" in vBadvanced CMPS WOL unknown plugin you can change to what ever you like as well..
well I can change it to phrase to be able to translate it but

Quote:
Home
I can't change to phrase I want. It just don't parse phrase at all

Last edited by M.C.; 02-17-2012 at 01:38 PM.
Reply With Quote
  #10  
Old 02-17-2012, 10:08 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

dunno .. what are you looking it to say ?
__________________
Backup Backup Backup.. Thats all I can say
Reply With Quote
  #11  
Old 03-03-2012, 08:51 AM
Peejay Peejay is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default

Excellent, many thanks, this was just what I was looking for
Reply With Quote
  #12  
Old 04-04-2012, 03:14 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
Junior Member
 
Join Date: Apr 2011
Location: UK
Posts: 6
Default

Works well with 4.1.11...thanks m8
Reply With Quote
  #13  
Old 04-04-2012, 06:07 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

welcome
__________________
Backup Backup Backup.. Thats all I can say
Reply With Quote
  #14  
Old 05-30-2012, 10:32 PM
Amaury's Avatar
Amaury Amaury is offline
Junior Member
 
Join Date: May 2012
Location: United States, WA
Posts: 21
Default

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.
Reply With Quote
  #15  
Old 05-30-2012, 11:11 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

yes
__________________
Backup Backup Backup.. Thats all I can say
Reply With Quote
  #16  
Old 05-30-2012, 11:15 PM
Amaury's Avatar
Amaury Amaury is offline
Junior Member
 
Join Date: May 2012
Location: United States, WA
Posts: 21
Default

Quote:
Originally Posted by r_hippy View Post
yes
Excellent. Thank you kindly.
Reply With Quote
  #17  
Old 05-30-2012, 11:23 PM
Amaury's Avatar
Amaury Amaury is offline
Junior Member
 
Join Date: May 2012
Location: United States, WA
Posts: 21
Default

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
Reply With Quote
  #18  
Old 05-31-2012, 05:20 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

your Product is set to vBulletin Advanced CMS

needs to be set to
Product: vBadvanced CMPS
__________________
Backup Backup Backup.. Thats all I can say
Reply With Quote
  #19  
Old 05-31-2012, 05:24 PM
r_hippy's Avatar
r_hippy r_hippy is offline
Member
 
Join Date: Jul 2008
Posts: 67
Default

Quote:
Originally Posted by Amaury View Post


[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.
edit the colored text in the code in the first post to your liking
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
Reply With Quote
  #20  
Old 05-31-2012, 05:27 PM
Amaury's Avatar
Amaury Amaury is offline
Junior Member
 
Join Date: May 2012
Location: United States, WA
Posts: 21
Default

Quote:
Originally Posted by r_hippy View Post
edit the colored text in the code in the first post to your liking
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;
}
So create two more plugins (process and unknown) or add on to the one I already created for Viewing Page Home?
Reply With Quote
Reply


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
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


All times are GMT -4. The time now is 04:52 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.