integrating Viper Guestbook X1 - Page 3 integrating Viper Guestbook X1 - Page 3
 

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]

Main Menu

integrating Viper Guestbook X1

Started by Tranz, March 01, 2006, 08:48:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tranz


kovri

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

Tranz

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

kovri

Hi,
my new adress:http://kovri.ko.funpic.org/cpg149/viperguestbook/gb/index.php
<?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(); 
?>




Tranz

Try this:
<?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(); 
?>

kovri

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?


Tranz

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.

WC

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

WC

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


Tranz

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:
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]

WC

Quote from: TranzNDance 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.

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:
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

-chris-

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-

Tranz

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

-chris-

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-

Tranz

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.

mydigi

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

mydigi


Tranz

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

mydigi


Tranz

Quote from: mydigi on February 27, 2007, 03:10:26 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.