Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Simple Guestbook module

Discuss all other Modules here.

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

Page: 1 2 3 4 5 6 7 8 9 10 11
Go to End
Author Topic: 25720 Views
  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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

  • vogels
    Avatar
    Community Member
    13 Posts

    Re: Simple Guestbook module Link to this post

    Thanks Marc,

    Gonna try it out tonight..

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

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

    Kind regards,
    Marc

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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

  • vogels
    Avatar
    Community Member
    13 Posts

    Re: Simple Guestbook module Link to this post

    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

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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 html5boilerplate know-how
    For better visibility, I added borders fir IE < 9 and for >9 and the others there's some eyecandy included.

  • vogels
    Avatar
    Community Member
    13 Posts

    Re: Simple Guestbook module Link to this post

    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

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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

    25720 Views
Page: 1 2 3 4 5 6 7 8 9 10 11
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.