What is WP-ViperGB?
WP-ViperGB is a Wordpress plugin designed to replicate the appearance and behavior of the discontinued Viper Guestbook project. It makes it easy to add a stylish and user-friendly guestbook to your blog.
Features:
- Create user-friendly guestbooks without writing a single line of code.
- Lives in a standard Wordpress page and uses comments for entries, so moderation and antispam functionality works as normal.
- Two-View layout provides one view for submitting entries and another for reading them.
- Automatic paging of entries to customizable length.
- Allow users to upload and embed images in their signatures.
- Show icons for country, browser, and OS in visitor signatures.
- Admin-panel stylesheet selector allows easy skinning to suit your theme.
- No bloat: Uses existing Wordpress faculties so no custom database tables are required.
- Simple PHP template function allows programmers to manually embed guestbooks in any template.
Demo
The Guestbook page of this site is a live example of WP-ViperGB in action. Please do not use my personal guestbook to test this script; If you would like to test it, you can do so on your own server. Entries like "This is a test" will be caught in moderation and/or promptly deleted.
Here are screenshots of the two skins I include by default (the only difference is the color scheme):
Installation
1. Download the latest version from here, unzip it, and upload the extracted files to your plugins folder.
2. Login to your Wordpress admin panel and activate the plugin.
3. Create a new Page (i.e. "Guestbook").
4. Navigate to Settings -> WP-ViperGB.
5. Use the provided dropdown to select the Page you created above.
6. Click "Save," and you're done! You can now enjoy your new guestbook.
Customization
Skins
WP-ViperGB supports simple skin selection via its admin panel. For now, skins are just stylesheets (and images they reference); this can be expanded later if demand warrants.
To create a new skin, add a stylesheet to the WP-ViperGB/styles folder and override anything you like from Default.css, which will always be included first. Stylesheets in this directory will be listed by name in the "Guestbook Styles" combobox on the admin panel. I've only included two simple examples, but if anyone makes any cool new styles please share them, I'd love to include them with the plugin for others :)
Options
All of the guestbook's customization options are listed in its admin panel. These currently include:
- Reverse order (list from oldest to newest)
- Number of entries to show per page
- Allow image uploads (disabled by default)
- Max image filesize (if image uploads are enabled)
- Show browser & OS icons
- Show flag icons
PHP Templates / Multiple Guestbooks
By default, WP-ViperGB lives in the "the_content" section of your theme's standard page template. If you would like to manually include it elsewhere, you can use the PHP function vgb_GetGuestbook(), like this:
<?php
/**
* Template Name: MyTemplate
*/
get_header();
get_sidebar();
if( function_exists('vgb_GetGuestbook') )
echo vgb_GetGuestbook();
else
echo "Guestbook is currently deactivated.";
get_footer();
?>
Note that I did not call comments_template(); WP-ViperGB uses page comments for its entries, so including the standard comments template would result in your guestbook entries being shown twice. Also note that vgb_GetGuestbook() must be called inside The Loop - so if you use it in some nonstandard location, make sure to call the_post() first.All of the options you find in the admin panel can be specified directly to this function, except for the style (because it needs to enqueue a stylesheet before wp_head):
<?php
vgb_GetGuestbook( array(
'entriesPerPg' => 10, //Number of entries to show per page
'reverseOrder' => false, //Show newest entries first
'allowUploads' => true, //Allow users to upload images
'maxImgSizKb' => 50, //Max uploadable image size
'showBrowsers' => true, //Show visitor browser/OS icons
'showFlags' => true)); //Show visitor flags (Requires Ozh IP2Nation)
?>
Thus, you can use this function to add multiple guestbooks to a given blog if you like.Donate
Although this plugin is free to use and enjoy, it did not write itself. If you find it useful, a glass, pitcher, or keg of beer for the author would be greatly appreciated. I promise to enjoy every ounce of it :)
Feedback/Support
So, you've setup the plugin and it isn't doing what you expect. What now? The first thing you should try is disabling all your other plugins and using the default theme; broken themes and conflicting plugins are by far the most common cause of problems. If that works, you should be able to pinpoint the source of the issue by reactivating them one at a time.
Still no joy? If you need personal help, you can get paid support by donating at least $20USD to the author:
You may then email me your question and I'll get back to you as soon as I can.
If you'd like to get in touch for a non support-related reason (i.e. feedback, job requests, feature suggestions, unrelated rants), you may use the comment thread below, but please remember that I will no longer be replying to requests for free support. I'm sorry to do this (I avoided it for well over a year), but due to the overwhelming stream of questions for my various (opensource) plugins I can simply no longer afford to offer my time for free.
Download the latest testking ccna tutorials and testking ccda study guide to learn about WP plugins. Learn all about WP plugins using testking mcts demos.



I have the guestbook installed on two sites, both using different themes one of which is the same as the theme you are using and the country flags don’t show up on either site.
Everytime I’ve installed the plugin, I get some error saying some headers are missing. Don’t know if that has anything to do with why the guestbook doesn’t work properly on my sites??
>>Everytime I’ve installed the plugin, I get some error saying some headers are missing
Couldn’t tell you unless I knew the error
Are you sure you properly installed IP to Nation and its required database tables? Obviously it’ll never work without that…
I have just re-installed all files – Guestbook, Ozh IP to Nation, and then uploaded the sql files for the database tables. It still doesn’t work work, so I renamed the tables to have the prefix wp_, like all my other tables have for WP. Still no flags show up. I don’t know what else to try.
How about providing a link.
Hello, I have been using wp-viperGB for a while now. It’s been doing great until now. Recently my guest book gets flooded with spams. I am not sure how to get around it? you assiatance will be highly appreciated. I have the simple CAPTCHA installed, can that be used in anyways ?
If you’re having issues with comment spam (on the guestbook or anywhere else on your blog), please research comment spam options for WordPress. There are dozens of possible solutions, I can’t choose which is best for you. I use Akismet, Bad Behavior, and Captcha.
Hey Justin,
Thanks for your great plugin, its the best solution i have found for the website im running. Although im not exactly using it as a guest book, it works well. (or i think it will, as the site was just publicly launched today).
I have an issue yet, which is the same than the previous person who commented : no flags are showing up with the entries. Ive installed your plugin, then Ozh IP to nation, then dowloaded the IP2nation tables and uploaded them in my wordpress sql database. I have tried it on localhost with the base theme of WP and no luck either.
You can see it here :
http://myeuropeandream.eu/lire-reves-europeens/
Any idea what is going on ? If you go to the site youll easily understand why the flags would be useful to me. Thanks for any help.
Take care
Eric, webmaster at myeuropeandream.eu
@mED Just to make sure, I just did a completely fresh from-scratch install of WP-ViperGB and Ozh IP to nation on my dev server, and the flags worked right out of the box – so no, really I have no idea why it wouldn’t do the same for you. If you have any PHP experience you could of course start by inserting some debug code to try and lock down the cause, or I could take a *quick* look if you’d like to give me FTP access. I’m assuming of course that you verified the tables were added via PHPMyAdmin…?
can’t get the guestbook to work get an ID eror. can you check for me? Maybe my version of WP is too new? http://www.doomsdayclock.com
thanks!
It works fine with the newest WP, and I don’t see any ID errors at that link.
Hi,
Am having same problem as Karen, have installed WP-ViperGB and IP to Nation and have uploaded the database file from IP to Nation into the WP database.
No actual database files installed from WP-ViperGB as far as I can see, presume it just links into WordPress somehow
Am running WordPress 3.1. Got the bad header message when I initialy tried to download and activate WP-ViperGB but managed to activate it in the plugin section.
I tick the flags box in the controI panel and the guestbook entry shows a small blank image instead of a flag, location address of http://sacredheartblackburn.org.uk/WP/wp-content/plugins/wp-vipergb/img/flags/.png , which is correct but does not identify which flag.
Am trying to revamp an old website (hence the additional WP directory for the moment)
Would be great if I could get the flag images working -
Hi, have tried other wordpress ‘guestbook’ plugins and yours is by far the easiest to install and the best…. but when i try to leave a message it says ‘Sorry, comments are closed for this item.’ Am i missing something? could you please help. Confused!!!
Great plug-in! Is there a way to move the image upload field above the send button? It’s a bit confusing to have it below the send button. I’ve tried moving it, but I keep breaking the page. Any help would be greatly appreciated!
@Brian, Karen: I really don’t know what to tell you guys, I’ve tried to reproduce this but even on a completely fresh WP install, where I *only* added this plugin and ip2nation, it worked exactly as it does here on my site. As an additional sanity check, I also had a friend test it out on his site, completely different server and hosting environment. Flags worked there too. So if I can’t reproduce it I can’t really fix it…
@Jody: You’ve probably disabled comments in your WordPress settings. This is not something the plugin is in charge of.
@Beth: Not easily, no (nested forms not allowed in HTML)
Does this software the possibility of language customization?
I need it in spanish.
regards,
sergio
Hi Justin,
I really like your plugin! Well done
But I encountered a small problem:
I can’t see the flags…
What I did:
- Installed & activated the wp-vipergb plugin
- Installed & activated Ozh’s IP To Nation plugin
- Got the .sql file from ip2nations and inserted the two tables into my wordpress database
Unfortunately it doesn’t work! Do you have any ideas? I have read the recent comments here, but I couldn’t find a solution.
Thanks for your help!
Cheers
I have a bilingual site and so far this one would be the only plugin I’ve found that would more or less work. That is, except one rather relevant flaw – when clicking the ‘Show guestbook’ or ‘Write a message’ (or whatever it says on the front page, can’t check as I don’ t have it installed atm) it always redirects to the default, English language comment form. Obviously if the links are clicked on the Finnish language page, I would like people to be taken to the Finnish page. When clicking the same link on the comment form page, it does take you to the same language site where you were when you clicked.
Any way to fix this?
Hello,
I have translated your plugin in french if you’re interested.
@sergio: Yes, that’s what the “lang” directory is for. Also, the very first item on the changelog is “Add French and Czech translations.”
@Felix: Sorry, I’m really not sure – you are the 3rd user who’s reported this, but I’ve personally tried installing it completely from scratch, on a fresh WordPress installation, with and without Buddypress, but every time the flags work exactly as intended (which you can, of course, see on this site as well)…
@Jaana: That’s not the case; you must not have setup your WordPress localization properly.
Here’s an example of it working properly in Russian: http://217.79.0.118/?page_id=79
And Czech: http://www.motokenny.cz/reference/
And German: http://mgw.wasemusig.ch/?page_id=205
@dreamakers: Thanks again – submitted an update!
Thanks for the reply Justin – however, the problem is not getting it to work in Finnish, but how to stop it from redirecting to the default language (English) pages as described in the original message. I’m sure it’s working perfectly on pages with just one language, be that English or some other language.
I don’t know how you’ve implemented “bilingual” on your site, but as far as I know, this isn’t default WordPress behavior. WordPress does localization via hard-coding a locale in your wp-config.php.
“when clicking the ‘Show guestbook’ or ‘Write a message’ it always redirects to the default, English language comment form”
See the examples provided; clicking those links shows the form in the correct language.
I already checked the links and yes, it does work fine on those pages, but the difference is that those pages are, as far as I can see, in one language only. I use the qTranslate plugin on the bilingual site, you can see how it works if you check the link.
So you’re using a 3rd party language plugin – that would’ve been relevant information to include originally, don’t you think…?
You’ll have to look into how that plugin deals with languages and (most likely) append a query variable to the pagelinks based on its current language.
Thanks for your great and especially easy-to-use plugin!
Is there any possibility to change the links “sign guestbook” and “show guestbook”?
You can see the reason of my question if you click these buttons on my page …
Greetings, Hannes
Just edit the code…all you have to do is search for that text…! : P
Hi,
I’m currently using the original viper guestbook and now I have almost 800 entries for the past few years. I wish to change to wordpress for my site, along with your script as well. Is there a way to export the database into your script so that all entries together with the settings stay intact?
Thanks.
Not at the moment, no.
Hi, Fantastic plugin.
How can I get it to work with out visitors to the site haveing to login ie. guests
Huh? Um…there’s nothing preventing it from working that way as it is.
Hi,
I’m using the weaver 2 theme (wp 3.1.2); when wp-vipergb 1.1.19 is installed the bottom widgets can’t be styled from the page. Also, text styling is being recognized, but sizing (width & margins) isn’t when I tried to style the widget within the footer widget.
Is there a fix for this?
Thanks for the great guest book plug-in.
Camille
No; as I’ve tested this with >10 “common” themes and it’s always worked, if there are a few corner case themes here and there which cause problems you’ll just need to debug those on your own. There are loads of differently structured themes out there, and I couldn’t possibly provide compatibility with them all.
Hello
I am translating the questbook into Dutch. But how can i change the settings into Dutch?
thx in advance.
Albertino
Please consult the WP documentation or Google for general WP questions. Localizing one plugin is the same process as localizing any other.
(i.e. http://www.lost-in-code.com/platforms/wordpress/wordpress-translate-a-plugin/)
Hi.
I’m translate YOur plugin to Polish language but don’t work for me.
Other plugin correctly detect and show Polish translate.
Please add Polish lang to next version http://www.jdstar.pl/res/wpvipergb_pl_PL.zip
Thanks
JDStar.pl
Added in v1.1.20
(I tested it and when setup in wp-config, it did correctly detect it as expected).
Hi.
I’m have correctly settings in wp-config: define(‘WPLANG’, ‘pl_PL’); (changed to ru_RU, fr_FR and other – not working any language).
Other plugins working fine in various language – how You have setting WPLANG in wp-config?
Hi again:)
I found why not working localization for me: if plugin qTranslate is enabled – Your plugin always is work in english language…., after disabled plugin qTranslate, wp-vipergb work as language is setting in WPLANG.
Did You can fix them conflict in use both plugin simultaneously?
This plugin uses the standard method of localization as per the WP documentation; if qTranslate is doing something else to modify that behavior, I’d suggest talking to its author. As you yourself said it does properly detect WPLANG as it’s supposed to, and as I didn’t write qTranslate I don’t know exactly what it’s doing.
Hello;
Firstly I’m sorry for my english. thanks for this plugin.
I changed Turkish Language. I uploaded my FTP. But it doesn’t work. how can I fix it?
By The Way you can Add to Language file “Turkish”. (%99 translated)
http://www.sefaaydin.net/wpvipergb-tr-TR.rar
SEFA: Thanks, just committed a new update with your translations
It wasn’t working because you had the files named wrong (please compare to the others in the /lang dir).
Justin I found it
Ifound wrong in Turkish language and I changed it. but I’m thinking to make changes in style his. I will send to you both of them..
I think you mean you’re gonna revise the translations and send me a new .po/.mo file? No prob, whenever
Yes I mean
This file is correct words 100% and 100% translated.
http://www.sefaaydin.net/wpvipergb-tr_TR.rar
Committed (1.1.22)
Looks like a pretty cool plugin.
Hope this is not a dumb question: At a certain point, the comments move to “page 2 etc.”. Does that happen automatically? Or do you have to create another page? And if you have to create another page, how do you administer the overflow to subsequent pages?
Thanks.
Automatic.
i have the guestbook installed on the website for clients to leave there comments of our works.
It currently has 8 comments and we have about 4 people waiting to post comments.
However when they click write new entry it just refresh;s the page.
I have tried uninstalling and reinstalling the plugin but no change …. any ideas ??
Louis.
Please see the note in red just above this comment form.
Hi, thanks for the best guestbook i’ve tried
but i have a problem. when i try to leave a message it says ‘Sorry, comments are closed for this item.’ i didnt turn off the comment function. comments works well on other posts.
In the above description of this guestbook, i found ‘WP-ViperGB uses page comments for its entries’. is it related to page comments? how can i have comments on pages? thank you
oh srry i fixed. I had to go /Pages/Edit and check “Allow comments on this post” under the Discussion tab on Edit Page. I didnt see that check box until i found the screen option menu.
Thanks for the plugin, I installed it on my site and it works well but the captcha and facebook links are missing. I looked at the settings page to see if there was a checkbox to turn them on or off but there doesnt seem to be. Any help would be appreciated.
@Coby:
WordPress doesn’t have “captcha and facebook links.” If you’re referring to some specific 3rd party plugins that aren’t working as expected, this guestbook does call the standard ‘comment_form’ hook, so you’ll have to look at the code and explore what else the malfunctioning plugins are expecting.
Justin, your Demo has both a captcha and a facebook link that are not included in the downloaded plugin and are not well referenced in the documentation. Perhaps you could add a note that in order for the plugin to work as viewed in the demo third-party plugins will be required, as well as links to the ones you use. Thank you again for the work.
Oh, now I get what you’re referring to…
I don’t make reference to them in the docs because they aren’t related or specific to the guestbook – Captcha functionality requires a Captcha plugin, a Facebook plugin for Facebook, etc. Just like the header/footer/sidebars that appear on each page, you’ll notice that every comment form across this site (including the one in which you wrote your message) includes the same Captcha and Facebook buttons, indicating that they’re something more global than just the guestbook. Listing every plugin I personally use really is overkill when I already have a feature list to clearly indicate what this plugin does include…
…And if you were wondering, the two other plugins are si-captcha-for-wordpress and WP-FB-AutoConnect Premium
Hi!
After your tip with the country flags I installed your guest book – great !!!
Three things:
- How can I make the mail gif clickable and not ‘hidden’ ?
- When I let users post without approving, sometimes it works, sometimes it sends the mail to approve.
- How can I implement the flags for the comment sections on other pages ?
I’m quite new to this all and your site and the country flags impress me much !
Would be great to be able to have something similar . . .
@nik:
1) Individual customizations such as these are up to you; the plugin’s functionality is provided as-is, which you’re free to modify as you like (or to hire a programmer to do so if you don’t know how)
2) Comment moderation is a function of the WordPress core and is not handled by the plugin. Google would be a good place to look for instructions on altering it.
3) This is a customization I coded up myself (again, separate from wp-vipergb) and would depend completely on how your site is implemented.
Thanks for your detailed reply . . . !
Seems like you changed from the US to Ukraine, right ?!
to 2) No question is viper based on wp – just got confused this morning.
)
(this is what happens when I start thinking before coffee
to 3) If you could just give me a hint where to start with – so I could have
sort a chance to not loose time and have a good try . . . would be quite appreciated . . .
(shouldn’t there be some tutorial for this . . . to show that our planet is a small one
- if only with flags)
An example would be looking through how I do it in the vipergb code.
ok. I’ll find it
If I sign the guest book and write to the end of the field in firefox, Opera and IE the line break happens automatically but after sending the characters after the automatic line break disappeared. They only show up when using ‘enter’ for the line break.
Can I get rid of that?
)
Hopefully my visitors are clever enough or I’ll have to review every comment manually
Emailed.
Hi, is it possible to use this plugin for visitors when I have visitors comments disabled in WP?
Another thing – there is missing a file wp-vipergb\lang\wpvipergb-cs_CZ.mo in the current plugin archive for download.
As documented above, this plugin uses standard WP comments for its entries – so however you have your comments set to behave that’s how the guestbook will behave. If you turn off commenting, you won’t be able to leave guestbook entries.
Hey Justin, Thanks for this plugin! I have it installed on Wp 3.2.1 and it works great! I’m interested in manually including the code in a template (within the loop) as you described above, but couldn’t get it to work. In the settings panel I have the Guestbook Page set to “none”. All I see on the actual GB Page when I do it this way is the else part of the code; “Guestbook is currently deactivated”. Any tips would be much appreciated. Thanks again for this.
Sorry, the documentation had a mistake (vgb_ShowGuestbook -> echo vgb_GetGuestbook).
That did it! Thanks again, Justin!
Hello,
great plugin! but I have a problem with the flags… doesn’t want to show..(browser and OS ok)
Behind the image flag link, I have:
…plugins/wp-vipergb/img/flags/.png
Then it doesn’t catch the country code and add it to the flag link..
I’m using weaver 2.2 theme..
Do you have any idea? Thank you Justin
As documented, flags require the additional Ozh IP2Nation plugin (and ip2nation database). They should just work out-of-the-box (i.e. as here on this site).
Forgot to tell this detail. ozh ip2nation is off course installed.
I think it should be a problem with the theme. but don’t know where or why.
the website link is here:
http://c2skykitecenter.com/guestbook-2/
btw, nice website
Sorry, I don’t offer free debugging for individual users’ websites. If you don’t know how to debug PHP code issues on your own I suggest hiring a developer to do so for you.
I can understand that..^^, now just wanted to know if somebody already contacted you for a similar issue, your plugin + ip2nation and weaver theme = troubles
I will do some code reading this week-end to pinpoint the problem.
Regards,
A few users have expressed issues getting ip2nation working, but I’ve never been able to reproduce them – I’ve tried it on 2 different servers and it’s always worked right out-of-the-box. If you do figure out what’s wrong though, feel free to let me know and I’ll add a FAQ
Off course, Justin ! It’s my way of doing with open source and free software.
Hi,
Im using wp-viperGB with multi user version. Do i have to “network activated” it or let each users activate it?
Thanks!
…Why don’t you just try it…?
Good question bannim! There is few plugins wich is not working as expected if it is network activated.
As promised, I come back with the solution.
The problem was:
I didn’t follow the instruction from :
http://planetozh.com/blog/2004/08/ip-to-nation-plugin
==> add the sql file to the database
But!! Once done, it will still not work! tricky solution:
==> clean the cache /wp-content/plugins/cache/ip2nation
And finally it works!
Its now installed and network activated. It seems that it works as “network activated”.
btw. great support Justin!
@Jerome: Cool, thanks for getting back! I’ll keep that in mind in case it comes up again
@bannim: Glad you got it working. Is that by chance a sarcastic remark about the fact that I didn’t setup a multisite installation and try to debug your issue for free on a plugin that I developed and distributed completely for free…? I hope not
A last message for fun…
What do you think is my nationality? ahah!..
cheers
Um…according to your flag, Belgian
Yeah but the first I posted was Portugese.
After I tried to use a Proxy. but the captcha didn’t work really well with it.. ahaAh
cheers,
Jé
Hello,
I’m using this amazing plugin, and have one small question.
Where do I have to set the email adress to which the guest book entrys are sent to?
Please, could somebody help me?
Hello!
. Preferably with the ability to create or import your own.
WPViperGB is a great plugin!
Have used the former Viper before. Thought it was a good, simple Guestbook. Was therefore pleased when I discovered WP-ViperGB that is integrated with WordPress! i have tested it and I think that the following additions would be great. Many thanks for a great plugin.
1. The ability to have both the Easy Comments Upload and WP-ViperGB installed simultaneously.
2. Access to images / icons. They are there in the ECU and can be activated via the keyboard.
3. Ability to customize colors in WPViperGB to the current WP theme
CJ
@Anton: As documented, the plugin uses standard WordPress comments for entries. So they’ll go wherever all your other WordPress comment notifications go.
@CJ: Thanks, glad you like it
Unfortunately I’m not actively developing my free plugins any longer; if you’d like to contract me/someone to provide modifications or expansions that would be fine, though I personally won’t be available for at least a few months…