View Full Version : drop downs not functioning
Chadi
04-30-2006, 03:29 PM
Please help me trace and fix this problem:
click on "quick links" button on the very top center, should drop a menu but it doesn't.
Same for the search button on the top right under the private messages area, should drop a search box.
www.talkjesus.com (http://www.talkjesus.com/)
Same applies to when clicking on the member's name in profile or threadview (postbit)
Chadi
04-30-2006, 05:26 PM
Another question, how can I group a hack/module's templates into an organized manner, by category and then each template below that category? (the same way vb does by default)
See attached
peterska2
04-30-2006, 05:34 PM
Problem 1. This is probably a problem in your postbit template.
Problem 2. Create a new plugin with the hook location 'template_groups'
In it place this code and edit accordingly
$only['START OF TEMPLATE NAMES EG FORUMHOME'] = 'NAME OF TEMPLATE GROUP EG FORUMHOME TEMPLATES';
Chadi
04-30-2006, 05:40 PM
I created the plugin and it did nothing (plugin enabled) but the templates are still seperate, not grouped inside the template group name.
Also, how would it know where to end?
peterska2
04-30-2006, 05:42 PM
try
$only['statistic'] = 'Statistics Templates';
What you had specified was too specific and so will have created the group but only put one template in it instead of all the templates starting with the same text (ie statistic)
Chadi
04-30-2006, 05:44 PM
Excellent. That works, thank you very much!
peterska2
04-30-2006, 05:44 PM
No problem. Happy to help.
Chadi
04-30-2006, 05:49 PM
Okay, any way to sort them alphabetically? :)
Thank you
peterska2
04-30-2006, 05:53 PM
They should slot in alphabetically automatically. Of course if you have some called things like Logicians Web Templates then it will come in the L's but if you name it just Web Templates then it will come in the W's
Chadi
04-30-2006, 06:12 PM
Thank you.
Regarding drop down, it is global problem on forumhome, postbit, thread view, etc. Any javascript drop down is not working and I have no idea why.
Any help appreciated.
Paul M
04-30-2006, 06:13 PM
FYI, as I mentioned in my PM - the problem is IE specific, they work in Firefox.
Chadi
04-30-2006, 06:14 PM
I traced the problem.
Footer template
<body>
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
$spacer_close
<!-- /content area table -->
<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong style="font-weight: 400">
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a><br>
<br>
Talk Jesus™ is a registered
international trademark. All rights reserved<br>
<font color="#FF9900">
<a href="http://www.virtuosonetsolutions.com/adwatcher/tracker.php?t=43">
<font color="#FF9900">Powered by: Virtuoso Net Solutions™</font></a></font></strong></div>
</td>
</tr>
</table>
</td><td style="background: url('/designs/radio_dream/rd_26.jpg');" width="27"></td>
</tr>
</table>
<!-- Content End -->
<!-- vbdesigns.de Footer -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td><img src="/designs/radio_dream/rd_44.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/rd_45.jpg');" width="50%"></td>
<!-- Do not remove this copyright notice -->
<td><img src="/designs/radio_dream/rd_46.jpg" alt="$vbphrase[powered_by_vbulletin]" /></td>
<!-- Do not remove this copyright notice -->
<td style="background: url('/designs/radio_dream/rd_47.jpg');" width="50%"></td>
<td><img src="/designs/radio_dream/rd_48.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table2">
<tr>
<td><img src="/designs/radio_dream/rd_49.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/rd_50.jpg');" width="50%"></td>
<td><img src="/designs/radio_dream/rd_51.jpg" alt="" /></td>
<!-- Do not remove this copyright notice -->
<td><a href="http://www.vbdesigns.de" onmouseover="turnOn('design');"
onmouseout="turnOff('design');"><img name="design" class="imgTrans"
src="/designs/radio_dream/rd_52.jpg" border="0" alt="Webdesign by: vbdesigns.de" /></a></td>
<!-- Do not remove this copyright notice -->
<td><img src="/designs/radio_dream/rd_53.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/rd_54.jpg');" width="51%"></td>
<td><img src="/designs/radio_dream/rd_55.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table3">
<tr>
<td ><img src="/designs/radio_dream/rd_56.jpg" alt="" /></td>
<td><a href="#top" onclick="self.scrollTo(0, 0); return false;" onmouseover="turnOn('top1');"
onmouseout="turnOff('top1');"><img name="top1" class="imgTrans"
src="/designs/radio_dream/rd_57.jpg" border="0" alt="$vbphrase[top]" /></a></td>
<td style="background: url('/designs/radio_dream/rd_58.jpg');" width="50%"></td>
<td><img src="/designs/radio_dream/rd_59.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/rd_60.jpg');" width="60%"></td>
<td><a href="#top" onclick="self.scrollTo(0, 0); return false;" onmouseover="turnOn('top2');"
onmouseout="turnOff('top2');"><img name="top2" class="imgTrans"
src="/designs/radio_dream/rd_61.jpg" border="0" alt="$vbphrase[top]" /></a></td>
<td><img src="/designs/radio_dream/rd_62.jpg" alt="" /></td>
</tr>
</table>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-226288-2";
urchinTracker();
</script>
</body>
I had $cronimage inserted under the 2nd last </script>, right before the google script.
What is a better place to place $cronimage ?
haytham
04-30-2006, 08:41 PM
so do your drop down menus work now? Can you specify the solution? Someone told me it had something to do with the style I am using.
Chadi
04-30-2006, 09:07 PM
They work after removing $cronimage from footer template.
Where in footer template is the proper place for cronimage?
haytham
04-30-2006, 10:19 PM
didn't work for me...when I move my mouse over options I get this link
http://www.mysite.com/showthread.php?p=3267#goto_threadtools
is this # normal? When I press the link I get directed to the bottom of the page where there are som options in a box.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.