
12-08-2011, 03:51 AM
|
|
|
Join Date: May 2008
Location: Canada
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by dartho
I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such.
Having said all that - I'll try and point you in the right direction -
To strip all HTML tags from posts for a specific style ID, create a plugin as follows:
Product:vBulletin
Hook Location: Postbit Disaply Complete
Name: Strip HTML from Mobile Style Posts
Execution Order:5
Code:
Code:
if (STYLEID=='n') {
$post['message']=strip_tags($post['message'],'<br><a>');
}
replace 'n' with teh styleid of your lightweight style.
the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags
|
thanks allot for this
|