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.



Can’t make your plugin work, seems same complaint as others, i.e. appears to work but when you come back to the guestbook page there is nothing there, and only relly seesm to work when you add image
That’s fine. That’s all I wanted to know.
I love this guest book plug in, but get tons of spam. Do you have any solutions?
Nice plugin, simple, simple, simple to use!
Question: it might sound like a dumb question, but, where do I find the code to ad an introductory text or header text and localize to Spanish?
Thanks!
Hello,
Thanks so much for a great addition I’m glad I added it!
I have one problem with him, I’m using in Admin-aligned.
When I run the plugin, panel stock left-aligned and I do not want that.
I’d be happy if you can fix it next version, I’d be very happy in my add-in will be active!
Avi
http://www.imamonster.me
@Avi, @Ann P, @Bill, @Focus One Design: I’ve moved your support requests from my site-wide guestbook to here, as I’ve asked people to direct plugin-specific questions to the plugin-specific support pages. If everyone posted all their plugin questions to the general guestbook, it would pretty much lose its functionality as a guestbook
@Avi: Unfortunately I don’t have any experience with right-aligned languages, though someone else did just point out a similar issue with one of my other plugins. The problem is that none of my plugins have been properly localized yet; it’s something I plan to get to eventually, but paid jobs always have to come before free hobby programming…and I’ve got a lot of paid work I’m behind on at the moment…
@Focus One Design: This is not enough information for me to guess the issue. Have you tried it with the default theme? Have you tried it with your other plugins disabled? Have you tried it on a clean WordPress install? Your issue is almost certainly being caused by something you’ve implemented somewhere else on your site, as the plugin does work with a stock WP setup…and based on the details you’ve provided, I really have no way to guess what else you may’ve changed…
@Bill: Same reply as to Focus One Design, above…
@Ann P: Well, there are loads of anti-spam solutions for WordPress out there. In addition to Akismet, I use Bad Behavior which cuts it down quite a bit. Unfortunately comment spam isn’t something I can really do anything about – though it does seem like the spambots “like” something they see in this plugin’s submission form. Perhaps because it’s structured so similarly to the original ViperGB, a guestbook implementation that’s been around forever…
@Glenda: Because localization hasn’t been implemented yet, the only option at the moment is to just replace the strings within the plugin code (messy, I know…)
Regarding “add introductory text,” I’m not sure I really understand the question. Just put your other page content in your page template wherever you want…this isn’t something that’s really related to the plugin…
Hi there -
I’m trying to do what you advised for people who want some intro text before the guest book starts and have created a guestbook page template and inserted the guestbook function call you mention above into the basic code. It doesn’t cause an error but it’s not quite working. In the WP-ViperGB settings dashboard I chose “no page” for the guestbook because I knew that doing that would cause WP-ViperGB to override the content, but then it comes back saying GB is not activated. If I choose Guestbook as the page, then sure enough it wipes out my intro text. I’ve tried putting the code within the .entry div right after the_content() call, just outside the .entry div in the post div, outside of both of them, and no dice.
Just to be clear, here’s how I implemented things (I’m not sure if I can post code into these comments, but I guess I’ll give it a try):
`
<div class="post" id="post-”>
<a href="” rel=”bookmark” title=”Permanent Link to “>
`
Let’s see if that makes it through.
In whatever case, what do you think I’m doing wrong?
Hi, just chiming in again because I think I’m narrowing down the cause of the problem. You said to @Glenda: “Regarding “add introductory text,” I’m not sure I really understand the question. Just put your other page content in your page template wherever you want…this isn’t something that’s really related to the plugin…”
It kind of is. If I put the plugin code into the page template I made for my Guestbook page, it doesn’t cause an error but always returns that Guestbook is not activated. Since Guestbook *is* activated in the Plugins dashboard, my guess is that in the Guestbook dashboard you have to choose a page where guestbook goes, or perhaps a setting saying you’re using the php call. I could be totally off on that, but all I know is that it thinks GB isn’t activated, and I need a way to tell it it is. Does that make sense?
[...] Eklenti Ana Sayfası Geri izleme URLWeb Uzmanı WordPress Wp Eklentileri | plugins | web uzmanı | wordpress | wordpress eklentileri | wordpress plugin | wordpress wp-vipergb eklentisi | wordpress ziyaretçi defteri eklentisi | wp eklentileri | wp eklentisi | wp plugins [...]
@Tracy B: “No page” is the correct setting, and you don’t need to do anything special to enable calling vgb_ShowGuestbook() directly – as documented in the “PHP Templates” section above. The example there is a complete template, and is almost exactly how my Guestbook page is structured (my note about directing questions to the support page is echoed right beneath get_sidebar()).
I don’t know how your template is coded, but that really isn’t up to me; if you call vgb_ShowGuestbook(), it will output the guestbook. You can call that function from ten different pages and have ten different guestbooks on your site, if you like.
Hey all,
I just submitted a new version that adds localization support (finally). If anyone would like to translate it to their language and submit the po files, I’d be happy to bundle it with the plugin for others
Excellent plugin… we love it to bits and will make a donation as soon as we can.
Great work!
Alison
Your GB has been working great, however I just updated it (because WordPress said there was an update available) to version 1.1.0. After updating, the pictures people uploaded were all gone. I also created a new test post, uploaded a pic and all that shows up is the filename (ie, test.jpg).
I made sure uploads was permitted in settings. Something else happened when I upgraded. Any ideas?
Are you certain you haven’t changed anything else? The path to the photos on your site is http://cdn.turntabletendencies.com/content/wp-content/uploads/2010/08/guestbook/, but that folder doesn’t seem to contain any of the referenced images. For example, http://cdn.turntabletendencies.com/content/wp-content/uploads/2010/08/guestbook/pix.jpg.
With this update, I didn’t touch any functional code – I just wrapped strings in __(). So it seems like something else must have been changed.
Hi,
First of all thanks for this useful plugin
I’m getting some problems with uploaded images.
When i create a post with and attached image it uploads images to directory but it doesn’t set the permissions on file correctly. It’s only readable by the owner and in the post only shows the name of image.
I changed manually file permisions to 604 (readable to everyone) and it shows the image correctly in the post.
What can i do to solve this problem and make it work fine??
Thanks a lot,
Jaume
This is an issue with your server configuration, not the plugin.
Hi again,
I asked my server technical service with no fortune at all. They only send me the configurations page with all the parameters to check if they are ok.
Can anyone help on wichs parameters must i change in order to upload images with right permisions?
Thanks again,
Jaume
Sorry, I don’t know off the top of my head – try Google.
If your server is defaulting uploaded files to non-world-readable you could always just put an explicit call to chmod() in the plugin code. That’s up to you, though.
I’ve translated the .po file to simplified chinese, but the translation didn’t work. I’m using the CodeStyling Localization. It only translate file in “easy-comment-uploads/l18n” folder. I noticed there is a wpvipergb.po in the lang folder, do I need to translate that as well?
Of course. The strings in easy-comment-uploads aren’t even relevant.
Note that it may still not work though; I’ve never implemented localization for a wp plugin before, so this is a trial for me too. Once I get this (less-used) plugin working I plan to localize some of my others – so please let me know if it works!
Hi
Your plugin is working on the comments form, but I’m using the ViperGB (guestbook) plugin, which uses the comments form basically, but the Si captcha is not showing on the form (http://www.weddingsax.co.uk/feedback/guestbook/).
And when you fill out the Guestbook form and send, you get the following error:
Error: You did not enter a Captcha phrase. Press your browsers back button and try again.
Cookes are enabled (as it’s working on the usual WP comments form).
Any ideas on how I can get the two plugins working together?
Cheers,
Tracy
Hi,
I solved my own problem… realised the ViperGB form didn’t include the ID); ?> statement. So I’ve added it and it’s working fine now.
Cheers,
Tracy
Great plugin
Cool plugin.I am new to this WP thing but it is great.i hope i can be a good programmer too.Cheers!
I can’t get my translation to work! I’ve imported the .PO file into Poedit, and translated the file, saved it as wpvipergb-nl.mo (nl_NL isn’t working due to my settings, tried it with other plugins and -nl should be enough).
But anyway, translation does not show up, even not if I change default translation to wpvibergb.mo to wpvibergb-en.mo and change wpvipergb-nl.mo to wpvipergb.mo.
Anyone has ideas? I really have to get this to work.
Very Cool Guestbook i love it
Is it possible to let people sign the guestbook without having to sign in (guests)?
Hello
Nice guestbook! Will use it!
Hi !
Real nice guestbook.
Just wanna translate this text into Swedish:
………………………………………………………….
Show Guestbook
Sign Guestbook
Name:
Email:
Homepage:
………………………………………………………….
Is this possible ?
Regards
When using the reCaptcha plugin, the guestbook does not work when someone tries to sign it because the captcha cannot be displayed. reCaptcha checks all comments and because the guestbook uses comments to sign the guestbook, WP-ViperGB does not know about it. Is there any future plans to have captcha support in the next release of WP-ViperGB? or has anyone else experienced this issue and resolved it?
Hi. Nice plugin, like it very mutch. Would it be hard to add a function so that admins could comment on the guestbook entrys? I think i could do it by my self if you just give me a litle hint how to do it.
Why is that I always get this message whrn trying to leave a message on your guestbook?
Error. No has introducido ningún CAPTCHA. Vuelve a intentarlo. (You haven’t introduced any CAPTCHA. Try again)
Tracy says on his message:
“Hi, I solved my own problem… realised the ViperGB form didn’t include the ID); ?> statement. So I’ve added it and it’s working fine now.”
Could you please tell me how to do it? as mein is the same problem and haven’t got a clue how to solve it.
very very nice guest book for wp.. I’ll used this..
thanks…
@Tracy: Could you please tell me exactly what you added to make this work (and where)?
@visitor from Groningen: Please send me your .PO file and I’ll take a look when I can.
@david: …um…of course.
@Sven-Erik: Yeah, but apparently (according to Groningen above) the translation files aren’t working so for now you might just want to edit the source – or create a po file and send it over for me to test. Probably just some little thing I overlooked when implementing localization.
@Robert: In _output_guestbook.php, try inserting the following between lines 302 and 303 (before the div, after the endif:
<?php do_action('comment_form'); ?>Let me know if that works, and if so I’ll submit it as an update.
@A: Sounds like you want threaded comments, which I don’t have plans to implement.
@diego: You haven’t said what captcha plugin you’re using…but try what I recommended to Robert above.
Hi Justin,
I manually added the code.
For Si Captcha to work you need to have the [code]ID); ?>[/code] tag inside the comments form.
On the _output_guestbook.php insert the following code:
[code] ID); ?>[/code]
right before the submit button code.
[code]
Comment moderation is in use. Please do not submit your comment twice -- it will appear shortly.<input style="width:100px;" name="submit" type="submit" id="submit" value="" />[/code]
I hope this comes out, otherwise email me.
Cheers,
Tracy
@Justin:
Thanks for getting back to me, much appreciated. I inserted the code you suggested and the Captcha was able to be displayed. However, after completing the guestbook form and correctly inputing the Captcha, the ‘Send’ button would not work. I then saw that the ‘Send’ button’s ID(submit) did not match the ID(submit-alt) of what the Captcha was expecting. I then changed the ID of the ‘Send’ button to match the Captcha’s. The button worked but even after inputing the Captcha correctly, I would be redirected to the main guestbook page but with no comment shown. Looking at the address bar would reveal ‘rerror=incorrect-captcha-sol …..’. When I tried to sign the guestbook again, the following message appeared: “ERROR: That reCAPTCHA response was incorrect.” above the Captcha. So it seems to me that it is not able to recognize that the Captcha is being typed correctly. Feel free to let me know if you need any more information.
Thanks,
Robert
sorry this is the link, please help me and tell me what happen
i install the guestbook in my page but look what happen. http://www.ccrescate.com/guestbook/ , i dont know what to do please help me
Great work Justin! It does exactly what I want.
One Question: Is there a simple solution to add the Smiley’s Theme Toolbar (http://wordpress.org/extend/plugins/smilies-themer-toolbar/) to the form. I’d like to give our visitors an easy way to add smileys to the guestbook entries.
Thanx in advance
El Duderino
@Tracy, @Robert: I just submitted v1.1.3 which should be compatible with SI Captcha.
@Eliel: You’ve not described your issue or asked any specific question.
@Duddha: Couldn’t really tell you without trying it out explicitly, but in general you’ll need to look through that plugin to find what filter(s) it’s using and make sure the guestbook calls them where necessary.
Justin! Seems like your modification for implementing the compatibility with SI Captcha now also enables the Smilies Theme Toolbar… Since I don’t like it being above the textarea I moved it downwards like this:
:
ID); ?>
<input style="width:100px;" name="submit" type="submit" id="submit" value="" />
<input type="hidden" name="comment_post_ID" value="" />
<input type='hidden' name='redirect_to' value='' />
One further question:
I am just migrating an old guestbook to the WP-ViperGB and we have about 200 entries in there already. What I would like to see in the next version would be a pager e.g. like this
[<<] [] [>>]
Cheers
El Duderino
@Justin: Thanks for the recent update, that fixed the issue with the Captcha.
i already instaled the guestbook in my page but look what happen. http://www.ccrescate.com/?page_id=443, i dont know what to do please help me, my issue is that i instaled the guestbook and it appears in the page and in my sidebar too, and i dont want it in the side bar, what can i do?
Hi Justin,
I just added the Digg-Style Pagination (http://www.strangerstudios.com/sandbox/pagination/diggstyle.php) to the _output_guestbook.php.
That way I have the ugly and endless chain of single page link navigation replaced with a fancy pagination. If you are interested in the modifications I’ve made, just tell me how to share them.
Cheers
El Duderino
Hello, great job on the plugin however…
I am trying to get multiple guestbooks on my website using this plugin and I found that tutorial on how to do it here but can not seem to get it to work. Could you give me some simple directions on what to do to get it to work please?
Either reply to this comment or email me: admin@team-vanity.eu
Many thanks,
Elliot.
Hi I can not install your plugin, apparently is not compatible with the latest version of WordPress, I would be very grateful if you will continue with the development of such an excellent application.
Hello
I made a translation into Russian: http://rghost.ru/3843718
But the Russian language only appeared when I replaced the string in the file wp-vipergb.php:
load_plugin_textdomain(WPVGB_DOMAIN, dirname( plugin_basename(__FILE__) ) . ‘/lang’);
to string:
load_plugin_textdomain(WPVGB_DOMAIN, ‘/wp-content/plugins/wp-vipergb/lang/’);
But the Russian language in some places still do not appear: “Settings”, “Options saved.”, “Logout”. I do not know why (I’m not an expert PHP yet).
@Duddha: Sure – feel free to email me the changes if they’re simple, or your full modified source, and I’ll be happy to toss it into the main plugin
(If you send the source please mark each change with i.e. a searchable comment though).
@Eliel: Try it with the default theme and all other plugins disabled. I’m 99.9% sure this is a bug in your theme, not the plugin.
@Elliot: I wrote the above instructions as clearly as I could, so if you couldn’t get it to work I’ll need a more detailed description of what you tried and what exact problem you encountered. It should be quite straightforward though: just call the function in whichever template(s) you want the guestbook to appear…
@Jorge: This is not descriptive enough of an error report for me to address.
@Dmitriy: Thanks for pointing that out. I just submitted v1.1.7 which *should* fix this, as well as those 3 untranslated strings. Please let me know, and if so, send over your localization file so I can include it for others!
Hi Justin!
Great job. Those 3 untranslated strings now translated. But there is still a little work. In my comment I did not say the following. It is necessary to modify the file _admin_menu.php.
YF
1. There is a text “WP-ViperGB Settings” in line 61. The easiest way to replace it with “WP-ViperGB”. Or replace this line like this (for example):
WP-ViperGB
I prefer the first solution (because word order may be different in different languages, in Russian vice versa is correctly).
2. Need to translate words “Manage Entries” in line 63. It will have to add them to wpvipergb.po.
3. Need a translation of the button “Save”. It will have to add them to wpvipergb.po.
4. Finally remained very small. It is necessary to translate the text starting from line 109
))) Also need to add all of this to wpvipergb.po (text, button and links names). This is important if you want someone to read it
)))
Once you make these updates, I finalized the translation and send files to you.
Regards.