Buddy List Buddy List
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Buddy List

Started by Mannie, July 01, 2007, 02:08:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mannie

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

Stramm

enable debug mode and post a link to your site

Mannie

Hi,
Ok i enabled debug
site is located here http://art.spliffcanvas.net

Stramm

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

Mannie

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 ?

Stramm

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)

Mannie

Ok, just did that. Hope it went ok though

Stramm

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
    $sort = (!isset($_GET['sort']) || !isset($sort_codes[$_GET['sort']])) ? 'buddy_name_a' : $_GET['sort'];

and replace with
    $sort = (!isset($_GET['sort']) || !isset($sort_codes[$_GET['sort']])) ? 'date_d' : $_GET['sort'];



Mannie

Hi
I changed that code, but still no luck  ???

Stramm

that's bad luck... so we get it going but changing the sort order won't work anymore

buddy manage.php, find
$sql2 = "ORDER BY ". $sort_codes[$sort] ." LIMIT $lower_limit, $users_per_page;";
and replace with
$sql2 = "ORDER BY since DESC LIMIT $lower_limit, $users_per_page;";

Mannie

Ok, changed that to, still no luck yet

Mannie

I'm sorry, the editor saved it in another location i just noticed. All is fine now ;)
Thanks alot

Mannie

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

Stramm

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
Quote3. 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.

Mannie

Thanks  8)

You can set this as solved then  ;D