vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=229881)

grey_goose 12-17-2012 08:10 PM

Quote:

Originally Posted by grey_goose (Post 2391056)
Nice -- I used this to create several more pages. One thing; on any of these new pages, savign info redirects back to profile.php rather than the add-on page. Did I miss something?

Figured this out. What was missing was the button value and redirect in the plugin:

In your new page template:
Find:
Code:

<input type="hidden" name="do" value="updateprofile" />
Replace With:
Code:

<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
Code:


        // save the data
        $userdata->save();
}

Replace with:
Code:

// save the data
    $userdata->save();

    $vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME';
    eval(print_standard_redirect('redirect_updatethanks', true, true));
}

Now additional pages will redirect back to themselves after saves/edits.

Chadi 02-01-2013 09:57 PM

I would appreciate help on this issue I'm having in this thread, which is related.

https://vborg.vbsupport.ru/showthread.php?t=294569

Paolitus 04-18-2013 07:21 PM

work on 4.2.0
Thank you

RhysH 10-20-2013 05:38 PM

Anyone managed to get this working for vb 4.2.1?
I keep getting blank page on the edit page (profile.php?do=extra)

s_cocis 10-23-2013 06:53 PM

with 4.2.2 work.

TiKu 12-30-2013 04:17 PM

Quote:

Originally Posted by grey_goose (Post 2391349)
Figured this out. What was missing was the button value and redirect in the plugin:

In your new page template:
Find:
Code:

<input type="hidden" name="do" value="updateprofile" />
Replace With:
Code:

<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
Code:


        // save the data
        $userdata->save();
}

Replace with:
Code:

// save the data
    $userdata->save();

    $vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME';
    eval(print_standard_redirect('redirect_updatethanks', true, true));
}

Now additional pages will redirect back to themselves after saves/edits.

Thanks, this also solves the problem that saving the extra fields clears other profile fields like the birthday.
However, the redirect should be as this:
Code:

eval(print_standard_redirect(array('redirect_updatethanks', $vbulletin->userinfo['username']), true, true));

kevius 10-05-2017 01:26 PM

Quote:

Originally Posted by Saviour (Post 2185982)
Never mind, Wired...

I just re-imported the product and allowed overwrite. It's working now.

Sorry...

Yes i do the same on vBulletin 4.2.5 and edit extra is now working again !

oneill 09-25-2019 08:55 AM

Can't get the dropdown button to be shown near to avatar like in the example :/ any thoughts ?


All times are GMT. The time now is 08:08 PM.

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.01189 seconds
  • Memory Usage 1,738KB
  • 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
  • (9)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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