vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Profile Fields in a Postbit Dropdown (https://vborg.vbsupport.ru/showthread.php?t=208360)

Saviour 06-07-2009 11:19 PM

nope...doesn't work...

Any other ideas?

Wired1 06-08-2009 01:28 AM

Put it around the Dropdown Call template and it'll work, remove it from the plugin.

Saviour 06-08-2009 11:20 AM

Quote:

Originally Posted by Wired1 (Post 1825378)
Put it around the Dropdown Call template and it'll work, remove it from the plugin.

Wired1...

I tried wrapping the code you gave me around the text in the Dropdown Call template. It'll work if there is only one forum listed...but the minute you add another forum, separated by a comma...it fails...giving you a parse error...a malformed conditional.

Not being one who is that familiar with nested IF statements...it would seem the code you gave me to use doesn't work.

I think I'll have to research nested IF statements.

Wired1 06-08-2009 02:31 PM

Meh, I had the syntax wrong. Here's the right way:

Code:

<if condition="$forum[forumid] != X or $forum[forumid] != Y">

Saviour 06-08-2009 02:54 PM

Sorry...that's not working, either...

Saviour 06-08-2009 04:40 PM

Finally got it to work by using this code:

Code:

<!-- post specs_menu -->
<if condition="$forum[forumid] != 8">
<if condition="$forum[forumid] != 56">
<if condition="$forum[forumid] != 58">
<if condition="$forum[forumid] != 59">
<if condition="$forum[forumid] != 60">
<if condition="$forum[forumid] != 61">
<if condition="$forum[forumid] != 62">
<if condition="$forum[forumid] != 63">
<if condition="$forum[forumid] != 64">
<if condition="$forum[forumid] != 65">
<if condition="$forum[forumid] != 66">
<if condition="$post['field23']">
        <div style="background-image: url('http://glitchpc.com/forums/images/buttons/specs.gif'); position:absolute; width:auto;" id="specs_$post[postid]" class="vbmenu_control">
                <a href="#specs">$vbphrase[dropdown_title]</a>
                <script type="text/javascript"> vbmenu_register("specs_$post[postid]"); </script>
        </div>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
</if>
<!-- / post specs_menu -->

May be sloppy...but it works...

Wired1 06-08-2009 06:35 PM

Code:

<if condition="$forum[forumid] != '8'or $forum[forumid] != '56'">
Try that (note the additional quotes).

Saviour 06-09-2009 12:15 AM

Wired1...

Ended up using this code:

Code:

<if condition="!in_array($forum['forumid'], array(8,56,58,59,60,61,62,63,64,65,66))">
</if>

Works like a charm...Thanks for the help...

Wired1 06-09-2009 12:22 AM

Heh, knew there was a cleaner way, nice work!

Burnt 06-10-2009 06:21 AM

If I don't want it under the name and above the avatar what do I edit to put it under the avatar?


All times are GMT. The time now is 11:03 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.01178 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete