HelpHelpSearchSearchMembersMembersCalendarCalendar
Welcome, Guest. Please login or register.

Login with username, password and session length
August 27, 2008, 10:25:12 PM
Please use the support forum for support issues instead of sending me pm's. Thanks.
I will not reply to support issues via pm.
« previous next »
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read July 22, 2008, 05:32:33 PM #0
drxdragon

warzone drop down menu for 1 mainnav link

i was wondering if there was a way i could make a drop down menu for one of my mainnav links.....  i.e home shop arcade then the drop down link lets say.. links then that would drop down and give a bunch of links to other stuff... is this possible? please help
« Last Edit: July 30, 2008, 03:51:46 PM by m3talc0re »
Offline  
Read July 22, 2008, 07:42:16 PM #1
m3talc0re

Re: warzone drop down menu for 1 mainnav link

I can't give this to you in php as I don't know how you're using it or what links, but this is the html for it:

	
	
	
	
<
td class="mainnav" valign="middle"><a href="', $scripturl, '#yourlinks" id="idyourlinks" rel="yourlinks">Link Title&nbsp;<img src="', $settings['images_url'], '/search_down.gif" width="10" height="10" alt="^" /></a>
	
	
	
	
	
<!--Do 
not remove outer most DIV tag with id="yourlinks"-->
	
	
	
	
	
<
div id="yourlinks" style="width: 150px;visibility:hidden;" class="drop-down">
	
	
	
	
	
	
<
table width="100%" border="0" cellpadding="0" cellspacing="1">
	
	
	
	
	
	
	
<
tr>
	
	
	
	
	
	
	
	
<
td class="catbg" height="20" align="left" valign="middle">Link Title</td>
	
	
	
	
	
	
	
</
tr>
	
	
	
	
	
	
	
<
tr>
	
	
	
	
	
	
	
	
<
td height="20" align="left" valign="middle"><class="subNav-link" href="#urltopage">Link One</a></td>
	
	
	
	
	
	
	
</
tr>
	
	
	
	
	
	
	
<
tr>
	
	
	
	
	
	
	
	
<
td height="20" align="left" valign="middle"><class="subNav-link" href="#urltopage2">Link Two</a></td>
	
	
	
	
	
	
</
table>
	
	
	
	
	
</
div>
	
	
	
	
	
<
script type="text/javascript">
	
                
dropdowncontent.init("idyourlinks""left-bottom"200"click")
	
                
</script>
	
	
	
	
</td>


The real hell is your life gone wrong.
Offline  
Read July 22, 2008, 08:05:23 PM #2
drxdragon

Re: warzone drop down menu for 1 mainnav link

well.. basically.. i wanna make a radio link in the mainnav and have it drop down w/ the same text that the mainnav has with the genre like rock metal hip hop and so on and would open up in a dif/new tab/window


and how would i use the html you gave for it?
<--- still somewhat a newbie to php lol and smf for that matter
« Last Edit: July 22, 2008, 08:12:57 PM by drxdragon »
Offline  
Read July 22, 2008, 08:22:37 PM #3
m3talc0re

Re: warzone drop down menu for 1 mainnav link

Pretty much wrap it in an echo and look at the Index.template.php in the main nav area and see how those links are. For example, this is the Quick Links in another theme:
	
// How about the [quick links] button?
	
if (
$context['user']['is_logged'])
	
{
	
	
echo 
'
	
	
	
	
	
<td align="center" valign="middle"><a class="mainnav-link" href="'
$scripturl'#quicklinks" id="idquicklinks" rel="quicklinks">'$txt['quick_links'], '&nbsp;<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" alt="^" /></a>
	
	
	
	
	
	
<!--Do not remove outer most DIV tag with id="quicklinks"-->
	
	
	
	
	
	
<div id="quicklinks" style="width: 150px;visibility:hidden;" class="drop-down">
	
	
	
	
	
	
	
<table width="100%" border="0" cellpadding="0" cellspacing="1">
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td class="catbg" height="20" align="left" valign="middle">' 
$txt['quick_links'] . '</td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=recent">'$txt[214], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=markasread;sa=all;sesc='$context['session_id'], '">'$txt['board_markread'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=who">'$txt['whos_online'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td class="catbg" height="20" align="left" valign="middle">'
$txt['user_settings'], '</td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=profile">'$txt['view_profile'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=account">'$txt['account_settings'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=forumProfile">'$txt['edit_profile'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=theme">'$txt['preferences'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td class="catbg" height="20" align="left" valign="middle">'
$txt['miscellaneous'], '</td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=unread">'$txt['qlunread_posts'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
<td height="20" align="left" valign="middle"><a class="subNav-link" href="'
$scripturl'?action=unreadreplies">'$txt['qlunread_replies'], '</a></td>
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
</table>
	
	
	
	
	
	
</div>
	
	
	
	
	
	
<script type="text/javascript">
	
	
                dropdowncontent.init("idquicklinks", "left-bottom", 200, "click")
	
	
                </script>
	
	
	
	
	
</td>'
;
	
	
}


The real hell is your life gone wrong.
Offline  
Read July 22, 2008, 08:39:51 PM #4
drxdragon

Re: warzone drop down menu for 1 mainnav link

mmk.. got that in there.. but its not droping down when i think i added one link .. idk.. lol
... can you take a look.. if you dont mind www.chitt-chatt.com
Offline  
Read July 22, 2008, 08:53:39 PM #5
m3talc0re

Re: warzone drop down menu for 1 mainnav link

Change this back to the way it was:
<div id="Radio" style="width: 150px;visibility:hidden;" class="drop-down">

Instead of radio, it should be yourlinks. If you want it to be radio, then you have to fix this to match and the javascript that goes with it (the js below the table parts)
<a href="" id="idyourlinks" rel="yourlinks">Radio&nbsp;<img src="" width="10" height="10" alt="^" /></a>

id="idradio" rel="radio"

<div id="radio"

Then in the JavaScript:
<script type="text/javascript">
dropdowncontent.init("idyourlinks", "left-bottom", 200, "click")
</script>

Change that to "idradio". See the pattern here?


The real hell is your life gone wrong.
Offline  
Read July 22, 2008, 09:09:05 PM #6
drxdragon

Re: warzone drop down menu for 1 mainnav link

hmmm.... im lost..
lol


i think i got this code all messed up now in the forums..
Offline  
Read July 22, 2008, 09:10:16 PM #7
drxdragon

Re: warzone drop down menu for 1 mainnav link

sry im such a dolt/ newbie.. at this stuff im surprised i got my site this far.. i did a lot of reading and copy and pasting.. but this i think is more work than i thought..


Offline  
Pages: [1]   Go Up
Jump to:  

Theme by Webtechnica.net
MySQL PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC XHTML 1.0 CSS