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
  #72  
Old 01-28-2005, 02:01 AM
boiboi boiboi is offline
 
Join Date: Nov 2001
Location: san francisco, ca
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't get it to work on 3.0.6

profile.php has changed.

2418 is now 2421 added it there. the template in usercp shows the link to that extra field but when clicked it's blank.
Reply With Quote
  #73  
Old 01-28-2005, 02:37 AM
boiboi boiboi is offline
 
Join Date: Nov 2001
Location: san francisco, ca
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind fixed it.

I added the following above line: 707 in profile.php
instead above line: 2418 in the original instruction.

Code:
// ############## boiboi #####################
// ## Start Extra Profile Page - by Faranth ##
//############################################
// This is if a user requests ?do=extra it will do start the actions
if ($_REQUEST['do'] == 'extra')
{
	// makes the user cp nav look correct
	construct_usercp_nav('extra');
	// Gets our Extra Page Fields
	$customfields = array();
	fetch_profilefields(1);
	// sets the area discription, feel free to change
	$navbits[''] = "Extra Info Page";
	// sets template name to be called when the action is preformed
	$templatename = 'page';
	// sets shell template
	$shelltemplatename = 'USERCP_SHELL';
}
// this is so that when a user saves their info it does get saved
if ($_POST['do'] == 'updateextra')
{ 
	$userfields = verify_profilefields(6);
	if (!empty($userfields))
	{
		$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET userid=$bbuserinfo[userid]$userfields WHERE userid=$bbuserinfo[userid]");
	}
	eval(print_standard_redirect('redirect_updatethanks'));
}
// #########################################
// ## End Extra Profile Page - by Faranth ##
// #########################################
noticed i changed
Code:
$userfields = verify_profilefields(1);
to:
Code:
$userfields = verify_profilefields(6);
as AlexanderT suggested here:
https://vborg.vbsupport.ru/showpost....9&postcount=26
Don't forget that, otherwise your users won't be able to update.
Reply With Quote
  #74  
Old 01-29-2005, 05:39 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the lack of updates; notice this is not "my" hack, I only added a few fixes. It still works very well with vB 3.0.5, as you can see on my site (use profile). (I haven't upgraded to 3.0.6 yet, but see no reason why it shouldn't work for it as well).
Reply With Quote
  #75  
Old 01-29-2005, 07:45 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alex is it working in the admincp > profile fields?

I upgraded to the latest vb and now in the admincp > profile fields sometimes it shows the extra fields, sometimes not.

try viewing profile fileds in the admincp a few times to see what I mean!

a fix would excellent.
Reply With Quote
  #76  
Old 01-29-2005, 11:01 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, it seems to be working in IE but not Firefox 1.0, I have reinstalled, cleared cache etc still no luck!

but its working in 3.0.6
Reply With Quote
  #77  
Old 01-29-2005, 11:24 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its a bug in Firefox or one of its extensions that was already discussed somewhere at vb.com. Not related to this hack

Cheers!
Reply With Quote
  #78  
Old 02-09-2005, 05:51 AM
Lee Wilde's Avatar
Lee Wilde Lee Wilde is offline
 
Join Date: Apr 2004
Location: Perth, Australia
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this hack installed and use Firefox v 1.0 without any problem.
Reply With Quote
  #79  
Old 02-20-2005, 06:04 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boiboi
nevermind fixed it.

I added the following above line: 707 in profile.php
instead above line: 2418 in the original instruction.
Could you post a few lines of the surrounding code? I'm sure my lne 707 is probably different than yours.
Reply With Quote
  #80  
Old 02-20-2005, 07:10 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
ok, I fixed it. I am using the fix at

https://vborg.vbsupport.ru/showpost....9&postcount=26

if ($_POST['do'] == 'updateextra')
{
$userfields = verify_profilefields(6);


But since the weather is using (6), I changed it to 7 and that works.
I had to do something similar, but I need it to update two field areas with this hack, 8 & 9 in my case. How would I do this?
Reply With Quote
  #81  
Old 02-22-2005, 02:05 AM
BluPhoenix BluPhoenix is offline
 
Join Date: Nov 2004
Location: Wirral Peninsula
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTBlackLight01
Could you post a few lines of the surrounding code? I'm sure my lne 707 is probably different than yours.
add before:
Code:
// ############################################################################
// ############################### EDIT PROFILE ###############################
// ############################################################################
if ($_REQUEST['do'] == 'editprofile')
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 01:56 AM.


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.04597 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
  • (4)bbcode_code
  • (3)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