Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 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: 3.0.1, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.4 Rating:
Released: 05-22-2008 Last Update: 06-08-2008 Installs: 121
Uses Plugins
 
No support by the author.

If you use this mod please hit INSTALL!

This is an evolution of my Additional Section within Profile and Dropdown within Posts mod from 3.6.x.

If you have a pre-3.7.x version installed:
UNINSTALL the old product and reverse the edits. Don't forget to revert those templates

-----------------------------------------------------------------------

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. There are two ways to use this product, and each has its own plugin (and template): Dropdown - Manual (enabled by default), and Dropdown - Automated (disabled by default).

NOTE: The dropdown's title shows up as [username]'s [dropdown_title]. Yes, the 's is hardcoded into the mod. If you'd like this not to be hard coded, simply mention it after hitting install, and if enough of the users want it, I'll change it. Figured if I didn't hardcode it, someone wouldn't 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!

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 Call Template. Find and edit, or remove these 2 lines of code (so that the dropdown will always show):
Code:
<if condition="$post['field5']">
...
</if>


The Plugin "Dropdown - Manual" is just like the 3.6.x version, all manual edits, but now they're in a template. No more files to manually edit Some examples of how to do this are already provided within the template.

Go to AdminCP -> Styles & Templates -> Style Manager -> [STYLE NAME]
Edit Style: Dropdown Information - Manual


To use the automated dropdown, DISABLE Plugin "Dropdown - Manual" and ENABLE Plugin "Dropdown - Automated". Simple!

"Dropdown - Automated" will automatically create the dropdown for ALL custom fields (it will skip the first 4 default ones).


To sum it up:
Plugin: Dropdown - Manual
PRO: You select which fields, what descriptions, and in what order you want the fields to show up.
CON: Lots of typing


Plugin: Dropdown - Automatic
PRO: Automatic!
CON: no real control, Profile fields 5 and up will show up in order. NOTE: if it is a HIDDEN profile field, apparently only the DATA is hidden, not the field name, so the field name will show up as well. To block a profile field from showing up in the Automatic Dropdown, check out this post.


Version History:
3.0.0 - Initial Release
3.0.1 - Added plugin to cache templates, courtesy of ssslippy.


If you use this mod please hit INSTALL!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
livenetc

Comments
  #172  
Old 01-29-2009, 05:24 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 Saviour View Post
Well...

What did ya come up with Wired? I had this mod installed with my previous version of vB, but now...with 3.8...it no workie.

Members are really looking forward to having this back, my friend.


Keep us posted, please...
I work too damn much, that's what I've come up with lol! Can't code when stuff blows up


Quote:
Originally Posted by cdnbacon View Post
Wired1, is there absolutely no tiny chance to make the dropdown appear properly on quickreply? I'd actually be willing to donate if this could be fixed... stuff like this drives me nuts.
No idea what you're referring to. Please explain in more detail.
Reply With Quote
  #173  
Old 01-29-2009, 06:04 PM
cdnbacon cdnbacon is offline
 
Join Date: Nov 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1 View Post
I work too damn much, that's what I've come up with lol! Can't code when stuff blows up


No idea what you're referring to. Please explain in more detail.
Sorry about that mate. It seems the issue I was referring to was last commented on in Aug. 2008. I didn't notice that.

Issue:
- User posts a reply using the quickreply box
- Message is posted BUT dropdown menu doesn't appear until the page is refreshed

The above was not a big issue until the introduction of live topic to our forum. Now users can go 30-40 replies without a page refresh and having that dropdown broken is plain annoying.

My question is whether or not it's possible to fix this. Not necessarily you, but just, is it possible?
Reply With Quote
  #174  
Old 02-02-2009, 01:53 AM
Mr. Baws Mr. Baws is offline
 
Join Date: Sep 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

No Phrases Matched Your Query

and should i add manually profile fields??
Reply With Quote
  #175  
Old 02-02-2009, 03:12 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still waiting to see if you have this thing fixed for 3.8.x.

Using the file you currently have, neither the manual or automatic works.
Reply With Quote
  #176  
Old 02-02-2009, 03:12 AM
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 cdnbacon View Post
My question is whether or not it's possible to fix this. Not necessarily you, but just, is it possible?
AFAIK it's a side effect of using AJAX.


Quote:
Originally Posted by Mr. Baws View Post
Go to AdminCP -> Languages & Phrases -> Search in Phrases. Search for the phrase's title: [dropdown_title] (no brackets). Edit and save!

No Phrases Matched Your Query
Try searching again. It's definitely defined in this product.


Quote:
and should i add manually profile fields??
Manual / automatic is up to you.
Reply With Quote
  #177  
Old 02-02-2009, 03:45 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it on my UPGRADED test bed, works fine. Got any other mods running? I'll see if it works on a fresh install soon.
Reply With Quote
  #178  
Old 02-02-2009, 04:21 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm currently running vB 3.8.1 with the following installed:
  1. Cafe Press Shop 2.0.8
  2. Cyb - Advanced Forum Statistics 6.4
  3. Cyb - PayPal Donate 4.8.2
  4. GTSearch: Google? Custom Search Engine 1.0.0
  5. Highlight Threadstarter 2.1.1
  6. ibProArcade for vBulletin 2.6.8
  7. Icons for UserCP 1.3
  8. Logician's WebTemplates 3.7.00
  9. Members who have Posted 3.8.002
  10. Members who have Registered 3.8.002
  11. Members who have Visited 3.8.002
  12. Post Thank You Hack 7.7
  13. ProvB - Community News Letter 1.5.0P
  14. Separate Sticky and Normal Threads 3.0.0
  15. UserCP Navbar Menu 2.0.0
  16. vB Post Templates 1.5.0
  17. vBadvanced CMPS 3.1.0
  18. vBulletin Blog 2.0.1
  19. [NuHIT] - NuHIT URLs 1.0.0

That's it...

Do you see anything that may be conflicting with this mod? When I run your product xml...only one product is installed. It does not install the manual and the automatic. It just installs one product...and it's not labeled. So I'm not sure if it's the manual that was installed or the automatic. However, it is enabled after install. Also, the two templates show up, as well. However...like I said...it doesn't work.

So, if you got it to work, there has to be a conflict somewhere.


Thanks for looking into this for me, Wired...much appreciated.
Reply With Quote
  #179  
Old 02-03-2009, 06:28 AM
Arachnophiles Arachnophiles is offline
 
Join Date: Mar 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arachnophiles View Post
In the old version of this mod (v2.1.1) I was able to contain the dropdown width using the following code for each posbit entry. Not ideal, but it did the trick:
Code:
<if condition="$post['field13']">
		<tr><td class="alt2" width="670px"><b>Field Desc:</b> $post[field13]</td></tr>
	</if>

However, now installed mod v3.0.1 with vB3.8 and it doesn't seem to work Any ideas?

Edit: apepars to be fine when viewing in IE, however Firefox stretches off the page.
Hi, any update/fix with regard to the above (drop down stretches off page in Firefox)

Cheers,
Adam
Reply With Quote
  #180  
Old 02-16-2009, 04:14 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure if the problem I'm having with getting it to work with 3.8.1 has anything to do with the mods I currently have installed, but would really appreciate any feedback from the coder, or someone else on this one.

Like I said...this is an awesome mod...and my members miss it, but I just can't seem to get it working at all for 3.8.1.
Reply With Quote
  #181  
Old 02-16-2009, 05:05 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry for the delay, haven't had a chance to look into that on a fresh testbed (work went to hell).
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 10:45 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.04774 seconds
  • Memory Usage 2,323KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete