vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need a conditional similar to this... (https://vborg.vbsupport.ru/showthread.php?t=79706)

coRtALoS 04-10-2005 06:46 AM

Need a conditional similar to this...
 
I'm attempting to build two versions of part of a navigation bar for my forum portal index with some problems.

I'm using some javascript that by default, hides links to different areas to my forums. When the title of each <div> is clicked, that section will drop down, and the user can then click on what area of the forums they want to go to.

Unfortunately, this is not compatible with FireFox which I, along with a majority of my members use, so each category simply shows up as text, not links. Thus I've turned to using the following conditional to detect what browser people are using.
Code:

<if condition="is_browser('mozilla')" />
Unfortunately you can't use
Code:

onMouseOver="SwapImages('Nav4','Nav4On');
within the above-said conditional.

Additionally, when I remove the SwapImages javascript from the Mozilla-only portion of that conditional, I get the following parse error:
Quote:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/Bf307/includes/adminfunctions_template.php(3096) : eval()'d code on line 222
... and yes, I do have an <else /> tag in there for the non-mozilla display.

If you'd like to get an idea of what I'm talking about, you can view my portal here:
http://www.battleforums.com

Marco van Herwaarden 04-10-2005 07:31 AM

Missing a closing double-quote:
Code:

onMouseOver="SwapImages('Nav4','Nav4On')";

Princeton 04-10-2005 01:04 PM

I can't really comment on anything accept that it is easier to help if we had the code / conditional that you are using.

here's something at least...

Code:

<if condition="is_browser('mozilla')" />
should be
Code:

<if condition="is_browser('mozilla')">

<else />

</if>

HTML Code:

OnMouseOut
should be
HTML Code:

onmouseout


All times are GMT. The time now is 12:28 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.01009 seconds
  • Memory Usage 1,718KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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