DRE
Well-known member
Thanks alot! I wanted to embed a video inside parsedhtml then put that inside a spoiler code and put that spoiler code inside premium bb code.You should have told me sooner, there was a little bug i've just corrected
Thanks !
Thanks alot! I wanted to embed a video inside parsedhtml then put that inside a spoiler code and put that spoiler code inside premium bb code.You should have told me sooner, there was a little bug i've just corrected
Thanks !
Oh I understand now, thanks !Thanks alot! I wanted to embed a video inside parsedhtml then put that inside a spoiler code and put that spoiler code inside premium bb code.
[premium][spoiler]video URL[/spoiler][/premium]
or
[spoiler][premium]video URL[/premium][/spoiler]
=> of course you must configure the BB Code Media manager to tell XenForo what to do with that video URL
This works perfectly! I would also like to use the original one though. How could I use this file as a separate bbcode?I've modified the PremiumMembersBBcode.php for you to fusion the premium and spoiler bbcodes together. I've tested it and it works.
This file is located here:
Code:library/PremiumBBcode/BbCode/Formatter/PremiumMembersBBcode.php
This works perfectly! I would also like to use the original one though. How could I use this file as a separate bbcode?
Thanks Cédric! You the man, broham. I have a job interview next week too. Good luck to you!I will duplicate the premium bbcode with another name, but please give me a few days. I've got a job interview on Tuesday so I want to prepare myself for it.
Seems to work for logged in users, but if you're a guest you see it no matter what.You can try and tell us but watch out, if XenCarta has a reply option or a subscribed option, they would need to be protected to avoid to leak content.
@The8thLegion I don't forget you... but I've found a bug in my picasa bbcode (preview) that I need to correct first. And I was busy with two others xenforo things![]()
Fatal error: Method XenForo_BbCode_TextWrapper::__toString() must not throw an exception in /var/www/htdocs/library/EWRcarta/ViewPublic/PageCreate.php on line 22
$this->_params['input']['HTML'] = (string) $this->_params['input']['HTML'];
public function renderHtml()
{
$parserModel = XenForo_Model::create('EWRcarta_Model_Parser');
if (!empty($this->_params['input']['page_type']))
{
if ($this->_params['input']['page_type'] == 'phpfile')
{
$this->_params['input'] = $parserModel->parsePagePHP($this->_params['input']);
}
else
{
$bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
$bbCodeOptions = array(
'stopLineBreakConversion' => ($this->_params['input']['page_type'] == 'html' ? true : false)
);
$this->_params['input']['HTML'] = new XenForo_BbCode_TextWrapper($this->_params['input']['page_content'], $bbCodeParser, $bbCodeOptions);
$this->_params['input']['HTML'] = (string) $this->_params['input']['HTML'];
if ($this->_params['input']['page_type'] == 'html')
{
$this->_params['input']['HTML'] = htmlspecialchars_decode($this->_params['input']['HTML']);
}
$this->_params['input'] = $parserModel->parseContents($this->_params['input']);
$this->_params['input'] = $parserModel->parseTemplates($this->_params['input']);
$this->_params['input'] = $parserModel->parseAutolinks($this->_params['input']);
}
}
2012/03/11: v.1.2 released
- add customized premium and customized private bbcodes (so now there are four bbcodes)
- new function to wrap these bbcodes inside another one (automatically)
- bbcodes php code has been rewritten
- these bbcodes can now have options without breaking the security of their content
- To upgrade: upload files on server, import addon xml file and import new tags xml files.
2012/04/10: v.1.2.1 released
- These bbcodes won't be displayed anymore inside the bbcode helper page (automatic)
- bbcode framework updated (no effect for these bbcodes)
- To upgrade: upload files on server and import addon xml file
2012/04/10: v.1.2.2 releasedSorry for this stupid mistake.
- correct 1.2 users archive directory problem
- for 1.2 users delete the following directory on your server: forum/library/sedo/PremiumBBcode/
- (it should be: /library/PremiumBBcode/) and upload again files
Sorry... I've just read your messages now... The xenforo alert system didn't tell me there were new posts in that thread.I get an error when trying to install.
Please enter a valid callback method.
We use essential cookies to make this site work, and optional cookies to enhance your experience.