Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Buddy List  (Read 7319 times)

0 Members and 1 Guest are viewing this topic.

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Buddy List
« 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
« Last Edit: July 01, 2007, 06:37:59 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Buddy List
« Reply #1 on: July 01, 2007, 02:15:25 pm »

enable debug mode and post a link to your site

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #2 on: July 01, 2007, 02:21:00 pm »

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

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Buddy List
« Reply #3 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

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #4 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 ?
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Buddy List
« Reply #5 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)

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #6 on: July 01, 2007, 03:06:58 pm »

Ok, just did that. Hope it went ok though
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Buddy List
« Reply #7 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'];

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #8 on: July 01, 2007, 05:21:33 pm »

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

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Buddy List
« Reply #9 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;";

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #10 on: July 01, 2007, 05:45:42 pm »

Ok, changed that to, still no luck yet
Logged

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #11 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
Logged

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #12 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
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Buddy List
« Reply #13 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.

Mannie

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • Spliffcanvas
Re: Buddy List
« Reply #14 on: July 01, 2007, 06:31:37 pm »

Thanks  8)

You can set this as solved then  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.