Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#38666 10/29/2000 8:56 PM
Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Sponsored Links
Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
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

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
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

Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Joined: Oct 2000
Posts: 39
Member
Member
Offline
Joined: Oct 2000
Posts: 39
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

Sponsored Links
Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
#38673 11/01/2000 12:08 AM
Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
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?

Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Sponsored Links
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
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

Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
I've installed hacks earlier, but everythings is working! do I need to make a copy of a "non touched" Ultimate.cgi?

Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
Nope! That didn't work! I've got UBB 5.47.
I guess it doesn't work un that one...

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
It works on 5.47. Try going back to your backed up files and reinstalling it.

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


-DT
Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
Done it twice already [Linked Image] no luck...

Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
then you're probably reading something wrong or skipping a step.

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


-DT
Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Joined: Oct 2000
Posts: 3
Doc Offline
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 3
[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.

Joined: Sep 2000
Posts: 22
Member
Member
Offline
Joined: Sep 2000
Posts: 22
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.

Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
Joined: Jul 2000
Posts: 52
Member
Member
Offline
Joined: Jul 2000
Posts: 52
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


X-Admin Of Gaming Update
Pioneer of Gamespecs.com
#38689 11/10/2000 12:55 PM
Joined: Sep 2000
Posts: 22
Member
Member
Offline
Joined: Sep 2000
Posts: 22
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.

#38690 11/10/2000 11:36 PM
Joined: Jan 2000
Posts: 94
Member
Member
Offline
Joined: Jan 2000
Posts: 94
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


When you sin, you don't fall FROM God's grace, you fall INTO it.

Bring In The Geek Consulting Services
#38691 11/11/2000 12:23 AM
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
You duplicate your Ultimate.cgi and rename the duplicate to PrivateBoards.cgi

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


-DT

);
}

Below that add:

}

I cannot find that code. Mine looks like this:

} else {
$GutsRow = qq(
$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

When you sin, you don't fall FROM God's grace, you fall INTO it.

Bring In The Geek Consulting Services
Joined: Jan 2000
Posts: 94
Member
Member
Offline
Joined: Jan 2000
Posts: 94
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

$TotalTopics

$TotalPosts

$TheDate $Breaker$LatestTime

$LatestPostBy
Joined: Sep 2000
Posts: 22
Member
Member
Offline
Joined: Sep 2000
Posts: 22
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

#38694 11/11/2000 11:47 PM
Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
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.

Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
Got it working! Thanx Logix for that code!

Joined: Jan 2000
Posts: 94
Member
Member
Offline
Joined: Jan 2000
Posts: 94
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


When you sin, you don't fall FROM God's grace, you fall INTO it.

Bring In The Geek Consulting Services
Joined: Oct 2000
Posts: 99
Member
Member
Offline
Joined: Oct 2000
Posts: 99
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!

Joined: Sep 2000
Posts: 22
Member
Member
Offline
Joined: Sep 2000
Posts: 22
I helped? Really? You're not just saying that? hehe.... No prob. I was jsut hopin' someone would be able to use the code.

Joined: Sep 2000
Posts: 71
Member
Member
Offline
Joined: Sep 2000
Posts: 71
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


vBulletin Team
[email protected]
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
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


-DT
Joined: Sep 2000
Posts: 71
Member
Member
Offline
Joined: Sep 2000
Posts: 71
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


vBulletin Team
[email protected]
Joined: Sep 2000
Posts: 71
Member
Member
Offline
Joined: Sep 2000
Posts: 71
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


vBulletin Team
[email protected]
Joined: Jun 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 3
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.

Joined: Feb 2001
Posts: 127
Member
Member
Offline
Joined: Feb 2001
Posts: 127
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.

Joined: Jan 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 4
Was wondering where I could get this hack. Its no longer on the website posted in the starting post frown

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)