Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Hack Name: Whos Online Status Effect
Description: This hack makes mods names bold and admins names bolded and italicized.
Author: Tim Yarbrough
Email: [email protected]
Web: http://www.extremechatforums.com
Demo: http://www.extremechatforums.com/ubbcgi/ultimatebb.cgi
Version: 1.2
UBB Version: 6.2.x
Download: Get it here

Sponsored Links
Joined: Apr 2001
Posts: 78
Member
Member
Offline
Joined: Apr 2001
Posts: 78
thanks ...but I have one question.. how do i change the size of the fonts in name list of recent visitors.. I dont like the size of the fonts, want them smaller in display.. Help please

Joined: Apr 2001
Posts: 711
Spotlight Winner
Spotlight Winner
Offline
Joined: Apr 2001
Posts: 711
Sweetness, thanks. I like this hack.

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Glad you guys like it. I had realy missed that old effect myself.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Makes Admins look more important. laugh
Great hack Tim.

Sponsored Links
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Thanks smile

Next im gonna add in the stuff to do it for wol list.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You don't need the -e check. If the number is in @xa, it has to exist.

You don't need to sling the whole profile around either. Try this instead:

my $user_status = (&OpenProfile($number))[8];

...then compare against that, not $user_profile[8]. smile

Good work though.


UBB.classic: Love it or hate it, it was mine.
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Thanks for the tip charles. I will try that as soon as i get home.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Good job Tim. smile

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Charles thanks for helping me out there i was trying for about an hour last night to get a better way for it to grab the info. Thanks alot i will update the hack in a second i have the new version on my board and it works great.

~~~edit~~~
I just updated the hack. smile

Sponsored Links
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Hi Tim,

Nice job with the code snippet. However the following chunk of code:

[code][/code]is not strict compatible. To make it compatible, I recommend you add my ($wol_se_s, $wol_se_e); before this code.

qasic

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
can you show me what you mean by placing it in the code???

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
I know what your saying. :0
I just took me a bit.
I will fix that in a bit. Thanks for pointing it out to me.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Nice one Tim now if pntf can ever get rid of the double records when php is enabled we might get somewhere

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Please move this to finished. It seems to be working fine with no bugs.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Please post it at finished wink

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Thats rigth i need to make it strick tonight. Sorry about that.

Joined: Apr 2001
Posts: 214
Member
Member
Offline
Joined: Apr 2001
Posts: 214
Anyway of making different color for Admin and Mods too?

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Raichu Babai
I would assume you just change the lines that set the bold and italics:

Code
[/code]the $wol_se_s is the start and the $wol_se_e is the end, so for instance to change the Administrator line, change them to:

[code]
That should work if I am reading it right. You can change the font color to what ever you like.

Joined: Apr 2001
Posts: 214
Member
Member
Offline
Joined: Apr 2001
Posts: 214
Thanks Storm, works great!

Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
anyway of adding a image beside admin and mod name?

Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
shure
just add the img tag right before the in the admin effect tag. smile
like
[code][/code]

Joined: Mar 2002
Posts: 1
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 1
quote:
Originally posted by Galipabi:
thanks ...but I have one question.. how do i change the size of the fonts in name list of recent visitors.. I dont like the size of the fonts, want them smaller in display.. Help please

Hi there,

Look, I am newbie of that stuf, But I figured out something.

Here is a small change to the code. If you want to change the font color, size..etc

quote:
SORTORDER: foreach my $number (@xa) {
my $pn = &GetPubName($number);

my $user_status = (&OpenProfile($number))[8];
if ($user_status eq "Administrator") {
$wol_se_s = "";
$wol_se_e = "
";

and the same for Moderator, or else.

Bye.

Joined: Mar 2002
Posts: 63
Member
Member
Offline
Joined: Mar 2002
Posts: 63
hmm the MegaModerators dont get the Bold effect frown

Anoyone know how to put this in :?

Joined: Mar 2002
Posts: 78
Member
Member
Offline
Joined: Mar 2002
Posts: 78
Yup, works just like the 6.0 WOL hack.

Much appreciated smile


1998 Firebird Formula with a blower and then some...
Joined: Aug 2001
Posts: 50
Member
Member
Offline
Joined: Aug 2001
Posts: 50
works great.

i had to use

$wol_se_s = "";

to change the color though....

Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
VVouter

public_pntf_summary.pl

find**

Code
[/code]add above**

[code]

Joined: Oct 2001
Posts: 22
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 22
quote:
Originally posted by Galipabi:
thanks ...but I have one question.. how do i change the size of the fonts in name list of recent visitors.. I dont like the size of the fonts, want them smaller in display.. Help please

yeah, i was just looking around the code to try and change the size of the font and color of the font (for ALL uses and the comma) to something different.. haven't been able to locate it yet.

one other thing i just noticed.. how come the list of names isn't sorted alphabetically? sorry.. i know this isn't related to this mod specifically.

Joined: Mar 2002
Posts: 63
Member
Member
Offline
Joined: Mar 2002
Posts: 63
Thanks ClanKiller it works smile

I tried soemthing like that but that crashed laugh

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
quote:
Originally posted by VVouter:
hmm the MegaModerators dont get the Bold effect frown

Anoyone know how to put this in :?

Just copy the Mod code and replace
if ($user_status eq "Administrator") { with
if ($user_status eq "MegaModerator") {

EDIT-Oops, clankiller already did it. shocked

Joined: Mar 2002
Posts: 63
Member
Member
Offline
Joined: Mar 2002
Posts: 63
i also got the font shrinker in forum so now if a megamoderator is on my forum everything after the and will get size -1 again..

example: vaag and vvouter (and vvouter = size -1 and vaag = size -2 he is a megamod)

Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
Hmm you guys can't find the line to edit the font size for the Who's Online feature? No problem guys, I found it.

Open public_pntf_summary.pl (Templete)

FIND:
Code
[/code]REPLACE:
Code
</pre></div></div>That's it. Upload file and clear cache.<br><br>For those you with this Who's Online hack installed, just scroll down a few lines below:<br>[code]
You'll find it down their. wink

Joined: Mar 2002
Posts: 63
Member
Member
Offline
Joined: Mar 2002
Posts: 63
Didnt ask for that wink

just a little problem with the megamod font size tipsy

Joined: Jul 2001
Posts: 122
Member
Member
Offline
Joined: Jul 2001
Posts: 122
I recall two people I believe asking about changing the font size for it on the forum summary. If not, my bad...

Kinda annoying seeing it in size 2. laugh

Joined: Mar 2002
Posts: 63
Member
Member
Offline
Joined: Mar 2002
Posts: 63
hehe I can unbold the megamods then i wont have problems with the size tipsy

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
well guys, this hack has a monster bug:

sometimes only it trys to find non existing members (which have been deleted previosly) and the forum quits with this message:

No member profile found for member number: '00002456'
(Backtrace: : ubb_lib_files.cgi:835 -> sub main::Tracer)
(Backtrace: : public_pntf_summary.pl:911 -> sub main::OpenProfile)
(Backtrace: : ubb_lib.cgi:1901 -> sub main::QuickSummary)
(Backtrace: : ubb_forum_summary.cgi:165 -> sub main::FilterPNTF)
(Backtrace: : ultimatebb.cgi:546 -> sub main::forum_summary)

I have checked it out 100 times, and its definitly this hack, thus I cant find out why. any suggestions ?`

the error occurs on 6.2.0 and on 6.2.1.1., if this error occurs on the forum it is not accessable. when I restore the original public_pntf_summary.pl the forum works again, when I hack the file the error occurs, but as I say, only sometimes and only for 10 minutes, after its okay again.

very strange.......

Joined: Dec 2000
Posts: 27
Member
Member
Offline
Joined: Dec 2000
Posts: 27
Does anyone have this hack, would like to install on 6.3 smile

tia again laugh

stubbsy

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I have most of Tims hacks on my comps and since he is gone and I am one of his closest friends I will probably re-release these for 6.3.

Joined: Dec 2000
Posts: 27
Member
Member
Offline
Joined: Dec 2000
Posts: 27
thx dexter smile

looking forward to it - keep up the good work

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thanks.

And expect some released this week.

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)