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)

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 01:15 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.01293 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (3)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