forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Bridging/Integration => Topic started by: Tranz on March 01, 2006, 08:48:03 am

Title: integrating Viper Guestbook X1
Post by: Tranz on March 01, 2006, 08:48:03 am
This skin is for Viper Guestbook X1 (http://www.vipergb.de.vu/). It enables the guestbook to match the look of Coppermine Gallery. If you are using Viper 1.2 FINAL, use the skin made for it here (http://forum.coppermine-gallery.net/index.php?topic=18738.0).

You can see this skin in my guestbook (http://takethu.com/guestbook.php). You can see that the guestbook appearance will change as you switch gallery themes. I did not enable all the features in my guestbook so not all the possible icons will display.

This new skin version, of course, integrates the new features available in Viper GB X1. It also includes modifications that were previously done after-the-fact. This new version also moved the defines that were previously done in index.php to guestbook.php. If your already-integrated guestbook works fine, you don't have to do anything. However, if after upgrading to X1 you overwrote the defines in index.php, you can go ahead and use the new version of guestbook.php below.

I am going to split up the instructions to help with clarity and reduce clutter.


If you have already integrated the guestbook for v. 1.2, you will need to upgrade to X1 to use this skin. If you have upgraded to Viper X1 already, skip to "USING THE SKIN".


If you have trouble with the functional integration, please visit the guestbook support forums (http://www.danskcinders.com/forum/viewforum.php?f=1). If the integration works but there are issues with the look of the guestbook in the gallery, please post in this thread.

If you translate your guestbook and don't mind sharing, please do so in the lang file, accessible via the guestbook's admin panel.

While in gallery admin mode, the admin link for the guestbook will appear if you check the guestbook admin option:  Link to administration. However, they still have separate login systems so you would need to enter the correct login to access the guestbook's admin panel.

I haven't tested in CPG 1.3x (and don't plan to). The skin itself should be okay. But the quick installer... I don't know.

The download file is available here: http://www.vipergb.de.vu/
Title: new guestbook installations
Post by: Tranz on March 01, 2006, 08:49:07 am
For those who have NOT already installed Viper Guestbook:

Option 1: Quick installer

I have created a "quick installer" to make it easier to install the Viper guestbook into an existing Coppermine gallery. Please get the attachment called "viper-in-cpg-install.zip" below. Extract the zip and read the README to figure out how to use it. The attachment only offers the quick installer... you will need to get the latest version of the Viper files from the Viper website. http://www.vipergb.de.vu/. Once the guestbook is installed and you've tested it to your satisfaction, skip to USING THE SKIN

It currently only works for v. X1.0. If you use the latest version, X1.1, for example, the quick installer will fail to add the new mysql queries introduced in X1.1. You will need to do a manual installation if you want to use X1.1 or above.



Option 2: Manual installation

The instructions below were written for those who have not installed the guestbook and/or integrated it to the gallery. If you have installed and/or have integrated it, you can skip the steps that don't apply to you.

GUESTBOOK INSTALLATION
1a) Install guestbook as a subdirectory in the gallery directory.
1b) Make sure that the guestbook functions fine as a standalone before you try to integrate.

GUESTBOOK INTEGRATION
2a) Create a file called guestbook.php
2b) In that file, put this code:
Code: [Select]
<?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(); 
?>
2c) Save/upload to the gallery directory

3a) Set "URL to guestbook" in the administration settings to "http://www.xy.com/yourGalleryFolder/guestbook.php". Otherwise, the search function and the decoding of private entries won't work.
3b) Enable the option:  Link to administration. Otherwise, the admin link for the guestbook won't show up while you're in Gallery admin mode.

4) Navigate to the guestbook: http://www.xy.com/yourGalleryFolder/guestbook.php to make sure that the guestbook is functionally integrated
Title: Using the Coppermine skin in Viper
Post by: Tranz on March 01, 2006, 08:51:04 am
USING THE SKIN
Now for visual integration...
1.) Download the attachment in this post
2.) Extract (don't just double-click to open/view) the archive
3.) upload the skin/Coppermine folder into the skins directory of your guestbook
4.) In guestbook administration, select "Setup"->"Skin"->"Use Skin"->"coppermineX1"
5.) Click on "Save Setup"

The guestbook should now look like the gallery. If you have enabled the theme selector in Coppermine, the themes will change in the guestbook, too.
Title: Re: integrating Viper Guestbook X1
Post by: Gizmo on March 19, 2006, 06:31:13 am
Hi,

I installed and tested Viper Guestbook which went well using the Standard_English skin and the instructions that came with it. I then applied the CoppermineX1 skin following the above instructions for "Using the Skin" and got this error:

Code: [Select]
Fatal error: Call to undefined function: starttable() in /home/content/B/i/l/BillyBullock/html/gallery-2006/gb/skins/coppermineX1/noFrames.php
on line 5

I went back and created the guestbook.php per your instructions and made the below changes since my guestbook directory is gb instead of guestbook. I also changed the link to the guestbook admin settings as you described above.

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

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

Going to http://www.bullseyephotos.com/gallery-2006/guestbook.php (http://www.bullseyephotos.com/gallery-2006/guestbook.php) gave me these errors:

Code: [Select]
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/B/i/l/BillyBullock/html/gallery-2006/guestbook.php on line 2

Parse error: parse error, unexpected T_STRING in /home/content/B/i/l/BillyBullock/html/gallery-2006/guestbook.php on line 3

I'm running CPG 1.4.4 with a modified theme. I did set the theme to the unmodified Classic to see if my theme was the problem but got the same errors. Any help will be appreciated and my gallery is at http://www.bullseyephotos.com/gallery-2006/index.php (http://www.bullseyephotos.com/gallery-2006/index.php) . Also, the guestbook support forums mentioned above are offline.

Cheers and many thanks for all your hard work,

Billy  :)
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on March 19, 2006, 08:57:05 am
What are you using to edit the guestbook.php file? Try using a very basic text editor like notepad. Then reupload the file.
Title: Re: integrating Viper Guestbook X1
Post by: Gizmo on March 19, 2006, 01:23:44 pm
 :P Dang, I had read through the CPG 1.3x posts on this topic several times last night and didn't take notice because I was using wordpad instead of notepad. As always Tranz, you are a hidden gem amoung rubble.  ;D

Cheers,

Billy
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on March 19, 2006, 06:22:14 pm
Aw, shucks. (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Ftu2.net%2Femoticons%2Ficon_redface.gif&hash=f5211986ccdb4e7fb3d59c428aa5c1b3f355a5e0)

It is possible to use wordpad rather than notepad. I personally prefer it because it has things notepad lacks. The important thing is to remember to save it as text only and ignore its protests about losing formatting info.
Title: Re: integrating Viper Guestbook X1
Post by: Gizmo on March 19, 2006, 11:15:07 pm
Actually what I meant to say is that I didn't change the "Save as type" from "rtf" to "txt". People, this is one to remember and if you do, you'll save yourself a lot of embarrasement at the hands of experts.  ;)

Cheers,

Billy  ;D
Title: Re: integrating Viper Guestbook X1
Post by: claude258 on June 01, 2006, 07:08:15 pm
Is it possible to have the dates of messages entries in french?

Actualy it is:
Tuesday, 2006.05.30 22:07

but I would like to have it like this (or something similar):
Mardi 30 mai 2006 à 22:07
or
Mardi, 30.05.2006 22:07

Thanks
Claude
Title: Re: integrating Viper Guestbook X1
Post by: Granis on June 01, 2006, 07:56:08 pm
I'm using cpg1.4 and ViperX1..

Whitout the CoppermineX1 theme, the guestbook works fine.. But with the theme switched on, there is no entrys or anyway to make one.

Have a look.

http://granis.bounceme.net/cpg146/guestbook.php (http://granis.bounceme.net/cpg146/guestbook.php)
Title: Re: integrating Viper Guestbook X1
Post by: claude258 on June 02, 2006, 04:53:29 am
Is it possible to have the dates of messages entries in french?

Actualy it is:
Tuesday, 2006.05.30 22:07

but I would like to have it like this (or something similar):
Mardi 30 mai 2006 à 22:07
or
Mardi, 30.05.2006 22:07

Thanks
Claude

OK I got it! I have to edit langindex.inc

Claude
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on June 02, 2006, 05:08:44 am
I'm using cpg1.4 and ViperX1..

Whitout the CoppermineX1 theme, the guestbook works fine.. But with the theme switched on, there is no entrys or anyway to make one.

Have a look.

http://granis.bounceme.net/cpg146/guestbook.php (http://granis.bounceme.net/cpg146/guestbook.php)
I dunno... maybe it has something to do with you modifying the part of the footer that says "Powered by"
Title: Re: integrating Viper Guestbook X1
Post by: claude258 on June 03, 2006, 09:19:53 pm
I am trying to modify the look (fonts, colors, etc...) by editing style.inc in /...../coppermine/guestbook/skins/coppermineX1 but it is not working (no modifications appears...).
I have tried to edit style.inc via FTP and via questbook admin but it is the same results.

Is it the file style.inc that need to be changed or another one?

Claude
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on June 03, 2006, 09:41:58 pm
I am trying to modify the look (fonts, colors, etc...) by editing style.inc in /...../coppermine/guestbook/skins/coppermineX1 but it is not working (no modifications appears...).
I have tried to edit style.inc via FTP and via questbook admin but it is the same results.

Is it the file style.inc that need to be changed or another one?

Claude
It depends on what you want to change. A lot of the styling comes from the Coppermine theme, which is the point of the skin. If it's fonts and colors, I think it would be in your gallery theme's style.css
Title: Re: integrating Viper Guestbook X1
Post by: Pascal YAP on June 03, 2006, 10:59:01 pm
Claude,

Bonjour from France  ;D

After install ViperGuestBook, maybe you can simply try to use MiniCMS (here (http://cpg-contrib.org/board/index.php?board=2.0)).
Then use inside MiniCMS an "IFRAME" TAG only for use your guestbook. Like me to integrate CPG FR Forum inside my own galery (http://www.pays-dignois.com/galerie/index.php?file=minicms/cms&conid=2&type=0) !

Cheers

PYAP
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on June 03, 2006, 11:19:47 pm
The thing with using an iframe is that the guestbook won't look like the rest of the gallery.
Title: Re: integrating Viper Guestbook X1
Post by: Granis on June 05, 2006, 05:15:45 pm
I fixed the problem.
The problem was in display1.php and display2.php, so I used the ones from Standard Skin.
Title: something wrong in the database
Post by: gangavalli on June 25, 2006, 11:58:05 am

 Error: The following MySQL query produced an error:  select SORTEDIDS from VGB_COUNTRYORDER where LANG = '#'  1146: Table 'mydatabase.VGB_COUNTRYORDER' doesn't exist
 Script: guestbook.php (X1.0)
 + vgbform => 0


========

what does that mean? there is no table with the name countryorder and because of that the guestbook is not allowing to place entires. this error is displayed after the name field and the remaining fields are not shown.

can someone sortout this?
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on June 25, 2006, 12:08:05 pm
How did you install the guestbook?
Title: Re: integrating Viper Guestbook X1
Post by: gangavalli on June 25, 2006, 01:08:59 pm
i uploaded everything to /guestbook (latest files from their site)
and also uploaded viper-install.php
and executed viper-install.php with the details and then it says unable to create ht_lock.php, i created it manually as it says and after that the guestbook.php file is not created, so i changed the chmod of coppermine to 777 and then executed viper-install.php file again and this time it was successful. i can see the coppermine/guestbook.php with no entries. when i go to the sign guestbook link, i see the error there. should i install again?
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on June 25, 2006, 06:26:59 pm
I'm having trouble following. Does the guestbook work by itself? Could you post a link to the gallery?
Title: Re: integrating Viper Guestbook X1
Post by: gangavalli on June 25, 2006, 06:32:39 pm
here is the gallery:
http://familyalbum.gangavalli.com/photos/
and here is the guestbook page: http://familyalbum.gangavalli.com/photos/guestbook.php
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on June 25, 2006, 06:44:31 pm
The problem occurs when the guestbook is standalone: http://familyalbum.gangavalli.com/photos/guestbook/

Since it's not related to the integration itself, I don't know what's going on. You will need to ask the guestbook author at http://www.vipergb.de.vu/

I did a search for the missing table name and didn't see a post on it.
Title: Re: integrating Viper Guestbook X1
Post by: gangavalli on June 26, 2006, 11:00:59 pm
The guestbook is not standalone. I installed using the viper install php file only.
I have asked the guestbook author about the error.
This is the thread: http://www.danskcinders.com/forum/viewtopic.php?t=369
The table exists but there is another problem now. 

after posting the content, there is an error:
Code: [Select]
The following MySQL query produced an error:
select COMMENTEMAIL, ENTRYSENT from VGB_ADMIN where COMMENTEMAIL != ''

1054: Unknown column 'ENTRYSENT' in 'field list'

how can i sort this?
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on July 01, 2006, 08:06:36 am
Hmm, this looked really interesting, but neither the support forums or the Viper site to download it are working. Is it gone?
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on July 01, 2006, 08:58:13 am
Sorry, I should have updated the forum location, which is here: http://www.danskcinders.com/forum/viewforum.php?f=1

I just went to http://www.vipergb.de.vu/ and it worked fine.
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on July 01, 2006, 04:44:48 pm
It works for me too now, but just timed out the past few days.

Thanks for the updated forum link. I had read elsewhere that development had stopped, but I see from the forum it is still active.
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on July 04, 2006, 10:30:03 pm
I had the same troubles as Granis along with other errors. I noticed that you have a mix of short and long php tags, which I dont allow. Also, a few of the files I had to load in wordpad and save as text to remove some extra characters. After that, it seems to be working ok. Thanks for the skin and howto.
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on July 31, 2006, 05:20:31 am
Hi TranzNDance,

I thought I had this all working and then put off implementing the guestbook until now. But some final testing has revealed a problem with apostrophes. For example, if I type "it's" in the guestbook it becomes it&#39;s or in html code, &amp;#39; replaces the apostrophe instead of &#39;

I don't believe it's the apostrophe problem mentioned in other topics since they work find in titles, etc. Only in the guestbook do I have the problem.

If I run the guestbook as standalone with the standard skin, it works ok, the ' is encoded as &#039; so it seems like a problem with the skin, or interaction with coppermine.

I checked out the guestbook on your site and saw the same problem. Any ideas on how I can fix this?

Title: Re: integrating Viper Guestbook X1
Post by: Tranz on July 31, 2006, 06:21:16 am
Yeah, I think it has to do with the guestbook being included in Coppermine. If I use the Standard Skin while included, I have the same issue. Only when using Standard Skin while standalone do I not have the issue. And the issue occurs when the entry gets saved into the database. If I edit the entry in admin panel, the apostrophes are ok.

Looking in include/init.inc.php, I see sanitizing activity:
Code: [Select]
$HTML_SUBST = array('&' => '&amp;', '"' => '&quot;', '<' => '&lt;', '>' => '&gt;', '%26' => '&amp;', '%22' => '&quot;', '%3C' => '&lt;', '%3E' => '&gt;','%27' => '&#39;', "'" => '&#39;');

I couldn't figure a more clever solution than editing the guestbook index.php file.

FIND:
Code: [Select]
echo vgb_outText($entry['ENTRY']
REPLACE with:
Code: [Select]
echo html_entity_decode(vgb_outText($entry['ENTRY']));
My guestbook looks so much neater now. :D

Thanks for reporting the problem and providing some troubleshooting info. I've heard about this before but didn't know where to begin looking. Plus, I was in code mode today.
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on July 31, 2006, 05:23:57 pm
Glad I could help, but I still have problems. I guess you're still using X1.0 since I don't have that code in my index.php. That's from the EntryText function? That's the only place I found similar code. In 1.1 and 1.2RC1 it looks like
Code: [Select]
  function EntryText() {
    // prints the text of the current entry
    global $entry,$vgbcache;

    $t = ($vgbcache) ? vgb_emofix($entry['ENTRY']) : vgb_outText($entry['ENTRY']);
    echo "<span class='vgbtext'>".$t."</span>";
  }

Your change only cleans up the output right, not what goes into the database?
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on July 31, 2006, 05:37:38 pm
Try this:
Code: [Select]
  function EntryText() {
    // prints the text of the current entry
    global $entry,$vgbcache;

    $t = ($vgbcache) ? vgb_emofix($entry['ENTRY']) : vgb_outText($entry['ENTRY']);
    $t = html_entity_decode($t);
    echo "<span class='vgbtext'>".$t."</span>";
  }

Yes, it will only clean up the output, since the input is being sanitized for security purposes.
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on July 31, 2006, 07:49:23 pm
That works, but not if I preview the comment. I mean the preview part looks ok, but in the comment entry box it again has the &amp;#39 so if I then submit the comment, it is messed up.

 :-\
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on August 01, 2006, 06:12:07 am
Sorry, I should have tested with preview.

I don't know if your version has this code, but search for it or similar:
Code: [Select]
    out("<textarea name='".PFIX."TEXT' $inTag>");
    if (isset($_entry['ENTRY']))
      echo vgb_formdata($_entry['ENTRY']);
    echo "</textarea>";

It is in function FormText() in index.php

Change:
Code: [Select]
echo vgb_formdata($_entry['ENTRY']);
to:
Code: [Select]
echo html_entity_decode(vgb_formdata($_entry['ENTRY']));
Title: Re: integrating Viper Guestbook X1
Post by: wuurp on August 01, 2006, 08:53:27 am
Thanks, that took care of it.
Title: Re: integrating Viper Guestbook X1
Post by: piterve on August 17, 2006, 03:40:22 am
I'm using cpg1.4 and ViperX1..

Whitout the CoppermineX1 theme, the guestbook works fine.. But with the theme switched on, there is no entrys or anyway to make one.

Have a look.

http://granis.bounceme.net/cpg146/guestbook.php (http://granis.bounceme.net/cpg146/guestbook.php)

   Pardon my very bad english. Coppermine Skin  Revision: X1.0 downloaded of http://www.vipergb.de.vu/ is missing 7 archives, compared with the standard skin:
contentFrame.php, displayFrameset.php, mainFrameset.php, menuframe.php, screencss.php, selectFrame.php and skincss.php.

   To recover the error download the Standard Skin Revision: X1.1.0 , extract it and copy all archives in the coppermine skin (important: no overwrite the coppermine skin archives !!, take no overwrite to all). Is all, the problem is solved and the visual integration is Ok and the guestbook in now visible.

Thans
Piter
Title: Re: integrating Viper Guestbook X1
Post by: claude258 on October 09, 2006, 03:29:55 pm
Sorry, I should have tested with preview.

I don't know if your version has this code, but search for it or similar:
Code: [Select]
    out("<textarea name='".PFIX."TEXT' $inTag>");
    if (isset($_entry['ENTRY']))
      echo vgb_formdata($_entry['ENTRY']);
    echo "</textarea>";

It is in function FormText() in index.php

Change:
Code: [Select]
echo vgb_formdata($_entry['ENTRY']);
to:
Code: [Select]
echo html_entity_decode(vgb_formdata($_entry['ENTRY']));

I also have the same problem with apostrophe and I tried to change the index.php code as you suggested but it doesnt seems work.

link:
http://claudebriere.net/coppermine/guestbook.php (http://claudebriere.net/coppermine/guestbook.php)

Is there something I dont understand?

For your info, here is the answer about this problem from Marc from Viper forum:
Quote
That happens if your gb and your MAINSCRIPT are using different encodings. Oviously you fixed it yourself.

Regards,
Marc

Thanks
claude
Title: Re: integrating Viper Guestbook X1
Post by: singaporemall on October 09, 2006, 03:36:42 pm
That's very nice, Now I'll consider installing Viper Guestbook

Singapore Mall
www.singaporemall.in/gallery :)
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on October 09, 2006, 04:30:15 pm
Claude, could you please post the code that you have? Are you sure that when you uploaded the new version overwrote the old?

I don't think you followed all the integration steps. Your guestbook doesn't match the eyeball theme you are using. Here is my guestbook with eyeball: http://takethu.com/guestbook.php?theme=eyeball
Title: Re: integrating Viper Guestbook X1
Post by: claude258 on October 09, 2006, 11:34:45 pm
Hi TranzNDance,

I was using the ''standard skin'' in the guestbook setup. It is now switched to "Coppermine X1 skin" but the problem is also there. should it be fixed with your code modification (applied earlier)?

Please note that this problem is only when we write a new message. If we add a comment to a message it is fine.

If you have any comments let me know, I will try to see if I can find the problem.

link:
http://claudebriere.net/coppermine/guestbook.php

Thanks.
Claude   
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on October 10, 2006, 09:21:50 am
Try upgrading your gallery.
Title: Re: integrating Viper Guestbook X1
Post by: kovri 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/guestbook.php)
http://kovri.ko.funpic.org/cpg149/viper%20guestbook/gb/index.php (http://kovri.ko.funpic.org/cpg149/viper%20guestbook/gb/index.php)
Title: Re: integrating Viper Guestbook X1
Post by: Tranz 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
Title: Re: integrating Viper Guestbook X1
Post by: kovri on December 11, 2006, 09:38:09 pm
Hi,
my new adress:http://kovri.ko.funpic.org/cpg149/viperguestbook/gb/index.php (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(); 
?>


Title: Re: integrating Viper Guestbook X1
Post by: Tranz 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(); 
?>
Title: Re: integrating Viper Guestbook X1
Post by: kovri 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?

Title: Re: integrating Viper Guestbook X1
Post by: Tranz 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.
Title: A few Viper Guestbook problems
Post by: WC 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
Title: Re: A few Viper Guestbook problems
Post by: WC 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

Title: Re: integrating Viper Guestbook X1
Post by: Tranz 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]
Title: Re: integrating Viper Guestbook X1
Post by: WC 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
Title: Re: integrating Viper Guestbook X1
Post by: -chris- 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-
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on February 15, 2007, 05:19:00 pm
Please post links to the following:
your gallery
your guestbook folder
the guestbook.php file
Title: Re: integrating Viper Guestbook X1
Post by: -chris- 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-
Title: Re: integrating Viper Guestbook X1
Post by: Tranz 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.
Title: Re: integrating Viper Guestbook X1
Post by: mydigi 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
Title: Re: integrating Viper Guestbook X1
Post by: mydigi on February 26, 2007, 01:11:02 pm
Sorry... http://www.mydigilynx.com/viper/ is the URL
Andy
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on February 26, 2007, 04:49:28 pm
Please post links to the following:
your gallery
the guestbook.php file
Title: Re: integrating Viper Guestbook X1
Post by: mydigi on February 27, 2007, 03:10:26 am
Sorry... http://www.mydigilynx.com/viper/ is the URL
Andy
The URL to the gallery is http://www.mydigilynx.com/coppermine/ Thx... A
Title: Re: integrating Viper Guestbook X1
Post by: Tranz 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.
Title: Re: integrating Viper Guestbook X1
Post by: mydigi on February 27, 2007, 06:01:19 am
There's something wrong with the gallery, and the error message isn't indicative of it having to do with the guestbook.

You've probably checked it while I was configuring it, according to the time stamp on your message, sorry about that. I've tried every possible configuration, as well as changing the hyperlinks on my site to corespond to the correct settings: eg mydigilynx.com/coppermine/guestbook.php and nothing will work. I actually think it's a configuration in the gallery itself that's causing the problem. Anyhow, I've deleted the skin and restored everything to proper working order, I'll leave it as is thanks.
Andy
Title: Re: integrating Viper Guestbook X1
Post by: Lucato on July 29, 2007, 02:57:40 am
Hi folks, nice to meet you. Well, I know it is an old thread, but here I go. I see here that you guys/gals knows a lot about Viper Guestbook. I saw that the project was died. What a pity once it seems really cool GB.

Well, I got some doubts. I'll appreciate any help.

1) I forgot my password to admin my Viper GB, is there any way to recover it from my host/folders? What is the file?
2) My VGB is into a iframe. Is there a way to configure the style for SCROLLBARS? like it:
BODY {SCROLLBAR-FACE-COLOR: #999999; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #000000; SCROLLBAR-DARKSHADOW-COLOR: #000000}) Where can add this stile for changing the scrollbars?
3) Is there any way to remove that links on the top such as (sign up | Blablabla). I got to clean the texts, but it left this | (vertical slash - I don't know the right name for that in English) :)
4) Is there any manual or images to understand each style and what they change?

Well, any help will be great. Thanks in advance.
Lucato

Title: Re: integrating Viper Guestbook X1
Post by: Traeumer76 on August 20, 2007, 08:52:42 am
Hey guys,

even if Viper-GB is dead, does anybody know how to recover/reset my Admin-Password if i forgot it?

And by the way: Did this project die of security reasons? Or can i still use it without bigger risks until i find a new guestbook?

Thanks
Title: Re: integrating Viper Guestbook X1
Post by: Tranz on August 20, 2007, 04:11:37 pm
Yes, it was security reasons. I don't know how to reset the admin password. Have you searched the internet?
Title: Re: integrating Viper Guestbook X1
Post by: Traeumer76 on August 28, 2007, 09:19:58 pm
Yes, i searched for it, but mostly got other sites "USING" ViperGB, not explaining something.

Thou it died about security reasons i will have to uninstall it anyway. It was a good guestbook, now i have to look for an alternative.  :'(
Title: Re: integrating Viper Guestbook X1
Post by: dannypritchett01 on August 01, 2008, 06:11:29 pm
I hate to ask this but can someone send me the Viper Guestbook X1 script install? I have version 1.2 and i am receiving lots of spam. I really do not want to delete my guestbook. I want to use the skin but theirs no use with version 1.2 because if I cant get rid of the spam im gonna have to find another spam free guestbook.

dannypritchett01@charter.net