HelpHelpSearchSearchMembersMembersCalendarCalendar
Welcome, Guest. Please login or register.

Login with username, password and session length
August 27, 2008, 10:02:24 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 June 30, 2008, 07:19:33 AM #0
xkiller213

Drop-down menus don't work...

hmmm.. after a little editing something went wrong and now my drop down menus do not work.. i've attached the BoardIndex.template.php, Display.template.php and index.template.php...

only the one with "Quick Links" work.. the rest don't... like "Thread Tools"

http://eschorale.110mb.com/

http://eschorale.110mb.com/help/files.zip

tell me if those files are not enough and i'll pass you more of them...

your theme rox!
« Last Edit: July 30, 2008, 03:49:55 PM by m3talc0re »
Offline  
Read July 03, 2008, 08:02:30 PM #1
m3talc0re

Re: Drop-down menus don't work...

Crap... Seems I forgot something in that theme... Wait and I'll tell you went to download the theme again...


The real hell is your life gone wrong.
Offline  
Read July 03, 2008, 08:13:22 PM #2
m3talc0re

Re: Drop-down menus don't work...

Okay, go download it again... If you have made too many edits and don't want to have to do them all over again, let me know and I'll tell you want to change.


The real hell is your life gone wrong.
Offline  
Read July 04, 2008, 10:15:52 AM #3
xkiller213

Re: Drop-down menus don't work...

hmmm... I guess it'll be easier for me to edit the file myself... Rather than doing all the mods over again... (even though i only installed one mod which gave me quite a big problem -the ad mod... Heh...)
Offline  
Read July 04, 2008, 06:46:28 PM #4
m3talc0re

Re: Drop-down menus don't work...

Okay, in the index.template.php:

Find the part for the quicklinks. There's a comment above the if statement and an opening and closing bracket:
// Show the quicklinks?
if($context['user']['is_logged']
{
  
all kinds of crap
}

// End the tab section
etc...

Replace all that above the // End the tab section with this:
Code:
// 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>';
}

Now, back in the top of the file, before the <body> tag, you should see a javascript. This is what you want it to be:
	
//This is for the pop menus
	
echo 
'<script language="javascript" type="text/javascript" src="'$settings['theme_url'], '/dropdown.js"></script>';

	
echo 
'
</head>
<body>'
;

I think that should do it.


The real hell is your life gone wrong.
Offline  
Read July 06, 2008, 12:23:49 PM #5
xkiller213

Re: Drop-down menus don't work...

hmmm... now i'm getting parse error on line 908...

i've renamed the file to a txt one so i'm using a previous backup...

Quote
Parse error: syntax error, unexpected $end in /www/110mb.com/e/s/c/h/o/r/a/l/eschorale/htdocs/Themes/Musiconica/index.template.php on line 908

http://eschorale.110mb.com/Themes/Musiconica/index.template.txt

what's wrong?
Offline  
Read July 06, 2008, 02:26:38 PM #6
m3talc0re

Re: Drop-down menus don't work...

See this at the end of the quicklinks?

<script type="text/javascript">
	
	
                
dropdowncontent.init("idquicklinks""left-bottom"200"click")
	
	
                
</script>
	
	
	
	
	
</td>';
	
	
}

You see that last } bracket? You are missing that.


The real hell is your life gone wrong.
Offline  
Read July 07, 2008, 03:41:09 AM #7
xkiller213

Re: Drop-down menus don't work...

ah..... thanks!

but it still doesn't work.. or is it just me? but now even the "Quick Links" also do not work (it was the only drop down menu which worked last time...)... what's wrong?
Offline  
Read July 07, 2008, 07:32:53 AM #8
m3talc0re

Re: Drop-down menus don't work...

Sorry, replace your dropdown.js with this one: http://www.webtechnica.net/demoforum/Themes/Underground/dropdown.js


The real hell is your life gone wrong.
Offline  
Read July 15, 2008, 06:13:44 AM #9
xkiller213

Re: Drop-down menus don't work...

thanks! it works very well now!

But one more thing...

How to prevent this from happening...?
Offline  
Read July 15, 2008, 09:27:06 AM #10
m3talc0re

Re: Drop-down menus don't work...

Hmm, must be the javascript for that news fader doing that. Try this (not sure if it'll work or not, lol), open the style.css and find the .drop-down selector. Add this to it: z-index: 99; See if that helps it.


The real hell is your life gone wrong.
Offline  
Read July 22, 2008, 10:08:07 AM #11
xkiller213

Re: Drop-down menus don't work...

guess what, it WORKS!!

Thanks lots!

btw how come some times the quick edit does not work all the times (loading bar below but does not allow to edit)? is it SMF or is it the theme?
Offline  
Read July 22, 2008, 04:40:07 PM #12
m3talc0re

Re: Drop-down menus don't work...

Not sure, could just be a connection issue. Kinda like how a page wont load sometimes.


The real hell is your life gone wrong.
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