BassMan
Well-known member
5.3.28What version of PHP are you using?
5.3.28What version of PHP are you using?
If you open up the DigitalPointSocialBar/Callback/SocialBar.php file and change this method (first one in the file):5.3.28
public static function renderTwitterSlugList($contents, $params, $template)
{
$slugs = array('' => '(' . new XenForo_Phrase('none') . ')') +
XenForo_Model::create('DigitalPointSocialBar_Model_SocialBar')->getSlugsFromList();
return '<fieldset>' .
XenForo_Template_Helper_Admin::selectUnit(
new XenForo_Phrase('twitter_list') . ':',
'dp_twitter_slug',
htmlspecialchars($template->getParam('forum')['dp_twitter_slug'], ENT_QUOTES, 'UTF-8'),
$slugs,
array('explain' => new XenForo_Phrase('explain_twitter_list', array('extra' => (XenForo_Application::getOptions()->dpTwitterUsername ? new XenForo_Phrase('explain_twitter_list_2', array('username' => XenForo_Application::getOptions()->dpTwitterUsername)) : '')))),
array()
) .
'</fieldset>';
}
public static function renderTwitterSlugList($contents, $params, $template)
{
$slugs = array('' => '(' . new XenForo_Phrase('none') . ')') +
XenForo_Model::create('DigitalPointSocialBar_Model_SocialBar')->getSlugsFromList();
$forum = $template->getParam('forum');
return '<fieldset>' .
XenForo_Template_Helper_Admin::selectUnit(
new XenForo_Phrase('twitter_list') . ':',
'dp_twitter_slug',
htmlspecialchars(@$forum['dp_twitter_slug'], ENT_QUOTES, 'UTF-8'),
$slugs,
array('explain' => new XenForo_Phrase('explain_twitter_list', array('extra' => (XenForo_Application::getOptions()->dpTwitterUsername ? new XenForo_Phrase('explain_twitter_list_2', array('username' => XenForo_Application::getOptions()->dpTwitterUsername)) : '')))),
array()
) .
'</fieldset>';
}
No idea what any of that is... but if you don't have a cache defined in your XenForo config.php file, then no... it will not work. Any sort of caching you have for other stuff (like your web server) is different.Will this work with the cache in Litespeed along with @Slavik LSxenForo cache since no cache is defined for it in the config file?
ErrorException: Fatal Error: syntax error, unexpected '[' - library/DigitalPointSocialBar/Callback/SocialBar.php:14
Generated By: The Immortal Dreamer, A moment ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(72) "http://theforum.com/threads/a-challenge-to-the-immortal-dreamer.8364/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Last } should be removed, then it worksIf you open up the DigitalPointSocialBar/Callback/SocialBar.php file and change this method (first one in the file):
PHP:public static function renderTwitterSlugList($contents, $params, $template) { $slugs = array('' => '(' . new XenForo_Phrase('none') . ')') + XenForo_Model::create('DigitalPointSocialBar_Model_SocialBar')->getSlugsFromList(); return '<fieldset>' . XenForo_Template_Helper_Admin::selectUnit( new XenForo_Phrase('twitter_list') . ':', 'dp_twitter_slug', htmlspecialchars($template->getParam('forum')['dp_twitter_slug'], ENT_QUOTES, 'UTF-8'), $slugs, array('explain' => new XenForo_Phrase('explain_twitter_list', array('extra' => (XenForo_Application::getOptions()->dpTwitterUsername ? new XenForo_Phrase('explain_twitter_list_2', array('username' => XenForo_Application::getOptions()->dpTwitterUsername)) : '')))), array() ) . '</fieldset>'; }
to this:
PHP:public static function renderTwitterSlugList($contents, $params, $template) { $slugs = array('' => '(' . new XenForo_Phrase('none') . ')') + XenForo_Model::create('DigitalPointSocialBar_Model_SocialBar')->getSlugsFromList(); $forum = $template->getParam('forum'); return '<fieldset>' . XenForo_Template_Helper_Admin::selectUnit( new XenForo_Phrase('twitter_list') . ':', 'dp_twitter_slug', htmlspecialchars(@$forum['dp_twitter_slug'], ENT_QUOTES, 'UTF-8'), $slugs, array('explain' => new XenForo_Phrase('explain_twitter_list', array('extra' => (XenForo_Application::getOptions()->dpTwitterUsername ? new XenForo_Phrase('explain_twitter_list_2', array('username' => XenForo_Application::getOptions()->dpTwitterUsername)) : '')))), array() ) . '</fieldset>'; } }
Does it work? I forgot about old versions of PHP.
I currently use the Core style by pixelExit, and the bar goes above the breadcrumb.
How exactly can I move it so it's below it?
Most likely need to look at that for you. The breadcrumb on Core is outside the "Content" so it can only be resolved by changing something in the style, not the add-on.
Yep... it's intentional. Just means you have paused the Twitter feed rotation when you hover over it (in case you see something interesting).On Mac OX, Chrome browser, when you hover your mouse over the bar, you will get a spinning circle
Fixed issue with old versions of PHP. If you are using PHP 5.4 or higher, you don't need this.
It removes the two on the right... the hover one over the buttons it does not (as explained earlier in the thread it's a totally different service that this addon just happens to use... and since it's 100% JavaScript based, it doesn't tie into the PHP code which is what would need to happen).@digitalpoint
Just for clarification. The branding removal does remove all 3 links to your site, right?
View attachment 74629
Sorry, the Social Buttons thing is a service, not a product.
We use essential cookies to make this site work, and optional cookies to enhance your experience.