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

   [6.7] [beta] VIPHTML to Del.icio.us Add to del.icio.us
  Digg [6.7] [beta] VIPHTML Digg it
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: 5119
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: 5119
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 
Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 25 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Today at 08:00 PM
What do you use to edit the files
by AllenAyres
Today at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Today at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Today at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Today at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Today at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Today at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks