The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 ![]() Thanks allot! |
#2
|
||||
|
||||
![]()
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.
|
#3
|
|||
|
|||
![]()
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 ![]() 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"? |
#4
|
||||
|
||||
![]()
It is done in the BB code parser class, and it uses a direct check using a forum ID (the post information is not in focus, however, on second thought, you may be able to bring it into focus).
|
#5
|
|||
|
|||
![]()
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! ![]() |
#6
|
||||
|
||||
![]()
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.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|