• Resolved fimo66

    (@fimo66)


    Hi,
    Im trying to have a line break in my soccer pool questions
    so i can have a match date on the first line , and the soccer questions on the second
    line.
    But i cant get it on 2 seperate lines
    I can see that when there is more than 79 letters it moves to the next line but if i have a space ie match date 17/10-2020 first line
    and the question on the 2 line, everything has been moved up to the first line
    sofar i only got it to work IF i have no spaces in line 2 and uses all 79 letters
    but its not all my questions that have 79 letters, so is there a solution for this ?
    any help are welcome ??

    View post on imgur.com

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author AntoineH

    (@antoineh)

    If you put the following in your wp-config.php file, then you’ll be able to put HTML in your questions (line break = <br />).

    define( 'FOOTBALLPOOL_ALLOW_HTML', true );

    Please note that you’ll also expose other parts of the plugin to injection of code.

    Thread Starter fimo66

    (@fimo66)

    Hi again,

    Thank you for the answer, solution,
    i have inserted this in my wp-config.php
    as the last line in that file

    define( ‘FOOTBALLPOOL_ALLOW_HTML’, true );

    and uploaded it via ftp and then i went into admin of footboll pool->Bonus questions
    and wrote like this:
    Match Date 17/10-2020 <br />). will england win with 2 goals or more
    which resulted in this:
    1. Match Date 17/10-2020 <br />). will england win with 2 goals or more
    I know im doing something wrong here and tried to start
    with <br> ended the line with <br /> but with same result ?

    2)Please note that you’ll also expose other parts of the plugin to injection of code.
    Do you mean that there is a “security risk with my site if i am using this code ?

    thank you for all your support

    • This reply was modified 5 years, 2 months ago by fimo66.
    Plugin Author AntoineH

    (@antoineh)

    1. Let me double check tonight. Could be that I only have this feature in my dev branch (I sometimes forget what feature is in the trunk and which one not ;)).
    2. Yes, there is a risk. I filter user input to prevent cross-site scripting (XSS) vulnerability. But this setting only affects the admin side. So, there is only the risk of a rogue admin that wants to do harm visitors or that want to try to elevate privileges. Yes, a risk, but in most situations not the biggest concern if you ask me.
    Plugin Author AntoineH

    (@antoineh)

    I checked the 2.6.7 version (current stable) and that one supports the setting.
    I used the following for the question:

    with <br />line <br />breaks

    And this shows the question over 3 lines in the front end.

    Thread Starter fimo66

    (@fimo66)

    Hi again,

    Sorry to be such a pain, but i have the same version 2.6.7
    and if i write this in the middle of the question sentense like this
    Match Date 17/10-2020 <br /> will england win with 2 goals or more

    View post on imgur.com

    i get this result,
    Match Date 17/10-2020 <br /> will england win with 2 goals or more

    so i guess im doing something when its working for you…

    Thread Starter fimo66

    (@fimo66)

    is there any where speciel i must insert the code in this file wp-config.php file

    define( ‘FOOTBALLPOOL_ALLOW_HTML’, true );

    i just inserted the code in the end of the file, could that be the reason why its not working for me ?

    im using WordPress 5.2.3

    • This reply was modified 5 years, 1 month ago by fimo66.
    Thread Starter fimo66

    (@fimo66)

    deleted post

    • This reply was modified 5 years, 1 month ago by fimo66.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    If you have the time / want to take a look yourself on my test site
    may i send you an email with login details , using the same mail adr to you
    as last time you helped me ?

    @fimo66 Please do not make that offer, even on a test site. @antoineh Would get into serious trouble here had they accepted that offer.

    If the author had asked for that access, even on a test or staging site (they did not ask, I’m just explaining) this would be my reply.

    I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials. I have flagged your account temporarily. That just means that your post will need to be approved and @ notifications from you will not work.

    https://www.ads-software.com/support/guidelines/#the-bad-stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

    Followed by this.

    There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way is a short cut that will get you into real trouble in these forums.

    But they didn’t ask and please don’t offer. You don’t want to get them into trouble do you? ??

    Thread Starter fimo66

    (@fimo66)

    im so sorry about my above post (now deleted) – didnt think about it, thanks for the clarification…

    Plugin Author AntoineH

    (@antoineh)

    LOL. Good to know I can’t volunteer for this kind of support via the forum. Don’t want the wrath of the mods upon me ??

    Now for your problem:

    i just inserted the code in the end of the file, could that be the reason why its not working for me ?

    You may try the top of the file. Not sure if it will make a difference, though.

    Or (temporarily) disable other plugins and switch to one of the default templates to rule out any interference of those.

    Thread Starter fimo66

    (@fimo66)

    yes im sorry if i caused any problems here, that was not the idea…

    i will try to insert in the beginning og the file + disable other plugins
    to see if this help.

    But did i understand you correct about how to insert the “with <br />line <br />breaks”

    so this line / questions i used as an exsample was correct – the format, the way i inserted the <br />line <br />breaks ?

    “Match Date 17/10-2020 <br /> will england win with 2 goals or more”

    that line/format with the BR code should work like i wrote in the above line ?

    • This reply was modified 5 years, 1 month ago by fimo66.
    • This reply was modified 5 years, 1 month ago by fimo66.
    Plugin Author AntoineH

    (@antoineh)

    “Match Date 17/10-2020 <br /> will england win with 2 goals or more”

    that line/format with the BR code should work like i wrote in the above line ?

    Yes, this is correct.

    Thread Starter fimo66

    (@fimo66)

    thanks i will try – and give a feedback later today ??

    Thread Starter fimo66

    (@fimo66)

    Hi again,

    Just an update, i got it to work with your code,

    the reason why it didnt work (i think) was the placement of the
    code line in my wp-config.php
    instead of having the code at the end – i moved the code to the middle og the file
    and then it worked ??

    Thank you once again for all your help..

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Line break questions ?’ is closed to new replies.