Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Need help with Arcade's Navbar.. or whatever it's called Details »»
Need help with Arcade's Navbar.. or whatever it's called
Version: , by gpc10347 gpc10347 is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-19-2008 Last Update: Never Installs: 0
 
No support by the author.

I'd like to add a couple of items (like Moods) to the area that traditionally has "Welcome....." "You last visited" and all that.. I hate to call it Navbar but I guess that's what it is...

What file do I need to edit in order to change what appears below the "Welcome username" area within the arcade?

Thanks for any assistance.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-22-2008, 01:40 AM
gpc10347 gpc10347 is offline
 
Join Date: May 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(Actually - the area I need to locate is whatever file controls You last visited: and Private Messages: within the arcade...)

Bueller? Bueller? Anyone?
Reply With Quote
  #3  
Old 07-22-2008, 02:55 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no "Welcome....." "You last visited" and all that.. within the arcade, that is the
navbar that is displayed on every page.

You should really go to the thread for this mod to discuss your question.
Some members don't search the forum to find post about the arcade, they will go
to that thread. So, your question may sit dormant forever.

To add or remove info from the area within the "navbar", log into your
Admincp/Styles & Templates/Search in Templates, type in navbar,
select the style you wish this edit to be done to, click search.

Find:
welcome_x_link_y

That is the beginning of that area.

Remember, back up your template before you edit it.
Reply With Quote
  #4  
Old 07-22-2008, 03:20 AM
gpc10347 gpc10347 is offline
 
Join Date: May 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
There is no "Welcome....." "You last visited" and all that.. within the arcade, that is the
navbar that is displayed on every page.

I suppose I'm seriously confused then as each and every non-Arcade oriented page has the appropriate hacks and mods that I added to them in place and functional.

Perhaps this is the absolute wrong thread to ask for assistance for a newbie but I thought the goal was a shared knowledge base of folks from folks that have used and set up similar hacks and mods...

My mistake.
Attached Files
File Type: (21.4 KB, 13 views)
Reply With Quote
  #5  
Old 07-22-2008, 03:25 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is the global navbar, edit it with the info I provided.
My navbar does not change when I go to the arcade.

Your not a newbie, I only informed you as to where you should
seek assistance, from folks that have use this mod.
Reply With Quote
  #6  
Old 07-27-2008, 10:36 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you need additional variables in the navbar ect. please add them here:

open /arcade/functions/functions.php

search for
Code:
 // add additional needed variables here
Example: if you need $mydata in there, add below:
Code:
// add additional needed variables here
global $mydata;
Reply With Quote
  #7  
Old 07-27-2008, 12:29 PM
gpc10347 gpc10347 is offline
 
Join Date: May 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
I found that the insertion point into the navbar was nested in an If statement that concealed the hack I've been searching for. Got that altered and have been frustated that it still didn't work.

So, from your reply, I peered a little deeper into the hacks settings and found that it adds some info into the footer by hooking into global_setup_complete which is apparently not used anywhere within the arcade. (I"m speculating here)

I added the code from the plug-in into the /arcade/functions/functions.php and Voila, it's working... and so far, it doesn't appear I broke my much loved arcade!

In case it's of any use to anyone else: Here's what I did to get the VMoods mod working on the Arcade page...

I found this in /arcade/functions/functions.php:
PHP Code:
eval('$footer="' fetch_template('footer') . '";'); 

And put all of this immediately afterwards:
PHP Code:
        if ($vbulletin->options['vmoods_active'] && $vbulletin->userinfo['userid'] > && !in_array($vbulletin->userinfo['usergroupid'], explode(","$vbulletin->options['vmoods_usergroups'])))
{
    
$vmoods_list explode("\n"$vbulletin->options['vmoods_list']);
    
$vmoods_path $vbulletin->options['vmoods_images_path'];    
    foreach (
$vmoods_list as $vmood)
    {
        
$vmood trim($vmood);
        
$vmood_id = ($vbulletin->userinfo['vmood'] == $vmood) ? 'mine' $vmood;
        
        if (
$vbulletin->options['vmoods_li_option'] == 'text'){
            eval(
'$vmoods_li .= "' fetch_template('vmoods_li_text') . '";');
        } else        
        if (
$vbulletin->options['vmoods_li_option'] == 'images'){
            eval(
'$vmoods_li .= "' fetch_template('vmoods_li') . '";');
        }
    }
    
    eval(
'$vmoods_form = "' fetch_template('vmoods_form') . '";');
    
    
$footer $vmoods_form $footer;

Reply With Quote
  #8  
Old 07-27-2008, 11:17 PM
Kinneas's Avatar
Kinneas Kinneas is offline
 
Join Date: Dec 2005
Location: Nottingham, UK
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks gpc, that did the trick. Although I think you missed a } off the end of the code.
Reply With Quote
  #9  
Old 07-27-2008, 11:35 PM
gpc10347 gpc10347 is offline
 
Join Date: May 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kinneas View Post
Thanks gpc, that did the trick. Although I think you missed a } off the end of the code.
Awesome - Glad I wasn't alone!
Reply With Quote
Reply


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


All times are GMT. The time now is 01:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07129 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete