Cao
Active member
@nguyenhuuhung Please follow step by step in http://xenforo.com/community/resources/profile-posts-with-bb-codes.1658/ . It's work fine with 1.1.0 - 1.1.5.
Thank you.@nguyenhuuhung , did you perform the templates edits as explained in the addon's description?
http://xenforo.com/community/threads/profilepost-with-bbcode-paid.54928/@AlexT Please add full editor (WYSIWYG - Redactor) in new update. Your addon very useful. Perhaps it should be integrated into the core.
Waw, good job
Thank for advance... I will consider to reduce of priceWaw, good job
But the price is so high with this addon, reduce the cost 5$ you will have more customers
This update adds an option to enable the Wysiwyg editor. It also adds functionality only available in xF 1.2+, including automated template modifications and event listener hinting for performance improvements.
@AlexT: The problem is with the check before calling parent::renderHtml.@AlexT
This addon conflicts with Widget Framework
http://xenforo.com/community/resources/bd-widget-framework.297/
Please fix it
.
@xfrocks
protected function _parentHasMethod($method)
{
$us ='XFCP_' . __CLASS__;
$usFound = false;
foreach (class_parents($this) as $parent)
{
if ($parent === $us)
{
$usFound = true;
continue;
}
if (!$usFound)
{
continue;
}
// Do not perform method check until we found ourself in the class hierarchy.
// That needs to be done to safely trigger parent::$method.
// Performing method_exists(get_parent_class($this), $method) is not enough
// if our class is in the middle of the hierarchy:
//
// SomeAddOn_Class extends XFCP_SomeAddOn_Class...
// Our_Class extends XFCP_Our_Class...
// Target_Class
//
// pretty confusing...
if (method_exists($parent, $method))
{
return true;
}
}
return false;
}
Possible but imagine if two of your addons need to do that...What if one simply changed the callback execution order if required?
Possible but imagine if two of your addons need to do that...
Well, yes, I could mention it in the readme to look at the execution order if one requires to. Thing is, theoretically, anyone extending (view) classes would have to include extra code checking for possible parent methods, and that would lead to an awful lot of repeated code that doesn't even contribute to the core functionality. It would be nice if xF added helper functions for this purpose.
We use essential cookies to make this site work, and optional cookies to enhance your experience.