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
  #32  
Old 04-08-2004, 03:14 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
so your code is all good now?

If so i will patch this with my original instructions
Yes it works well now. I am using your hack with the fix for my upcoming site.

Greets
Alex
Reply With Quote
  #33  
Old 04-08-2004, 03:20 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sjau
Can this hack be modified, so that only certain user(groups) get access / can fill in those extra profile fileds?
I guess so... all you have to add the following changes to USERCP_SHELL instead of the ones mentioned in the hack description:

Code:
<if condition="$bbuserinfo['usergroupid'] == XX">
<tr>
	<td class="$navclass[extra]" style="white-space:nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=extra">Extra Info</a></td>
</tr>
</if>
Where XX is the usergroup you want to allow access.

Note that this is not fool-proof. A user who KNOWS that there is such an extra field section and who knows the url can access it directly. In this case, I guess adding some php code would do the trick.
Reply With Quote
  #34  
Old 04-08-2004, 06:16 PM
sjau sjau is offline
 
Join Date: Apr 2003
Location: Switzerland
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx for that alexander,

I'll have a further go then myself.

I'm setting up vB for my fraternity. so far we've used a private Lotus Notes R5 DB for internal affairs, however I can't give access to our alumni anymore and I would like to have some sort of "address tool" that I can associate with vB users... I think those extra fields will do the trick.

sjau
Reply With Quote
  #35  
Old 04-10-2004, 12:07 AM
raxafarian raxafarian is offline
 
Join Date: Apr 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sjau
Could you use put into the install instructions where above or below to add code?
I'm not sure if I have changed my profile.php.

Here are my lines 2415-2120
PHP Code:
                $attachsize ceil($attachsum $permissions['attachlimit'] * 100);
                
$totalsize 100 $attachsize;
            }

            
$attachlimit vb_number_format($permissions['attachlimit'], 1true);
        } 
Is that the right place to add?
yea...profile.php has changed...

Can somebody update where this needs to be placed? I'm trying to find my copy of rc1 to try and figure it out...
Reply With Quote
  #36  
Old 04-10-2004, 12:47 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it is not really so important where you put the code... you can for instance put the hack code ABOVE the following original code:
PHP Code:
// ############################### List of attachments for current user ################
if ($_REQUEST['do'] == 'editattachments'
Reply With Quote
  #37  
Old 04-10-2004, 05:33 PM
raxafarian raxafarian is offline
 
Join Date: Apr 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AlexanderT
it is not really so important where you put the code... you can for instance put the hack code ABOVE the following original code:
PHP Code:
// ############################### List of attachments for current user ################
if ($_REQUEST['do'] == 'editattachments'
thanks...got it installed..

but I changed something trying to change some of the displayed text and now I no longer have the extra options appear in the admincp when using the profile field manager. The Extra fields are still in the usercp and if I add a new profile field, I can select the other: extra, and it appears in the usercp, but not in the admin profile manager. I've checked the profilefield.php file but I must be missing something

thanks
Reply With Quote
  #38  
Old 04-10-2004, 07:13 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes i suggest you go over Zachery's hack instruction again. There shouldn't be any problem with admincp and the hack if you follow the instruction correctly.
Reply With Quote
  #39  
Old 04-13-2004, 08:48 PM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Out of curiosity, how would I refer to the custom field in the postbit?
Reply With Quote
  #40  
Old 04-13-2004, 08:49 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same way you do any other field in the postbit

$post[fieldX]
Reply With Quote
  #41  
Old 04-13-2004, 08:52 PM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah but is it referred to as fieldx or is it referred to by name (in my case, blog)? Bear with me, it's been about 8 months since I did any kind of extensive work with vB and vb3 is quite different, you know?
Reply With Quote
  #42  
Old 04-14-2004, 05:37 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Refer to it as $post[fieldX],

wheread X is the number displayed in your /admincp/profilefield.php?do=modify User Profile AdminCP.
Reply With Quote
  #43  
Old 04-14-2004, 09:19 AM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay. Very good. Thanks.
Reply With Quote
  #44  
Old 04-20-2004, 05:15 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick question about a possible add-on to this feature. How can I get it to e-mail the Admin when this form is submitted?
Reply With Quote
  #45  
Old 04-25-2004, 01:57 PM
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Location: Vienna
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!

Sorry for the dummyquestion, but work this mod also with the vB3 Gold (i use v3.0.1) and what changes is necessary between the "orginal" (v1.1) and yet, because AlexanderT recommend someone.

thx!!
Reply With Quote
  #46  
Old 04-25-2004, 05:34 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GregorS, the hack should work just as fine with the latest vB version (3.0.1).

I am not sure when Zachery is going to update his hack instruction.

But for now, it should be sufficient if you follow his instruction first:
https://vborg.vbsupport.ru/showpost....73&postcount=1

Then follow the fix I posted:
https://vborg.vbsupport.ru/showpost....9&postcount=26

And perhaps this:
https://vborg.vbsupport.ru/showpost....6&postcount=35

Greets
Alex
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:35 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.09016 seconds
  • Memory Usage 2,366KB
  • Queries Executed 30 (?)
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
  • (3)bbcode_php
  • (4)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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