News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Ultimate Profile

Started by JovanT, March 12, 2009, 12:14:40 PM

Previous topic - Next topic

Stigmartyr

Quote from: SunKing on February 09, 2010, 09:34:37 PM
That file actually looks fine and works like it should when I upload it to my test site. I registered on your site so I could poke around a little bit and see if I could figure out what was going on there. The only thing that stands out at all is that it may have to do with the edits in your Profile-Modify.php. Can you check the UP edits in that file and verify that they are there and correct please?

ok - I just went back through and checked my sources/profile-modify.php (attached below).  Looks good.  Emptied the cache and same error.

[unplugged]

I apologize, but I mistyped the filename.  O:)

I meant your Profile-Actions.php. Sorry about that.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Stigmartyr

Quote from: SunKing on February 09, 2010, 10:07:14 PM
I apologize, but I mistyped the filename.  O:)

I meant your Profile-Actions.php. Sorry about that.

It looks good as far as edits..  Here it is attached.  I'm combing through the files now, again.

Stigmartyr

Do you think it might have anything to do with the way the submit (save) button handles the comment?

On my beta site where everything works, I click 'save' and a comment is posted.  On my production site, using the same files, it goes to : "index.php?action=profile;area=comment;u=2;add"

Is this wrong?  On the beta site where it's working it just saves.  The URL always looks like: "index.php?action=profile;u=1"

lethal1320.com

I installed this on my site (SMF 2.0 RC2), It is working flawless. Thanks a bunch!

SunKing, Your link locks up IE8.

Stigmartyr, You are a registered member on the site www.lethal1320.com [nofollow] log in and check it out. If you need any help let me know I can give a hand.

Mick.

Quote from: lethal1320.com on February 10, 2010, 12:00:12 AM
I installed this on my site (SMF 2.0 RC2), It is working flawless. Thanks a bunch!

SunKing, Your link locks up IE8.

Stigmartyr, You are a registered member on the site www.lethal1320.com log in and check it out. If you need any help let me know I can give a hand.

I knew your name form somewhere...lol  you registered on my site not too long ago.

Yes, the UP installed for me pretty good but im not using it yet.  Dont know what to make off it.

Stigmartyr

Quote from: lethal1320.com on February 10, 2010, 12:00:12 AM
I installed this on my site (SMF 2.0 RC2), It is working flawless. Thanks a bunch!

SunKing, Your link locks up IE8.

Stigmartyr, You are a registered member on the site www.lethal1320.com log in and check it out. If you need any help let me know I can give a hand.

Signed up Lethal.  I have sunking helping too.  This is really driving me nuts.  So far as I can tell I can't find any differences between my working site and my non-working site.  Argggghh

[unplugged]

@Stigmartyr
I have yet to find any differences between your two sites either, and everything seems to be set the same as on my site. What about the encoding? Is one site UTF8 and not the other?

(Also, I have tracked down that IE problem and removed the code causing the issue.)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Stigmartyr

Quote from: SunKing on February 10, 2010, 06:11:14 PM
@Stigmartyr
I have yet to find any differences between your two sites either, and everything seems to be set the same as on my site. What about the encoding? Is one site UTF8 and not the other?

(Also, I have tracked down that IE problem and removed the code causing the issue.)

Do you mean am I using English vs English UTF8?  I'm using just: English

[unplugged]

Quote from: Stigmartyr on February 10, 2010, 06:14:38 PM
Quote from: SunKing on February 10, 2010, 06:11:14 PM
@Stigmartyr
I have yet to find any differences between your two sites either, and everything seems to be set the same as on my site. What about the encoding? Is one site UTF8 and not the other?

(Also, I have tracked down that IE problem and removed the code causing the issue.)

Do you mean am I using English vs English UTF8?  I'm using just: English
If both of your sites are exact duplicates, then I am truly at a loss (not giving up, just trying to figure where to look next).
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Stigmartyr

Quote from: SunKing on February 11, 2010, 02:24:42 PM
Quote from: Stigmartyr on February 10, 2010, 06:14:38 PM
Quote from: SunKing on February 10, 2010, 06:11:14 PM
@Stigmartyr
I have yet to find any differences between your two sites either, and everything seems to be set the same as on my site. What about the encoding? Is one site UTF8 and not the other?

(Also, I have tracked down that IE problem and removed the code causing the issue.)

Do you mean am I using English vs English UTF8?  I'm using just: English
If both of your sites are exact duplicates, then I am truly at a loss (not giving up, just trying to figure where to look next).

There are two items that show in the error logs show when I try to comment on profile and profile picture:

http://stangnation.com/index.php?action=profile;area=pictures;u=649;comment=869

8: Undefined index: profile_buddies_show

File: /var/www/vhosts/stangnation.com/httpdocs/Sources/Profile.php
Line: 143

When I click the line error it shows: ==>143:   'label' => $txt['profile_buddies_show'],

---------------------------------------------

http://stangnation.com/index.php?action=profile;area=pictures;u=649;comment=869

8: Undefined index: profile_pictures_show

File: /var/www/vhosts/stangnation.com/httpdocs/Sources/Profile.php
Line: 132

When I click the error it shows: ==>132:      'label' => $txt['profile_pictures_show'],



..I don't know if this helps?

[unplugged]

Are $txt['profile_buddies_show'] and $txt['profile_pictures_show'] both in your UltimateProfile.english.php? In mine those strings are on lines 58 and 59.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



kherezae

#1672
Hi,

I have this mod and the Subaccounts mod both installed, and they both seem to work flawlessly but have a bit of interference with one another.  I've fixed part of it, but I'm having trouble fixing the other part.

I can't get the subaccounts to show up in a user's profile if they're using Ultimate Profile.  Their total posts including those made on subaccounts show up, but not a list of their subaccounts.  I copied and pasted both lines of code from the profile template, so theoretically it should work; I'm not sure what's missing.

The site is: synthetic-truth.net [nofollow]

The working bit of code (and the surrounding code for reference):
if (!isset($context['disabled_fields']['posts']))
echo '
<dt><strong>', $txt['profile_posts'], ': </strong></dt>
<dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
if (isset($context['member']['subaccounts_posts']))
echo '
<dt><strong>', $txt['subaccount_posts'], '</strong></dt>
<dd>', $context['member']['subaccounts_posts'], ' (', $context['member']['subaccounts_posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';

echo '
<dt><strong>', $txt['position'], ': </strong></dt>
<dd>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</dd>


The bit that isn't working (and surrounding code for reference):
if (!empty($context['member']['blurb']))
echo '
<dt><strong>', $txt['personal_text'], ': </strong></dt>
<dd>', $context['member']['blurb'], '</dd>';

if (!empty($context['member']['subaccounts']) && !empty($modSettings['subaccountsShowInProfile']))
echo '
<dt><strong>', $txt['subaccounts'], ': </strong></dt>
<dd><a href="', $scripturl, '?action=profile;u=', implode('</a>, <a href="' . $scripturl . '?action=profile;u=', array_map(create_function('$id,$account', 'return $id . \'">\' . $account[\'name\'];'), array_keys($context['member']['subaccounts']), $context['member']['subaccounts'])), '</a></dd>';

if (!isset($context['disabled_fields']['posts']))
echo '
<dt><strong>', $txt['profile_posts'], ': </strong></dt>
<dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';



Any idea what's wrong?  I appreciate any help you can give!

Sakae

Hi, thanks for creating this MOD!

It's awesome!! Working very well on my SMF 2.0 RC2!
http://www.tigrelog.com.br
l: simple p: machines

Stigmartyr

Quote from: SunKing on February 11, 2010, 03:22:28 PM
Are $txt['profile_buddies_show'] and $txt['profile_pictures_show'] both in your UltimateProfile.english.php? In mine those strings are on lines 58 and 59.

Quote from: SunKing on February 11, 2010, 03:22:28 PM
Are $txt['profile_buddies_show'] and $txt['profile_pictures_show'] both in your UltimateProfile.english.php? In mine those strings are on lines 58 and 59.

Thanks SunKing - JovanT also PM'd me to suggest the same thing after you posted this.  I over wrote that file with the one from the package, and confirmed the entries were there.  The errors I posted went away, but it's still not working :( I even cleared the cache a few times. 

I don't see any errors now related to this mod, but it's still giving me a server 500 error.  Perhaps I could make one of both of you temp admins to look at the errors.  There are some FB connect and chat errors that don't make sense and I'm ignoring them because they show up regardless whether I'm in a profile or making a comment.

Server 500 error seems to indicate something with the database maybe?  As if the file can't write to it?  What's odd is that I can edit/update ultimate profile's other fields...

wierdest error ever.. :P

[unplugged]

It may help to get to the bottom of the problem.  ;D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



puhastus

Quote from: SunKing on February 09, 2010, 08:39:09 AM
I just copied an existing block from UP and replaced parts of the code with my own. Then I named the block a unique name and included it in the array at the top of the UltimateProfile.template.php. I can give you an example block if you need.

Yes please :P send it to: [email protected]

Neverhurry

Hi, I tried very hard but I had no luck to solve this problem:

http://www.simplemachines.org/community/index.php?topic=298641.msg2458169#msg2458169

pls, anybody and advise what should I do? thanks.
I am using SMF 2.0.1, curve themes.

JovanT

Quote from: neverhurry on February 12, 2010, 05:56:54 PM
Hi, I tried very hard but I had no luck to solve this problem:

http://www.simplemachines.org/community/index.php?topic=298641.msg2458169#msg2458169

pls, anybody and advise what should I do? thanks.

Hi! It's probably encoding issue. Do you use UTF-8? If so, you should change Ultimate Profile tables to have utf-8 encoding. If you have phpMyAdmin, it is very easy task. You just need to run a few queries.

digit

Does anyone have a way to show those with customized profiles?  A directory - or search results page of those with customized profiles would be cool.  Thanks.
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Advertisement: