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.

All other Modules /

Discuss all other Modules here.

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

Simple Guestbook module


Reply


85 Posts   36266 Views

Avatar
Euphemismus

Community Member, 82 Posts

31 August 2011 at 9:00pm

Edited: 31/08/2011 10:43pm

I've tested the new (pre-)version 1.1 with SS 2.4.0 and SS 4.4.5 - seems, there are no real errors at the moment.
There's one issue with the dataObjectManager and the first receipt field in the configuration. Nothing too heavy.
So the release will be today or tomorrow ;)

//Edit#1
DataObjectManager -> Ok, I should always use the latest version ;)

//Edit#2
Release done ;)
Have fun with the latest version. Also keep in mind that there's a bugtracker: http://bug.aschmann.org

Kind regards,
Marc

Avatar
vogels

Community Member, 13 Posts

31 August 2011 at 11:58pm

Thanks Marc,

Gonna try it out tonight..

Avatar
Euphemismus

Community Member, 82 Posts

1 September 2011 at 1:24am

And keep in mind, you'll need the dataObject_manager module, too.
That's a new addition from s!m

Kind regards,
Marc

Avatar
Euphemismus

Community Member, 82 Posts

5 September 2011 at 11:19pm

Good morning all :-)

I was just wondering if there are any more needs for additional features for the guestbook module.
Since the current module works fine for me, there might be a lot of things missing for people having it in daily use.

Because of this, I'd like to open discussion on features and changes that, in your opinion, should be added to the module.

Please feel free to post your wishes :-)

Kind regards,
Marc

Avatar
vogels

Community Member, 13 Posts

6 September 2011 at 5:50pm

Edited: 06/09/2011 5:52pm

He Marc,

Just installed the new version of the guestbook.. after some hiccups it now works. (there's a little mistake in the _config file, on line 14 there missing some //, plus i didn't have the spam protection module installed)

The spam protection with http:// block works very well, and it’s nice to have emoticons to use now.

Some little questions still,

1) Can i add emoticons myself (just adding the img-file and add the code in the list, haven't tested it yet)
2) The Emoticons map "link" doesn't work in firefox (it works @ your site, what can be wrong)
3) I still don't have the color difference in -IE8 and that is really a pain in the ass..

Still very nice work,

Regards,

Gijs

Avatar
Euphemismus

Community Member, 82 Posts

6 September 2011 at 7:34pm

Edited: 07/09/2011 2:03am

Hi Gijs,

right - the config still has PHPCaptcha enabled.
You can add Smilies just by adding the codes:

'<code>' => '<smilie_name>',


Then use the smilie name as image name:

/img/emoticons/<smilie_name>.gif


And place it into the image folder where the other smilies are.

I'm not sure what could go wrong with the link on your site. I've built it like this:

<a href="{$Link}doAction?do=showSmilies" title="<% _t('Guestbook.ss.SHOWSMILIESCODE', 'emoticon map') %>" class="popForm">
<% _t('Guestbook.ss.SHOWSMILIESCODE', 'emoticon map') %>
</a>

This is also really basic: I'd have to add a clickable link for the map to place the appropriate code into the text, maybe.
Did you flush your browser-cache and also the complete SS Cache (?flush=all)?
Because I've refactored some of the javascript/jQuery methods and sometimes those tend to be in browser cache for a long time.

@ colors: It is quite difficult to debug this, since the styles are correct and I couldn't find a simple solution, yet. And I don't like CSS-Hacks ;-)

// EDIT#1
The CSS Problem in IE <9 is caused by a change in the templates. I used a HTML5 <section></section> element instead of a div container as wrapper for the guestbook. IE does not understand this and therefore kills all styles with #guestbook ID.

Did I mention that I hate IE?

Since all other browsers handle such elements just as normal HTML elements and therefore accept styling *sigh*
I'll switch back to a simple div. Since blocklevel elements aren't allowed within spans. The whole #guestbook is just a wrapper for my styles, to keep the CSS overall clean. This is just ridiculous to need an additional div there -.-
Did I also mention that I don't like tons of elements when all you need is just one?
By the way I also removed the div around comments - now the list has the class and the headline is a <lh></lh>. Semantically more correct than my previous attempt. Still I think there's too much overhead.
Will be available as preview version, soon - http://ssmaint.aschmann.org is my development playground ;-)

// EDIT#2
I also added a small piece of code with conditional comments to the main template (guestbook.ss) where IE6 to IE8 are identified and set classes for the #guestbook container.
This helps dealing with those browsers in CSS without hacks. I strongly suggest for everybody to base new templates on [url=http://html5boilerplate.com]html5boilerplate[/url] know-how :-)
For better visibility, I added borders fir IE < 9 and for >9 and the others there's some eyecandy included.

Avatar
vogels

Community Member, 13 Posts

7 September 2011 at 6:34pm

He Marc.

Another question. My website where I use the guestbook is on a subdomain of my real domain (but the website has it's own internet adres www...nl). When I want to keep that adres in the adres bar (frame forwarding) the guestbook doesn't work, it shows but I can't post a message, I get this error:

"SecurityID doesn't match, possible CSRF attack."

Any idea where this comes from.

Regards,

Gijs

Avatar
Euphemismus

Community Member, 82 Posts

7 September 2011 at 7:22pm

Hi Gijs,

this is an internal Silverstripe security mechanism. Nothing to do about this, I fear.
btw. it's not really good to do things like loading pages in frames. Why not link the guestbook's subdomain and open in a new window?

Kind regards,
Marc