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
Extra Profile Fields Page Details »»
Extra Profile Fields Page
Version: 2.0.3, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-12-2005 Last Update: 01-05-2006 Installs: 117
Uses Plugins Template Edits
Code Changes Is in Beta Stage  
No support by the author.

This is the 3.5.x version of Zachery's hack by the same name. (linkage)


3.6.0 version: https://vborg.vbsupport.ru/showthread.php?t=123253


This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack You can see my 3.0.x hack for that here, and the 3.5.x hack for it here.

Here's some examples of how I use this hack (with the Add-On hack, Additional Section within Profile and Dropdown within Posts):
http://www.houseofhelp.com/v2/showthread.php?t=39826
http://www.houseofhelp.com/v2/member.php?u=15

NOTE: The above 2 links show the results of another hack I did that's based upon this one. In otherwords, this hack doesn't add dropdowns in posts, and doesn't hack the member page to display the extra options in a new area. For that, install the Add-On hack, Additional Section within Profile and Dropdown within Posts.

# of plugin hooks: 1
# of php page edits: 3 (or 4)
# of new templates: 1
# of template edits: 1
# of new phrases: 2

The "successfully saved" and extra option search are not tested, but they should both work.

Don't forget to hit INSTALL!.

Show Your Support

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

Comments
  #22  
Old 10-14-2005, 06:43 PM
gael11 gael11 is offline
 
Join Date: Oct 2005
Location: South of France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1
gael11: Do you mean like this?
Yes like this.
Reply With Quote
  #23  
Old 10-15-2005, 05:16 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 Wired1
If you mean the system specs, as I stated, that effect came from another hack using the fields created from this hack. The hack is a 3.0.x hack I did, but it still works (although I am going to update it). here is a link to that hack
pipin just asked the same thing.

Ramsesx: Sorry, missed your post. It's just a modification of how profile fields are presented and edited, but their properties haven't changed, In otherwords, I didn't hack that part. I have been thinking about that, unfortunately I can see lots of ways to abuse it, so I'm not going to hack profile permissions just yet. Search the forums though, maybe someone else already did.
Reply With Quote
  #24  
Old 10-15-2005, 12:26 PM
gael11 gael11 is offline
 
Join Date: Oct 2005
Location: South of France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok big thanks for your answers. I haven't understand.
Reply With Quote
  #25  
Old 10-15-2005, 07:09 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great addon... thanks for getting this out! I just wish this could be done without code hacks... hah!

If you're having trouble showing the custom fields on user's profiles try doing this as well:

in member.php find

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

PHP Code:
$profilefields $db->query_read("
    SELECT profilefieldid, required, title, type, data, def, height
    FROM " 
TABLE_PREFIX "profilefield
    WHERE form = 0 or form = 6 " 
iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), " /* hacked for extra profile page --> dive info */
        AND hidden = 0"
) . "
    ORDER BY displayorder
"
); 
Where 6 is the value of this particular profile page.
Reply With Quote
  #26  
Old 10-17-2005, 04:37 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update: didn't get a chance to work on update of other hack this weekend, mondo busy @ work. I'm gonna like that next paycheck though
Reply With Quote
  #27  
Old 10-18-2005, 06:18 AM
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Location: Austria
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!
i am very interested in your modification!

i am runnning a software testing forum at www.elite-squad.net. Its about the free HTPC software Media Portal.

Our members are reporting bugs in the forum, therefor they have to use a system specification template in their posts. they have to post it every time when they start a new bugreport. thats realy borthering me as admin.

::example Bug Report::

it would be realy realy great if you could change your mod a bit to fit your needs.

adding the system specs in the usercp is great!
when posting a reply or starting a new thread a option to add the system specs would realy help us! but it has to be added as text of the message! if the systemspecification would change after i have posted a bugreport the information would get useless.

Or would it be possible that this user specific hardware setup appears automatically when starting a new topic in a specific forum?

This is the template we are using.

Windows Version: your windows version incl. service packs
CPU Type: manufacturer and speed
Memory: amount and type
Motherboard Chipset: manufacturer and model
Video Card: manufacturer and model
Video Card Driver: driver version you used for testing
Video Render Type: VMR9 or Overlay
Video Codec Type & Version: video codec you used for testing
Audio Codec Type & Version: audio codec you used for testing
TV Card: type of TV card, manufacturer and model
TV Card Type: software / hardware / DVB
TV Card Driver: driver version you used for testing
Satelite/CableTV Provider: i.e. Astra 19.2?E
Reply With Quote
  #28  
Old 10-18-2005, 08:25 AM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Avalon111

Our members are reporting bugs in the forum, therefor they have to use a system specification template in their posts. they have to post it every time when they start a new bugreport. thats realy borthering me as admin.

::example Bug Report::

it would be realy realy great if you could change your mod a bit to fit your needs.

adding the system specs in the usercp is great!
when posting a reply or starting a new thread a option to add the system specs would realy help us! but it has to be added as text of the message! if the systemspecification would change after i have posted a bugreport the information would get useless.

Or would it be possible that this user specific hardware setup appears automatically when starting a new topic in a specific forum?
thats a great idea, we are running a hardware forum and are considering similar things for a minireview forum, where users can post their reviews about hardware and it would be nice if their whole system would be included in their posting.

and for hardware or software help forums it would be nice too as an option to include system spec at top of the postings. :classic:
Reply With Quote
  #29  
Old 10-18-2005, 10:51 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 Avalon111
Or would it be possible that this user specific hardware setup appears automatically when starting a new topic in a specific forum?

This is the template we are using.

Windows Version: your windows version incl. service packs
CPU Type: manufacturer and speed
Memory: amount and type
Motherboard Chipset: manufacturer and model
Video Card: manufacturer and model
Video Card Driver: driver version you used for testing
Video Render Type: VMR9 or Overlay
Video Codec Type & Version: video codec you used for testing
Audio Codec Type & Version: audio codec you used for testing
TV Card: type of TV card, manufacturer and model
TV Card Type: software / hardware / DVB
TV Card Driver: driver version you used for testing
Satelite/CableTV Provider: i.e. Astra 19.2?E

Pretty sure it's doable. A conditional trigger could flip the postbit area where you make posts from a blank one to one with the PC specs (as of that posting).
Reply With Quote
  #30  
Old 10-18-2005, 10:56 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 pipin
thats a great idea, we are running a hardware forum and are considering similar things for a minireview forum, where users can post their reviews about hardware and it would be nice if their whole system would be included in their posting.

and for hardware or software help forums it would be nice too as an option to include system spec at top of the postings. :classic:
The PC specs @ top of posting is already done (the vB 3.0.x hack works fine in 3.5.0). I'll flip out a new hack (double checking code mainly, improvements later) ASAP. Coding ain't #1 on my list after working 10 hours in a day! ATM it looks like my work schedule will be back to normal on Thurs I think. I'm going to try to take a look at the code at least tonight.

Check out www.houseofhelp.com if you want to see the post spec dropdown in action.

BTW Avalon, u know about www.htpcnews.com ? Great HTPC site.
Reply With Quote
  #31  
Old 10-19-2005, 03:52 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2.0.2
Nothing to worry about, just removed some code from the instructions that's for my other hack! Here's the snippet I removed:

Code:
====================================

To create the new hook:


Open /includes/xml/hooks_vbulletin.xml

FIND:

		<hook>member_complete</hook>

AFTER IT ADD:

		<hook>member_extras</hook>


This creates a new hook location:

Hook Location: vBulletin: Member's Profile -> member_extras (see? I told you it would create a new hook!)


Now, we have to place it in the file.

Open member.php

FIND:

// END CUSTOM PROFILE FIELDS
// *************************

AFTER IT ADD:

($hook = vBulletinHook::fetch_hook('member_extras')) ? eval($hook) : false;

====================================
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 07:15 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.17047 seconds
  • Memory Usage 2,334KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (5)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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