UBB.Dev
Posted By: PhOeNiX LanDinG Private Boards on 2nd Page - 10/30/2000 3:56 AM
This hack allows all private boards to be displayed on a second Ultimate.cgi styled page. The idea was stolen from Planet Community, but the hack is written by me.
http://www.gamespecs.com/warez/PrivateBoards.zip

Little bit of knowledge about ubb and the forums.cgi file needed to install. Its pretty basic though. Takes about 5 minutes for the knowledgable.

Looks awesome when finished!

PhOeNiX LanDinG
Posted By: Jigga-Master Re: Private Boards on 2nd Page - 10/30/2000 4:23 AM
im probably gonna be adding it later

------------------
-= DFT =-
...................
I don mean dis in a disrespectful way//
But colombine happens in the ghetto happens every day//
Uncle L
Posted By: Greg Hard Re: Private Boards on 2nd Page - 10/30/2000 4:23 AM
You have it in the warez folder PL. ROFL!

2nd. Borg is a mod here, maybe you shouldn't mention you stole the idea.

Nice one though.

The docs suck, but whatever. [Linked Image]

Dont worry guys (and deb), we are friends. [Linked Image]

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 10/30/2000 12:04 PM
Yeah, i didn't really "steal" the idea. I just published a way to do it. Alot of people have been writing me lately asking me if i knew how to "do private boards like Cheat Planet". I just decided to step up to the challenge and try. Quite frankly, it was easy. Mine and Masterminds ubb is, well, kinda too small to actually have a use for this. It does look vrery nice when completed though.

He's lucky he's friends with me [Linked Image]

PhOeNiX LanDinG
Posted By: Outlaw Re: Private Boards on 2nd Page - 10/30/2000 12:08 PM
I am not sure I understand.
Will regular users be able to see the private boards?

Is there a demo I can look at? Does it require two different sets of Members folders?

Also, can an existing board wioth many private forums [like 20] be modified with this hack without loosing threads and user permissions? Please give more details?
Thanx

This message has been edited by Outlaw on October 30, 2000 at 04:11 AM
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 10/30/2000 10:00 PM
They way i have written this hack is VERY SIMPLE. It works simply by creating a new Category for Private Boards. After you do this, there is a few small edits to Ultimate.cgi to filter out any board in the "Private Boards" category from showing up when displaying the main page. The second page is a duplicate of Ultimate.cgi, edited so that ONLY forums in the "Private Boards" category are displayed, then the duplicate is renamed "PrivateBoards.cgi".

I wrote this the shortest possible way i could think of, it is what i like to call a poor mans hack, no heavy tricks or code that you can't understand.

demo: http://www.gamespecs.com/cgi-gamespecs/Ultimate.cgi

PhOeNiX LanDinG
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/01/2000 3:45 AM
Here's a tiny fix I thought you would like; the way it is going now it regets cookies and resets the light bulbs. Just a tiny link fix:

In Ultimate.cgi, find:
Code
code:
REPLACE that with:
Code
code:

That fixes it.

------------------
--Dark Templar
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/01/2000 7:08 AM
Internal Server Error
Followed the instructions, dubbled checked but still Internal Server Error, somethings wrong at:
PrivateBoards.cgi line 649, near "elsif"

PrivateBoards.cgi line 670, near "}"

PrivateBoards.cgi aborted due to compilation errors.

Premature end of script headers: /home/www/data-doktorn.nu/cgi-bin/ubb/PrivateBoards.cgi

PrivateBoards.cgi line 640, near ")

I love errors......not!

Any clues to this?
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 11/01/2000 8:59 AM
First... thanks dark templar. i ALWAYS forget to put on the cookie part of that string. I just noticed that the bulbs weren't working on my site. [Linked Image] I'll be fixing the docs with that tonight and reuploading them.

anderzzo... What the heck you doing over there? LoL. I'll check out the docs when i redo them tonight, but it sounds like you got some extra brackets or something like that in there.

Eh... i'll look into it. I'm currently working on a new hack right now.

This WAS my break [Linked Image]

PL


------------------
X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/01/2000 10:16 PM
Also, you need to fix the one that returns to Ultimate.cgi (forgot to put this in the other post):

In PrivateBoards.cgi, find the occurance of the following that's inside the table:

Note that you will find it more than once and you need to make sure it is in the part that links back to the normal boards:
Code
code:

REPLACE with:
Code
code:

That should do it.

------------------
--Dark Templar

This message has been edited by Dark Templar on November 01, 2000 at 02:18 PM
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/01/2000 10:21 PM
Also, I am considering writing an addon so that instead of changing all the numbers to fit with the category number, you can put the number of the category in the Genral Settings part of the control panel .

That sound good?

------------------
--Dark Templar
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/02/2000 9:57 PM
Tried once again same prob. heres the log:

syntax error at /home/www/data-doktorn.nu/cgi-bin/ubb/PrivateBoards.cgi line 642, near ")
if"
syntax error at /home/www/data-doktorn.nu/cgi-bin/ubb/PrivateBoards.cgi line 651, near "elsif"
syntax error at /home/www/data-doktorn.nu/cgi-bin/ubb/PrivateBoards.cgi line 672, near "}"
Execution of /home/www/data-doktorn.nu/cgi-bin/ubb/PrivateBoards.cgi aborted due to compilation errors.
[Thu Nov 2 21:00:03 2000] [error] [client 193.150.195.12] Premature end of script headers: /home/www/data-doktorn.nu/cgi-bin/ubb/PrivateBoards.cgi


Heres the code:
Line 642: if ($ForumTotalOption eq "Topics") {
Line 651: elsif ($ForumTotalOption eq "Posts") {
Line 672: } ## End IF ONOFF Conditional

What's wrong? Do you need more info, just tell me or e-mail me!

Thanx
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 11/02/2000 10:03 PM
Were you putting in a hack besides this one when you were getting this error? None of that code is really involved with this.

Dark Templer,
I fixed the cookie problem in the docs. Thank you. Feel free to do whatever you want to. I actually prefer editing alot of stuff in the scripts. It doesn't bother me. Plus when i read them, i learn more about them.

PL



------------------
X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/02/2000 11:05 PM
I've installed hacks earlier, but everythings is working! do I need to make a copy of a "non touched" Ultimate.cgi?
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/03/2000 12:25 AM
Nope! That didn't work! I've got UBB 5.47.
I guess it doesn't work un that one...
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/03/2000 12:53 AM
It works on 5.47. Try going back to your backed up files and reinstalling it.

------------------
--Dark Templar
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/03/2000 12:59 AM
Done it twice already [Linked Image] no luck...
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/03/2000 2:34 AM
then you're probably reading something wrong or skipping a step.

------------------
--Dark Templar
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 11/03/2000 2:39 AM
Yeah bud, i'm sorry you are having so much trouble with it. As i said earlier, this is what i called a "poor mans" hack. There really isn't much code to add at all. If you need serious help with it, aim or icq me. My name/numbers are on my profile.

After so, i will post what the problem was here so that other people can watch for it.

PhOeNiX LanDinG

------------------
X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Posted By: Doc Re: Private Boards on 2nd Page - 11/03/2000 4:53 AM
[QUOTE]Originally posted by anderzzo:

Heres the code:
Line 642: if ($ForumTotalOption eq "Topics") {
Line 651: elsif ($ForumTotalOption eq "Posts") {
Line 672: } ## End IF ONOFF Conditional

Ok, I might be late on this but look at this code you posted. You have 2 { and only 1 } If this is what your looking for, then that should fix your error problem.
Posted By: Logix Re: Private Boards on 2nd Page - 11/07/2000 2:17 AM
Sounds really cool PhOeNiX... I just want to make a small request. I want to request that you add a small thing like next to the number of posts where you can input the number of members that private board has via the control panel. This is just a suggestion though.
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 11/10/2000 8:37 AM
That sounds like a pretty cool idea. Hmm... *thinks about how to do it.

I'll look into it in the future, right now i have a few other things i want to work on though. Plus, i have my own site to run, and a new mod spot here. BUT, i will make an effort to do that.

PhOeNiX LanDinG

------------------
X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Posted By: PhOeNiX LanDinG Re: Private Boards on 2nd Page - 11/10/2000 8:39 AM
Ok... i thought of another use for this hack earlier today. Someone requested that someone wrote a hack that could "hide" forums from regular members to see.

Well, this is a really cheap way of doing this, but involves no thought. Install this hack, then just rename the PrivateBoards.cgi anything you want, also whereever i say to make a category called, "PrivateBoards" just make it "Invisible" or something like that instead. No one will find it. Also leave out the link from Ultimate.cgi to the private boards if you arne't using this hack for its initial purpose.

Pretty easy and useful huh?

PhOeNiX LanDinG

------------------
X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Posted By: Logix Re: Private Boards on 2nd Page - 11/10/2000 7:55 PM
PL, This is a great hack. I put it on my boards and worked great. I even started playing with it so that it can be used like a "sub category" kind of thing. Very nice, very easy to install, and very easy to adapt to your needs. It worked great with me. I have 4 of these on my boards. One for private boards, 1 for misc. boards, and 2 for gaming. Really great hack.
Posted By: Bring In The Geek Re: Private Boards on 2nd Page - 11/11/2000 6:36 AM
Your hack refers to a PrivateBoards.cgi file, but there was not one in the zip file. Where do I get this file?

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it.
Mr. Webb Network Services
MrWebb.Net UBB Hacks List
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/11/2000 7:23 AM
You duplicate your Ultimate.cgi and rename the duplicate to PrivateBoards.cgi

------------------
--Dark Templar
Posted By: Bring In The Geek Re: Private Boards on 2nd Page - 11/11/2000 9:05 PM
OK, if I had read the instructions, I would have seen that. Anyway, I made a copy of my Ultimate.cgi and named it PrivateBoards.cgi. I then made the modifications according to the instructions and uploaded the file. I then chmodded it to 755.

I get an "Internal Server Error" when I run it in my browser. I then run this script through my testmy.cgi file (to test the script) and it come back and says:

Script Test Results
syntax error line 705, near ")

unless"

syntax error line 754, near "}"

Execution aborted due to compilation errors.

The only difference I can see in the instruction are the following:

find

} else {
$GutsRow = qq(
$TotalTopics

$TotalPosts

$TheDate $Breaker$LatestTime

$LatestPostBy


$Moderator );
}

Below that add:

}

I cannot find that code. Mine looks like this:

} else {
$GutsRow = qq(
$TotalTopics

$TotalPosts

$TheDate $Breaker$LatestTime

$LatestPostBy

$modcolumninfo_alt );
}
}

Where do I add the additional }????

I tried adding it below:

$modcolumninfo_alt );
}
}

But I still get the same error. BTW - I have v5.47 of the ubb.
------------------
When you sin, you don't fall FROM God's grace, you fall INTO it.
Mr. Webb Network Services
MrWebb.Net UBB Hacks List

This message has been edited by mrwebb on November 11, 2000 at 01:08 PM
Posted By: Logix Re: Private Boards on 2nd Page - 11/11/2000 9:40 PM
this is my code.


Quote
quote:
I'm running v5.46 without any problems with this hack.

This message has been edited by Logix on November 11, 2000 at 01:42 PM
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/12/2000 6:47 AM
I got this when I ran a test on my PrivateBoards.cgi, never got this script working!

Script Test Results
1 syntax error line 642, near ")
2 if"
3 syntax error line 651, near "elsif"
4 syntax error line 672, near "}"
5 Execution aborted due to compilation errors.
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/13/2000 12:04 AM
Got it working! Thanx Logix for that code!
Posted By: Bring In The Geek Re: Private Boards on 2nd Page - 11/13/2000 9:02 PM
Well, I replaced my code with the one that was just suggested and i still ge the same error. I don't get it.

Any ideas?

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it.
Mr. Webb Network Services
MrWebb.Net UBB Hacks List
Posted By: anderzzo Re: Private Boards on 2nd Page - 11/13/2000 11:55 PM
Did you change:

# check Forum Total option--
if ($thisforuminfo[0] eq "7") {

to the right number (Think it's the category number) as you were asked in the script!
Posted By: Logix Re: Private Boards on 2nd Page - 11/14/2000 3:24 AM
I helped? Really? You're not just saying that? hehe.... No prob. I was jsut hopin' someone would be able to use the code.
Posted By: Sukotto Re: Private Boards on 2nd Page - 11/19/2000 12:18 AM
Anyway to edit ubb_library2.pl so within the private forums the logo in a topic doesn't link to Ultimate.cgi and same with Forumdisplay.cgi

i edited PrivateBoards.cgi to remove the Ultimate.cgi and change it to PrivateBoards.cgi.

Any idea's??

------------------
http://forums.pp-network.com
http://www.pp-network.com
Posted By: Dark Templar Re: Private Boards on 2nd Page - 11/19/2000 1:36 AM
Yeah, it can be done, PP-N. If I have some spare time, I'll run through the coding. I'll also work on the control panel addon for this.

------------------
--Dark Templar
Posted By: Sukotto Re: Private Boards on 2nd Page - 11/19/2000 12:49 PM
Also the Who's Online hack within PrivateBoards.cgi

find
Code
code:
Change to
Code
code:

------------------
http://forums.pp-network.com
http://www.pp-network.com
Posted By: Sukotto Re: Private Boards on 2nd Page - 11/19/2000 12:54 PM
I also done a little control pannel hack. Too lazy to actually make a seperate file so i just added one on to the General Settings at the end. Sets the Variable $PFN

which is Private Forum Number.

[Linked Image] I am the lazy one [Linked Image]

I could probably write it up if anyone wants it.

------------------
http://forums.pp-network.com
http://www.pp-network.com
Posted By: Dm_Vinny Re: Private Boards on 2nd Page - 01/06/2001 3:17 AM
First, great hack..

Second, how about implementing these;

1. Allow it to look like a forum, instead of its own category link, in other words have it look like:

Forum 1
Forum 2
Forum 3
Forum 4 <-- the privateboards.cgi
Forum 5...

2. How about some security like check for axs privilages like a normal private forum would.

just some suggestions, that would make me eyes light up alittle.
Posted By: Djnemesis Re: Private Boards on 2nd Page - 02/02/2001 9:18 AM
Thanks for the code guys, I shoulda read this post before staring at the code for awhile to make it work. The instructions were missing the { after this step listed below, if you add the { to it, it fixes all the script error problems.


Find:

if ($Moderator eq "") {
$Moderator = " ";
}
# check Forum Total option--

below that add:

if ($thisforuminfo[0] eq "9") {


*note* - i added in the { on the last line for you guys, so if anyone was still unclear on what was causing the problem, then just add in the litte { and all is good my friends. Btw, i find this board very good and I'd like to thank everyone for their help with so many things, I've always been a reader and not a poster for some reason.
Posted By: shingen Re: Private Boards on 2nd Page - 02/14/2001 1:48 AM
Was wondering where I could get this hack. Its no longer on the website posted in the starting post frown
Posted By: NBAustin Re: Private Boards on 2nd Page - 02/22/2001 12:23 AM
I basically want an "extension" of the main UBB, but for one big category that will hold 50 forums on a seperate page.

IOW,

I want my regular ultimate.cgi stay the way it is (and NOT show the new forums I want to add to show on the second page) PLUS...

Create a NEW category in it and have it or a forum within it link (hard-code the link) to a new page with the new category and all it's forums listed on the new page. also...I need this to be PUBLIC so all members of the main UBB can use this "extension".

Possible?

[ February 22, 2001: Message edited by: NBAustin ]
Posted By: NBAustin Re: Private Boards on 2nd Page - 02/23/2001 2:55 AM
Quote
quote:
Go
here .
Posted By: NBAustin Re: Private Boards on 2nd Page - 02/23/2001 3:15 AM
If what I've asked above is possible, I plan to have the second page list about 50 forums.

Is there some code that would be make adding all these easier than manually entering the forum number in the code over and over?

Entering 50 forum number code additions in addition to entering the 50 new forums in the CP will be very tedious!

[ February 22, 2001: Message edited by: NBAustin ]
Posted By: NBAustin Re: Private Boards on 2nd Page - 02/23/2001 4:24 AM
Quote
quote:
I can't believe I missed this post.

This is EXACTLY what I want, but I also need the link to let public users have access, and to have some easier code to install 50 forums to be shown on the other cgi.

I imagine the only thing else that needs to be done is hard-code the forum to link to the other cgi.

Can someone please help me out?

[ February 22, 2001: Message edited by: NBAustin ]
Posted By: NBAustin Re: Private Boards on 2nd Page - 02/23/2001 5:24 AM
OK...

I've solved a couple things.

For the forum linking to the second board, I'll create the category and forum and make the forum non-writable to the membership, but link via HTML in the description area to the second board.

I'll forego the hb.gif and pb.gif stuff and put regular HTML links on the new board to link back.

Only one real question remains:

How can I get away from putting this code in over and over, and must the { be put in each and every instance, and must they all be closed with a } each and every time?

if ($thisforuminfo[0] ne "X") {

[ February 22, 2001: Message edited by: NBAustin ]
Posted By: NBAustin Re: Private Boards on 2nd Page - 02/24/2001 2:02 AM
Jeez...

I feel dumb.

Reading the instructs (not good docs) made me assume i'd have to modify a few things.

This hack ROCKS!

I had to modify only a few things, and it works like a charm! Added 52 forums and it looks like they're taking off faster than i thought!
http://www.unitedconservatives.com/ubbcgi/Ultimate.cgi
Posted By: HackAttack Re: Private Boards on 2nd Page - 03/14/2001 11:57 PM
Quote
quote:
Went there & it wasn't there - forum contents couldn't be found - it looked like some cyber monster just went on the rampage there!

... so where do I look next?

a.
Posted By: NBAustin Re: Private Boards on 2nd Page - 03/15/2001 12:42 AM
Until someone posts it in the database, we're screwed. it isn't anywhere to be found.

I lost my copy in a crash.
Posted By: NBAustin Re: Private Boards on 2nd Page - 04/08/2001 8:32 AM
Could someone PLEASE post this hack again?
Posted By: InSite Re: Private Boards on 2nd Page - 04/12/2001 4:40 AM
Code
code:
Posted By: NBAustin Re: Private Boards on 2nd Page - 04/14/2001 4:52 PM
Thank you InSite.
Posted By: Lionel Re: Private Boards on 2nd Page - 04/25/2001 4:37 PM
Did as instructed. Don't know if it because I choose to display categories only on first page, I get in a loop.
Posted By: napalm Re: Private Boards on 2nd Page - 04/25/2001 11:20 PM
The idea of this is great.
The instructions suck.

I used this script to hide a couple forums from the main forums. so i did not include the link on the bottom of each pages.

I did get it working. My only problem is that when people view who is online using the online.cgi file. It reveals the location and name of the hidden forum. It also provides a link to the hidden forum. I was wondering if any one could write up a simple script to make those forums invisible.

The version of ubb i am running 5.47.

[ April 25, 2001 04:21 PM: Message edited by: napalm ]
Posted By: napalm Re: Private Boards on 2nd Page - 04/26/2001 1:20 AM
----------------[ Online.cgi ]-----------

if ($tot <= $end_at) { $end_at = $tot; }
for ($i = $start_at; $i < $end_at; $i++) {
($usertime,$username,$host_ip,$where) = split(/|^|/,$found[$i]);
if ($username =~ /.inv/ && !$adminstatus) { next; }
undef($invisible);
if ($username =~ /.inv/) {
$username =~ s/.inv//;
$invisible = " (invisible)";
}
if ($username eq "guest") {
$guest_counter++;
$username = "Guest #" . "$guest_counter";
}
if ($hostinfo) {
$hostname = gethostbyaddr(inet_aton($host_ip), AF_INET);
if (!$hostname) { $hostname = $host_ip; }
}
if ($hostinfo) { $hostname = "
($hostname)"; }
&get_date($usertime);
if ($DateFormat eq "USX") { $DateFormat = "USExpanded"; }
$TheDate = &DateFormat("$mon-$mday-$year", "$DateFormat");
$TheTime = &TimeFormat("$hour:$min");
print " if ($i % 2) {print "$AltColumnColor1";} else {print "$AltColumnColor2";}
$username =~ s/.(.*)//g;
$UserNameCoded = &HTMLIFY("$username");
$UserNameCoded =~ tr/ /+/;
if ($username !~ /Guest/) {
print qq(>
);
} else { print qq(> ); }
print qq($username
$invisible $hostname
$where
$TheTime );
}

------------------------------------------

I am trying to hide a certain forum from the who is online list.

$where displays the persons location. What kind of code can I add in to make $where reflect something else? Also it is a link.. I don't want it to be a link.

help? anyone?!

[ April 25, 2001 06:23 PM: Message edited by: napalm ]
© UBB.Developers