Page 1 of 2 12 LastLast
Results 1 to 20 of 31

Thread: vBadvanced WOL

  1. #1

    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 Attached Images
    Last edited by r_hippy; 05-02-2010 at 08:52 PM. Reason: small edit
    Backup Backup Backup.. Thats all I can say

  2. #2
    www.threepoint.us
    Join Date
    May 2010
    Posts
    1

    Default

    work from me , thanks for tips

  3. #3

    Default

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

    enjoy
    Backup Backup Backup.. Thats all I can say

  4. #4
    Security team i.s.s.w's Avatar
    Join Date
    May 2007
    Location
    KUWAIT
    Posts
    58

    Default

    enjoy

    i.s.s.w

  5. #5
    Junior Member
    Join Date
    Oct 2011
    Posts
    5

    Default

    Didn't work for vB 4.1.7..

  6. #6
    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

  7. #7

    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

  8. #8
    Member
    Join Date
    Mar 2005
    Location
    Nova Scotia, Canada
    Posts
    56

    Default

    Works perfectly on 4.1.10. Thank you, this is exactly what I needed!

  9. #9
    Junior Member
    Join Date
    May 2004
    Posts
    18

    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?


    "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

    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 02:38 PM.

  10. #10

    Default

    dunno .. what are you looking it to say ?
    Backup Backup Backup.. Thats all I can say

  11. #11
    Junior Member
    Join Date
    Jan 2008
    Posts
    1

    Default

    Excellent, many thanks, this was just what I was looking for

  12. #12

    Default

    Works well with 4.1.11...thanks m8

  13. #13

    Default

    welcome
    Backup Backup Backup.. Thats all I can say

  14. #14
    Junior Member Amaury's Avatar
    Join Date
    May 2012
    Location
    Ellensburg, WA, US
    Posts
    23

    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.

  15. #15

    Default

    yes
    Backup Backup Backup.. Thats all I can say

  16. #16
    Junior Member Amaury's Avatar
    Join Date
    May 2012
    Location
    Ellensburg, WA, US
    Posts
    23

    Default

    Quote Originally Posted by r_hippy View Post
    yes
    Excellent. Thank you kindly.

  17. #17
    Junior Member Amaury's Avatar
    Join Date
    May 2012
    Location
    Ellensburg, WA, US
    Posts
    23

    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

  18. #18

    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

  19. #19

    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

  20. #20
    Junior Member Amaury's Avatar
    Join Date
    May 2012
    Location
    Ellensburg, WA, US
    Posts
    23

    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?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about vBadvanced CMPS and vBadvanced Dynamics
    By SherryG in forum Pre-Sale Questions
    Replies: 1
    Last Post: 08-27-2007, 10:57 AM
  2. Replies: 7
    Last Post: 08-12-2007, 09:09 PM
  3. vBadvanced.com running vBadvanced CMPS v2.2.1
    By RS_Jelle in forum Site Feedback & Updates
    Replies: 3
    Last Post: 10-15-2006, 04:50 PM
  4. vBadvanced Links Directory & vBadvanced CMPS
    By vBGJ in forum Pre-Sale Questions
    Replies: 3
    Last Post: 04-09-2006, 10:15 PM
  5. Difference btw vBadvanced CMPS & vBadvanced Homepage?
    By Millionaire in forum Chit Chat
    Replies: 5
    Last Post: 08-27-2004, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •