forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Mannie on July 01, 2007, 02:08:50 pm

Title: Buddy List
Post by: Mannie on July 01, 2007, 02:08:50 pm
Hi,
I downloaded the latest version of the mod, downloaded yesterday from your site. But the buddylist doesn't seem to work for me, i have cpg bridged with smf 1.1.3 and TP. When i enable the buddylist and go to my friends it gives me an error "There was an error while processing a database query".
Don't know why that is but i hope it can be fixed ;)

Thanks in advance
Title: Re: Buddy List
Post by: Stramm on July 01, 2007, 02:15:25 pm
enable debug mode and post a link to your site
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 02:21:00 pm
Hi,
Ok i enabled debug
site is located here http://art.spliffcanvas.net (http://art.spliffcanvas.net)
Title: Re: Buddy List
Post by: Stramm on July 01, 2007, 02:46:58 pm
Of course I'd need a testuser account as well. Maybe even 2

Have you upgraded your CPG to 1.4.11 as well or did you just upload the modpack for CPG 1.4.11
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 02:51:33 pm
I pm the test account.
But i think i didn't got the 1.4.11
Guess that's my fault do i need to put that in first ?
Title: Re: Buddy List
Post by: Stramm on July 01, 2007, 02:56:59 pm
Yes, the modpack you downloaded is marked for CPG 1.4.11
However it shouildn't have an impact on the buddy list

Before we go troubleshooting it you should properly upgrade to CPG 1.4.11 and then apply the modpack. Nake sure you upload all files replacing the existing ones (the bridge folder too)
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 03:06:58 pm
Ok, just did that. Hope it went ok though
Title: Re: Buddy List
Post by: Stramm on July 01, 2007, 05:04:06 pm
I see... the good news, it's nearly no problem to get this going. The bad news: I can't reproduce this on my testbeds.
Just making it going isn't the way I'd like to go, I'd like to find the problem. After checking the code again I've seen something that may lead to problems under certain circumstances. Please find in buddy_manage.php
Code: [Select]
    $sort = (!isset($_GET['sort']) || !isset($sort_codes[$_GET['sort']])) ? 'buddy_name_a' : $_GET['sort'];
and replace with
Code: [Select]
    $sort = (!isset($_GET['sort']) || !isset($sort_codes[$_GET['sort']])) ? 'date_d' : $_GET['sort'];

Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 05:21:33 pm
Hi
I changed that code, but still no luck  ???
Title: Re: Buddy List
Post by: Stramm on July 01, 2007, 05:33:21 pm
that's bad luck... so we get it going but changing the sort order won't work anymore

buddy manage.php, find
Code: [Select]
$sql2 = "ORDER BY ". $sort_codes[$sort] ." LIMIT $lower_limit, $users_per_page;";and replace with
Code: [Select]
$sql2 = "ORDER BY since DESC LIMIT $lower_limit, $users_per_page;";
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 05:45:42 pm
Ok, changed that to, still no luck yet
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 06:06:51 pm
I'm sorry, the editor saved it in another location i just noticed. All is fine now ;)
Thanks alot
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 06:15:38 pm
Just one more question, i have this bridged so i can't see where i can add buddies, when i click on a username in the gallery it shows the profile from the gallery, but i see no option to do that
Title: Re: Buddy List
Post by: Stramm on July 01, 2007, 06:24:24 pm
Please only one question per thread

the answer is in the announcement thread and here
http://forum.coppermine-gallery.net/index.php?topic=34905.msg163858#msg163858
Quote
3. images - copy all images from the classic theme's images directory to the images directory of the theme you want to make modpack compatible without overwriting existing files. Eventually you want to open these images in your gfx program and make them fit your themes colors.
Title: Re: Buddy List
Post by: Mannie on July 01, 2007, 06:31:37 pm
Thanks  8)

You can set this as solved then  ;D