vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=59618)

AlexanderT 04-08-2004 03:14 PM

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

AlexanderT 04-08-2004 03:20 PM

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.

sjau 04-08-2004 06:16 PM

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

raxafarian 04-10-2004 12:07 AM

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...

AlexanderT 04-10-2004 12:47 AM

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'


raxafarian 04-10-2004 05:33 PM

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

AlexanderT 04-10-2004 07:13 PM

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.

Sketch 04-13-2004 08:48 PM

Out of curiosity, how would I refer to the custom field in the postbit?

Zachery 04-13-2004 08:49 PM

Same way you do any other field in the postbit

$post[fieldX]

Sketch 04-13-2004 08:52 PM

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? ;)


All times are GMT. The time now is 10:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01487 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete