Text Color and Font
-
Hi,
Can someone help me with the Font and Text Color in the forums. I was looking for some plugin or something but unable to find one.
I was basically looking for if someone is posting in the forums and they need to have ifferent colors to highlight what they type…like I have seen in some forums and also if they can change the size of the fonts…..
Wordpress Version: 3.9.1
BBPress Version: 2.5.4Website: http://www.desi-american.com
Thank You
Nikhil
-
Hi robkk,
Thanks for your fast reply. I am not too good with CSS format.
I just added “Adding CSS” plugin and was trying to see some code to work with it, but unable to do it.
Is there some code generator and if not the plugin, I guess I can add it in “Style.css”
I just need when people posting in forums they have options to change color and size of font. I am unable to find something like and as for CSS I am not very familiar with that.
Thanks
NikIs there some code generator and if not the plugin, I guess I can add it in “Style.css”
I just need when people posting in forums they have options to change color and size of font. I am unable to find something
you want a code generator , so that users have an option to change font color and font size, I do not know how to do this, so i cant help much here.
as for CSS I am not very familiar with that.
everything in the documentation says all about using css ,and how to, using firebug.
give me something specific to change the font size and color ,and ILL help you there.
Hi Robkk,
Sorry if I am creating confusion. I am providing a screenshot to what I am really looking for. Please consider that. The screenshot is from phpbb forums that someone use. I am wondering if we can have that under bbpress with CSS or any plugin.
Something like where it says “Font Size, Font Family” and right above Font Family there is an option to change color for Background or Font itself.
View
http://www.mediafire.com/view/opz9070g7wb1xz5/Untitled.png#Download
http://www.mediafire.com/download/opz9070g7wb1xz5/Untitled.pngThank You
@desiamerican26 ok enable the visual editor
install this
https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/
to add font-size and font-color install tinymce advanced also
https://wordpress.org/plugins/tinymce-advanced/
heres some screenshots of tinymce advanced
Hi robkk,
Thanks a bunch for your help. You help big time….Thanx a lot again 🙂
Thanks a bunch for your help. You help big time….Thanx a lot again
@desiamerican26 yes i do help big time, haha your welcome 🙂Hi robkk,
eerrmmm, sorry to bother you again lol but just one more question. Please see the link below:
http://www.mediafire.com/view/5gosnng898fx8wu/Untitled6.png
You see all the way to the right there is Youtube logo and another video plugin right next to it….that I have is showing up…. Should I remove those plugins? Or if there is a way out, because they not showing on the backend section
Because there is nothing in the settings I can do and when I click on the youtube plugin it shows all the videos that I have under my video gallery section.
@desiamerican26 do the new buttons show up on topic and reply forms??
if it does , you can uninstall and try to find a different way to display video galleries , i guess.
i dont know this is a decision you more have to make now.
Hello @robkk,
All the buttons I needed is showing up as it is.
For the Media ones, I will contact the Author and ask them about it if anything can be done or else I will find another way to show video as per your suggestion.I just received a message from one of the user that he encountered a problem while posting on Forums.
Please see the Links below and let me know the solution:This is the setting section of TinyMCE Advanced of how I have it:
http://www.mediafire.com/view/5ycbdzwtx4yddp9/Untitled8.pngThis is the Image of forum. Right above the emoticons there is a letter “p”. I am not too sure what that is for:
http://www.mediafire.com/view/bx36jo5qjyf1y02/Untitled9.pngThis is the image of what user posted on the forum and ended up with all the codes showing up:
http://www.mediafire.com/view/7c9p4c0oa4fjqnf/Untitled10.pngHow can I resolve this issue?
Thanks you again for your time and help….
The user just replied that once he highlight any part of the content, that’s when it shows with all the codes.
This is the Image of forum. Right above the emoticons there is a letter “p”. I am not too sure what that is for:
i dont really know either, but i think it indicates what heading style you are on , you see that list box that says paragraph click Heading 2 , now your p symbol should show h2
This is the image of what user posted on the forum and ended up with all the codes showing up:
it might be because participants cant post any other html tags than what bbpress allows, im not for sure though.
easy way to test it is for keymaster to post using span style, if it works then its allowing participants to use restricted html.
The user just replied that once he highlight any part of the content, that’s when it shows with all the codes.
how??
link me to your site ,give me some demo login details and ill sign up and try it out??
Yes sir, it do look like it’s restricted to to normal users. I just posted from the admin side and it works well,
http://www.mediafire.com/view/i863wl90scee9ns/Untitled12.png
but then the emoticon don’t show up. Well, emoticon is the least of the worries….please help me figure out how to get normal users HTML access so that they won’t get this issue.
My site is: http://www.desi-american.com
You can create a login or use your facebook to login to the site as a normal user. or you can use this Id and password:
Id: ajay
pass: hindustani8but then the emoticon don’t show up. Well, emoticon is the least of the worries….please help me figure out how to get normal users HTML access so that they won’t get this issue.
i dont have any clue what could cause a problem with your emoticons, maybe your other emoticon plugin is causing issues, deactivate it see if it fixes that.
Yes sir, it do look like it’s restricted to to normal users. I just posted from the admin side and it works well
ok now your going to have to allow certain html tags, other than just allowing html to everyone. people might abuse that and add something malicious to your site.
heres a good topic to read about this. https://bbpress.org/forums/topic/allow-html-from-users/
heres a function that allows the common html tags already in bbpress.
you can take it from here , or until someone else helps you on this, i have no idea how to do this haha .
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( // Links 'a' => array( 'class' => true, 'href' => true, 'title' => true, 'rel' => true, 'class' => true, 'target' => true, ), // Quotes 'blockquote' => array( 'cite' => true, ), // Span 'span' => array( 'class' => true, ), // Code 'code' => array(), 'pre' => array( 'class' => true, ), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ), // Tables 'table' => array( 'align' => true, 'bgcolor' => true, 'border' => true, ), 'tbody' => array( 'align' => true, 'valign' => true, ), 'td' => array( 'align' => true, 'valign' => true, ), 'tfoot' => array( 'align' => true, 'valign' => true, ), 'th' => array( 'align' => true, 'valign' => true, ), 'thead' => array( 'align' => true, 'valign' => true, ), 'tr' => array( 'align' => true, 'valign' => true, ) ); }
Aaahh That hurts….this close to fix it and this major issue….. 🙁
let me try that code….but where do I have to insert it? In function.php or which one….?? I can give this a shot….if not, then I will create another thread to get help…..cuz I just need for users to have those Color and some other tags…. 🙁
Please let me know where I can insert this code?
Thank You
Please let me know where I can insert this code
Into your functions file see
this isn’t working 🙁
@desiamerican26 your suppose to edit the function , add more html tags to make them unrestricted to users.
it looks like just add the tag , and attributes that are allowed
for example if i have this
<a href="http://example.com" title="this is an example" target="_blank"></a>
with these allowed attributes
// Links
‘a’ => array(
‘class’ => true,
‘href’ => true,
‘title’ => true,
‘rel’ => true,
‘class’ => true,
‘target’ => true,
),everything would show up fine.
but if i have
<a href="http://example.com" title="this is an example2" target="_blank"></a>
with these allowed attributes
// Links
‘a’ => array(
‘class’ => true,
‘href’ => true,
),the link would not have a title , and not open in new window anymore to users
thank you for that. I will try to work on it over the weekend and let you know if any good results I get….Since I am not too good with this but I can still give it a shot….Thanks a lot again 🙂
ehh I been trying this code last few days….I am not sure if this is what I did was right?
Should I post the code here for you to see and check if it’s right?you can go ahead , but i seriously do not know much about this so i can barely help here.
that’s ok friend. you already been helping a lot….If you can or someone else can help with this…..
I myself trying to figure this out tooadd_filter( ‘bbp_kses_allowed_tags’, ‘ntwb_bbpress_custom_kses_allowed_tags’ );
function ntwb_bbpress_custom_kses_allowed_tags() {
return array(// Links
‘a’ => array(
‘class’ => true,
‘href’ => true,
‘title’ => true,
‘rel’ => true,
‘class’ => true,
‘target’ => true,
),// Quotes
‘blockquote’ => array(
‘cite’ => true,
),// Span
‘span’ => array(
‘class’ => false,
),// Code
‘code’ => array(),
‘pre’ => array(
‘class’ => true,
),// Formatting
’em’ => array(),
‘strong’ => array(),
‘del’ => array(
‘datetime’ => true,
),// Lists
‘ul’ => array(),
‘ol’ => array(
‘start’ => true,
),
‘li’ => array(),// Images
‘img’ => array(
‘class’ => true,
‘src’ => true,
‘border’ => true,
‘alt’ => true,
‘height’ => true,
‘width’ => true,
),// Tables
‘table’ => array(
‘align’ => true,
‘bgcolor’ => true,
‘border’ => true,
),
‘tbody’ => array(
‘align’ => true,
‘valign’ => true,
),
‘td’ => array(
‘align’ => true,
‘valign’ => true,
),
‘tfoot’ => array(
‘align’ => true,
‘valign’ => true,
),
‘th’ => array(
‘align’ => true,
‘valign’ => true,
),
‘thead’ => array(
‘align’ => true,
‘valign’ => true,
),
‘tr’ => array(
‘align’ => true,
‘valign’ => true,
)
);
}only thing i can do now is i guess suggest something else ,
https://wordpress.org/plugins/bbpress-post-toolbar/
it has font style, and font color .
but it hasnt been updated in years and adds 2-4 seconds extra loading time to your site.
it would be a great plugin still if it was updated or forked on github.
Thankx for this one. I have a doubt if it going to work good but I will still give it a shot and update you on this one.
Thank you for ur help and time 🙂
- You must be logged in to reply to this topic.