Skip to:
Content
Pages
Categories
Search
Top
Bottom

Text Color and Font


  • desiamerican26
    Participant

    @desiamerican26

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

    Website: http://www.desi-american.com

    Thank You
    Nikhil

Viewing 25 replies - 1 through 25 (of 27 total)

  • Robkk
    Moderator

    @robkk


    desiamerican26
    Participant

    @desiamerican26

    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
    Nik


    Robkk
    Moderator

    @robkk

    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

    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.


    desiamerican26
    Participant

    @desiamerican26

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

    Thank You


    Robkk
    Moderator

    @robkk

    @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

    TinyMCE Advanced


    desiamerican26
    Participant

    @desiamerican26

    Hi robkk,

    Thanks a bunch for your help. You help big time….Thanx a lot again 🙂


    Robkk
    Moderator

    @robkk

    Thanks a bunch for your help. You help big time….Thanx a lot again


    @desiamerican26
    yes i do help big time, haha your welcome 🙂


    desiamerican26
    Participant

    @desiamerican26

    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.


    Robkk
    Moderator

    @robkk

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


    desiamerican26
    Participant

    @desiamerican26

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

    This 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.png

    This 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.png

    How can I resolve this issue?

    Thanks you again for your time and help….


    desiamerican26
    Participant

    @desiamerican26

    The user just replied that once he highlight any part of the content, that’s when it shows with all the codes.


    Robkk
    Moderator

    @robkk

    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??


    desiamerican26
    Participant

    @desiamerican26

    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: hindustani8


    Robkk
    Moderator

    @robkk

    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.

    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,
    		)
    	);
    }
    

    desiamerican26
    Participant

    @desiamerican26

    @Robkk

    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


    Robin W
    Moderator

    @robin-w

    Please let me know where I can insert this code

    Into your functions file see

    Functions files and child themes – explained !


    desiamerican26
    Participant

    @desiamerican26

    @robkk & @Robin W

    Thanx a ton for your help.

    It is working perfectly just I guess the color thing not working properly on user end. It do highlights but when click Submit it don’t show….sometimes it do…sometimes it don’t….

    Again Thanx for resolving this issue… 🙂


    desiamerican26
    Participant

    @desiamerican26

    this isn’t working 🙁


    Robkk
    Moderator

    @robkk

    @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


    desiamerican26
    Participant

    @desiamerican26

    @robkk

    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 🙂


    desiamerican26
    Participant

    @desiamerican26

    @robkk

    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?


    Robkk
    Moderator

    @robkk

    @desiamerican26

    you can go ahead , but i seriously do not know much about this so i can barely help here.


    desiamerican26
    Participant

    @desiamerican26

    @robkk

    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 too

    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’ => 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,
    )
    );
    }


    Robkk
    Moderator

    @robkk

    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.


    desiamerican26
    Participant

    @desiamerican26

    @robkk

    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 🙂

Viewing 25 replies - 1 through 25 (of 27 total)
  • You must be logged in to reply to this topic.
Skip to toolbar