Results 1 to 5 of 5

Thread: Make fields update on user settings page

  1. #1
    Donor
    Join Date
    Sep 2010
    Posts
    214
    Thanks
    30
    Thanked 54 Times in 39 Posts

    Default Make fields update on user settings page

    I've posted this problem in the AdSense Revenue Plugin thread, but I don't think anyone saw it.

    How do you force a field to display the updated values on the User Settings page? When a user enters their current AdSense ID into the settings, they get a message saying it's been saved, but the field appears blank (even though it HAS been saved, in most cases). Then it requires a ton of refreshes to display properly.

    Can someone please help me fix this nagging issue?

  2. #2
    Senior Member
    Join Date
    Oct 2011
    Posts
    136
    Thanks
    18
    Thanked 8 Times in 8 Posts

    Default

    it doesnt show up with 1 refresh?

  3. #3
    Donor
    Join Date
    Sep 2010
    Posts
    214
    Thanks
    30
    Thanked 54 Times in 39 Posts

    Default

    Unfortunately, no. I think that the page should take a refresh at all, to be honest. Once the field has been updated, the updated value should be displayed immediately and should not require a refresh. It's also flawed in requiring a refresh because sometimes either CSRF errors show up or if the backspace button is accidentally hit and then the user refreshes, they empty the value again.

    I'm just totally perplexed at why the fields don't update they way they do on the "edit profile" page.

  4. #4
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 70 Times in 64 Posts

    Default

    Did you notice Nick's comment in users_edit_profile.php?

    // Add your own $profile['something'] stuff here. Use Inspekt: http://hotarucms.org/showpost.php?p=20&postcount=2

  5. #5
    Donor
    Join Date
    Sep 2010
    Posts
    214
    Thanks
    30
    Thanked 54 Times in 39 Posts

    Default

    In user settings, right below this line:

    PHP Code:
    if ($h->cage->post->getAlpha('updated_settings') == 'true') { 
    I entered this:

    PHP Code:
    $user_settings['adsense_pub_id'] = $h->cage->post->getDigits('adsense_pub_id'); 
    That still doesn't work, though. I've tried putting this at the first line of code after the comments:

    PHP Code:
    $user_settings $h->vars['settings']; 
    But that also doesn't work. I'm not sure what I'm doing wrong yet, but it must have something to do with this line.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. List of user with BIO information and new custom extra fields
    By carlo75 in forum How-To and Troubleshooting
    Replies: 7
    Last Post: 12-05-2011, 06:06 PM
  2. User settings in navigation
    By chilllin in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 12-03-2010, 11:53 PM
  3. disable user settings
    By mojo in forum How-To and Troubleshooting
    Replies: 0
    Last Post: 09-22-2010, 07:10 AM
  4. Profile Settings page only shows Update button
    By nothingman in forum How-To and Troubleshooting
    Replies: 9
    Last Post: 04-27-2010, 05:37 AM
  5. [Docs] How to Make a Theme Settings Page
    By Nick in forum Design and Layout
    Replies: 0
    Last Post: 01-20-2010, 03:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •