![]() |
HTML Allowed for Certain Users/Groups
Howdy, and thanks for reading :)
I had this implemented on my 2.x board but couldnt find it for 3.x so I went about looking through the code :) My Way wasnt quite right... however it has been solved ! See here |
This is very useful, thanks! :)
|
That'd be great for Admins and for streaming news off your forums.
Thanks! |
great idea!!!
/me clicks Install MGM out |
Is this so I could enable html for all of my forums without the risk of any usergroup but admins or whomever I set having the ability to post html...and it doesn't effect anyones viewing of the html in posts either, right?
Why doesn't vB have this feature anyways?! |
Because I guess they try to avoid any kind of HTML as possible.
|
This I will definitely need. I'm too damn worried about my users and their use of HTML. Keep up the good work.
|
Quote:
Installs! thanks :glasses: |
Quote:
On my forums I use it to allow HTML in signatures, and posts for admins only :) |
with this hack on ny board it works, but only admins can view the html. when a non admin is viewing the post it only shows the html code
|
Quote:
-------------------------------------------------------------------------- (Assuming you didn't install Ee-Ore's version) Open /includes/functions_bbcodeparse.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Ah, thanks for that - I was almost there :D
Sorry to those of you who took mine :( At least now we have the real answer :D |
ee-ore, you edited out where this goes and jim didn't mention it! :(
|
um, what php file should we edit?
|
Oops. It's in /includes/functions_bbcodeparse.php. Updated my first post.
|
thank you! =)
|
Thanks for the code hacks!
Had a couple of questions.. I am assuming when I try to preview it, it's supposed to not parse that code, but when I post it, it works? Is there any way to get the preview to work? Also, I want to post Javascript code but it still isn't allowed. Is there anyway to post Javascript code? I want to embed a Javascript puzzle into a post. Thanks for the help! |
Sorry if this question is "dumb" :)
When using this hack, or posting with HTML, do you use the HTML /HTML vbcode tags? The reason I ask, is that I have the HTML bbcode enabled for posting of some HTML on my board. I (as admin) have made several posts with HTML bbcode, and I would want those posts to remain bbcode, and I would still want to be able to use the HTML bbcode as well as posting with HTML to enhance some admin posts. |
Quote:
|
Youi will also have a problem with the HTML and PHP tags. When HTML is turned on, things like the break tag will be parsed in the code boxes. ;)
|
Quote:
like when you insert a table it causes a huge gap between the normal text and html tags as if its taken the whole space of the tags as a gap made it invisible and then shown the code right at the bottom i removed this earlier today was contemplating adding it back just for links coz links that the [url] tag has always lead to a new window but maybe someone could make a hack that allowed any links that are within the forum will open in the same window and after boofo's comments on the php and html tags i thought na don't need it can wait until 3.1 where it will be standard this version of the hack needs some major reworking |
is this hack for 3.0.1?
i assume id = = 6 means u 6 is admin? |
how to make it it allows html in sig for only admins?
|
Will this allow me to use HTML in posts as an admin in vb 3.0.1 and be able to construct links to open in the same window?
meaning <a href="www.mydomain.com target="_self"> link here </a> and have it work correctly? Thanks Dave Ps - i was also looking for a way to have all links posted on my site, linking to my site use the target="_self" attribute, so they will all open in the same window, but all links pointing to any other domain to open in another window. This should work for everybody on the board, not just admins.. Any ideas? Thanks Dave |
I tried and this mod doesn't work for 3.0.7
|
The mod does works for version 3.0.7 though I have had issues with the spacing from my formatted html converting into spaces for vbulletin.
|
Dark Jim : thank you for your hack, it works perfectly !
Just a small question, since I'm not a coder at all: how can I add more than a usergroup ? Actually, your code is for only admin (usergroup 6) and I want to add the super moderators Code:
if ($post['usergroupid'] == 6) Thank you ! |
Quote:
Code:
if ($post['usergroupid'] == 5 || $post['usergroupid'] == 6 || $post['usergroupid'] == 7) I think its ok, someone please check. |
hum.. it seems to not working for my moderators... (but still working for me)
|
Quote:
|
Quote:
PHP Code:
|
Having this mod for 3.5 would be awesome.
|
Good hack, installed.
|
Will this work for 3.0.8?
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
it works perfectly on my 3.0.7 (with a lot of other mods) By the way, take care, if you have a registred user, and gave him extra privileges, like administrator, it won't work, until you have to specify in this mod the original usergroup number (in my sample, registred user, not admin)
Exemple of html in my forum: http://www.eovia3d.net/showthread.php?p=45814#post45814 The only problem I have is that this mod convert break page in the code to <BR> tags in html ! Then, you have to enter a one line html code ! |
well im trying to get it to work with bbcode rather than html. I have [color disabled, but I want it enabled for admins
|
Quote:
|
All times are GMT. The time now is 04:43 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:
|