Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2009, 08:03 AM
Lautaro's Avatar
Lautaro Lautaro is offline
 
Join Date: Jan 2009
Location: United States
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [HELP] adding a menu

Hi, I'm trying to add a menu with a Javascript image rollover fading effect in my forum portal, but there's a problem when I add tables / TR's / TD's to the module code..

this is how it looks with a test code:


and this is the code I used on that module:
Code:
<table CELLPADDING="0" CELLSPACING="0">
<tr>
<td>asdasddas</td>
</tr>
<tr>
<td>asdasddas</td>
</tr>
<tr>
<td>asdasddas</td>
</tr>
<tr>
<td>asdasddas</td>
</tr>
</table>
I don't understand why there's all that space between the top of the module and the information the tables contain...

that's not exactly what I want to add but thats not letting me continue adding the meu I want..

So how can I fix this issue?
Reply With Quote
  #2  
Old 03-19-2009, 02:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looks like you need to add some alignment to the table cell you are putting the menu links in (the module?) - <td valign="top">
Reply With Quote
  #3  
Old 03-19-2009, 03:46 PM
Lautaro's Avatar
Lautaro Lautaro is offline
 
Join Date: Jan 2009
Location: United States
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried everything, and always having the same issue... this is the code I want to put there:

Code:
<link rel="stylesheet" href="./gestyle/portalmenu/style.css" type="text/css" />

<SCRIPT LANGUAGE=JavaScript SRC="./gestyle/portalmenu/JSFX_FadingRollovers.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
    JSFX.Rollover("forums",    "./gestyle/portalmenu/s1.png");
    JSFX.Rollover("muen",   "./gestyle/portalmenu/s2.png");
    JSFX.Rollover("mues",  "./gestyle/portalmenu/s3.png");
    JSFX.Rollover("staff",  "./gestyle/portalmenu/s4.png");
    JSFX.Rollover("arcade",  "./gestyle/portalmenu/s5.png");
//-->
</SCRIPT>

</HEAD>


<table align="center" CELLPADDING="0" CELLSPACING="0">
<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button1"><A HREF="#" onMouseOver="JSFX.fadeIn('forums')" onMouseOut="JSFX.fadeOut('forums')"><img name="forums" class="imgFader" src="./gestyle/portalmenu/s1.png" border="0"></A></TD>

</TR>
<!-- *** END   THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button2"><A HREF="#" onMouseOver="JSFX.fadeIn('muen')" onMouseOut="JSFX.fadeOut('muen')"><img name="muen" class="imgFader" src="./gestyle/portalmenu/s2.png" border="0"></a></TD>
</TR>
<!-- *** END   THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button3"><A HREF="#" onMouseOver="JSFX.fadeIn('mues')" onMouseOut="JSFX.fadeOut('mues')"><img name="mues" class="imgFader" src="./gestyle/portalmenu/s3.png" border="0"></a></TD>
</TR>
<!-- *** END   THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button4"><A HREF="#" onMouseOver="JSFX.fadeIn('staff')" onMouseOut="JSFX.fadeOut('staff')"><img name="staff" class="imgFader" src="./gestyle/portalmenu/s4.png" border="0"></a></TD>
</TR>
<!-- *** END   THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button5"><A HREF="#" onMouseOver="JSFX.fadeIn('arcade')" onMouseOut="JSFX.fadeOut('arcade')"><img name="arcade" class="imgFader" src="./gestyle/portalmenu/s5.png" border="0"></a></TD>
</TR>
<!-- *** END   THE ROLLOVER IMAGE LINK*** -->
</table>
With that code I can get to work this menu: http://forum.gamezeventos.com/gestyle/portalmenu/

But im having this problem and can't fix it.. mabe someone knows which is the template name of the portal index so i can just put the code on the template..
Reply With Quote
  #4  
Old 03-19-2009, 03:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is just the code to put *in* the module. You need to change the alignment in the box it is in, not in the code you posted above. Is that vBa? You should be posting over there for help with this.
Reply With Quote
  #5  
Old 03-19-2009, 04:36 PM
Lautaro's Avatar
Lautaro Lautaro is offline
 
Join Date: Jan 2009
Location: United States
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I posted it on vBAdvanced forums and got my problem fixed.
The problem was that i had to remove all the line breaks .. now its fixed..

thanks for your help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03788 seconds
  • Memory Usage 2,200KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete