vb.org Archive

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

Wired1 05-24-2008 07:56 PM

MarkoXaser, KHALIK: You're welcome!


Quote:

Originally Posted by neologan (Post 1530166)
btw, i looked on your forum and in your profile, the system specs link is the last one, how would i get it to be after say, the "about me" tab?

Wrong mod! Please post in the appropriate thread so that all of the users of it can benefit from the Q & A.


Quote:

Originally Posted by ComputerVitals (Post 1530294)
Awsome!! you get and A+ for that one.

Thanks, but you get a C-, you should be using my Extra Profile Fields Page so you don't have to tell your users to "Scroll to about the middle of the page, in the Thread Display Options", just to enter in system specs. Make it easy for them :) Of course, if you use that, then you'll want my Add-on for it, my Extra Profile Fields Tab, so that you can see their system specs in their profile (and not under the About Me tab).

ComputerVitals 05-24-2008 10:02 PM

Wired1 - I'll check that out, It would be a lot easier.

Jase2 - Wow. Bit touchy arent you.. I thought I'd be nice incase someone wanted to see a working example. If it bothers you that much, PM a mod or the admin and have them edit the post and remove the link.

Quote:

Originally Posted by Wired1 (Post 1530348)
Thanks, but you get a C-, you should be using my Extra Profile Fields Page so you don't have to tell your users to "Scroll to about the middle of the page, in the Thread Display Options", just to enter in system specs. Make it easy for them :) Of course, if you use that, then you'll want my Add-on for it, my Extra Profile Fields Tab, so that you can see their system specs in their profile (and not under the About Me tab).

Got them installed and edited.
Looks real nice now. The specs are easily changed and have the tab in the profile.

Thanks for all your work on this!



1 more question.
Is there a way to allow so we could use the dropdown then click on a selection as a link?

odeezie 05-25-2008 09:17 PM

Awesome Awesome mod Wired! Thank You so much!! :)

Can I make this mod only show up in the user's postbit if they have info entered in the profile fileds? So the ones who do not want to fill anything in will not have a dropdown box?

Thanks again!! :up:

Wired1 05-25-2008 09:55 PM

Quote:

Originally Posted by ComputerVitals (Post 1530445)
Is there a way to allow so we could use the dropdown then click on a selection as a link?

Need more info. Do you mean you want a user to be able to enter in a URL as a profile field? Or do you want a specific profile field to always be a link to the same thing, and the user would just be entering in the link's title?


Quote:

Originally Posted by odeezie (Post 1531294)
Can I make this mod only show up in the user's postbit if they have info entered in the profile fileds? So the ones who do not want to fill anything in will not have a dropdown box?

It's in the instructions up top, but I've clarified it a bit since you've read it, so I'll copy it down here again:

Quote:

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>



ComputerVitals 05-25-2008 10:06 PM

Quote:

Need more info. Do you mean you want a user to be able to enter in a URL as a profile field? Or do you want a specific profile field to always be a link to the same thing, and the user would just be entering in the link's title?
So the user could put in different links into the fields.

Example:
When you click the dropdown.
Brand name /Motherboard: Toshiba
CPU: Intel P4 2.6

Where the user put in Toshiba, If the user wanted to link that to a certain website they could enter a URL then you could click on the "Toshiba" and be brought to a link like the model number of the Computer. Then they could also enter a different link for the "Intel P4" to link directly to the intel P4 site.

Thats All I think is missing. If it could be added easily or perhaps a future upgrade that would really top this product off.

Other than that. I think it's awsome.

Wired1 05-25-2008 10:19 PM

I wouldn't recommend allowing users to enter in URLs, as it SCREAMS "Abuse Me!" to idiots and spammers.

Ultimately, you'd need 2 places to enter in data for each line: One for the URL, one for the text. Assuming you'd use profile fields for both of them, you'd have to do something like this:

EDIT TEMPLATE: Dropdown Information - Manual

Find the fieldID that you want to have a link.

EXAMPLE: CHANGE:

Code:

<tr><td class="vbmenu_option">Motherboard: $post[fieldY]</td></tr>
TO:
Code:

<tr><td class="vbmenu_option"><a href=$post[fieldX]>Motherboard: $post[fieldY]</a></td></tr>
Where fieldX = the profile field ID that contains the URL, and fieldY = the profile field ID that contains the text.

You can use some if statements to clean it up in various ways depending on what you want to do, but that's the gist of it.

odeezie 05-25-2008 10:20 PM

Thank you for clarifying that. :)

ComputerVitals 05-26-2008 12:08 AM

Thanks Wired1 for that. I tweaked the code you listed a bit.

I added the another "if", so if the user doesn't put in a url it doesn't allow a click in the dropdown. Without that, and no url it allows a click and a error 404.

I'm loving this. Thanks for the direction on the linking.

dtv100 05-27-2008 10:48 AM

this don't work for me my postbit have custom codes any way I can do this manually i mean insert codes in my posbit so it show ?

thanks

Wired1 05-27-2008 02:34 PM

Quote:

Originally Posted by dtv100 (Post 1532764)
this don't work for me my postbit have custom codes any way I can do this manually i mean insert codes in my posbit so it show ?

As long as you haven't removed the hooks manually, it should work. If you want to do it with purely manual edits, follow the instructions in the 3.6.x version.


All times are GMT. The time now is 01:13 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.01256 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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