Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
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 ]

Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Quote
quote:
Go
here .

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

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

#38710 02/22/2001 10:24 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
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 ]

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

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

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Until someone posts it in the database, we're screwed. it isn't anywhere to be found.

I lost my copy in a crash.

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Could someone PLEASE post this hack again?

Joined: Aug 2000
Posts: 15
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 15
Code
code:

Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Thank you InSite.

Joined: Apr 2001
Posts: 118
Member
Member
Offline
Joined: Apr 2001
Posts: 118
Did as instructed. Don't know if it because I choose to display categories only on first page, I get in a loop.

Joined: Apr 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 7
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 ]

if ($i % 2) {print "$AltColumnColor1";} else {print "$AltColumnColor2";}
$username =~ s/.(.*)//g;
$UserNameCoded = &HTMLIFY("$username");
$UserNameCoded =~ tr/ /+/;
if ($username !~ /Guest/) {
print qq(>

);
}

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

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 ]
Joined: Apr 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 7
----------------[ 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 "

);
} else { print qq(>
); }
print qq($username $invisible $hostname
$where $TheTime
Page 2 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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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
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)