Thread: Show Thread Enhancements - Profile Fields in a Postbit Dropdown
View Single Post
  #57  
Old 06-23-2012, 10:49 AM
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Geoff_M View Post
Sure, here is the XML file...

You may need to change around the user fields to get everything working correctly.

Also note, I made a field for enabling the drop down:
Code:
<vb:if condition="$post['field6']=='Yes'">
It is just a yes/no single option box.

I did this so that the first field didn't have to be filled to show the drop down.

If you have any questions feel free to ask.
Are you sure this is the correct template? I copied the xml contents and replaced my Dropdown Information - Manual template with it and it broke the thread views? I am not sure but I think some parts maybe belong somewhere else? Maybe I am doing it wrong and I am supposed to import it as a product? could you give me a bit more detailed instructions of which part belongs where?

here's my template


Code:
<!-- post specs_menu -->
<vb:if condition="$post['field6'] OR $post['field21'] OR $post['field9'] OR $post['field11'] OR $post['field7'] OR $post['field8']">
<div id="specs_{vb:var post.postid}_main" class="thread_controls">
	<ul id="postlist_popups" class="postlist_popups popupgroup">			
		<li class="popupmenu" id="specs_{vb:var post.postid}">
			<a class="popupctrl" href="javascript://">{vb:var post.username}'s {vb:var vbphrase.dropdown_title}</a>
			<ul class="popupbody memberaction_body epfp_list">
				<vb:if condition="$post['field21']">
					<li class="left">Rig Name: </li>
					<li class="right">{vb:var post.field21}</li>
				</vb:if>
<vb:if condition="$post['field10']">
					<li class="left">Display(Primary): </li>
					<li class="right">{vb:var post.field10}</li>
				</vb:if>
<vb:if condition="$post['field24']">
					<li class="left">Display(Secondary): </li>
					<li class="right">{vb:var post.field24}</li>
				</vb:if>

				<vb:if condition="$post['field6']">
					<li class="left">Processor: </li>
					<li class="right">{vb:var post.field6}</li>
</vb:if>
<vb:if condition="$post['field26']">
					<li class="left">CPU Cooling: </li>
					<li class="right">{vb:var post.field26}</li>
								</vb:if>
<vb:if condition="$post['field7']">
					<li class="left">Motherboard: </li>
					<li class="right">{vb:var post.field7}</li>
				</vb:if>
				<vb:if condition="$post['field8']">
					<li class="left">RAM: </li>
					<li class="right">{vb:var post.field8}</li>
				</vb:if>
<vb:if condition="$post['field9']">
					<li class="left">Graphics Card(s): </li>
					<li class="right">{vb:var post.field9}</li>
				</vb:if>
<vb:if condition="$post['field11']">
					<li class="left">Hard Drive: </li>
					<li class="right">{vb:var post.field11}</li>
				</vb:if>
<vb:if condition="$post['field17']">
					<li class="left">Optical Drive: </li>
					<li class="right">{vb:var post.field17}</li>
				</vb:if>
<vb:if condition="$post['field19']">
					<li class="left">Case: </li>
					<li class="right">{vb:var post.field19}</li>
				</vb:if>
<vb:if condition="$post['field16']">
					<li class="left">Power Supply(s): </li>
					<li class="right">{vb:var post.field16}</li>
				</vb:if>
<vb:if condition="$post['field12']">
					<li class="left">Sound Card: </li>
					<li class="right">{vb:var post.field12}</li>
				</vb:if>
<vb:if condition="$post['field13']">
					<li class="left">Speakers: </li>
					<li class="right">{vb:var post.field13}</li>
				</vb:if>
<vb:if condition="$post['field14']">
					<li class="left">Keyboard: </li>
					<li class="right">{vb:var post.field14}</li>
				</vb:if>
<vb:if condition="$post['field15']">
					<li class="left">Mouse: </li>
					<li class="right">{vb:var post.field15}</li>
				</vb:if>
<vb:if condition="$post['field18']">
					<li class="left">Operating System(s): </li>
					<li class="right">{vb:var post.field18}</li>
				</vb:if>
<vb:if condition="$post['field20']" >
					<li class="left"><url>Rig Build Topic (?): </url></li>
					<li class="right">{vb:var post.field20}</li>
				</vb:if>
<vb:if condition="$post['field23']">
					<li class="left">Benchmark Scores: </li>
					<li class="right">{vb:var post.field23}</li>
				</vb:if>
<vb:if condition="$post['field22']">
					<li class="left">Some Comments: </li>
					<li class="right">{vb:var post.field22}</li>
				</vb:if>
			</ul>
		</li>
	</ul>
</div>
</vb:if>
<!-- / post specs_menu -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01070 seconds
  • Memory Usage 1,800KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete