Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Some issues encountered after porting over from PHPBB :

FaustineFaustine New
edited November 2013 in Vanilla 2.0 - 2.8

First: I find Vanilla amusing and easy to use.... but have some issues that need some guidances, amidst my limited php knowledge -- confined mainly to CSS editing in tpl mainly and stylesheets.

Have searched the forums but find it confusing.. need further help.

1) BBCode support : No native support, how to make it work with a wysiwyg type of editor? I seriously need a WYSIWYG editor for BBcode -- having came from PHPBB, not sure if HTML coding will be ok? Cleditor? I also actually need to use table, some of the WYSIWYG editors here do not have the button.

2) When inserting code snippets :

For example:

<?php
if (isset($data['fb_id'])) {
$this->db->query("UPDATE " . DB_PREFIX . "oc_customer SET fb_id = '" . $this->db->escape($data['fb_id']) . "', customer_group_id = 2 WHERE customer_id = '" . (int) $customer_id . "'");
}

The < turn into something else according Simple HTML -- " <", I supposed it was because the editor here uses HTML. Tried changing the HTML Inputformatter in config.php to BBCode, but it still was the same.

And just realised if its posted discussion, it will not show properly But now with new posting, it works.

3) Same coding above --> Doesn't wrap it self and thus it overflows out of the "discussion - comment" box into the side bar with the categories.

4) Also need to know for the Permissions --- in terms of subcategories -- do they take after the Parent category or I have to set all over again? I wished there was a way to dup the Permissions for the Sub-categories...

** Have tried the WYSIHTML editor, but it fell short of the above -- Code button and the Table buttons.

image

Kindly advise accordingly to the above 4 issues.

I'm using version 2.0.18.8.

Thanks!

** Will love to make my theme's sidebar to be on the left side as well.. so am also looking at a clean minimalist theme to use.. and build upon with some guidances too.... (change color, font.... and have some "tab" align the subcategories some distance away, rather than having it same line with the Parent category)

Comments

  • Options
    peregrineperegrine MVP
    edited November 2013

    4) you could use firebug

    probably max-width added to custom.css for the element in question

    ( for the elements that extend out of your discussion)

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    TamaTama United Kingdom ✭✭✭

    try adding
    .Comment, .Discussion { word-wrap:break-word; }
    to your custom theme file (http://vanillaforums.org/docs/themequickstart)

    There was an error rendering this rich post.

  • Options
    hgtonighthgtonight ∞ · New MVP
    edited November 2013

    Welcome to the community!

    You need to set your input formatter to bbcode to use it.

    HTML tags are stripped out for security purposes. You can disable it by disabling HTMLawed.

    All categories use the default permissions set per role. You can enable categories to have custom permissions, but I don't think there is a tool to facilitate the copying of category permissions. It is on my to do list, so a plugin might come out sooner rather than later.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    Hmm OK, let me summarize what was replied so far :

    1 and 2 : change the Input formatter to BBCode.

    But this only worked for a while. I wanna know if there is any good WYSIWYG editor to use after changing to BBCode there?

    I need the editor for creating tables and insert of syntax code to show to my cart users.

    3 :
    a) probably max-width added to custom.css for the element in question

    ( for the elements that extend out of your discussion)

    b) adding

    .Comment, .Discussion {
    word-wrap:break-word;
    }
    to your custom theme file (http://vanillaforums.org/docs/themequickstart

    4) All categories use the default permissions set per role. You can enable categories to have custom permissions, but I don't think there is a tool to facilitate the copying of category permissions. It is on my to do list, so a plugin might come out sooner rather than later.

    I was hoping sub categories' permissions will follow the parent category as that's what other forums do. So that there's no need to set each sub category separately...

    As to disabling HTMLawed.... tried before... yet the post with the phpcode : <?PHP . ... will work properly but other parts if normal text or something else doesn't work...

    Looks like I have to try again... got confused with so many things to modify and changed till I'm not sure what works now.

    ** All else in phpbb works except no WYSIWYG editor... that's y I'm looking around... mybb has it but buggy with occasional message not found error... that can't be solved...

  • Options
    peregrineperegrine MVP
    edited November 2013

    As to disabling HTMLawed.... tried before

    I would be very careful here, unless you really understand the code and the impact of a result of allowing certain tags, etc. Security means security (as in preventing unwanted users from doing things to your site, hijacking your site, gaining access to your database perhaps, you never know).

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    hgtonighthgtonight ∞ · New MVP

    There us basic support for bbcode via the buttonbar add on.

    That said, bbcode was never meant to be a full markup language. I would stick to the HTML formatter in your case.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    @hgtonight is right bbcode is not a standard, therefore how tables able are implemented isn't standard, and mostly isn't supported widespread.

    Long term you are better with html especially with with WYISG.

    grep is your friend.

  • Options

    fyi <code> is an online element. <pre> is what you use to wrap blocks.
    E.g. I display some code in-line. Or display a code snippet in pre tags:

    
    some code
    
    

    The display is entirely down to css.

    grep is your friend.

  • Options

    You set the permissions per category.

    grep is your friend.

  • Options
    peregrineperegrine MVP
    edited November 2013

    @x00 said:
    fyi <code> is an online element. <pre> is what you use to wrap blocks.
    E.g. I display some code in-line. Or display a code snippet in pre tags:

    
    some code
    
    

    The display is entirely down to css.

    never occurred to me in-line vs. block. thx x00

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    x00x00 MVP
    edited November 2013

    grep is your friend.

Sign In or Register to comment.