PDA

View Full Version : Align Center Not Working For Threads


mbteam
06-06-2013, 03:21 PM
Hi friend,

Align Center Not Working For Threads. It works fine for post but not for threads. Please see the screenshot on attachment.

Thanks in advance

nhawk
06-06-2013, 05:32 PM
It looks like you have advertising enabled for the first post in a thread. An empty advertisement would shift everything to the left like you show in your screenshot.

Double check in ACP->Advertising->Manage Ads

mbteam
06-06-2013, 05:45 PM
It looks like you have advertising enabled for the first post in a thread. An empty advertisement would shift everything to the left like you show in your screenshot.

Double check in ACP->Advertising->Manage Ads

Your great. The problem fixed & do you know how to make all threads and post Align Center automatically ?

nhawk
06-06-2013, 06:44 PM
Create a plugin using the 'bbcode_parse_start' hook and put this code in it..

if(THIS_SCRIPT == 'showthread' || THIS_SCRIPT == 'showpost')
{
$parsedtext = '';
$text = '' . $text . '';
}

mbteam
06-06-2013, 07:14 PM
Creat a plugin using the 'bbcode_parse_start' hook and put this code in it..

if(THIS_SCRIPT == 'showthread' || THIS_SCRIPT == 'showpost')
{
$parsedtext = '';
$text = '' . $text . '';
}

What you mean by bbcode_parse_start? can you show an example please ?

nhawk
06-06-2013, 07:19 PM
Go to ACP->Plugins & Products->Add New Plugin. It will be in the 'Hook Location' dropdown selection.

mbteam
06-06-2013, 08:09 PM
Go to ACP->Plugins & Products->Add New Plugin. It will be in the 'Hook Location' dropdown selection.

Thank you so much. It worked :D