Resource icon

Custom BB Code Manager v1.3.4

No permission to download
http://www.gamerpet.com/forum/threads/the-walking-dead.8/#post-19

I'm using Custom BBCode Manager. I first installed another one but I uninstalled that one. As I have said it used to work so I'm not sure what is causing this.
http://www.gamerpet.com/forum/threads/test.9/#post-20
It's working.

Edit: source of the problem; XenForo parser (setting an alignment on several lines will repeat the align Bb Code to every lines and will break other inner standard Bb Codes.) Use the TinyFix to solve that problem.
 
Oooh, I COMPLETELY missed that setting in BIMG. Thanks Cedric. Saved my bacon once again.

Dropped you a few questions in that thread, but I've got one for you on creating a code:

Is it possible to create a button that links 2 functions together? Or create a code that does the same thing? In place of my auto-spoiler certain area problem, is it possible to create a button on the toolbar that would automatically create an IMG code wrapped in a Spoiler. I've been futzing around with the code editor but I can't seem to get it to work.
 
Dropped you a few questions in that thread, but I've got one for you on creating a code:

Is it possible to create a button that links 2 functions together? Or create a code that does the same thing? In place of my auto-spoiler certain area problem, is it possible to create a button on the toolbar that would automatically create an IMG code wrapped in a Spoiler. I've been futzing around with the code editor but I can't seem to get it to work.
  • 1 button => 1 bb code, unless you find a way for the button to read your mind ^^
  • ... for the wrapper it's automatic. So... I don't understand your question. There's nothing to do with the buttons. Configure a wrapper for the XenForo IMG tag in the BBCM global options.
 
  • 1 button => 1 bb code, unless you find a way for the button to read your mind ^^
  • ... for the wrapper it's automatic. So... I don't understand your question. There's nothing to do with the buttons. Configure a wrapper for the XenForo IMG tag in the BBCM global options.

Ah. But you can't have more than one IMG code, right? E.g. I couldn't have one for regular pictures and one for these special pictures under a separate button that automatically get wrapped in the spoiler.
 
Ah. But you can't have more than one IMG code, right? E.g. I couldn't have one for regular pictures and one for these special pictures under a separate button that automatically get wrapped in the spoiler.
Hey if you don't want me to curse you, just read the last version description. This update (1.3.7) was for you. Have a look at the new wrapper callback option for default XenForo tags. There's is a full documented callback example inside the extra directory. In other words, you can configure the default img wrapper behaviour per forums after this. So, no need another buttons that will confuse your users.


Just installed 1.3.4, am getting:



... when selecting the "BB Code Manager" from the main backend home menu.

I have applied the permission as outlined here:

http://xenforo.com/community/threads/custom-bb-code-manager.27125/page-19#post-479360

-- hugh

There is an index controller for sure. Check if you have correctly uploaded the files. And the last version is here.
 
Hey if you don't want me to curse you, just read the last version description. This update (1.3.7) was for you. Have a look at the new wrapper callback option for default XenForo tags. There's is a full documented callback example inside the extra directory. In other words, you can configure the default img wrapper behaviour per forums after this. So, no need another buttons that will confuse your users.

I had no idea there was an update. I'm watching the resource.
 
The only error I've been getting was Undefined index: parseOptions, library/KingK/BbCodeManager/BbCode/Formatter/Base.php:140 but that was with version 1.3.6.5.

I just manually upgraded from 1.3.4 to 1.3.7.1, and am now getting this (on line 139), on any post I try and view.

Anyone got any bright ideas?

-- hugh
 
Ah hah, it's because I didn't update the addon XML, as the update instructions for 1.3.7.1 just said "upload the files", but I guess that only works if you aren't jumping a number of releases.

After re-importing the XML, that error goes away, but I then hit an error on Base.php, 215, because $disabledXenTags was null, and being used with an in_array() call. I patched round it on my copy by doing this on line 213:

PHP:
$disabledXenTags = !empty($options->Bbcm_xenTags_disabled) ? $options->Bbcm_xenTags_disabled : array();

-- hugh
 
Getting there. BBcodes, and the advanced toolbar are now working, but I'm getting a warning pitched on the backend when editing a custom bbcode. But as I can't find a template called custom_bb_codes_edit, I can't really do much:

Template Errors: custom_bb_codes_edit

  1. Invalid argument supplied for foreach()in /var/www/html/xf/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 220:
    219: $__compilerVar12 = array();
    220: foreach ($code['usr_list'] AS $list)
    221: {
 
Getting there. BBcodes, and the advanced toolbar are now working, but I'm getting a warning pitched on the backend when editing a custom bbcode. But as I can't find a template called custom_bb_codes_edit, I can't really do much:

Template Errors: custom_bb_codes_edit

  1. Invalid argument supplied for foreach()in /var/www/html/xf/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 220:
    219: $__compilerVar12 = array();
    220: foreach ($code['usr_list'] AS $list)
    221: {
  • For install/update, you should really use the auto installer addon of Chris, it would avoid you any problems
  • Thank you for the fix !
  • It is to create the usergroups permission list I think. Do you have this problem with all the Bb Codes?
    P.S this is an admin template, that's why you can't find it in the usual interface
 
I'm not fond of the auto installer, because as far as I can tell, it requires giving the web server write access to things like ./library, which I don't like doing. The web server should never have write access on code it can then run. :)

Yes, the warning is pitched when editing any bbcode. I can still edit and save, I just get a warning at the top of the page.

Ah hah, yes, it's a backend template. I'm still finding my way round XenForo. I'm looking at it now in the Development tab.

-- hugh
 
Can I have a screenshot of your screen... Your message is strange. It seems you're using the old template whereas it should have been overridden during the update.
Why? Because there is no more 'usr_list' as key index of the array. This was in the previous version... Not in the new one.

So you should import the correct xml product... and use the Chris addon... really. It would avoid to spend too much time on this...

It's safe, you can trust Christ on that. And I didn't change my server write access and it's working. You should have a talk with him.
 
I have the Chris's installer locally, and I like it, so I'll use it on my test server, but I won't be using it on my live site. As I said, the only way it can work is if the web server has write access to the XF folders. If yours works, then that's how That's a security hole. Makes your server MUCH more vulnerable to attack, if the web server itself has write access to PHP files it can then run. The only way to have a "safe" auto-installer like this is to use an ftp transport layer, with configurable login credentials, rather than using native file system calls.

Anyway, I'll give it a go, back in a few. If that doesn't fix it, I'll post those screenshots.

-- hugh
 
I used the downloaded ZIP, via the update manager. Yup, that fixed it. Hopefully on my live server I won't have that issue, as I'll be installing all the correct version first time.

Thanks for the help on a weekend, much appreciated.

BTW, is there a way on the backend to kick off an admin template recompile? I'm just now diving in to a live XF site, after a year of putting off a migration from vB, and only running XF on a test box. As of last weekend I now have several thousand active users on it. So I'm on a crash course on XF development, and deeper use of the backend.

-- hugh
 
The recent discussion has been moved to this thread: http://xenforo.com/community/threads/custom-bb-code-manager-discussion.48782/

For the record, the BBCM add-on was developed and is owned by King Kovifor.

cclaerhout has implied that he will be releasing his own forked version as a separate resource.

Any further discussion concerning ownership and licensing on this thread will be deleted and warnings issued.
 
Back
Top Bottom