View Full Version : Anti-Comment-Spam Link Back query
artwalk
05-29-2005, 08:43 AM
I was able to get the Anti-Comment-Spam-Addon Version 1.0.1 up and running but I ran into something I couldn't solve.
With an incomplete or incorrect code input, the link back to the form instead links to the main index.php. Ideally, it should direct back to the comment-popup window.
And then I found this changelog for the anti-spam addon which basically tells me that I shouldn't be experiencing this anymore:
-------------------------------------------------------------------------
--- Changelog -----------------------------------------------------------
-------------------------------------------------------------------------
version 1.0.1, May 21, 2005, changed by Connie Müller-Gödecke
-- changed the link back to the form in the popup-comment-version
so after incomplete input or wrong CAPTCHA-Data the link directs back
to the comment-popup window
-- $lang_comment_close_window not longer needed
I'm not sure what I missed with the procedure. Can anybody point to me what I did wrong?
Joe[y]
05-29-2005, 08:45 AM
i doubt you did anything wrong. call this to Connie's attention as she wrote the addon I think. She may have just made a mistake when rezipping up the addon!
artwalk
05-29-2005, 08:47 AM
I think I should have posted this under the Help topics. Hope Connie sees my re-posted thread there. Thanks!
raminia
05-29-2005, 08:51 AM
yes. do not double post plz.
artwalk
05-29-2005, 09:03 AM
Sorry 'bout that.
Connie
05-29-2005, 01:08 PM
So, I downloaded the ZIP from the place where I had last published it:
http://www.hafenfotografen.de/download/anti_comment_spam_addon_v101.zip
I installed it at http://www.hafenfotografen.de/pixelpost1/ following the readme-file
I tested it, and you are not right: if you really followed the readme-file and entered the code in your comment_template.html like it is said in the readme, you will run into the following situation:
http://www.hafenfotografen.de/pixelpost1/screenshot/spam1.jpg
you will get this message and as you can see, the link goes back to the comment-popup
http://www.hafenfotografen.de/pixelpost1/screenshot/spam2.jpg
and here you will land after clicking the link...
you can test it at my test-installation:
http://www.hafenfotografen.de/pixelpost1
please, check if you really made all the necessary changes and give me an URL to check your installation!
artwalk
05-31-2005, 02:33 PM
Hi Connie,
First of all, thank you for taking time out to helping me.
What's weird though is that I downloaded the add-on zip file again and re-did the mods in a fresh pixelpost-dark template BUT I'm still getting the same incorrect results for the comment link back. :-(
Ok, let me run through you the things I did:
1.) First I opened the comment_template.html in the pixelpost-dark folder. Inside the form code looks like this:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_comment_template_orig.jpg
2.) Then with the readme.txt instructions, I replaced the highlighted code with this:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_comment_template_mod.jpg
3.) I opened lang-english.php and added this code:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_language_eng.jpg
4a.) I then uploaded the modified comment_template-file to the pixelpost-dark folder.
4b.) Also uploaded the file anti_comment_spam.php to the addon-directory
4c.) And uploaded the modified language-file to your language-directory.
5.) Trying out the popup comment after all these mods, I see this result:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_popup_comment_result.jpg
The spam secure code does not appear.
6.) Thus, I tried inserting error_reporting(0); inside the spamsecure.php file.
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_spamsecure_errorreporting.jpg
7.) The spam secure code appeared after this mod:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_spamsecure_ok.jpg
8.) Then I tried typing a wrong code to see how the comment link back would look:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_spamsecure_wrongcode.jpg
9.) It takes me to this window and when I hover over the "Please click to be transferred back" link, the status line would say, "http://www.renriquez.com/pixelpost/index.php?showimage="
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_commentlinkback.jpg
10.) Clicking on this link then takes my comment box to the main page:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_commentlinkback_notgood.jpg
Do you see any mistakes in my modifications? Clearly, I'm missing something here.
Connie
05-31-2005, 02:44 PM
artwalk,
I do not see to where you uploaded the spamsecure.php
where is your spamsecure.php sitting?
It must be in the includes-directory...
is it there? if yes, ok
but please check if you deleted the spamsecure.php from the admin-folder
if that is still there, it will have priority to the includes-folder...
Joe[y]
05-31-2005, 02:47 PM
as your linkback ends with index.php?showimage= then I assume you are simply missing the image ID from the link. Find in the files where this is defined and you should find the problem.
artwalk
05-31-2005, 02:52 PM
artwalk,
I do not see to where you uploaded the spamsecure.php
where is your spamsecure.php sitting?
It must be in the includes-directory...
is it there?
Hi Connie,
Yes, the spamsecure.php file is in the includes directory:
http://i6.photobucket.com/albums/y229/talatalahon/pixelpost/x_spamsecure_location.jpg
Connie
05-31-2005, 02:54 PM
I checked the code, I checked the source-text of the site, I checked with Internet Explorer and Opera and FireFox and it does not work, but it's the same code as at my installation...
please give me some information about your server and PHP etc.
Marlyse had a similar problem... :?:
artwalk
05-31-2005, 03:15 PM
I just did now.
Re-reading readme.txt's #6 instruction, I realized that spamsecure.php should also be in the admin-folder. I guess I thought otherwise because I never used the anti-comment-spam mod with PixelPost 1.3. It's only now I've installed PixelPost and I'm starting at v1.4.
6. upload the file spamsecure.php to the includes-directory at your webspace.
if you used the anti-comment-spam-modification with PixelPost 1.3,
you can delete the file spamsecure.php in the admin-folder.
Surprisingly though, I still get the same result.
Connie
05-31-2005, 03:23 PM
artwalk,
it should not be in admin folder, it was there with version 1.3
now it must be only in the includes-folder
but see my message above, I am clueless
which server you have? apache of WIN?
artwalk
05-31-2005, 03:29 PM
Hi Connie,
Here are my site info:
Pixelpost Version
You are running version 1.4.1 of Pixelpost. Released 24 April 2005.
Latest pixelpost version: 1.4.1 - Download the latest version from Pixelpost.org
Looking for help or want to give feedback, please step into pixelpost forum.
www.pixelpost.org/forum/
Host Information
PHP-version 4.3.11 (Pixelpost's min requirement: PHP version 4.3.0)
MySQL version 4.1.9 (Pixelpost's min requirement: MySQL 3.23.58)
GD-lib bundled (2.0.28 compatible) with JPEG support
Server software Apache
EXIF Pixelpost is using exifer v1.5 for EXIF information.
Paths
Guessed imagepath: /export/home/renriquez.com/public_html/pixelpost/images/
Configured Imagepath /export/home/renriquez.com/public_html/pixelpost/images/
Image Directory: OK - Can we write to the directory? YES.
Thumbnails Directory: OK - Can we write to the directory? YES.
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK
but see my message above, I am clueless
Guess I'll remain the unlucky one. Thanks for everything. :-)
Connie
05-31-2005, 03:37 PM
well, in the moment I see nothing what could be the reason for that.
But I will put this on the bug-list, if I find a solution I will inform you, ok?
artwalk
05-31-2005, 04:56 PM
Since I just couldn't get this off my mind, I re-installed a fresh PixelPost and got it to work. Then I installed the addon and whadayaknow, it's still the same! Haha! I noticed that even if I entered the correct code, the link back would still go to http://www.renriquez.com/pp/index.php?showimage=.
Ok, I'll stop now. Whew! :-)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.