Previous Thread
Next Thread
Print Thread
Rate Thread
#113668 05/01/2001 8:56 PM
Joined: Aug 2000
Posts: 45
Member
Member
Offline
Joined: Aug 2000
Posts: 45
Ok, here is something I would like to do, I would like to have multiple layouts for my pages. So for instance My News Forum would have like a news page layout, and my discussion pages would be the default layout. Is it possible to point a specific forum to a different version of "public_topic_page.pl". That way I think I can pull off 2 layouts? Any help would be much appreciated. laugh

Sponsored Links
#113669 05/01/2001 9:03 PM
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
I am currently working on this for a site I'm developing. The whole project is rather under wraps right now, so I can't go into detail. But I'll let you know once I get closer to release. smile

---Skorpion


Don't put that signature in your mouth! You don't know where it's been!
#113670 05/01/2001 9:12 PM
Joined: Aug 2000
Posts: 45
Member
Member
Offline
Joined: Aug 2000
Posts: 45
well can I email you for tips? I really need this done for my site. Can the logic be hardcoded into the section that pulls the template for display.

So like :

if (ForumNumber=3){
Template==pulic_topic_page2.pl
} else {
Template==pulic_topic_page.pl
}

What file calls the template?

#113671 05/01/2001 9:58 PM
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
That's basically it........ (since you guessed it, I won't tell you no... ;))

Um, I'm pretty sure it's in ubb_forums.cgi.

There will be a Require statement a little ways into the file... just a quick if/then/else statement that wraps around the Requires line to pick which template file actually gets called.

Oh, yeah, you can email me for tips if you want.

---Skorpion

[ May 01, 2001 09:58 PM: Message edited by: Skorpion ]


Don't put that signature in your mouth! You don't know where it's been!
#113672 05/01/2001 10:25 PM
Joined: Aug 2000
Posts: 45
Member
Member
Offline
Joined: Aug 2000
Posts: 45
sweetness!!! Thanks man. Ill let you know how it goes. laugh

Sponsored Links
#113673 05/02/2001 12:26 AM
Joined: Aug 2000
Posts: 45
Member
Member
Offline
Joined: Aug 2000
Posts: 45
Hey Skorpion, you wouldnt be trying to do a news display hack would ya?

#113674 05/12/2001 6:03 AM
Joined: May 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 2
Whould this be able to work with oh... I don't know... 270... diffrent... boards?

#113675 05/13/2001 9:58 AM
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
Rodster: hehe, um, why ever would you ask that? wink News display and actually something else, too.......

Gruler: If you've got the time to program them all into there, I would suppose it would work for however many you need it to. I have no clue what impact doing this has on the speed of the board, though... so if there is any speed drawbacks, having this done for 270 different boards would almost definitely make it noticeable (unbearable?).

---Skorpion


Don't put that signature in your mouth! You don't know where it's been!

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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)