PDA

View Full Version : Drop down menu hack question


theguru
02-08-2002, 05:04 AM
I am a newbie and I thought I would install my first hack and I started with this drop down menu hack:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=26240&highlight=drop+down+menu

I installed it once, no dice, and then I installed it a second time, no dice. It looked pretty easy to me but I figured it had to be something I was doing wrong but then it happened...

The hack was not worked for me but when I recently added a new forum the hack kicked in and worked on the new forum only and not the old forums. I tried it again with another new test forum and sure enough the hack worked like a charm. I figure this is good news and I am not as dumb as a I look but my question is this, if the hack is working for new forums I create how can I get it to work on all of my exsisting forums? Is there an easy way to reset or re-index my exsisting forums so they will recognize the hack?

Please help me! :confused:

Lesane
02-08-2002, 07:07 AM
It says this in the instructions:

edit your "forumhome_forumbit_level2_post."


Now Replace This Code:
------------------------------------


<td bgcolor="#13486D"><smallfont>$forum[moderators]</smallfont></td>
</tr>


With This Edited Code:
--------------------------------

<form><td bgcolor="#13486D" valign="middle" align="right" nowrap>
<IMG align="absmiddle" SRC="https://vborg.vbsupport.ru/images/team.gif">
<SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #dfdfdf; font-family: Arial, Tahoma;" maxlength="20">
<OPTION VALUE="#">moderators</OPTION>
<OPTION VALUE="#">---------------------</OPTION>
$forum[moderators]</select></td></form></tr>

Now Save Changes!!

Now try to do the same with the template forumhome_forumbit_level1_post

theguru
02-08-2002, 03:49 PM
Lesane,

Thanks, it worked right away. Like I said, I am new to this. I have one more question. The width of the drop down boxes is a little different in the forums where I have mods with longer usernames. How can I standardize this width?

Lesane
02-08-2002, 04:02 PM
Probably where it says "maxlength="20":

<SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #dfdfdf; font-family: Arial, Tahoma;" maxlength="20">

theguru
02-08-2002, 04:08 PM
My problem is not with the max length (it works fine with the longer usernames) its with the drop down menus that only have mods with short usernames are not as wide as the ones with the long usernames. In my way of thinking I need to code it so the drop down box has to be a certain width so all of the boxes are uniform.

Am I making sense?

Lesane
02-08-2002, 04:24 PM
hmmm... good question ;):D

Try to ask it in the drop-down-hack thread and maybe the maker of the template hack or somebody else knows the solution.

Good luck ;)

theguru
02-08-2002, 04:24 PM
Thank you very much.