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 2 [3] 4   Go Down

Author Topic: integrating Viper Guestbook X1  (Read 223206 times)

0 Members and 1 Guest are viewing this topic.

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #40 on: October 10, 2006, 09:21:50 am »

Try upgrading your gallery.
Logged

kovri

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: integrating Viper Guestbook X1
« Reply #41 on: December 11, 2006, 04:04:59 pm »

Hi,
I have also problems with integrating Viper GB.X1
Whitout the CoppermineX1 theme, the guestbook works fine (standalone).
I created the guestbook.php per your instructions.
I also changed the link to the guestbook
I hope you can help me.
http://kovri.ko.funpic.org/cpg149/guestbook.php
http://kovri.ko.funpic.org/cpg149/viper%20guestbook/gb/index.php
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #42 on: December 11, 2006, 04:43:29 pm »

First, I think you should rename "viper guestbook" to something that doesn't contain a space. Or, move gb into cpg149. Fix the location in guestbook.php accordingly. If that still doesn't work, please post the revised location of the guestbook, and the content of guestbook.php
Logged

kovri

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: integrating Viper Guestbook X1
« Reply #43 on: December 11, 2006, 09:38:09 pm »

Hi,
my new adress:http://kovri.ko.funpic.org/cpg149/viperguestbook/gb/index.php
Code: [Select]
<?php 
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Guestbook');
define("SCRIPTPATH","cpg149/viperguestbook/gb/");
define("MAINSCRIPT","guestbook.php");
define("PFIX","vgb");
include(
"cpg149/viperguestbook/gb/index.php");
pagefooter(); 
?>


Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #44 on: December 12, 2006, 05:20:41 am »

Try this:
Code: [Select]
<?php 
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Guestbook');
define("SCRIPTPATH","viperguestbook/gb/");
define("MAINSCRIPT","guestbook.php");
define("PFIX","vgb");
include(
"viperguestbook/gb/index.php");
pagefooter(); 
?>
Logged

kovri

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: integrating Viper Guestbook X1
« Reply #45 on: December 12, 2006, 09:03:52 pm »

Hi TranzNDance ,
Thanks a lot  :D At last the job is done.
Many thanks.
Was the "cpg149 folder" the trouble maker in the guestbook php?

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #46 on: December 13, 2006, 03:58:50 am »

Yes, it was. Since the file is already in the cpg149 folder, your version is telling it to look for cpg149 folder inside cpg149.

Glad it worked for you.
Logged

WC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
A few Viper Guestbook problems
« Reply #47 on: December 15, 2006, 05:14:58 pm »

I've integrated the Viper Guestbook with the Coppermine gallery. However, when you're trying to sign the guestbook, in the drop down menu for "country" it does not show the entry for "United Kingdom". I know it's there because there's a UK flag and it's also in a text file in one of the folders, but it does not appear to be there.

How do I get this to show? Do I need to alter/add something on my database or do I need to alter one of the files (and if so, which one)?

Thanks
Logged

WC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: A few Viper Guestbook problems
« Reply #48 on: December 15, 2006, 05:22:19 pm »

I was also going to ask this question in the post above but hit submit before finishing:

Is it possible to have some kind of .htaccess file in either the guestbook folder in Coppermine or the Coppermine folder itself so that when you type www.mysite.com/photos/guestbook.php it shows as www.mysite.com/guestbook.php instead?  And if so, what would I write in that .htaccess file and where would I place it exactly?

I just want the guestbook to look like it's the guestbook for the main site rather than just for the gallery.

Thanks

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #49 on: December 15, 2006, 05:49:12 pm »

For the country issue, I think you need to read the viper gb docs/faq or ask the author. It's working in my guestbook.

I don't know if this will work, but try putting this in .htaccess in the root of your site:
Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/photos[NC]
RewriteRule ^photos/(.*)$ http://www\.domain\.com/guestbook.php$1 [R,L]
Logged

WC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: integrating Viper Guestbook X1
« Reply #50 on: December 15, 2006, 05:56:21 pm »

For the country issue, I think you need to read the viper gb docs/faq or ask the author. It's working in my guestbook.

Do you know which file it's located in? If I could isolate it, I could replace/edit it from a different installation (or maybe a copy of someone else's files).

Quote
I don't know if this will work, but try putting this in .htaccess in the root of your site:
Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/photos[NC]
RewriteRule ^photos/(.*)$ http://www\.domain\.com/guestbook.php$1 [R,L]

Sorry, I'm not sure which bits to replace in that code you gave above. In the first line, do I add my domain name into those brackets after www and also after that question mark?

If it makes it easier, my domain name is www.siberiansiren.com - what would I write in the code above in that case?

Thanks
Logged

-chris-

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: integrating Viper Guestbook X1
« Reply #51 on: February 15, 2007, 04:19:06 pm »

Greetings,

I am also having problems getting the coppermine skin to work for viper guestbook, although the Standard_Skin works fine.

I am using:
Gallery Configuration - Coppermine Photo Gallery 1.4.10 (stable)
ViPER Guestbook X1.2

I have guestbook installed in a directory 'guestbook' under coppermine.

In the coppermine folder I have guestbook.php which contains:
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');

pageheader('guestbook');
define("SCRIPTPATH","guestbook/");
define("MAINSCRIPT","guestbook.php");
define("PFIX","vgb");
include("guestbook/index.php");
pagefooter();
?>

And the error is:
Fatal error: Call to undefined function: starttable() in /**root of webserver**/photos/guestbook/skins/coppermineX1/noFrames.php on line 5

(I replaced the full path with **root of webserver**)

And the start on noFrames under coppermineX1 in case you need it:

<?php
global $CONFIG, $lang_list_categories;
$guestbook_url = $CONFIG['ecards_more_pic_target'].MSCRIPT;
//navigation
starttable("100%");
//breadcrumb will show up if configured in gallery setting
if (!(strpos($CONFIG['main_page_layout'],"breadcrumb")===false)) {
   echo '<tr><td class="tableh1"><span class="statlink"><b><a href="index.php">';
   Out(home);
   echo '</a>';
   echo " &gn; <a href=\"$guestbook_url\">";
   Out(guestbook);
   echo '</a>';
   IfStats(" &gn; <?php Out(statistics)?>");
   IfSign(" &gn; <?php Out(sign)?>");
   echo '</b></span></td></tr>';
}

//guestbook menu of navigation links
echo '<tr><td class="tableb_compact">';
insertSkinMenu();
echo '</td></tr>';
endtable();
***file cut off***


Thanks in advance
-chris-
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #52 on: February 15, 2007, 05:19:00 pm »

Please post links to the following:
your gallery
your guestbook folder
the guestbook.php file
Logged

-chris-

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: integrating Viper Guestbook X1
« Reply #53 on: February 15, 2007, 07:40:27 pm »

Hi,

photo gallery is here:
http://www.tonyagius.com/photos/

guestbook is here:
http://www.tonyagius.com/photos/guestbook/

contents of guestbook.php
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');

pageheader('guestbook');
define("SCRIPTPATH","guestbook/");
define("MAINSCRIPT","guestbook.php");
define("PFIX","vgb");
include("guestbook/index.php");
pagefooter();
?>

location of guestbook.php
http://www.tonyagius.com/photos/guestbook.php


OK now I'm confused.. in testing the links before I sent them, I discovered that when I use

http://www.tonyagius.com/photos/guestbook.php as the URL I get the header from coppermine photo gallery and the guestbook down below

however when I put in http://www.tonyagius.com/photos/guestbook/ this only worked with the std skin.

I think (maybe) the only problem was my understanding of how the two intergrate?

Thanks again
-chris-
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #54 on: February 15, 2007, 10:13:52 pm »

Right, once you integrate, you need to use guestbook.php because it will enable the guestbook access to the Coppermine functions. You shouldn't use the guestbook/ url.
Logged

mydigi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
  • I'm not ignoring you... I'm formatting my brain.
    • Mydigilynx
Re: integrating Viper Guestbook X1
« Reply #55 on: February 26, 2007, 01:08:43 pm »

I have the exact same problem...

Fatal error: Call to undefined function starttable() in /home/mydigi/public_html/viper/skins/Coppermine_Skin_RevX1.0/noFrames.php on line 5

I edited the code in wordpad as well, as my gb is 'viper'

<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');

pageheader('Guestbook');
define("SCRIPTPATH","viper/");
define("MAINSCRIPT","guestbook.php");
define("PFIX","vgb");
include("viper/index.php");
pagefooter();
?>

... followed the instructions EXACTLY and still get this error code

Fatal error: Call to undefined function starttable() in /home/mydigi/public_html/viper/skins/Coppermine_Skin_RevX1.0/noFrames.php on line 5

... any ideas?
Thx,
Andy
Logged

mydigi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
  • I'm not ignoring you... I'm formatting my brain.
    • Mydigilynx
Re: integrating Viper Guestbook X1
« Reply #56 on: February 26, 2007, 01:11:02 pm »

Sorry... http://www.mydigilynx.com/viper/ is the URL
Andy
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #57 on: February 26, 2007, 04:49:28 pm »

Please post links to the following:
your gallery
the guestbook.php file
Logged

mydigi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
  • I'm not ignoring you... I'm formatting my brain.
    • Mydigilynx
Re: integrating Viper Guestbook X1
« Reply #58 on: February 27, 2007, 03:10:26 am »

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: integrating Viper Guestbook X1
« Reply #59 on: February 27, 2007, 05:16:37 am »

The URL to the gallery is http://www.mydigilynx.com/coppermine/ Thx... A
There's something wrong with the gallery, and the error message isn't indicative of it having to do with the guestbook.
Logged
Pages: 1 2 [3] 4   Go Up
 

Page created in 0.033 seconds with 19 queries.