vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Work in progress (https://vborg.vbsupport.ru/showthread.php?t=290045)

leejohn02 11-02-2012 06:59 AM

Work in progress
 
i am currently trying to adapt a mod to vbulletin 4 but i am running into some difficultly, i am getting the most part working but its not showing the options in the drop down menu

<!-- Subforum pull-down menu --------------------------------------->
<form action="forumdisplay.php" method="get">
<input name="s" value="" type="hidden">
<input name="daysprune" value="-1" type="hidden">
<select name="f" onchange="this.form.submit();">
<if condition="$forum[statusicon] == 'new'">
<option value="$forum[forumid]" style="font-weight:bold;">$forum[title]</option>
<else />
<option value="$forum[forumid]">$forum[title]</option>
</if>
$forum[subforums]
</select>
<input class="button" value="$vbphrase[go]" type="submit">
</form>
<!-- Subforum pull-down menu --------------------------------------->


the problems i am having i have highlighted in red, they only seem to be showing that text in the red and not the actual sub sections, the original code if anyone wishes to develop it themeselves is located here

https://vborg.vbsupport.ru/showthread.php?t=99821

kh99 11-02-2012 11:40 AM

Try this:

Code:

<!-- Subforum pull-down menu --------------------------------------->
<form action="forumdisplay.php" method="get">
<input name="s" value="" type="hidden">
<input name="daysprune" value="-1" type="hidden">
<select name="f" onchange="this.form.submit();">
<vb:if condition="$forum[statusicon] == 'new'">
<option value="{vb:raw forum.forumid}" style="font-weight:bold;">{vb:var forum.title}</option>
<vb:else />
<option value="{vb:raw forum.forumid}">{vb:var forum.title}</option>
</vb:if>
{vb:raw forum.subforums}
</select>
<input class="button" value="{vb:phrase go}" type="submit">
</form>
<!-- Subforum pull-down menu --------------------------------------->


leejohn02 11-03-2012 06:10 AM

thats great now i just need get the depth of the forums to work the original line

<if condition="$forum[depth] == '2'">
&nbsp; &nbsp;
</if>

doesnt work any ideas??

ForceHSS 11-03-2012 06:34 AM

not sure if this will help or even what u are looking for
Code:

<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">
 <if condition="$forum[depth] == '2'">
 </if>
<if condition="$forum[depth] == '3'">
 </if>
 <if condition="$forum[statusicon] == 'new'">
+
<else />
-
</if>
 $forum[title]
 </option>
<!-- Subforum pull-down menu --------------------------------------->

or maybe this
Code:

<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">

<if condition="$forum[depth] == '2'">
   
</if>
<if condition="$forum[depth] == '3'">
       
</if>

<if condition="$forum[statusicon] == 'new'">

<else />

</if>

$forum[title]

</option>

or

Code:

<!-- Subforum pull-down menu --------------------------------------->
<option value="$forum[forumid]">
 <if condition="$forum[depth] == '2'">
 &nbsp; &nbsp;
</if>
 <if condition="$forum[depth] == '3'">
  &nbsp; &nbsp; &nbsp; &nbsp;
</if>
<if condition="$forum[statusicon] == 'new'">
+&nbsp;
<else />
-&nbsp;
</if>
 $forum[title]
 </option>
<!-- Subforum pull-down menu --------------------------------------->


leejohn02 11-06-2012 05:42 PM

still doesnt work, this is getting annoying, any more suggestions will be appericated, the first part works, but for some reason it wont find the 2nd part and continues to use the 2nd level and not the 3rd

kh99 11-06-2012 09:33 PM

Maybe this?

Code:

<vb:if condition="$forum[depth] == '2'">
&nbsp; &nbsp;
</vb:if>



All times are GMT. The time now is 01:12 AM.

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.00980 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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