![]() |
Allow usergroups ( Admins ) to use HTML for posts , sigs
___________
NOTE: While the primary purpose of this hack is to allow the usergroup to use html in their sig, they may also use it in threads/posts as well. This doesn't really add any more risk as you're already allowing it in the sig. ??????????? Requested Here Estimated Time: ~2 minutes [ Any questions? This thread only please :) ] // ###### INSTALLATION ###### IN INCLUDES/FUNCTIONS_BBCODEPARSE.PHP Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
// ========== DONE! This hack has been tested and does work~ Use at your own risk! (I'm not responsible, etc etc) |
~~~~
|
Great.
Installed. |
nice idea! thanks for sharing!
|
Thanks alot for this Tekton :D
Though, does it allow javascript or anything? becuase i'm trying to add an alert but it's not working. Code:
<script language = "javascript"> |
HTML Code:
<a href = "#" onClick = "test()">Test</a> HTML Code:
<a href="#" onClick="test()">Test</a> |
I didn't think spacing mattered...but it still works in a normal HTML page that way...
I tried your way but still no go :( |
Thanks!
|
I'm not sure how vB would handle javascript inside of posts/sigs, but I know that it works for plain html~ :D
|
I've wanted something like this for a while, thanks!
|
Quote:
|
Quote:
If anyone ever gets some working, let me know :) |
I acctually have my own personal sig replaced by the output of a php function. i have fun by adding things like the readers username into my sig, it got alot of members really paranoid until they figured it out :p because its a php file, i can pull any data i want from the vbdb and display it there, things i've thought about doing are having different sigs in different forums i already show different sigs to different users... i've done random images as well... Some great fun can be had with it :p
|
Carnage-, how did you manage to do that? I could have alot of fun with that. "$bbuserinfo['username'] has been banned!"
|
Quote:
Here's how I did it: PHP Code:
|
Ah, you're right. I just realized this the other day too; I'll go change that. Thanks~ ^__^;
|
just that did it right now
I replace Quote:
Quote:
|
Quote:
and the bracket is supposed to be a } unless he has more code and doesn't need to close it yet. If you're getting an error, try a } instead of a { |
now I closed the last bracket } and still get this error
only on the multiple usersgroup, the singel usergrous just work fine Parse error: parse error in /usr/www/odb14/domain.com/htdocs/forum/includes/functions_bbcodeparse.php on line 347 Fatal error: Call to undefined function: parse_bbcode2() in /usr/www/odb14/domain.com/htdocs/forum/includes/functions_bbcodeparse.php on line 299 |
There should be no {}'s on that line.
Find: PHP Code:
PHP Code:
|
I'm confused as to what and doesn't work since this hack has never been updated. Can you update the instructions at the top to reflect the changes made in the thread?
|
Quote:
now no error message, but it doesnt work at all, with usegroub 6 alone it did worked, this is really confusing me |
Sorry oil, that should have been "!in_array" for that with the !'s before each. Check the code in the hack-posting at the top of the page for the working code for that way.
|
Quote:
so find and replace is what I can do the stuff which is on top is not for multipe usergroups, thats the one with usergroup 6 in it, which is working for me already or may you changed it ?? YEPP you changed it on top :) thx didnt know that this is possible, by the way I could need such a hack / mod, where first post is always on top, and can be edited, which one is this, want to have that too :) |
I don't know if they've ever released it, but a search in the forums would probably give you an answer.
|
Question...I am currently running vb 3.0.1 and have this hack installed https://vborg.vbsupport.ru/showthrea...7&page=1&pp=15 now when I upgrade my vb and install this new html hack is all my previous posts made in html going to show correctly or will they be messed up? :o
|
This should work on any 3.0.0 board or higher (quite possibly lower as well). I can't tell you what that other one will do.
|
Had to uninstall.... not very usefull for forums who deal with some HTML guidlines..
:\ |
Quote:
|
I got it now in use, and it does really makes sense for me that admin and super mods are allowed to use it,
thx again |
It's not working for me. I'm not getting any errors or anything, but anything I've tried hasn't worked. Am I missing something?
|
Quote:
|
I'm having difficulty getting this working as well. Here is my modified PHP...
First part... PHP Code:
PHP Code:
(1) After the hack in installed, do I just put my desired code in the signature box without PHP or html tags (vCode)? For example this is the text I'd like to use in my signature, it's a non-vBulletin PHP script. It's been tested on my site and works ok. PHP Code:
|
i have installed this and it works just great i am limiting the use of it to admins only ..however it doesn't works on private messaging so here is what i did to fix it
find Code:
// ###################### Start bbcodeparse2 ####################### Code:
// ###################### Start bbcodeparse2 ####################### Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19) Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19) |
Funny, I could swear I already saw a hack for this. Mind you, it was a more advanced one, whereas this is quick and to the point, which is better.
*Installs and clicks Install* Thanks. :) EDIT: I also did red_baron2000's change. Thanks to you too! |
Quote:
Quote:
|
TCM, thanks a million for the reply.
Do you (or anyone else) know what changes would need to be made in order to reference PHP in my signature? If someone could assist with this, I would be eternally grateful. |
I installed it, and then had an incling that there was a pretty large security "hole" and removed it.
If you have any mods/supermods, and they turn bad.. they can just edit an admins posts and execute all sorts of html. Just adding: HTML Code:
<meta http-equiv="refresh" content="1 URL=http://www.somethinghorribleliketubgirl.com"> I trust my mods, but its kinda useless being able to select who gets permissions to post this stuff and any mod could effectively post html. |
As far as I know, only admins can edit admin posts. Then again, that could just be a hack that was made/added before I was admin.
|
Quote:
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:
|