PDA

View Full Version : Navbar issues...


himerus
06-16-2004, 11:50 AM
I'm attaching 2 screenshots of my navbar, first from the forum home page, and second from the portal homepage... notice the differences.

The name of the forum is different, the avatar only shows up for guest users in the navbar on the portal homepage, and the post counts aren't showing up....

Any clues???

Brian
06-16-2004, 12:08 PM
The names are different because the CMPS uses your 'Homepage Name' option, while your fourms uses the 'Forum Name' option.
As for the other stuff, if you'll show me what hack you used to add that then I can probably tell you what needs to be changed to have it work with the CMPS as well.

Our Sponsors
 

himerus
06-16-2004, 12:13 PM
For the avatar mod, this is what I have in the navbar template:


<!-- avatar mod-->
<if condition="$vboptions['avatarenabled']"> <!-- disables this if admincp specifies it -->
<td class="alt2" valign="top" NoWrap>
<if condition="$bbuserinfo['userid']">
<div><a href="profile.php?do=editavatar">$welcomeavatar</a></div>
<else />
<div><a href="register.php"><img src="images/avatars/guestavatar.gif" border="0" /></a></div>
</if>
</td>
</if>
<!-- /avatar mod-->


The new posts info is as follows:


<!-- adding new posts -->
<div class="smallfont">
<phrase 1="$getnewpost[posts]" 2="$getnewthread[threads]">$vbphrase[x_new_posts_in_y_topics]</phrase><br />
<a href="search.php?$session[sessionurl]&do=getnew&exclude=44,45,46,47,48,51,52">$vbphrase[new_posts]</a> | <a href="search.php?$session[sessionurl]do=getnew&forumid=43">New USENET Posts</a>
</div>
<!-- / adding new posts -->


Thanks for your help... vBadvanced is one of the best hacks available, and we are all glad to have it at our disposal. :D

Brian
06-16-2004, 12:23 PM
In your forum/includes/vba_cmps_include_bottom file look for:

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;

Replace that with:

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $getnewpost, $getnewthread, $welcomeavatar;

And that should allow that info to be displayed as well. :)

Our Sponsors
 

himerus
06-16-2004, 12:26 PM
Worked like a charm.... you rule... :D :D :D (casts vote for hack of the month) <click>

mholtum
06-28-2004, 03:52 AM
Hmm, I must be missing something.

Here is my code from the file forum/includes/vba_cmps_include_bottom.php

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $getnewpost, $getnewthread, $welcomeavatar;


I dont see a difference..

mholtum
06-28-2004, 03:57 AM
Great.. Now I am getting the error
Parse error: parse error, unexpected T_RETURN in /home/mholtum/public_html/forum/includes/vba_cmps_include_bottom.php on line 63 on my cmps page.

Line 63 is as follows:

if (!function_exi return 'alt1';

mholtum
06-28-2004, 09:38 AM
submitted trouble ticket