MyBB Community Forums

Full Version: Condition and vb navbar for 1.20
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
I'm assuming techkid meant the 'MyBulletin' theme at
I'm getting a fatal error:

Fatal error: Call to undefined function is_banned_ip() in /home/ptn/public_html/faux/global.php on line 357

According to this it might be to do with functions.php, so would it be possible to find out which functions.php you're using? The original functions.php posted by the author of this plugin is outdated, and the newer version can be found here (post #71)
plz help me...

when i want to go to a topic this ereor is showing

Parse error: syntax error, unexpected T_VARIABLE, expecting '}' in /home/mahdy202/public_html/itf/showthread.php(825) : eval()'d code on line 1

Warning: Cannot modify header information - headers already sent by (output started at /home/mahdy202/public_html/itf/showthread.php(825) : eval()'d code:1) in /home/mahdy202/public_html/itf/inc/functions.php on line 86

my forum:
A new version of functions.php has been added to post#71 to work with MyBB 1.2.10.

A new versino of functions.php has been added to post #120 to work with 1.2.12.

Please note that other necessary changes (from the first post) include those from:
Post #119 and Post #95

EDIT 18/01/08: Please note that the link above has been changed to post #120 by PsX2X.
Hmmm I can't show up the GO button by any means....may be some of my silly mistake....btw any help would be great....

	<span style="float:right;">{$lang->welcome_current_time}</span>
		{$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$admincplink} — <a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->welcome_logout}</a>)<br />
				<span class="links">
					<a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 170, 300);">{$lang->welcome_open_buddy_list}</a>
				<a href="#" id="forumstats"><strong>Forum Stats</strong></a></span>
<script type="text/javascript">
	document.write("<div id=\"forumstats_popup\" class=\"popup_menu\" style=\"display: none;\"><div class=\"tcat\" style=\"padding:2px;\"><strong>Forum Stats<\/strong><\/div><div class=\"popup_item_container\"><a href=\"stats.php\" class=\"popup_item\">Full Statistics<\/a><\/div><div class=\"popup_item_container\"><a href=\"search.php?action=getnew\" class=\"popup_item\">View New Posts<\/a><\/div><div class=\"popup_item_container\"><a href=\"showteam.php\" class=\"popup_item\">Forum Team<\/a><\/div><\/div>");
	new PopupMenu("forumstats");
</script> | <a href="#" id="pms"><strong>Private Message</strong></a></span>
<script type="text/javascript">
	document.write("<div id=\"pms_popup\" class=\"popup_menu\" style=\"display: none;\"><div class=\"tcat\" style=\"padding:2px;\"><strong>PMs<\/strong><\/div><div class=\"popup_item_container\"><a href=\"private.php?fid=1\" class=\"popup_item\">Inbox<\/a><\/div><div class=\"popup_item_container\"><a href=\"private.php?fid=2\" class=\"popup_item\">Sent Items<\/a><\/div><div class=\"popup_item_container\"><a href=\"private.php?fid=3\" class=\"popup_item\">Drafts<\/a><\/div><div class=\"popup_item_container\"><a href=\"private.php?fid=4\" class=\"popup_item\">Trash Can<\/a><\/div><div class=\"popup_item_container\"><a href=\"private.php?action=send\" class=\"popup_item\">Compose PM<\/a><\/div><\/div>");
	new PopupMenu("pms");
| <a href="search.php" id="search" onclick="return openMenu(this)" class="popup_button">search<img src="images/popup_down.gif" border="0" /></a>
<!-- header quick search form -->
<div class="menupop" id="search-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<td class="tcat">Search</td>
<td class="row1">

<form method="post" action="$settings[bburl]/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="" />
<td class="menu_row"><a href="search.php">Advanced Search</a></td>

<!-- / header quick search form -->  
| <a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">User CP<img src="images/popup_down.gif" border="0" /></a>

<!-- user cp tools menu -->
<div class="menupop" id="usercp-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="tcat">Quick Links</td></tr>
<tr><td class="menu_row" ><a href="search.php?action=getnew"><font color="black">View New Posts</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=markread"><font color="black">Mark All Forums Read</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=buddypopup"><font color="black">Body/Ignore List</a></td></tr></font>

<tr><td class="tcat"><a href="usercp.php">User CP</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig"><font color="black">Change Signature</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=avatar"><font color="black">Change Avatar</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=profile"><font color="black">Edit Profile</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=options"><font color="black">Edit Options</a></td></tr></font>

<tr><td class="tcat">Miscellaneous</td></tr>
<tr><td class="menu_row"> <a href="private.php"><font color="black">Private Messages</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions"><font color="black">Subscribed Threads</a></td></tr></font>
<tr><td class="menu_row"><a href="member.php?action=profile&amp;uid={$mybb->user['uid']}"><font color="black">View Profile</a></td></tr></font>
<tr><td class="menu_row"><a href=""><font color="black">DotTUBE</a></td></tr></font>
<tr><td class="menu_row"><a href=""><font color="black">Where You Are?</a></td></tr></font> 


this is my welcome_block_member.....I do use it differently to suit my theme....anyway the go button is not there but it works with the "enter"

Will wait for any good responces.
For some unknown reason the changes I made by following step by step from this thread caused me as eerie problem.....after this all the "post reply" & "preview" buttons were going only to search!!!!

So I had to revert the templates back to my original one before...
@Hime: Sorry to read about your predicament. I have to admit the changes that I've posted are geared towards the Black Rose theme (and I should have emphasised this point before) Have you had more luck with the changes since then?
The logout link has changed again slightly (cant' remember when ^^) so if you have a problem logging out when using the Condition and vbnavbar link, please open up the header template, and find:

<if condition=$mybb->user['uid']> 0 <then>
<td class="tcat" align="center"> <a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>

or if you made the 'session' edit from post #90

<if condition=$mybb->user['uid']> 0 <then>
<td class="tcat" align="center"> <a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>

and replace with
<if condition=$mybb->user['uid']> 0 <then>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a></td><else /></if>

With thanks to post by Paretje
Since update 1.2.12, the vb navbar is again not working, because there were wade changes on the functions.php. Can someone please upload a fixed one which is working with the update 1.2.12? Or maybe post the code changes, that would be easier, so we could make the changes on our own with every new functions.php...

EDIT: oki, I've found the changes, the modified functions.php is attached Wink
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17