Results 1 to 20 of 31

Thread: vBadvanced WOL

Threaded View

  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

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
  •