Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[NEW PLUGIN] AJAXReview v1.0

Quote Reply
[NEW PLUGIN] AJAXReview v1.0
Hi,

I'm pleased to announce the first commercial plugin I've developed using AJAX :) This is a plugin I've wanted to develop for a while - but was still learning the AJAX (and trying to find the time =))

http://www.ultranerds.com/...ion/AJAXReview_L278/

What does it do? The best way to see is by going here:

http://www.ultranerds.com/...iew_L278/#add_review

If you complete the form (don't worry - I'll delete any test reviews people want to submit) ... you will see it never actually leaves the page. There is built in error checking, and also the option (not required) for the ReviewCAPTCHA plugin I wrote a while back (just to stop any prolific spammers Whistle)

The price is $40, and comes as part of both the ULTRA Package, and ULTRA PRO Package.

More details can be found on the above URL.

As always, please let me know if you have any questions.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi Andy,
the plugin does not work for me on detailed pages.
It says "'Your review has been accepted.", but there is nothing to validate in the admin section?

Matthias


Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi,

Please email over FTP and GLinks details, and I'll take a look for oyu. I would imagine it has something to do with your language on the site (the errors it checks for are hard coded ... I may end up making it so the installer just updates the .js file with the correct language files though, if lots of people have this problem)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi,

The bug turned out to be a weird thing going on with review.cgi. If the person was logged in, but we still sent a value for Review_GuestEmail (and/or Name) ... then GLinks complained the values could not be empty. I've fixed this up now, so should work fine (new version can be downloaded from the Members Area)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hm...doesn't work on my site. When I click "Add review" some image show left to the button and then nothing happens.

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [NEW PLUGIN] AJAXReview v1.0 In reply to
Please send over FTP & GLinks details, and I'll take a look for you tomorrow.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi Andy,
since I use this plugin, I have some issues with german umlauts
They are changed to something else
ö = ö
ä = ä
ü = ü

Is there a way to solve this problem?
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGIN] AJAXReview v1.0 In reply to
MMm, been looking into this for the last hour or so, but can't seem to find a way to fix it (yet ;)) ... will keep you posted.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] [NEW PLUGIN] AJAXReview v1.0 In reply to
Ok, a temporary fix is to replace review.cgi with this:

Code:
#!/usr/bin/perl
# ==================================================================
# Gossamer Links - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,068,085,094,083
# Revision : $Id: review.cgi,v 1.7 2005/03/22 08:18:05 jagerman Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================

use strict;
use lib 'PATH';
use Links qw/$PLG $IN/;
use Links::User::Review;
use Unicode::MapUTF8 qw(to_utf8 from_utf8 utf8_supported_charset);


local $SIG{__DIE__} = \&Links::fatal;

Links::init('PATH');
Links::init_user();


my $contents = $IN->param('Review_Contents');
$contents =~ s/([\200-\377]+)/from_utf8({ -string => $1, -charset => 'ISO-8859-1'})/eg;
$IN->param('Review_Contents' => $contents );

# print STDERR "contents is not $contents \n";

#print STDERR "BLA";

if ($PLG->dispatch('check_request', \&Links::check_request)) {
$PLG->dispatch('handle_review', \&Links::User::Review::handle);
}

Replace "PATH" with the proper path your your GLinks admin folder.

I just tested this on ultranerds, and it works fine (the charachters show up fine)

Ideally, I want to find a jQuery fix for this - but just waiting to hear back from a pro to see if they can suggest anything =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi,

I've just uploaded a new version of the plugin. This has:

1) Built in setup when installing, so it gets the values from your "language" file, instead of being hard coded (this is so the JS script knows what errors to look for, and to return back when there is an error)
2) Made it so the inline script shows an alert when the email is invalid.
3) Because some people use the normal user.cgi login, while others use community.cgi - I've made it so you can enter a phrase (only found on your login page), which wiill tell the script if the user is not logged in - and report it back)

I'm still trying to work out the best way to sort this unlat issue, but so far havn't come up with any solutions ( appart from my example above, which requires editing review.cgi)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] [NEW PLUGIN] AJAXReview v1.0 In reply to
Matthias70 wrote:
Hi Andy,
since I use this plugin, I have some issues with german umlauts
They are changed to something else
ö = ö
ä = ä
ü = ü

Is there a way to solve this problem?
Thanks

Ok, I've just released version 1.1. This should fix the unlat issues, as well as a few other bugs that have popped up. If anyone else has any more issues, please let me know.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi Andy,
even with the new verson I still have these probs
ö = ö
ä = ä
ü = ü

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [NEW PLUGIN] AJAXReview v1.0 In reply to
Mmm, will have a look after dinner.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] [NEW PLUGIN] AJAXReview v1.0 In reply to
Weird, the update I made didn't get downloaded *blush*

Will fix that up tomorrow.

I've made the changes to your .js file now manually, so should hopefully work.

I lost the test login details you sent me though - so afraid I can't check it :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Ok, the updated version should be on the site now - must have not uploaded it, as I had the right version on my PC Whistle

I'm of for the night now - will check tomorrow to see how the modified version works for you :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [DeadMan] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi,

I've now uploaded a version that fixes the issue with unlat and other foreign charachters. Please note, it requires Unicode::MapUTF8 to be installed - as that is how we convert the text to the correct charachters (I tried doing it simply in the JS code, but had no success with it :()

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Hi,

Have one problem and one question. My review system got spammed. At this time, I've put option that user must be logged in to post reveiw. However, when user who is not logged in write reveiw and click on "Send it" it got message "Your reveiw has been sent" although reveiw hasn't been send and there is no reveiw in admin system.

Is there any way when user try to put reveiw and it is not logged in to say "You must be logged in to post reveiw"?

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [NEW PLUGIN] AJAXReview v1.0 In reply to
Try installing the most current version - I believe it will accomidate for this :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] AJAXReview v1.0 In reply to
Ok. It works ok. Thanks ;)

Regards.

UnReal Network