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-14-2004 05:37 AM

Refer to it as $post[fieldX],

wheread X is the number displayed in your /admincp/profilefield.php?do=modify User Profile AdminCP.

Sketch 04-14-2004 09:19 AM

Okay. Very good. Thanks.

SVTBlackLight01 04-20-2004 05:15 AM

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?

GregorS 04-25-2004 01:57 PM

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

AlexanderT 04-25-2004 05:34 PM

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

GregorS 04-25-2004 08:33 PM

Quote:

Originally Posted by AlexanderT
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


Hi Alex!

OK, thanks for the fast reply!

GregorS 04-26-2004 04:32 PM

Quote:

Originally Posted by AlexanderT
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

Hello again!

I merge the orginal-code with your improvements in a new document, and installed it yesterday on my forum, and it works perfect! ;)

Attached the complete code in one doc..

greets!

DivisionByZero 05-04-2004 06:31 PM

ok, so there's ten pages of hacking, can the author do a rewrite for vb 3.0.1 ?

GregorS 05-04-2004 06:49 PM

Quote:

Originally Posted by ThePowerPig
ok, so there's ten pages of hacking, can the author do a rewrite for vb 3.0.1 ?


Use my txt ;)

It works perfect with 3.0.1!!

boiboi 05-21-2004 07:12 AM

is there a new instruction set in the zip file? this is the hack i've been looking for, but the fixes should be updated in the zip instead of hunting for it in the threads.

GregorS 05-21-2004 07:30 AM

Quote:

Originally Posted by boiboi
is there a new instruction set in the zip file? this is the hack i've been looking for, but the fixes should be updated in the zip instead of hunting for it in the threads.

jepp it is! ;)

boiboi 05-21-2004 08:32 PM

works very well. thanks!

Agent XY 06-08-2004 06:36 PM

very nice hack !!
works perfect ;)

fabz 07-06-2004 07:24 AM

Well I hope I'm in the right place...

I'm looking for a way to add a new menu in USERCP_SHELL (seems to be this, the drop down menu you have when clicking onto the member name in threads)

I would like this new item to be added only if the user didn't leave blank the user field : I want it to be an external link (especially to an external photo gallery of the member clicked)

Is it possible and how could I do ?
thx a lot

www.alfisti.net 08-13-2004 07:14 AM

thank you very much for this great hack :)

reach_srinivas 09-27-2004 06:24 AM

HI, I am new to this stuff.., I installed the hack, add the new fileds to extra section, but not displying at extra section in profile page, any one help me..
Thanks in advance..

Ted S 09-27-2004 07:30 AM

Did you add the link to the proper templates? What happens if you load profile.php?do=extra directly?

reach_srinivas 09-28-2004 06:50 AM

display Title(extra info.. I modified) not diplaying fileds i added, I got some div area with out fileds..
Thanks in advance

reach_srinivas 09-28-2004 11:09 AM

Thanks for the help, I got it now(installed again..)

crd 09-28-2004 06:52 PM

I got this hack installed and nothing broke

so am I correct to assume that now I start tweaking the new template I made called "page" to get the stuff I want on it? which qualifies as a template hack but not a true hack? Yes?

Fargo 10-14-2004 02:21 PM

works great! thanks for the info :)

Lee Wilde 10-16-2004 09:30 AM

Very cool, thanks.

Lionel 10-19-2004 04:43 AM

Can someone please tell me what is line 2418? I installed some hacks and I am not too sure. As a result, I installed the hack, it displays properly, but it is not updating the profile. I had installed the favorites hack from vbtemplates, that was working. I placed it on the extra page, it displays, but cannot update.

Lionel 10-19-2004 05:28 AM

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.

bi11i 12-07-2004 08:15 PM

will this work on v3.0.3? I notice that some i have
Code:

        // Process Custom Fields..
                $userfields = '';
                $profilefields = $DB_site->query("
                        SELECT profilefieldid, type, data, optional, title, memberlist, searchable
                        FROM " . TABLE_PREFIX . "profilefield
                        WHERE form = 0 "
                                . iif(!($permissions['genericpermissions'] & CANSEEHIDDENCUSTOMFIELDS), "        AND hidden = 0") . "
                        ORDER BY displayorder
                ");

instead of
Code:

$profilefields = $DB_site->query("
                        SELECT profilefieldid, type, data, optional, title, memberlist, searchable
                        FROM " . TABLE_PREFIX . "profilefield
                        WHERE form = 0 "
                                . iif(!can_moderate(), "        AND hidden = 0") . "
                ");

in my member.php and memberlist.php - i'm a bit leary on changing it. anyone?

robertuss 12-08-2004 05:03 PM

can someone please explain a bit more:
a.) is it possible to add more than one page of new Useroptions with this hack (two, three?)
b.) what is the most recent hackinstructions? I do not understand some of the code-snip-postings here. Are those modifications not included in the dowload?

thanks!

Wifey 01-17-2005 05:46 AM

Just curious. What exactly does this hack do? Can you use this to hide these profile fields from normal users and specify per usergroup?

Thanks!

bi11i 01-17-2005 12:12 PM

with that post of mine being month's old - i wouldn't expect much as far as support. i've been subscribed to this thread since i posted in December and nothing....

I couldn't get it to work - i really wanted to, and a really cool feature, but my code differed too much than from what was explained in the howTo.

-=Sniper=- 01-17-2005 03:26 PM

I have it working on vb 3.0.5 with out any problems! Just read the instructions carefully.

bi11i 01-17-2005 04:33 PM

which i did, but never could get an answer on this one: https://vborg.vbsupport.ru/showpost....5&postcount=65

boiboi 01-28-2005 02:01 AM

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.

boiboi 01-28-2005 02:37 AM

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.

AlexanderT 01-29-2005 05:39 PM

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

-=Sniper=- 01-29-2005 07:45 PM

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.

-=Sniper=- 01-29-2005 11:01 PM

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

AlexanderT 01-29-2005 11:24 PM

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

Cheers!

Lee Wilde 02-09-2005 05:51 AM

I have this hack installed and use Firefox v 1.0 without any problem.

SVTBlackLight01 02-20-2005 06:04 AM

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.

SVTBlackLight01 02-20-2005 07:10 AM

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?

BluPhoenix 02-22-2005 02:05 AM

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')



All times are GMT. The time now is 10:31 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.01478 seconds
  • Memory Usage 1,829KB
  • 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
  • (6)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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