vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Drop down menu hack question (https://vborg.vbsupport.ru/showthread.php?t=34879)

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/showthrea...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:

PHP Code:

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":

PHP Code:

<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.


All times are GMT. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01066 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete