Welcome, Guest. Please Login or Register.
November 22, 2024, 01:40:46 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2 « previous next »
Pages: 1 ... 4 5 [6] 7 Reply Ignore Print
Author Topic: [Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2  (Read 116590 times)
kartoo
Noobie
*
Posts: 3


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #75 on: November 17, 2003, 01:03:59 PM »
Reply with quote

I'm trying to integrate CPG 1.2 with YaBBi 1.1 (yabbse 1.4.1 core)
 
Now i'm blocked on this error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\htdocs\forum\Sources\Load.php on line 143

Line [email protected] is
if (mysql_num_rows($request) != 0)

part of LoadUserSettings(), a native function of YaBB that is working fine in the forum

function LoadUserSettings () {
   global $username,$settings,$password,$action,$realname,$realemail,$yySetCookies,$pwseed,$HTTP_COOKIE_VARS;
   global $cookieusername,$cookiepassword,$pwseed,$ID_MEMBER,$realNames,$db_prefix;

   /* Only load this stuff if the username isn't Guest */
   if($username != 'Guest')
   {
      $request = mysql_query("SELECT passwd,realName,emailAddress,websiteTitle,websiteUrl,signature,posts,memberGroup,ICQ,AIM,YIM,gender,personalText,avatar,dateRegistered,location,birthdate,timeFormat,timeOffset,hideEmail,ID_MEMBER,memberName,MSN,visualAdmin FROM {$db_prefix}members WHERE memberName='$username' LIMIT 1");
      /* If we found the user... */
      if (mysql_num_rows($request) != 0)
      {
         /* Initialize the settings array */
         $settings = mysql_fetch_row($request);
.....................................

If i use a pair of echo() i notice that $username is loaded correctly

Where is the problem??  :?:  :?:  :?:  :(  :(  :(
Thanks for help

Logged
kartoo
Noobie
*
Posts: 3


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #76 on: November 30, 2003, 01:03:58 AM »
Reply with quote

I finally found the error :)

$db_prefix is not loaded correctly... so all you need to to is change {$dbprefix}.members to you_real_db_prefix.mebers ;)
Logged
EliteRides
Jr. Member
**
Posts: 83


EliteRides.com

WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #77 on: December 27, 2003, 03:03:53 AM »
Reply with quote

I know I saw it somewhere, but I can't remember/find it on here or Coppermine's site.

How do you edit Coppermine to allow SSI.  More exact... I'm trying to get the SSI YaBB Menu to be called.
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #78 on: December 27, 2003, 03:20:12 AM »
Reply with quote

Ugh .. not sure, cos I'm a little drunk at the mo ;)

Best wishes for the season, BTW ;D

But .. IIRC, all the changes necessary in Coppermin are in include/mailer.inc.php. Also, SSI.php needs to be modified slightly.

Simply a couple of functions need to be renamed - there are only a couple of calls to thise functions so it isn't oo major.

The problem is that functions of the same name as those in Yabbse are defined

in Coppermines include/mailer.inc.php :-
Change all references to 'server_parse' to 'cpg_server_parse', and all references to 'smtp_mail' to 'cpg_smtp_mail'.

Also, in SSI.php, there are several lines similar to :-

include_once ($language)

or
include_once ($chklngfile2)

these need to be changed to

include_once ($full_yabbse_path. '/' .$language);

and

include_once($full_yabbse_path. '/' .$chklngfile2);

respectivley.

I think that is all I had to do when I last fiddled with it ;)
Logged

Uncle
Noobie
*
Posts: 37


WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #79 on: December 28, 2003, 02:09:29 PM »
Reply with quote

How can I understand if the bridge is working?
Can I see anything different?

my yabbse forum is here:
http://www.varesestore.it/community/yabbse

my coppermine album is here:
http://www.varesestore.it/community/photoalbum

tnx
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #80 on: December 28, 2003, 02:31:17 PM »
Reply with quote

It is working if you do not need to loginto the gallery after logging into yabbse. You will need to have 'Enable local storage of cookies' in YaBB SE turned OFF.

Also, you appear to be using an old version of Coppermine.

Download the latest version of coppermine from http://coppermine.sourceforge.net/ - this includes the latest version of the bridge.
Logged

Uncle
Noobie
*
Posts: 37


WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #81 on: December 28, 2003, 02:59:58 PM »
Reply with quote

I've downloaded the 1.1 version because of what is written in the read me... so I have to download the latest one... ok, i'll try it...

tnx
Logged

Uncle
Noobie
*
Posts: 37


WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #82 on: January 06, 2004, 05:52:16 PM »
Reply with quote

I've uploaded the lastest version of coppermine.
now i've a new problem: what's the cookie name? I have to put it in yabbse.inc.php and i receive this error:

Notice: Undefined variable: cookiename in /web/htdocs/www.varesestore.it/home/community/photoalbum/bridge/yabbse.inc.php on line 44

Fatal error: Call to undefined function: loadcookie() in /web/htdocs/www.varesestore.it/home/community/photoalbum/bridge/yabbse.inc.php on line 93

thank for helping me!
Logged

Fizzy
Full Member
***
Posts: 214


Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #83 on: January 06, 2004, 06:06:19 PM »
Reply with quote

Quote from: Uncle on January 06, 2004, 05:52:16 PM
I've uploaded the lastest version of coppermine.
now i've a new problem: what's the cookie name? I have to put it in yabbse.inc.php and i receive this error:

Notice: Undefined variable: cookiename in /web/htdocs/www.varesestore.it/home/community/photoalbum/bridge/yabbse.inc.php on line 44

Fatal error: Call to undefined function: loadcookie() in /web/htdocs/www.varesestore.it/home/community/photoalbum/bridge/yabbse.inc.php on line 93

thank for helping me!

Did you use the install.php to install it?
I didn't have to make any changes to yabbse.inc.php when I used it and it's working a treat.
Logged
Uncle
Noobie
*
Posts: 37


WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #84 on: January 06, 2004, 06:10:01 PM »
Reply with quote

i've followed the readme file in the lastest version of coppermine... but it doesn't tell about the cookie name... i'm looking for it due to the php error i have...
Logged

kartoo
Noobie
*
Posts: 3


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #85 on: January 06, 2004, 06:42:41 PM »
Reply with quote

Are you trying to install Coppermine under YaBBi??? (YaBB Italian Version)
Logged
Fizzy
Full Member
***
Posts: 214


Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #86 on: January 06, 2004, 07:04:52 PM »
Reply with quote

Uncle,

I ignored the readme file when I had a look at the script in the install.php file.
If you run that script it will prompt you online for the settings etc. I didn't edit the yabbse file at all.

I do recall reading something about cookie problems on Coppermine forum and they recommended NOT suing the same cookie name as YaBBSE.

I just checked my cookie name for Coppermine and it's
cpg11d - NOT - YaBBSE
Logged
kraphael
Noobie
*
Posts: 2


I'm a llama!

Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #87 on: January 07, 2004, 02:58:58 AM »
Reply with quote

Something strange is happening.

I integrated the latest version of coppermine with yabbse.

It works fine, except:

When I click on a link I made in coppermine to take the user back to the forum it logs them out.

If I instead type the url to the forum in the address bar of the browser it doesn't log them out and works fine.

The same is true in reverse.  When I click on a link I made to take the user to coppermine from the forum, it logs them out.

However, when I type type the address into the browser manually it stays logged in.

Any ideas?

Thanks
Logged
Uncle
Noobie
*
Posts: 37


WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #88 on: January 07, 2004, 11:55:40 AM »
Reply with quote

Quote from: kartoo on January 06, 2004, 06:42:41 PM
Are you trying to install Coppermine under YaBBi??? (YaBB Italian Version)

I really don't know, but i think it isn't the italian version... my forum is located here: http://www.varesestore.it/community/yabbse
Logged

Uncle
Noobie
*
Posts: 37


WWW
Re:[Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2
« Reply #89 on: January 07, 2004, 12:01:41 PM »
Reply with quote

Quote from: Fizzy on January 06, 2004, 07:04:52 PM
Uncle,

I ignored the readme file when I had a look at the script in the install.php file.
If you run that script it will prompt you online for the settings etc. I didn't edit the yabbse file at all.

I do recall reading something about cookie problems on Coppermine forum and they recommended NOT suing the same cookie name as YaBBSE.

I just checked my cookie name for Coppermine and it's
cpg11d - NOT - YaBBSE

I ignored the readme file too, except for the part which tells about the coppermine integration with yabbse...
Step by step what i did was:
1. upload for all file and special chmod for launch install.php
2. modify for yabbse.inc.php in bridge and init.inc.php in include following what the readme file says http://www.varesestore.it/community/photoalbum/docs/README.html

Logged

Pages: 1 ... 4 5 [6] 7 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.4] Coppermine Photo Album - YabbSE Integration Bridge V 0.9.2 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 20 queries.