Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Lottery Section Help.

  • 06-05-2013 10:46pm
    #1
    Registered Users, Registered Users 2 Posts: 225 ✭✭


    Hey Guys,

    I'm helping my Local GAA out with a wordpress website. I'm not a expert by any means and I'm looking for a bit of assistance.

    They want a lottery section, A place where they can put up the lottery Numbers that have been drawn out and post them on the website.

    I can't find any wordpress plugins that are able to create custom Lotterys or even suggest a plugin that would be able to help.

    They don't want any purchasability just a way of broadcasting it and I'd like to have it somewhat neat and tidy.

    Any Help would be greatly appreciated.


Comments

  • Registered Users, Registered Users 2 Posts: 360 ✭✭witless1


    It's been a while since I used Wordpress but I often over thought problems like this. I always found the simplest (temporary!) solution would be a plain html / text file. They are obviously doing the draw outside of the website so the website is just showing the latest numbers? Either go with a new post showing the numbers or just add a widget to the main page that is plain text / html showing the latest numbers. You just have to update it weekly then.


  • Registered Users, Registered Users 2 Posts: 225 ✭✭Merger


    Yeah i'm thinking that Is what I maybe doing. Thats my backup solution and This was a last ditch effort to see if anyone had any solutions or suggestions.


  • Registered Users, Registered Users 2 Posts: 16,413 ✭✭✭✭Trojan


    The 80/20 route is simply a blog post.

    Someone could easily make you a plugin that does something with custom fields or custom types, but if you've got zero budget I'd stick to the regular post. You could disable TinyMCE if you want to prevent the users styling with WYSIWYG.


  • Registered Users, Registered Users 2 Posts: 517 ✭✭✭omega42


    if you put a bit of css in the styles.css file with something like this
    #lottery {
        width: 10em; height: 10em; 
        -webkit-border-radius: 5em; -moz-border-radius: 5em;
      }
      p {
        text-align: center; margin-top: 4.5em;
      }
    

    in the functions.php file put the following code
    add_shortcode("lottonum", "lottonum");  
    
    function lottonum( $atts, $content = null ) 
    {  
        return '<div class="lottery">"'.$content.'"</div>';  
    }
    

    Them the gaa can do the following
    [lottonum]5[/lottonum]
    

    This will create a circular div with the number in it, you can mess around with the css to give yourself colours size etc


  • Registered Users, Registered Users 2 Posts: 225 ✭✭Merger


    omega42 wrote: »
    if you put a bit of css in the styles.css file with something like this
    #lottery {
        width: 10em; height: 10em; 
        -webkit-border-radius: 5em; -moz-border-radius: 5em;
      }
      p {
        text-align: center; margin-top: 4.5em;
      }
    

    in the functions.php file put the following code
    add_shortcode("lottonum", "lottonum");  
    
    function lottonum( $atts, $content = null ) 
    {  
        return '<div class="lottery">"'.$content.'"</div>';  
    }
    

    Them the gaa can do the following
    [lottonum]5[/lottonum]
    

    This will create a circular div with the number in it, you can mess around with the css to give yourself colours size etc

    Like I said I would be an amature, Any particular location within the css file?
    I would have rarely gone near these.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 9,060 ✭✭✭Kenny Logins


    omega42 wrote: »
    if you put a bit of css in the styles.css file with something like this
    #lottery {
        width: 10em; height: 10em; 
        -webkit-border-radius: 5em; -moz-border-radius: 5em;
      }
      p {
        text-align: center; margin-top: 4.5em;
      }
    

    in the functions.php file put the following code
    add_shortcode("lottonum", "lottonum");  
    
    function lottonum( $atts, $content = null ) 
    {  
        return '<div class="lottery">"'.$content.'"</div>';  
    }
    

    Them the gaa can do the following
    [lottonum]5[/lottonum]
    

    This will create a circular div with the number in it, you can mess around with the css to give yourself colours size etc

    I think they just want the numbers posted, styling isn't important...


  • Registered Users, Registered Users 2 Posts: 16,413 ✭✭✭✭Trojan


    omega42: nice shortcode. I love making those :)

    Merger: from everything you've said, I think your best bet is just disable TinyMCE. You can do that by doing Users-> (scroll down)-> Disable "Use the visual rich editor when writing" as the user you want to disable for.

    Other options will be either too expensive for your budget, or too complex.


Advertisement