Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Profile Fields in a Postbit Dropdown Details »»
Profile Fields in a Postbit Dropdown
Version: 4.0.0, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.6 Rating:
Released: 08-14-2010 Last Update: Never Installs: 73
Uses Plugins Template Edits
Re-useable Code Is in Beta Stage  
No support by the author.

If you use this mod please hit INSTALL!

NOTE: This mod will be considered in BETA until the following items are cleaned up / added:
1. The CSS for the dropdown. Not horrible, but not pretty.
2. The Automated plugin is not working.
3. Alignment issues with the dropdown itself.


If you ask when the afforementioned items will be fixed - you will be ignored, as I don't have a fix currently. If I did... I'd have fixed it before now! If you have a fix, please PM me and I'll integrate it into the mod and give you proper credit in the version history.


With this mod you can allow profile fields to show up in a dropdown below a user's name and user's title under each post. NOTE: The dropdown's title shows up as [username]'s [dropdown_title]. Yes, the 's is hardcoded into the mod. Figured if I didn't hardcode it, someone wouldn't be able to figure out how to add it

To edit the title:

Go to AdminCP -> Languages & Phrases -> Search in Phrases. Search for the phrase's title: [dropdown_title] (no brackets). Edit and save! Note: The default is "Profile Fields".


The dropdown is dependent on Profile Field 5 being filled. If the user does not have this profile field filled out, then the dropdown will not show. To edit or remove this restriction:

Go to the "Dropdown Information - Manual" Template. Find and edit: (so that the dropdown will always show):

Remove the FIRST:
Code:
<vb:if condition="$post['field5']">
and the LAST
Code:
</vb:if>

The "Dropdown Information - Manual" template allows you to manually create the dropdown. Some examples of how to do this are already provided within the template. This template is the default. The "Dropdown Information - Automated" templateand plugin are included as well, but the automated plugin is turned off by default as it isn't working just yet


To edit it, go to AdminCP -> Styles & Templates -> Style Manager -> [STYLE NAME]
Edit Style: Dropdown Information - Manual.


New to this version from the previous versions is the epfp.css template.

NOTE: Support will only be given to those who have hit install.

If you use this mod please hit INSTALL!

Download Now

File Type: xml product-dropdown.xml (5.6 KB, 283 views)

Screenshots

File Type: jpg dropdown_open.jpg (18.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 12-24-2011, 06:02 AM
gamersplatoon gamersplatoon is offline
 
Join Date: Oct 2011
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Made it work on 4.1.8 with compatibility on Wired Extra Options Profile Fields

First Alignment issue can be fixed through this ,Thanks to him
https://vborg.vbsupport.ru/showpost....1&postcount=18

Also to make it work for the users who choosed to allow it for themselves and not only by filling the first field [ALTERNATIVE TO THE DEFAULT OPTIONS IN THIS PLUGIN]
Add Single Text Box- menu
Code:
Title: System Specs
Description: Would you like to show other members your computer specs? Default is (NO) This will be displayed in your posts via a drop down menu for other members to view. Add your system specs in your usercp PC Spec options.
Options:
NO
YES
Set Default: Yes, but no first blank option.
Field Required: No, but display at registration
Field Editable To User: Yes
Display Page: Extra Options [<--- Make sure you have Extra Options plugin by wired installed also make sure you fix the display order after creating this to show up on the top of the page extra options page ]
in Dropdown Manual Information

Add

Code:
 == YES" after $post['fieldX']
Example
Code:
<vb:if condition="$post['field36'] == YES">


Also do not use the Inches [ " ] use [ ' ] only for Monitors or you will get a written code after your monitor's size number



-- i would like to know how to increase the table's border,i've tried different methods.
Reply With Quote
  #53  
Old 12-24-2011, 12:44 PM
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody notice ther used to be a down facing arrow V next to your username specs text,.

Strange, after upgrading to vbulletin version 4.1.8, our forum is now not showing that V?

Problem fixed after switching to post bit legacy style (left side)
Reply With Quote
  #54  
Old 05-31-2012, 12:27 AM
Geoff_M Geoff_M is offline
 
Join Date: Feb 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working perfectly on vB 4.2.0 (few modifications to improve the look)

Easy to change colors around for dark/light themes with CSS...

Dark -> User System Specs(dark)
Light -> User System Specs(light)

Reply With Quote
Благодарность от:
The Rocketeer
  #55  
Old 06-01-2012, 11:14 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
Working perfectly on vB 4.2.0 (few modifications to improve the look)

Easy to change colors around for dark/light themes with CSS...

Dark -> User System Specs(dark)
Light -> User System Specs(light)

Looks wonderful, would you care to share the css and code with us ?
Reply With Quote
  #56  
Old 06-04-2012, 12:10 AM
Geoff_M Geoff_M is offline
 
Join Date: Feb 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Files
File Type: xml product-dropdown.xml (7.8 KB, 20 views)
Reply With Quote
  #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
  #58  
Old 06-23-2012, 11:01 AM
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I imported and overwrote the original one with your product but mine end results looks very far from what you have here

look..


It also interferes with the blog posts text, when it should after and below it?
Attached Images
File Type: jpg dro down.jpg (35.6 KB, 0 views)
Reply With Quote
  #59  
Old 09-14-2012, 02:00 AM
Bruce1984 Bruce1984 is offline
 
Join Date: Feb 2009
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, marked as installed!

I do hope however there is still some support available; I haven't altered anything else besides the basic product installation yet, because it appears the mod is 'interfering' with the vBExperience mod. It's probably a very easy fix, but I'm not sure where to start and/or what to do exactly.

I guess images would explain the issue better, if the above doesn't make any sense to anyone. Any help would be greatly appreciated.

Edit: Just noticed the posts from another user and the responses, about a solution not being known. I'm hoping someone has come up with a solution in the meantime or does know how to fix it.
Attached Images
File Type: png postbit_dropdown.png (10.0 KB, 0 views)
Reply With Quote
  #60  
Old 09-27-2012, 03:41 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bruce1984 View Post
Great mod, marked as installed!

I do hope however there is still some support available; I haven't altered anything else besides the basic product installation yet, because it appears the mod is 'interfering' with the vBExperience mod. It's probably a very easy fix, but I'm not sure where to start and/or what to do exactly.

I guess images would explain the issue better, if the above doesn't make any sense to anyone. Any help would be greatly appreciated.

Edit: Just noticed the posts from another user and the responses, about a solution not being known. I'm hoping someone has come up with a solution in the meantime or does know how to fix it.
No time to support anymore, but my guess is that the other mod uses some type of CSS or code or whatever to fix its position within the postbit. My code is pretty barebones, but I could certainly be wrong and it could be my code.
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 03:07 PM.


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.04631 seconds
  • Memory Usage 2,361KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete