php forum
php mysql forum
php mysql smarty
 
Topic Options
#279648 - 09/16/04 03:15 PM Exclusive use Icons and Graemlins
AllenEagle Offline
Junior Member

Registered: 06/17/02
Posts: 51
Loc: Allen, Texas
I use version 6.4.4 and I would like to see Post Icons and Graemlins that are for the exclusive use by Administrators

Top
#279649 - 09/16/04 03:31 PM Re: Exclusive use Icons and Graemlins [Re: dentjunkie]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Just an FYI - <br /><br />In version 6.5 you can upload Graemlins and then just not have them "active" - but they still work if you know the code. I use the WTF one all the time...but my members do not have the code.<br /><br />Now of course anyone can use a graemlin if they know the path to it...but that is cheating <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br /><br />Post Icons - that is a different story...but a hack could be written to have "levels" set on Post Icons, and Admins see all, where members see most.

Top
#279650 - 09/16/04 10:29 PM Re: Exclusive use Icons and Graemlins [Re: Intel -*RW*-]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Untested and not a complete mod - but this should get you going in the right track.<br /><br />In ubbt.inc.php you'll see an icon_select function.<br /><br />We can modify this here.<br /><br />In this example you'll upload two special icons to the icons directory named admin1.gif and admin2.gif<br /><br />Then in ubbt.inc.php find this:<br />
Code:
<br />     function icon_select($icon="") {<br /><br />       global $thispath,$tempstyle, $ubbt_lang, $config,$debug;<br />
<br /><br />Change to this:<br />
Code:
<br />     function icon_select($icon="") {<br /><br />       global $thispath,$tempstyle, $ubbt_lang, $config,$debug,$user;<br />
<br /><br />Then find this:<br />
Code:
<br />       	if ( ($file == ".") || ($file == "..") || ($file == "lock.gif") ) {<br />         	 continue;<br />       	}<br />
<br /><br />BELOW IT add this:<br />
Code:
<br />if (($user['U_Status'] != "Administrator") &amp;&amp; (strstr($file,"admin"))) {<br />   continue;<br />}<br />
<br /><br /><br />Again untested - but then I *think* if you're not an administrator it will skip any icons with "admin" in their name. So just make sure the icons are named with admin in the name. <br /><br />I think that would have the desired effect. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#279651 - 09/16/04 11:30 PM Re: Exclusive use Icons and Graemlins [Re: Daine]
AllenEagle Offline
Junior Member

Registered: 06/17/02
Posts: 51
Loc: Allen, Texas
Josh,<br /><br />Again, you hit a home run. It works spectacularly!<br /><br />Your instructions were simple and easy for this dummy to follow and in less than 5 minutes I had exclusive use icons for administrators. I am sitting here with my mouth open! <br /><br />Please excuse my newbie enthusiasm. Josh you are a magician.<br /><br />And all the other experts here are so helpful and understanding.<br /><br />I can’t say thanks enough.

Top
#279652 - 09/17/04 12:05 AM Re: Exclusive use Icons and Graemlins [Re: dentjunkie]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he<br /><br />Glad it worked for you. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#279653 - 10/21/04 12:47 AM Re: Exclusive use Icons and Graemlins [Re: Daine]
AllenEagle Offline
Junior Member

Registered: 06/17/02
Posts: 51
Loc: Allen, Texas
Can you provide similar information for instant Graelims?

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks