Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Simple Guestbook module


Go to End


85 Posts   50234 Views

Avatar
vogels

Community Member, 13 Posts

3 August 2011 at 12:04am

Hi Marc,

Thanks for the quick reply. I'm gonna try your new version, hope that will keep the spammers away.

And i'm looking forward to a version with "emoticon" option..

Regards,

Gijs

Avatar
vogels

Community Member, 13 Posts

3 August 2011 at 4:53am

Hi Marc,

I installed the new version (V1.0.3). Do i have to add the text that need to be blocked somewhere?

Like Bertjan wrote, all my spam messages incluse http://, but when i type this in and press enter, the message gets posted.
The same for the mathspamprotection, you can just skip the question and still your message gets posted.

Hope you can help me whit this.

Regards,

Gijs

Avatar
Euphemismus

Community Member, 82 Posts

3 August 2011 at 11:25pm

Hi Gijs,

did you flush the cache for the frontend? (added ?flush=1)
I'd say the new options didn't make it there.

I'm also checking this on my testsite later today.

Kind regards,
Marc

Avatar
vogels

Community Member, 13 Posts

4 August 2011 at 4:51am

Hi Marc,

I dit flush the frontend.

Regards,

Gijs

Avatar
tchintchie

Community Member, 63 Posts

8 August 2011 at 7:17am

Hi Marc!

I´ve just installed your GB module and ran some test-posts (worked fine so far). Only thing that cought my eye was that this module doesn´t seem to refer to my basic typography.css. meaning the headlines e.g. <h1> doesn´t look like it´s supposed to on the GB page. Is there a fix to this or do I have to manipulate the guestbook.css to fit the typo of the rest of my page??

regards
tchintchie

Avatar
Euphemismus

Community Member, 82 Posts

9 August 2011 at 1:03am

Hi tchintchie,

you should change that in a separate guestbook.css file in your mysite/css/ directory. You can copy the contents of the original css file from the module you want to override/change into that file.
This will override the values from the module's file, since it is loaded directly after.

		// check if there's an overriding css file
		Requirements::css( 'guestbook/css/guestbook.css' );

		/**
		 * this allows to have only the overridden styles in one file. And no
		 * more merging after a new version with css changes is released ;-)
		 * careful: One more request will be made until you enable the css
		 * file merge ( http://doc.silverstripe.org/recipes:combining_files )
		 */
		if( Director::fileExists( project() . '/css/guestbook.css' ) )
		{
			Requirements::css( project() . '/css/guestbook.css' );
		}

@ Gijs: I'll have alook into that.
Somone tried to hack my Apache2 via dav_svn and so I'm changing a bit of my infrastructure and also from SVN to Git.

At the moment I've already implemented most changes like the emoticon replacements etc.
I'm still a bit stuck, since the frontend presentation of the post's data only shows images as HTML code and therefore need to find a "balance" between XSS/SQLinjection/security and nice formatting ;)
Also I need to add the emoticon replacement for comments on entries.
The PHPCaptcha is also added, but I need to check the whole thing with a later versions of SS for compatibility.

I'll keep you informed as I am progressing.

Kind regards,
Marc

Avatar
tchintchie

Community Member, 63 Posts

10 August 2011 at 6:50pm

Hi Marc!!

Thx for the quick help! Here´s some noobish questions though (since I am quite a noob I guess):

I don´t have a css directory in the mysite folder....do I have to create one or did you mean the css folder in my themes directory?? Also where do I have to put your sample code?? I tried the _config.php but that just resulted in an error. I´m a little clueless here...

once again: the module works fine !!:-) I just don´t get my typo css to work
regards
tchintchie

Avatar
Euphemismus

Community Member, 82 Posts

10 August 2011 at 7:58pm

Hi tchintchie,

the code was just an explanatory sample from the module's source, to show how I check for css override files.
Just put your own "guestbook.css" into /mysite/css - if the folder does not exist, create it first.
into the guestbook.css you can place the overrides you need for typography.

Kind regards,
Marc