Resource icon

Custom BB Code Manager v1.3.4

No permission to download
YouCode.php. It has to match exactly. Try that and let me know, because unless you have some other settings wrong, that's most likely your problem.
 
YouCode.php. It has to match exactly. Try that and let me know, because unless you have some other settings wrong, that's most likely your problem.

that did it, thanks. I didn't understand the naming but now it makes sense that class
KingK_BbCodeManager_BbCode_Formatter_YouCode

xen looks for the function in file
/libray/KingK/BbCodeManager/BbCode/Formatter/YouCode.php

I should have remembered that from the media bbcodes
 
I don't know why, but flash doesn't work for me.
If I insert this
Code:
[flash]http://z0r.de/L/z0r-de_3371.swf[/flash]
I get
HTML:
<object width="550" height="400">
<param value="[url]http://z0r.de/L/z0r-de_3371.swf" name="movie">
<embed width="550" height="400" src="[url]http://z0r.de/L/z0r-de_3371.swf">
</object>
[/url]

Of cause, "Do not parse BB Codes placed within this BB Code" enabled for flash.
There are no other installed addons.
 
How do i get the additional instructions to show in the help > bbcodes section? I assume these show somewhere since all the data for examples and everything else is gathered...
 
just noticed that the custom BBCode tags are shown & not parsed on the thread preview popup. has anyone found a fix for this? if they can't parse, I'd rather not show them at all.
 
Is it possible to create a custom BBCode that doesn't use an ending tag? I'm trying to implement a legacy image markup from our old board, which was just:
Code:
[image=http://www.mydomain.com/image.jpg]
 
Sorry if this has been asked before, but can we restrict certain bbcode usage with permissions? Or restrict usage to certain user groups?
 
Could you change the "example" field type of the the kingk_bbcm from VARCHAR to MEDIUMTEXT? Otherwise if we put a little too much long examples, we got this "Mysqli statement execute error : Data too long for column 'example' at row 9". 255 characters are very short.

And could you by default create a template hook listener and add this code:
Code:
        if ($hookName == 'help_bb_codes')
        {
        $contents .= $template->create('help_custom_bbcodes', $template->getParams());
        }

It will avoid to edit the help_bb_codes template.

I don't know if it's a bug, but when editing a bbcode, any modification of its tag will not work.
 
Sorry if this has been asked before, but can we restrict certain bbcode usage with permissions? Or restrict usage to certain user groups?

If you don't care to protect its content, but only about its display, you have to create a bbcode with a callback with something like this:

Code:
        $visitor = XenForo_Visitor::getInstance();
        $visitorUserGroupIds = array_merge(array((string)$visitor['user_group_id']), (explode(',', $visitor['secondary_group_ids'])));
       
    $id_ok = array(1,2,3); //place here the usergroup ids who can access


    $check_ok  = array_intersect($visitorUserGroupIds, $id_ok);
    
    if ($check_ok)
    {
        //bbcode display for authorized members
    }

    else
    {
        //bbcode display for none-authorized members
    }
 
And of course, you can still do all the same things as v1.1... you can easily add you're own Custom BB Codes via an easy to understand, very XenForo-esqu manager in the ACP (found along with Media BB Code Sites set up & Smilies). This allows you to see your codes, search your codes, enable, disable, add, edit, delete -- all from a powerful set up:

but from where i can manage the custom BBcode Manager.. I did not find the location where asked...

bbcode.webp

plz help
 
i want to embed this pdf document... Example: http://domain.com/path/to.file.pdf

Like

HTML:
http://www.fileden.com/files/2010/12/11/3035440/AmarJalil.pdf

Google Docs Viewer code can be used to embed this PDF file using this code in a HTML document:

HTML:
<iframe src="http://docs.google.com/viewer?url=http://www.fileden.com/files/2010/12/11/3035440/AmarJalil.pdf&embedded=true" width="600" height="780" style="border: none;"></iframe>

Try running this code here: http://htmledit.squarefree.com/ to see what I mean:)

but not succeeded to embed..

The discussion in this regard was closed without solution in this thread


Any help will be appreciated, please.
 
Warning: incorrect handling of user-passed info will lead to exploits!

Example using just spoiler:
Code:
[spoiler=hi" onclick="alert(document.cookie);" nope="][/spoiler]

Example using "Box" and "Spoiler" together to create a trigger that a user is likely to activate:
Code:
[box=50" onclick="alert(document.cookie);" nope=][spoiler]Hax[/box][/spoiler]
 
If you don't care to protect its content, but only about its display, you have to create a bbcode with a callback with something like this:
I think he was looking for more along the lines of being able to restrict who can actually use the BBCode tags, not who can view their output. ;)
Which is what I'd like as well...
 
Top Bottom