Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Description: Adds a bar on your main page which lists all the mods and Admins on your forum. It also adds a new page that lists them too as well as where the Mods Moderate.

Authors: Lord Dexter & LK

Previous Authors: LK, Axeone, Tech-Ni-Kal

Requirements: UBB 6.3 and Mod Wordlets installed.

Features:
List of admins/mods
List of where admins/mods moderate
PNTF tracking
Team Image

New Features/Changes:
Automatic Activation of MegaMod when it's installed.
Team Image
New way of opening file arrays and updating list. (More server friendly thanks to LK)

Demo: Click Here

Download: Click Here

Update!
12th June 2002 1:20AM Board Time - If you have installed this hack before this date re-upload ubb_auth_list.cgi, public_auth_list.pl and re-hack public_forum_summary.pl. Fixes are the MegaMod activation and copyrights in public_auth_list.pl
13th June 2002 - If you have installed this hack before this date re-hack ubb_forum_summary.cgi and vars_wordlet_mods.cgi. MegaMod activation I hope is now fixed and : has been added to the MegaMod variable. (Thanks to Oblivion for that fix)
5th July 2002 - Fix in public_auth_list.pl. Pleae re-upload this to upgrade.
6th July 2002 - Fixed a bug in PNTF tracking. Now uses new PNTF code number. Re-hack ubb_lib_pntf.cgi, public_display_profile.pl and new step in public_pntf_admin.pl.

Please report ant bugs in code. Thank you. smile

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
LD,

I think your demo link is mistyped. It's .net right now and directs to a registrar site.

Just FYI. smile

I found the correct link using the one in your sig. (which is .com) Nice work! smile

~Z

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I don't think you got it tipsy

public_forum_summary.pl instructions already have $megamod, but it's invisible unless there are some megamods. So MegaModAddon's public_forum_summary.pl modification isn't necessary anymore.
My other suggestion of ubb_auth_list.cgi:
Code
[/code]public_auth_list.pl:[code]
Then you don't need megamodaddon.txt at all, and it shows the megamod line only if there is atleast 1 MegaModerator.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
LK, the thing is it leaves a blank line if the hack ins't installed and it doesn't look too good so thats why I had to take it out. Sorry. Actually, a better idea is to add the
in the megamod variable code and then that line goes kapoof!

And I will make those changes soon.

Zackary - Thank you, fixed link.

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Does the hack still use a lot of server resource or has that been fixed up now?

Thanks,
Oblivion Knight

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I mentioned in the first post it's fixed.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Ahem, where did I tell you TO ADD
TO PUBLIC_AUTH_LIST?!?!?!?!?!?!?! tipsy

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
quote:
Originally posted by Lord Dexter:
I mentioned in the first post it's fixed.

Very good news. After I work on debugging a couple things with my main/test board, I'll give this one a shot.


Sue
adwoff.com
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I installed it today, after modding it a little. It runs really well and I love the rebuild staff function. I think it's a great hack for people like me that don't always remember who all of the moderators are...hahaha, I know that sounds terrible but it gets busy there sometimes.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
quote:
Originally posted by LK:
Ahem, where did I tell you TO ADD
TO PUBLIC_AUTH_LIST?!?!?!?!?!?!?! tipsy

Gotcha now, fixing it up. wink
And thanks for installing XperT. LK did a good job with making it more server efficent (sp?). smile

EDIT - Zip has been updates. Instructions of how to upgrade are under the Download link in the post.

Sponsored Links
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
LD, my 6.3.0 was different to the instructions..

In ubb_lib_ptnf.cgi Find:

Code
[/code]My version was:

[code]

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

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
A couple of other things..
The code needs changing a little if using the MegaMods part of the hack.. wink

I understand that if you used this hack and not the MegaMods hack, that the 'Mega Moderators:' part of the hack at the bottom of the forum summary would still show, so I don't know how you'd want to go about this..

In public_forum_summary.pl:

Code
[/code]Change to:

Code
</pre></div></div>In <span style="font-weight: bold">ubb_forum_summary.cgi</span>:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
Change to:

Code
</pre></div></div>In <span style="font-weight: bold">vars_wordlets_mods.cgi</span>:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
Change to:

[code]
Also, how would I go about adding the team icon next to a MegaMods name in a topic? wink

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Oh JEEZ, LD, if I give you good code, you have to break it?! tipsy
The code straight from my text file: [code][/code]Why did you remove the first part? :rolleyes:

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
But my way of doing it is still satisfactory i hope? wink

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
No, because yours says "Mega Moderators:" also if you haven't installed that hack... It's fine for YOUR board, but not for the instructions tipsy

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Sorry LK, I had changed it for my board but not the instructions and OK if you had looked at the $megamod variable code it already includes the wordlet info. Zip updated. Sorry for my forgetfulness. tipsy

Joined: Jun 2002
Posts: 121
Member
Member
Offline
Joined: Jun 2002
Posts: 121
I downloaded this hack but.
when it says

[code][/code]Well I dont have this file I only have ubb_lib_pnft.cgi


I Cannot Support Ubb Via ICQ or MSN.
Not because I dont want to its just I cant. tipsy
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thats the file (ubb_lib_pntf.cgi). Sorry it was a typo and it will be fixed soon. smile

Joined: Jun 2002
Posts: 121
Member
Member
Offline
Joined: Jun 2002
Posts: 121
Well the code is actually wrong I dont have
this:
Code
[/code]The closest Ive got to that is this.
[code]


I Cannot Support Ubb Via ICQ or MSN.
Not because I dont want to its just I cant. tipsy
Joined: Jun 2002
Posts: 121
Member
Member
Offline
Joined: Jun 2002
Posts: 121
i went ahead and changed it.
(Backed up though) wink

Well it worked in the control panel I could rebuild staff index but when I went o look at my boards it says:

quote:
An error has occured:

ubb_lib_pntf.cgi: syntax error at D:GearHostHostingAccountsdigitalfaultwwwforumscgi-bin/ubb_lib_pntf.cgi line 108, near "if"

Please inform the board administration of this error so that they may fix the problem. Thank you!

This also happens when I click on the Authority list at the top of the page.


I Cannot Support Ubb Via ICQ or MSN.
Not because I dont want to its just I cant. tipsy
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Make sure the code is like this inside that file (the part you added first)

if((exists $in->{ubb}) && ($in->{ubb} ne '')) { if($in->{ubb} !~ m/^(authority|forum|get_topic|pntf)$/) {

And not added after.

Joined: Jun 2002
Posts: 121
Member
Member
Offline
Joined: Jun 2002
Posts: 121
yeah me and my friend just worked that out.
Thanx for your help LD


I Cannot Support Ubb Via ICQ or MSN.
Not because I dont want to its just I cant. tipsy
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I better make the instructions alot more clearer for the people who can't figure it out. Eep...

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
I go to the "Rebuild Staff Index" page in the CP and I get:

quote:
Undefined subroutine &main::rebuild_staff called at cp.cgi line 851.
I've rehacked cp.cgi, but still no good.

Little help please? frown

[EDIT: Never mind, I forgot to save cp_index.cgi. -_-;; ]

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
How can I put the team icon next to a MegaMod's name..?
Currently this hack isn't doing this for me.. frown

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Oblivion use this in public_topic_page.pl instead of what you have now.

[code][/code]

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
I think you mean

[code][/code]But anyway, thanks LD smile

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I don't see the difference. o_O

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
You added an extra 'if' in front of '($user_profile[8] eq "MegaModerator")){'

Which isn't needed and causes errors.. wink

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Ahh. What an idiotic mistake.

*Calls LK for an auto activation for the MegaMod team icon* tipsy

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Actually, it doe it automatically if you use Oblivion Knight's code, because if you haven't installed megamod, the user_profile[8] will never be 'MegaModerator'.

laugh

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Wahey..!
I've done something right for a change.. tipsy

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Will update the link with new code once my server gets back up.

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Just out of interest..

Shouldn't this:

Code
[/code]Be this?

[code]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
No, because "Moderator" is included in "MegaModerator". (/Moderator/, not /^Moderator$/)

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Zip Updated. Auth list template now uses $standard_title_table variable. Re-upload public_auth_list.pl.

Also, coming soon. An useless Auth List feature!

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Zip Updated again. Fixed a bug in PNTF tracking. Now uses new PNTF code number. Re-hack ubb_lib_pntf.cgi, public_display_profile.pl and new step in public_pntf_admin.pl.

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Either me or you missed a square bracket from this blob of code in public_topic_page.pl..

Code
[/code]It should be..

[code]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thanks Oblivion, must have deleted it. Zip Updated with that little fix.

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
Posts: 70
Joined: January 2007
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
Morgan 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)