php forum
php mysql forum
php mysql smarty
 
Topic Options
#202753 - 04/06/04 11:44 AM [6.7] [beta] VIPHTML
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Modification Name: VIPHTML

Author(s): Brett

Description: VIPHTML™ allows admins/mods or special people to post html in forums where it is disabled for the average person.

Demo: n/a cp mod

Download Link: http://www.ubbdev.com/ubb/upload/00006378/VIPHtml6.7.txt

Credits: Greg Hard

Shoutouts: Gizzy (2 left wink )

After installation, the forum has to be set to only admins/vips, which is located in the permissions tab on details of each forum. Once this is enabled, admins/megamods/mods are automatically enabled. To enable special regular users, you would need to open each of their profile from the cp, click on the permissions tab, and under the forum list to add them as moderators, there is another forum list to specifically give them privilages to each forum's use of HTML.

This by no way means, that it disables the HTML filter. It still goes through the same checks as before, but only when you put html tags, they actually execute and not print.

Top
#202754 - 04/07/04 06:10 AM Re: [6.7] [beta] VIPHTML
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I had some logic errors in the actual checking. Updated TXT file, and the only replacement goes into the one part in ubb_lib_posting.cgi. (So just replace what you had in before with the new one wink )

Top
#202755 - 04/07/04 10:52 AM Re: [6.7] [beta] VIPHTML
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Hey, for once I found a bug and it wasn't running on my forum!
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202756 - 04/07/04 11:58 AM Re: [6.7] [beta] VIPHTML
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Great Hack!!!! thumbsup

...but where can I build in new html-tags?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202757 - 04/08/04 06:28 AM Re: [6.7] [beta] VIPHTML
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Why does some html tags not work?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202758 - 04/08/04 06:54 AM Re: [6.7] [beta] VIPHTML
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
The hack doesn't affect the way ubb translates html. If you were to take this hack out, and turn html on, it would do the same thing. What tag are you trying to use?

Top
#202759 - 04/08/04 07:00 AM Re: [6.7] [beta] VIPHTML
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
APPLET BODY EMBED FRAME FRAMESET HTML IFRAME LAYER LINK ILAYER META OBJECT SCRIPT STYLE NOSCRIPT NOEMBED NOFRAMES FORM XMP HEAD

That's the list of HTML tags UBB won't process, as well as PHP tags, ASP tags and tags with parenthesis, ( ) in them.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#202760 - 04/08/04 07:23 AM Re: [6.7] [beta] VIPHTML
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
I want to use Ilayer and applet, is ther no chance to build this in?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202761 - 04/08/04 08:02 AM Re: [6.7] [beta] VIPHTML
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
You can remove ILAYER and APPLET from the list in ubb_lib.cgi, but it's really not recommended if you don't trust the people you let use HTML completely. (open ubb_lib.cgi, search for "ILAYER". you'll see both of them in the same line)
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#202762 - 05/03/04 03:21 PM Re: [6.7] [beta] VIPHTML
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Brett, one bug I've been getting.

This doesn't take into account $is_html, meaning the you can't use html in other places, like the CP.
_________________________
Code monkey like Fritos

Top
#202763 - 05/04/04 09:57 PM Re: [6.7] [beta] VIPHTML
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Your right. Well $is_html is just the wording, in a forum with vip, it would say you couldn't still even though you could.

TXT updated. The only changes:
Code:
in ubb_lib_posting.cgi

find: 

	if ($_[0] eq 'is') {

replace with:

	if ($_[0] eq 'is' || $_[0] eq 'vip') {

Top
#202764 - 05/17/04 04:57 PM Re: [6.7] [beta] VIPHTML
Nate Offline
Member

Registered: 12/18/03
Posts: 40
Uh-oh, I think I found a bug. When I have html in the forum description (a link, for instance), the tags are converted to text-- in other words, I'm ending up with <A HREF="http://www.mydomain.com/">CLICK HERE</A> , where it should be <A HREF="http://www.mydomain.com/">CLICK HERE</A>

--and if I go into the CP and fix it, it changes it right back.

Top
#202765 - 05/17/04 05:22 PM Re: [6.7] [beta] VIPHTML
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
Originally posted by Nate:

Uh-oh, I think I found a bug. When I have html in the forum description (a link, for instance), the tags are converted to text-- in other words, I'm ending up with <A HREF="http://www.mydomain.com/">CLICK HERE</A> , where it should be <A HREF="http://www.mydomain.com/">CLICK HERE</A>

--and if I go into the CP and fix it, it changes it right back.


do what Brett said, that'll fix it
_________________________
Code monkey like Fritos

Top
#202766 - 05/23/04 12:35 PM Re: [6.7] [beta] VIPHTML
Nate Offline
Member

Registered: 12/18/03
Posts: 40
Yes, I had done what Brett said in ubb_lib_posting when I did the initial install, but the problem still occurs. I verified that the mod is installed properly and precisely, also.

I'm putting simple HTML tags (font size, center)in the "Forum Introduction" section in the CP Forum Summary Options.

Sometimes I can get the HTML to stay as HTML for a short while, but after a few posts are made in one of the forums by a VIP using HTML tags, the tags on the main page revert back to text.

Top
#202767 - 12/20/05 08:11 PM Re: [6.7] [beta] VIPHTML
gsmaster Offline
Junior Member

Registered: 01/10/03
Posts: 16
i installed this hack... but how can i do to allow html signatures for admin or authorized members ?

Top
#202768 - 12/21/05 01:40 AM Re: [6.7] [beta] VIPHTML
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
I believe an option is added to the editing members section of the control panel
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316645 - 01/25/08 02:47 PM Re: [6.7] [beta] VIPHTML [Re: Gizmo]
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
He is right, there is an issue with this portion

Code:

	# If HTML is not enabled, disable it

	# VIP HTML
	my @user_profile = &OpenProfile($user_number);
	my @good_forums = split(/\, /, $user_profile[67]) if $user_profile[67];
	my $authority_bool = ($user_profile[8] eq 'Administrator' ||
		$user_profile[8] eq 'MegaModerator' || $user_profile[8] eq 'Moderator');
	my $g = 0;
	foreach(@good_forums) {
		if($good_forums[$_] eq $_) { $g = 1; last; }
	}
	if (((($user_profile[67] && $g ne 1) || $authority_bool) && $vars_forums{$in{f}}->[4] eq 'vip') ||
		($vars_forums{$in{f}}->[4] eq 'is' && $authority_bool)) {
	} else {
		$message =~ s/</&lt;/g; $message =~ s/>/&gt;/g;
	} #end if



If I add that (which allows the actual NO HTML bypass), forum descriptions are fubar'd.

Top


Moderator:  Charles, Gizmo 
Who's Online
0 registered (), 20 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
Today at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks