Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra Profile Fields Page Details »»
Extra Profile Fields Page
Version: 1.00, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-03-2004 Last Update: Never Installs: 55
Re-useable Code  
No support by the author.

Extra Profile Fields Page Version 1.2
1.1 updated version, minor fix for searching in memberlist.php
1.2 fixed for RC2 the current instructions will not work with anything lowerrequested by
Caszi @ http://www.vbulletin.nl/community/showthread.php?t=1190


Screen Shots

update2.gif is the optional part of the hack

Description
Adds an Extra Page for you to Define Profile Fields

install time~ 5-10 min

Files to Edit 4
Tempaltes to edit/add 2

Enjoy ^^

Show Your Support

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

Comments
  #92  
Old 05-19-2005, 11:13 AM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there away to make it show up in posts also ? below avatar?
Reply With Quote
  #93  
Old 05-19-2005, 11:33 PM
narunet narunet is offline
 
Join Date: Feb 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
is there away to make it show up in posts also ? below avatar?
Yes, I just found out the way!

First off, you'll need to create a phrase, in detail:

Phrase Type: GLOBAL

Varname: X

Text: XX

Now, the X = whatever you want your profile to be, so if you have multiple custom fields, you can name them whichever they are (ex. anime, console, book, movie, etc.)

The XX = whatever you want it to say before it shows what the user has typed in for their custom profile (ex. Fav. Anime, Fav. Console, Fav. Book, Fav. Movie, etc.)

The phrase depends on how many custom fields you have and what you want them to say under the avatar.

Now, onto the template editing..

Go into the Style Manager, and click the dropdown box for whatever style you want to use this on, and select "Edit Templates." Then go to Postbit Templates >> postbit OR postbit_legacy

Ok, now on to the templates, First is the legacy version of postbit, and then the horizontal version.

*postbit_legacy*

Search around in here until you find this:

Code:
<div class="postbit" align="left"">
<span style="color: #8B9DB0;
font-weight: bold">$vbphrase[posts]:</span> $post[posts]</div>
Under that, add this:

Code:
<if condition="$post['X']"><div class="postbit" align="left"><span style="color: #8B9DB0; font-weight: bold">$vbphrase[xx]:</span> $post[XXX]</div></if>
Edit the X, XX, and XXX Before you add this line though..
X = field # (it'll say this when you go to the "User Profile Field Manager" option on the right towards the dropdown box, ex. field6, field7, field9, etc.)

XX = the varname of the vbphrase you added first (movie, anime, book, etc.)

XXX = same as X

*postbit*

This is pretty much the same, but search around for this code:

Code:
					<div>
$vbphrase[posts]: $post[posts]
					</div>
Under this, add the following code:

Code:
<if condition="$post['X']"><div>$vbphrase[XX]: $post[XXX]</div></if>
X = Field Number
XX = Phrase varname
XXX = same as X

The location of the added code might not look perfect to you, so just move it around and customize it for your forum's style or whatnot.


And there you have it! Should be working for everyone, but if you need more help, just reply! ^_^
Reply With Quote
  #94  
Old 05-24-2005, 02:23 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this hack will do what I want, but I'm not sure. Will it let you add a separate category to the Profile area?

Basically, I want the UserCP -> Edit Profile to have a new category (e.g. Registration Required Information, Optional Information, Additional Information, etc.) and its own fields below that.

Also, does anyone have a site with this hack running so I can see it in action?
Reply With Quote
  #95  
Old 05-24-2005, 03:01 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im going to rehack this for 3.5.0 when I get a chance
Reply With Quote
  #96  
Old 05-24-2005, 03:05 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummmm.... does the current hack let you create categories?
Reply With Quote
  #97  
Old 05-24-2005, 03:07 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1
Ummmm.... does the current hack let you create categories?
It adds a whole new page, which could be seen as a category.
Reply With Quote
  #98  
Old 05-24-2005, 03:17 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A whole new page for the UserCP, correct? On the last example pic, it's just showing up under the rest of the fields, as if it was just a field made by the vB Admin Panel Profile Manager. Can it be separated into its own box with this hack, or does further hacking have to take place for that to happen?

Just to clarify, what I'm looking to do is to add a section to the profile for PC specs. The specs will also be shown in posts. May just hack an option to have a radio button if they want the specs in the sig, and it formats and inserts it accordingly, or have some type of hack for the sidebar (Name, pic, join date, etc.) where it pops out in a menu, or expands down like the AdminCP options.

As an example of how another site uses system specs in posts (soooo not how I want, IMHO this way is ugly):
http://forums.guru3d.com/showthread....hreadid=137963 (look on the right side of a post)

In that site, they're just added fields, looks ugly when you check out someone's profile.
Reply With Quote
  #99  
Old 06-03-2005, 02:11 AM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can these fields be available for selected usergroups only?
Reply With Quote
  #100  
Old 07-11-2005, 05:29 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone pleae provide updated/better instructions for this hack? It starts off with
Code:
Open profile.php

	Goto Line 2418 
	Add above
and that is just a bit too vague considering has been awhile since this was updated, and there have been a few revisions of vbulletin, and also since I have already heavily edited that page. A "virgin" copy of profile.php shows:
Code:
if (($perm & CANVIEW) AND ($perm & CANGETATTACHMENT))
is this correct?
Reply With Quote
  #101  
Old 08-08-2005, 07:59 PM
VirtualBurn VirtualBurn is offline
 
Join Date: Nov 2003
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks this would be good, as I can create a field for 'Computer Exp' and disable features based on the selection.. thnks
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 09:21 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.07958 seconds
  • Memory Usage 2,312KB
  • 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
  • (6)bbcode_code
  • (2)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
  • (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