Go Back   Webmaster Forum > Development > Forum Administration & Management
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 11 (permalink)
Old
Newbie
Posts: 34
Join Date: Feb 2007
iTrader: (0)
Re: Add dropdown buttons in navbar - 12-25-2007

PHP Code:

    
<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
            <
form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                <
input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                <
input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
            </
form>
            </
td>
        </
tr>
        </
table>
    </
div>

<!-- / 
PAGENAV POPUP -->
</if> 
Reply With Quote
  # 12 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,120
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Navbar Code - 12-25-2007

Heres your edited navbar code, attached as a txt file.

ok. Now provide your 'header' template code.

Thanx,
Shadab.
Attached Files
File Type: txt navbar.txt (12.0 KB, 3 views)
Reply With Quote
  # 13 (permalink)
Old
Newbie
Posts: 34
Join Date: Feb 2007
iTrader: (0)
Re: Navbar Code - 12-26-2007

Quote:
Originally Posted by Shadab View Post
Heres your edited navbar code, attached as a txt file.

ok. Now provide your 'header' template code.

Thanx,
Shadab.
here is my header template :
Attached Files
File Type: txt header.txt (4.5 KB, 3 views)
Reply With Quote
  # 14 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,120
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Re: Add dropdown buttons in navbar - 12-26-2007

Heres the edited header code,
with default sample button.

.
Attached Files
File Type: txt header_edited.txt (4.2 KB, 5 views)
Reply With Quote
  # 15 (permalink)
Old
Newbie
Posts: 34
Join Date: Feb 2007
iTrader: (0)
Re: Add dropdown buttons in navbar - 12-26-2007

it gave error when saving:

Quote:
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/wzone/public_html/includes/adminfunctions_template.php(3587) : eval()'d code on line 72

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  # 16 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,120
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Re: Add dropdown buttons in navbar - 12-26-2007

oops...

In the same code i had given above

FIND THIS :
PHP Code:
$template_hook[navbar_buttons_right 
REPLACE WITH :
PHP Code:
$template_hook[navbar_buttons_right
then save it.
Reply With Quote
  # 17 (permalink)
Old
Newbie
Posts: 34
Join Date: Feb 2007
iTrader: (0)
Re: Add dropdown buttons in navbar - 12-26-2007

hmm it worked , but there is a problem, the drop-down box is dropping on left side of button , but i want it to be dropped in center ,can u do it?
Reply With Quote
  # 18 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,120
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Re: Add dropdown buttons in navbar - 12-26-2007

Quote:
Originally Posted by bilalghouri View Post
hmm it worked , but there is a problem, the drop-down box is dropping on left side of button , but i want it to be dropped in center ,can u do it?
In the navbar template.

FIND :
PHP Code:
<!-- custom dropdown menu -->
<
div class="vbmenu_popup" id="dropdown1_menu" style="display:none">
  <
table cellpadding="4" cellspacing="1" border="0"
REPLACE :
PHP Code:
<!-- custom dropdown menu -->
<
div class="vbmenu_popup" id="dropdown1_menu" style="display:none">
  <
table cellpadding="4" cellspacing="1" border="0" style="margin-left:80px"
If this doesn't work,
then theres not much I can do about it.

I hope it works.
Reply With Quote
  # 19 (permalink)
Old
Newbie
Posts: 34
Join Date: Feb 2007
iTrader: (0)
Re: Add dropdown buttons in navbar - 12-26-2007

stupid, now it is showing a black background where it was before.!!
Reply With Quote
  # 20 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,120
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Re: Add dropdown buttons in navbar - 12-26-2007

Final Try...

INSTEAD OF :
PHP Code:
<!-- custom dropdown menu -->
<
div class="vbmenu_popup" id="dropdown1_menu" style="display:none">
  <
table cellpadding="4" cellspacing="1" border="0" style="margin-left:80px"
USE THIS :
PHP Code:
<!-- custom dropdown menu -->
<
div class="vbmenu_popup" id="dropdown1_menu" style="display:none;margin-left:80px">
  <
table cellpadding="4" cellspacing="1" border="0"
Reply With Quote
Reply


Thread Tools



PSD to HTML

vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com