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
Yup so can I be bothered writing code to only allow certain HTML or do I remove all HTMLM functionality from the update I am making ?
Yup if you allow HTML the guestbook allows ALL HTML.
Thats weird because this code only alters the email addresses as they are being pulled from the database to be added to the output.
Open up templates/form.php and delete
<input type="checkbox" name="gb_private" value="1"> <font size="1" face="$VARS[font_face]">$LANG[FormPriv]</font>

open lib/add.class.php and find
$sql_usertable = ($this->private==1) ? $this->table['priv'] : $this->table['data'];

replace it with
$sql_usertable = ($this->private==1) ? $this->table['priv'] : $this->table['priv'];


and you're done. It's a hack fix but should do the job.
you put
it should be
lol probably be quicker. I will make this script though for future use.
rewriting a huge chuck of it as we speak.
I made a small booboo which should be fixed now. Redownload it and try again.
Oh these things are sent to make me better lol. I'll fix it.
Repeating yourself over and over will not get you helped any faster. If anything it's more likely to get your questions ignored.

I have editted the install.php file to reset the username and password. Not tested it yet so use it at your own risk. Simply download www.carbonize.co.uk/reset.zip and extract the file called reset.php. Upload reset.php to your guestbook folder and then visit it in your web browser.

ONCE DONE YOU MUST DELETE THIS FILE!!
Have you both edited the files?
Your host will provide you with the details of your SQL databse.
Check your SQL information. Possibly you have put in the wrong username and password in the config file.
Ok I've had a quick look at how to alter the input name but haven't tested this.

The files you need to alter are index.php, addentry.php, templates/form.php and lib/add.class.php. Simply go through them and replace gb_name with your new chosen input name. You could change it to something like gb_nom, gb_poster and so on. Just remember to be careful what you name it so that it doesn't clash with the other inputs.

In theory the automated spamming works by just sending the posting information straight to your guestbook. In this information it will be using the name gb_name to identify the name variable. As you will no longer be using this name the guestbook will receive the post but should not add it because as far as it's concerned they forgot to add the name. This technique is by no means foolproof but while it's a new concept and there are hundreds of guestbooks still using gb_name this modification should work.
Anonymous wrote:I had a job to get them to pay for the hosting site I put them with and that was only £29.99 for two years. I had a look at the sites you mentioned carbonize, and the buttons are not bad. I can make them in photoshop quite easily but I made their site as simple as possible for free, so won't be going over the top. It takes me a lot of time as I write everything by hand in notepad, but I am retired so have the time.
I have to upload the script to the same folder as the guestbook.pl which is the cgi folder, and that one is called book


Yup I do all my coding by hand except I use Topstyle pro and Ultraedit. I can't remember the last time I actually got paid for my work. As Amber says check what extension your host wants with Perl files.
 
Forum Index » Profile for Carbonize » Messages posted by Carbonize
Go to:   
Based on the open source JForum