Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #12  
Old 08-20-2010, 09:56 AM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Motherboard, CPU details were still there, we had about 10 fields as I remember.

Which templates should I have reverted? I can't remember which ones held that info to be honest.

Edit: Also, the phrase edits that I made for the old version to read "System Specs" was still there too. All old plugins were uninstalled.

Fixed one alignment issue with a little workaround, search phrases for whatever your dropdown is called, mine is "System Specs" and just add alt+0160 twice after it, save and that should align the text. It's not very scientific, I know, but it works. I've added an attachment to show it.
Attached Images
File Type: jpg specs.jpg (3.2 KB, 0 views)
Reply With Quote
  #13  
Old 08-20-2010, 11:40 AM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working thanks mate

Just in case anyone else gets stuck in the same way I did. Grab Wired1's extra profile field plugin and use the numbered fields in that to create the sections in your dropdown box, that made it much easier for me.

What would be great is if we could add longer lines of text, because what seems to happen is that it forces the line below to the line below that, if that makes sense?
Reply With Quote
  #14  
Old 08-24-2010, 03:20 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What did it look like for you with the alignment issue?

You don't need that mod for this one to work. If you look at the profile fields in the AdminCP you can find out the profile field IDs.

No, that doesn't make sense lol. Mind posting a pic of what you're talking about?
Reply With Quote
  #15  
Old 08-24-2010, 03:17 PM
Dave-M Dave-M is offline
 
Join Date: Sep 2007
Location: UK
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The alignment issue I was referring to, was the text inside the box (see the attachment I posted earlier in the thread) was forced to the right and there was a larger gap (2 extra spaces on the left of the text).

I know you don't need the other plugin, but if, like me, you already had it installed previously for 3.8.x, all your custom fields are still there when you install the new version, so all you need to do is fill in the numbers on your dropdown manual template and you're done.

I've added another attachment to show what I meant about the text being pushed down. For example, if you look at the RAM specs, they are slightly too long to fit in the box, so instead of creating themselves an extra line underneath and moving the other items down one, they are just forcing themselves onto the next line, you can see the "C8" which was the last part of the RAM specs has been forced onto the power supply line, and then all subsequent lines are also forced down one position. Make sense now?
Attached Images
File Type: jpg system-specs.jpg (37.1 KB, 0 views)
Reply With Quote
  #16  
Old 08-28-2010, 03:38 PM
LuisManson LuisManson is offline
 
Join Date: Jun 2010
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mmm where is this inserted? it is superposed with the vbexperience bards
Reply With Quote
  #17  
Old 08-30-2010, 05:11 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dave-M: That's just wierd! I'll have to check it out tomorrow.

LuisManson: Could you be MUCH more specific? No idea what you're talking about or asking. The dropdown itself shows right below a poster's name in each of their posts.
Reply With Quote
  #18  
Old 08-30-2010, 05:43 PM
LuisManson LuisManson is offline
 
Join Date: Jun 2010
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, im using vbexperiencie, and it shows three progress bars, but after instaling your mod one of them (the first) is covered with the dropdown link, i have no idea on how to fix it. i linked a screenshot

sample
http://awesomescreenshot.com/096tov3e
Reply With Quote
  #19  
Old 09-04-2010, 06:52 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi wired1.

i just installed it. works fine but manual template is a PITA
it is also displaying html entities (for username and for data in profile field).

anyways, i think there used to be some options for this add-on which I can't find on vb4. is it not included?

also, the css looks really messed up. I will style it properly and post a better version in here.
for now, you should do this:
Code:
.memberaction_body.popupbody.epfp_list li.right {
	background-color: {vb:stylevar formrow_background.backgroundColor};
	float: left;
	clear: none;
}
Reply With Quote
  #20  
Old 09-06-2010, 12:59 AM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

profile fields that contain multiple predefined items (check boxes) only show numbers.
Reply With Quote
  #21  
Old 09-06-2010, 11:03 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed

5 stars

thanxxx
Reply With Quote
Reply

Thread Tools

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 06:07 AM.


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.06537 seconds
  • Memory Usage 2,336KB
  • Queries Executed 28 (?)
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
  • (3)bbcode_code
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete