-

Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Support for phpBB3, phpBB3 Modifications, and phpBB3 styles
Forum rules
Bugs go in the Bug Tracker

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby Illustrator76 » Wed Aug 17, 2011 9:34 pm

EXreaction wrote:Is that some sort of mod you installed?

No. It is just the code to show people's age when they fill in the birth date field in the User CP. It's not a custom field or anything like that either. I seems like it is already a built-in feature. You just have to paste the right code in to display it I think.
Illustrator76
Donor
Donor
 
Posts: 20
Joined: Wed Aug 03, 2011 6:36 pm
Blog: View Blog (0)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby EXreaction » Wed Aug 17, 2011 10:50 pm

Oh, haha, yea, I haven't visited the profile in ages.

Try using this new blog/includes/blog_data.php file:
https://raw.github.com/EXreaction/User- ... g_data.php
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby Illustrator76 » Thu Aug 18, 2011 7:41 am

I still can't seem to get it to work even with your new blog_data.php file being used. I am not sure what the problem is. Below is what is being used to get age to show up in PM's, I am not sure if this helps or not.

Add Under User Location:
Code: Select all
<!-- IF AGE --><dd><strong>{L_AGE}:</strong> {AGE}</dd><!-- ENDIF -->


In includes/ucp/ucp_pm_viewmessage.php Find:
Code: Select all
// Number of "to" recipients


Add Before:
Code: Select all
        $age = '';

        if ($config['allow_birthdays'] && $user_info['user_birthday'])
        {
            list($bday_day, $bday_month, $bday_year) = array_map('intval', explode('-', $user_info['user_birthday']));

            if ($bday_year)
            {
                $now = getdate(time() + $user->timezone + $user->dst - date('Z'));

                $diff = $now['mon'] - $bday_month;
                if ($diff == 0)
                {
                    $diff = ($now['mday'] - $bday_day < 0) ? 1 : 0;
                }
                else
                {
                    $diff = ($diff < 0) ? 1 : 0;
                }

                $age = (int) ($now['year'] - $bday_year - $diff);
            }
        }


Find:

Code: Select all
'S_PM_RECIPIENTS'   => $num_recipients,


Add Before:
Code: Select all
'AGE'            => $age,
Illustrator76
Donor
Donor
 
Posts: 20
Joined: Wed Aug 03, 2011 6:36 pm
Blog: View Blog (0)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby EXreaction » Thu Aug 18, 2011 10:34 am

You've tried using the blogrow.AGE, right?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby Illustrator76 » Thu Aug 18, 2011 10:57 am

Yes, I have. It still doesn't want to work for me.
Illustrator76
Donor
Donor
 
Posts: 20
Joined: Wed Aug 03, 2011 6:36 pm
Blog: View Blog (0)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby EXreaction » Thu Aug 18, 2011 2:36 pm

Could you pastebin the whole template file you're editing with the edit in place?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby Illustrator76 » Thu Aug 18, 2011 3:25 pm

I am not sure what pastebin is, but I have saved an html file (all text) with the left_menu.html template code in it here: Click Here
Illustrator76
Donor
Donor
 
Posts: 20
Joined: Wed Aug 03, 2011 6:36 pm
Blog: View Blog (0)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby EXreaction » Thu Aug 18, 2011 4:07 pm

That looks like it should work.

Try clearing the board cache. allow_birthdays is enabled on the board, correct?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4996
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby Illustrator76 » Thu Aug 18, 2011 5:13 pm

EXreaction wrote:That looks like it should work.

Try clearing the board cache. allow_birthdays is enabled on the board, correct?

I have cleared every cache on the board possible. Allow Birthdays is enabled on the boards through the admin console. The age shows up fine on my forums everywhere except for the blog areas. I have no idea why this doesn't want to work.
Illustrator76
Donor
Donor
 
Posts: 20
Joined: Wed Aug 03, 2011 6:36 pm
Blog: View Blog (0)

Re: Custom Profile Fields Disappear When SEO URL'S ARE ENABLED

Postby Illustrator76 » Sat Aug 20, 2011 6:36 am

Do you have any more ideas on what the issue could be/how to solve it? Do you think it is a bug or something else?

Thanks again for all of your help.
Illustrator76
Donor
Donor
 
Posts: 20
Joined: Wed Aug 03, 2011 6:36 pm
Blog: View Blog (0)

PreviousNext

Return to phpBB3 Support



Who is online

Users browsing this forum: No registered users and 3 guests