![]() |
html enabled between [html][/html]
Hi there.
When I searched for a hack to give some people the right to post HTML, I found this hack: HTML Always Enabled for Admins+Etc. But, when I use that hack, some other hacks won't work with the users that are allowed to post html (ex. the /me hack) So, I came up with this idea: Use the tags HTML Code:
and And ofcourse, it would be nice to set userid's and/or usergroupid's for this to work with, to make sure that not everybody is able to post html. (ex. only the administrators and a few other userid's) Is this possible? For those of you who feel called upon to make this possible: thanks in advance! Ronald |
Hmmm...
Interesting idea... Hopefully Chen sees this... It is his sort of hack... Satan |
Yes, good idea :)
I want this hack :D |
Satan, why do you always have to close your post with satan,
a) it is already in the postbit anyway b) use signature for that. I just don't get it. I can think off a few bulletin boards that allowed html, and had serious security issue's. I rethink this before applying it. |
Quote:
Just the guys&girls I trust with it (the 6 administrators ;)) I used 'the hack I posted a link to in my first post' for that, but after a few days I found out that some other hacks didn't like that, so I uninstalled :) (An example of what went wrong: the /me hack didn't work for the ones that were allowed to post html, and some other things but I can't seem to remember what they were ;)) And that's why I thought of a system so that a user with privileges to post html can specify the part of his/her post where html should be enabled. I think that, if you're carefull enough and only give privileges to the users which can be trusted with them, there shouldn't be a security issue in here. |
*BUMP*
Quote:
|
*BUMP*
I feel ashamed for bumping this thread again, but I'd really like to see this made... Actually, we kinda need it :D Could somebody please give this a go? Pretty Please? *kneeling down and begging* |
Quote:
|
@IceMallee: damn you ;)
I thought somebody made a serieus reply to my request... So I opened this thread, but it was only you :( ;) |
Lol...
Nothing on vb.org is serious:) Just PM FireFly (Chen), ask him if he will help, and give him a link to this thread... @xiphoid - Force of Habit...Hard to break a near 6 year habit;) Satan |
There is a hack in which will enable HTML for specific usergroup(s), such as Admins, Mods, and Super Mods. Look around the "Released Hacks" forum and you'll see it in there. I currently use it.
|
afterlab, read post #1.
Brokie wrote: Quote:
|
Quote:
j/k |
Quote:
But hey, he must be getting lots of requests so it's not that weird he didn't reply ;) |
Yeh...
@Velocd...You know...You may be onto something there;) Satan |
okay, then I'll make a start myself...
This is the code that (for as far as I know) should be run over the part that's specified by HTML Code:
and PHP Code:
Let's say, I want moderators and higher to be able to use this: PHP Code:
HTML Code:
and Could anybody please help me on this? |
1 Attachment(s)
Now I must say that I really dont understand why you need HTML codes. IMO bbcodes do the trick in most cases.
Anyway I'm sure you have a reason so here you go: Find the code you need attached.. :) A few points: * This was a quicky and from the coder point of view I know there are more "elegant" ways to handle it, but this is the code I made it up in a short time. * Not tested, so give it a try. * One Restriction applies: you can use ONE html tag PER message only! Or you'll be messed up * Other than these you should be fine.. Enjoy. Logician |
Only 1 [html] tag per message, that shouldn't be a problem :)
I'll insert this code into my testboard, and I'll let you know the results Thanks very much! |
Hmmz, is doesn't work :(
I've even de-installed some of the hacks at the testforum, but that didn't do the trick. No errors or something, the text in the post just comes out like test HTML Code:
<marquee>test</marquee> |
are you posting from a usergroup with usergroupid 5 or 6?
|
1 Attachment(s)
I applied the code to my board and it works here.
|
Jup, I've posted it with a user in usergroup 6
Could it be the version of vbb I'm using? (2.2.5) I'll try it at my 2.2.6 testboard right now, that board has alsmost no hackes installed... [edit] Damned, I can't reach the new server (the one with vbb 2.2.6 installed) I'll de-install all the installed hacks at my 2.2.5 testboard one-by-one to find out which one it is that's influencing this hack. Thanks for testing it at your board, I now know that it should work (not that I doubted you ofcourse ;)) [/edit] |
You are applying the code to admin/functions.php and you are REPLACING the existing code right? Also bbcode is ON in the forum you post?
Can you send the portion of admin/functions.php begining 10 lines above the hack and ending 10 lines after the hack. Let me check it. |
1 Attachment(s)
Quote:
|
ok you applied correctly.. that's strange, it works fine here..
If you are sure message poster (not reader!) is from usergroup 6 and bbcode is enabled in the forum you post, I'm clueless. |
I'm very sure about those things :)
But I won't give up, I'll even stay up all night to make it work ;) I just can't stand that it works for you but not for me ;) And again, thanks very much for your support! |
Logician, I've got some strange news. It also doesn't work at a totaly unhacked vbb2.2.1
The only thing I can think of is that it works for you due to a other hack you've installed... Otherwise, I'm also totaly clueless... |
Lets make some debugging:
Apply this code instead of the other (to a test board!): PHP Code:
|
Code:
usergroupid is 6 or 5 PHP Code:
|
ok problem is in the code.. I'll correct it, brb.. (how come it worked here, really weird!)
|
1 Attachment(s)
updated.. check that one plz..
|
YAHOO!
Thanks Logician, that works! Thank you very very very much! edit: Just tested it, it even works when you use the html tag more then once in one post :D Logician, if you where a girl, I'd kiss ya! Edit 2: I reject this 'cause I don't want my girlfriend to get jealous ;) |
Quote:
BTW. plz dont puzzle me more, because it really cant work with more than 1 html tag per post. Try using different html tags and it really wont work (both will be parsed but all will be converted to the first tag) ;) |
Quote:
I just copy/pasted the whole [html]<code....>[html] thing :) But after reading your post, I tried 2 diferent <code...>'s within the same post, and indeed, it doesn't work Hmmz, it seems like the later it gets, the worse my English is ;) (or is it just me noticing that?) |
for the first time I'm glad something didnt work lol! If it did what you told, I would have nightmares tonight hehe..
Anyway enjoy the hack.. |
Oh, we'll enjoy it, that's for sure
Ectually, we're allready enjoying it ;) And uhm, I'm glad I kept those scary PHP-nightmares away from you :D Logician, you really are an Ultimate Hacker! |
Does vb3 have this built in?
|
Quote:
vB3 does have [html] (and [code]) tags, you can also enable HTML in posts in forums, however, do so at your own risk. |
I only had it for the Admin ... does vb3 allow you to limit who has access to html?
Quote:
|
Quote:
|
All times are GMT. The time now is 05:56 PM. |
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:
|