Jump to:

10844 Posts in 2515 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: 25649 Views
  • vogels
    Avatar
    Community Member
    13 Posts

    Re: Simple Guestbook module Link to this post

    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

  • vogels
    Avatar
    Community Member
    13 Posts

    Re: Simple Guestbook module Link to this post

    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

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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

  • vogels
    Avatar
    Community Member
    13 Posts

    Re: Simple Guestbook module Link to this post

    Hi Marc,

    I dit flush the frontend.

    Regards,

    Gijs

  • tchintchie
    Avatar
    Community Member
    63 Posts

    Re: Simple Guestbook module Link to this post

    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

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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

  • tchintchie
    Avatar
    Community Member
    63 Posts

    Re: Simple Guestbook module Link to this post

    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

  • Euphemismus
    Avatar
    Community Member
    82 Posts

    Re: Simple Guestbook module Link to this post

    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

    25649 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.