![]() |
News integration and HTML on for the 1st post
I'm about to write a news script integration for vBulletin 3.8. All the external part is so far done and tested with my 3.7 testinstallation, the only remaining question for me is now how to manage to display the news in vBulletin with full HTML. Well, i could turn on HTML for the "News" forums but then all the users could use HTML and i guess you all know that this could be verry bad. So i'm looking for the right hook in the forums display to show only the 1st post - the news post - in full HTML. All the vBulletin usergroup integration is done but this last tricky part is very hard for me to find out by myself. I'm also not so sure if that is even possible the way i want it to, i guess there is a reason why HTML can only be turnd on for a forum and not for users / groups.
If anyone can direct me in the right way or even better tell me the right hook i have to use, that would be perfect :) Maybe some one allready did that before? Thanks allot! |
This might be difficult - HTML is weeded out right at the start of processing, and there aren't many useful hooks before it. (At least I don't recall any.) What you could do is add your own BB code with external callback (see hook bbcode_fetch_tags) and use that tag with an ID or something as the parameter. Then in your callback function, use this ID to return the actual content.
|
Thanks for the quick reply!
Not sure where vBulletin is actually checking the HTML premissions, i guess somewhere (showthread.php) starting from line 984 ... Maybe done by the vB_BbCodeParser class, i can only guess ;) So far i've no clue even where i could overwrite the HTML check directly in the vBulletin file. Should there be this "#" in showthread.php line 1073 (3.8.0 US)? I'm not giving up so fast but right now i just "convert" the HTML with the vBulletin HTML to BBCode function and don't care about the post format. Not a solution i really like and adding or changing the vBulletin BBCode to manage some basic picture positions works but i don't like it either. Dose anyone has some deeper knowlage where the HTML check is "hidden"? |
Quote:
|
Thanks.
Any idea if there will be soon a solution in vBulletin 3 or maybe 4 to set HTML rights for usergroups? I really would like such a feature! :) |
If you are referring to a default feature, I do not know the answer to that question. However, it is unlikely any significant new features will be included in vBulletin 3.
|
All times are GMT. The time now is 01:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|