Line break questions ?
-
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 π
-
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.
Hi again,
Thank you for the answer, solution,
i have inserted this in my wp-config.php
as the last line in that filedefine( ‘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 6 years, 7 months ago by
fimo66.
- 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 ;)).
- 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.
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 />breaksAnd this shows the question over 3 lines in the front end.
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 morei get this result,
Match Date 17/10-2020 <br /> will england win with 2 goals or moreso i guess im doing something when its working for you…
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 6 years, 7 months ago by
fimo66.
deleted post
-
This reply was modified 6 years, 7 months ago by
fimo66.
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://wordpress.org/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.
- Ask for a link to the http://pastebin.com/ log of the user’s web server error log.
- Ask the user to create and post a link to their
phpinfo();output. - Ask the user to install the Health Check plugin and get the data that way.
- Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
- Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again.
- Ask the user for the step-by-step on how they can reproduce the problem.
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? π
im so sorry about my above post (now deleted) – didnt think about it, thanks for the clarification…
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.
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 ?
β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.
thanks i will try – and give a feedback later today π
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..
-
This reply was modified 6 years, 7 months ago by
The topic ‘Line break questions ?’ is closed to new replies.