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

Reply
 
Thread Tools
Additional Section within Profile and Dropdown within Posts Details »»
Additional Section within Profile and Dropdown within Posts
Version: 2.0.0, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-18-2005 Last Update: 10-18-2005 Installs: 52
Uses Plugins Template Edits
Code Changes Is in Beta Stage  
No support by the author.

Link to 3.6.0 version:
https://vborg.vbsupport.ru/showthread.php?t=123254

This hack builds upon my Extra Profile Fields Page hack. This template mod lets you take the extra fields from that hack and places them within a dropdown that sits below the user's title within each post, as well as replaces the Group Memberships area with a listing of only these specs. The EFP hack is basically the entry form for the data that's manipulated in this hack. Please check out the pics at the EFP hack link to get the full idea.

In my case, it is used for PC specs (and as you will see the instructions are tailored towards this), however it can be easily used for parts or specifications of almost anything (car parts for example).

An example is shown here:
http://www.houseofhelp.com/v2/showthread.php?t=39826

Example of user profile with specs:
http://www.houseofhelp.com/v2/member.php?userid=15


# of plugin hooks: 1
# of php page edits: 1 (just 1 line to add the custom hook line into member.php)
# of template edits: 3
# of phrase edits: 1


An admin section will eventually be done for this, as well as extra areas to place the new specs within. Because this is based upon the EFP hack, the upgrades in functionality to this hack will depend on the EFP hack's upgrades. In otherwords, staggered upgrades. Other functionality has been recommended and will be added at a later date. Any suggestions are appreciated.

Don't forget to hit INSTALL!

Also, please post where you've installed this, as I'd like to see how people are using it. That'll help me think of new ways to add to it aside from my own needs for this hack. Or if guests can't see the effects, then please post a pic.

Show Your Support

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

Comments
  #52  
Old 04-08-2006, 03:15 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 dlan
In the dropdown menu i can't make multiple-selection-checkbox fields to show... it just show numbers...
dropdown AND multiple checkboxes? Huh?

Tested Multiple checkboxes, worked fine. Can you be more specific?
Reply With Quote
  #53  
Old 07-04-2006, 03:33 AM
SMO's Avatar
SMO SMO is offline
 
Join Date: Sep 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having issues with this and kinda would like to get rid of the extra stuff now.

How do I "uninstall" the extra stuff like the profile hooks and drop down on postbit.

I went thru the changes and thought I got it all that I added with the readme but some users still have the features available.
Reply With Quote
  #54  
Old 07-04-2006, 06:19 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go through the instructions step by step. If you've added code, remove it. Make sure you go through each of your templates, and remember to turn off the plugin.

What types of issues are you having?
Reply With Quote
  #55  
Old 08-02-2006, 07:50 AM
barryhand barryhand is offline
 
Join Date: Jul 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, Great Mod.

At the moment its showing up based on one field condition, any way to enable it based on multiple fields

Say if Field11 or 12 or 13 exist?

<if condition="$post['field11']"> ??

//EDIT

Got it
<if condition="$post['field10'] OR $post['field11'] OR $post['field12']">
Reply With Quote
  #56  
Old 08-03-2006, 03:52 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wired:

I made an extra profile page as per your instructions here:
https://vborg.vbsupport.ru/showpost....&postcount=192

I've installed this hack now to show it in memberinfo template and it keeps grabbing my first original custom profile page extra, and not getting extra2. How do I fix this?
Reply With Quote
  #57  
Old 08-03-2006, 05:04 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

n/m, figured it out
Reply With Quote
  #58  
Old 08-03-2006, 05:08 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kewl, glad to see you both got it worked out. Don't forget to hit install Paul
Reply With Quote
  #59  
Old 08-06-2006, 09:58 PM
Jeordie015 Jeordie015 is offline
 
Join Date: Nov 2002
Location: Illinois, USA
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If this has already been asked, I didn't see it. Is there a way to have it so it will show a message in the table in the additional section in the profile instead of leaving it blank if the user doesn't enter anything for those fields?
Reply With Quote
  #60  
Old 08-06-2006, 11:41 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could just replace the n/a message line with whatever message you'd like, but I would code it into the template, don't replace the phrase or it will show up in other unintended places.
Reply With Quote
  #61  
Old 08-07-2006, 01:17 AM
Xorlev Xorlev is offline
 
Join Date: May 2006
Location: Colorado
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does not work in 3.6.0 due to changed table schema. Fix below:

Change:
PHP Code:
$profilefields $db->query_read("
    SELECT profilefieldid, required, title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield
    WHERE form = 6 " 
iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), "
        AND hidden = 0"
) . "
    ORDER BY displayorder
"
); 
TO:

PHP Code:
$profilefields $db->query_read("
    SELECT profilefieldid, required, phrase.text AS title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield, " TABLE_PREFIX "phrase
    WHERE form = 6 " 
iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), "
        AND hidden = 0"
) . " AND phrase.varname = CONCAT('field', profilefieldid, '_title')
    ORDER BY displayorder
"
); 
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 06: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.05343 seconds
  • Memory Usage 2,316KB
  • 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
  • (2)bbcode_php
  • (1)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete