If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Carbonize
Forum Index » Profile for Carbonize » Messages posted by Carbonize
Author Message
If you have AGcode allowed you can use AGcode in comments. You obviously have HTML in posts diabled which is the intelligent thing as it is exploitable and so if AGcode does not provide you with the tgas you need in your comments follow these instructions.

1 - Open up lib/comment.class.php.

2 - Locateand delete it.

3 - Save and close the file and thats it.
It's a fix not a script. Smallpoint but saying script could confuse some people. Maybe I should just upload a copy of the 2.2 sessions.class.php file for them to replace there's with as an easier method.
Only he can enter comments though so no worries there. I'll look at which line you need to edit later today.
download the files again and reupload the original of the file you editted. If it still errors then we know it was your host.
OK my image verification, whilst being good, doesn't work for everyone so here is a simple fix. This will only work until they catch on. This is written for 2.3.1. If you use 2.2 the idea is the same except instead of being called gb_name it is just called name. Open addentry.php and findnow in that line you want to add something to the end of the gb_name such as 123 to make them both read gb_name123. Please do not use 123 as this is just an example. If everyone adds the same then the spammers will just use that. The more abstract the better. Now open up templates/form.php and findand change every gb_book in there then findand again add the text onto the end of gb_name. Save both files and you're done. remember you MUST ADD THE SAME TEST TO THE END OF EVERY INSTANCE OF gb_name.

Next open lib/add.class.php and locateand again edit the gb_name.

If you are using the guestbook as a module in PHP Nuke or similar you neeed to also open index.php and edit
Hmmmmmmmmmm he needs to make me a moderator of the required forums though. I'll email him again.
$MESSAGE just says to insert the text the user posted. $MESSAGE is just text with no formatting, the formatting is done by the HTML that is in the template. If, for some reason, you want to edit the text in $MESSAGE you would find it in lib/add.class.php.
I'd say because there are a lot of scripts on here. I emailed the webmaster once asking to be made moderator. I recieved an email from the board but the link did not work. I do believe he has recently done a "silent" update to 2.3.1 to fix an exploit but I may be wrong.
I'll throw something together for you sometime this weekend.
$MESSAGE is in entry.php
Comments can be styled in templates/com.php.
1 - open up templates/entry.php and remove
2 - Same file find and replace with then remove
3 - Can't be arsed explaining that one
4 - Edit body.php
For one entry the method I used is fine where you can use lentry['name'] etc. For more than one entry I would have to handle the output via the php script meaning that if they were to go in a table I would have to create the html for the table within the php script.
The answer to all of your questions lies in the templates folder. edit them.
edit templates/com.php
 
Forum Index » Profile for Carbonize » Messages posted by Carbonize
Go to:   
Based on the open source JForum