The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vbcms_widget_recentarticle_page formatting
hello
I want to remove the formating text of {vb:raw article.previewtext} in vbcms_widget_recentarticle_page I want this text without <br> <b> etc like a plain text Someone can help ? |
#2
|
||||
|
||||
I believe the preview is stored in: $view->previewtext and the hook you need is vbcms_article_populate_end.
At least that is how I manipulate the preview in my mods. The php function strip_tags should remove HTML tags so just make a new plugin on the hook above with this code: PHP Code:
Off hand I know my "Word Linker" mod has code on this hook if you want to see a real example. |
#3
|
|||
|
|||
I'm looking
I see your website... i will soon register, i found some great mod in --------------- Added [DATE]1339614103[/DATE] at [TIME]1339614103[/TIME] --------------- Question : my Template Name is : vbcms_widget_recentarticle_page i understand that i have to find the code before... but where ? I search in "Style Manager=> Search in templates => Search in all Styles" for "previewtext" to add : $view->previewtext = strip_tags($view->previewtext); but nothing --------------- Added [DATE]1339621026[/DATE] at [TIME]1339621026[/TIME] --------------- ok i found in article.php (version 4.2 of vb) : $view->previewtext = $this->content->getPreviewText(false, false); so : $view->previewtext = $this->content->strip_tags(getPreviewText(false, false)); => Fatal error: Call to undefined method vBCms_Item_Content_Article::strip_tags() oops --------------- Added [DATE]1339657958[/DATE] at [TIME]1339657958[/TIME] --------------- Ok i found the solution here is : It's in : /vbcms/widget/recentarticle.php change line 365 : $article['previewtext'] = strip_bbcode($pagetext); in : $article['previewtext'] = strip_tags($pagetext); |
Благодарность от: | ||
BirdOPrey5 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|