Previous Thread
Next Thread
Print Thread
Rate Thread
#265339 12/25/2003 1:17 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Is it possible to have multiple IIP pages. I have it setup for fishing but board has hunting too... so would be nice to have a hunting IIP page. Just wondering?

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Well anything is possible.

I guess the easiest thing is to ask what kind of parameters do you require. You want different index's based on what variable?

I have in my time coded up some pretty bizarre things based on user's requests so it all depends on what specific set of circumstances someone needs.

I have coded multiple index's with multiple configs but how you go about implementing them is specific to what one is trying to do. I never much saw a point to it so I never released it as it was just play on a test site.

I see on your site you have ONE cat that is hunting. There are ways to do it but you need to specify what your after and I can point you in the right direction

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I was using hunting as the example but actually with a config iip screen I could make more region specific subtle information. (weather, tides, regulations, river levels, locations, news and stuff like that) Giving the users better tools to use the site is what I am shooting for.

Since I am based in western washington there are many other factors that differ and are geared towards other techniques or locations. So in reality it would be nice to have a page for Western Washington, Oregon, British columbia, alaska, etc..

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay so your talking about 4 index's you can setup with 4 different layouts.

Well the easy way would be to make another 4 versions of index.php,doeditconfigpal.php, editconfigpal.php and configpal.php

Basically the long and short of it is he following. You have your original set. Say this is Western Washington. You want to make another copy changing all references to any of the files a number on the end or name whatever. Example configpal.php becomes configpal1.php, You follow what I am saying here. You can follow that scheme for all 4 versions So inessense you will be able to call index1 index2 index3 index4 etc and then be able to edit each index and save each in its each config. You might want to tie in the extra pal box mod I posted.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I like it .. thanks!! Will try to put this to work with the extra pal boxes. This is really gonna open up some possiblities. Now to get some of the autochoose group mods working.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yeah its not a hard mod to do. Just making sure you can call each page edit it and saves it own config.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
thanks chuck it works like a charm
I used index.php and config as search strings to find the right files to update. Index1 working now.. To cool

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep you just need to modify those 4 files to point to each other and you can make unlimited IIP index pages

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
For my next brainstorm.. how do I change the header on each of these to be more specific.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL well thats a more detailed mod.

IIP uses the default header mod.
$html -> send_header($config['title'],$Cat,0,$user);
list($tbopen,$tbclose) = $html -> table_wrapper();

This is untested but would probally work I use something similar to rewrite multiple index pages into who's online

In ubbt-inc.php find this:

// ----------------------------
// require the header.php file
if ( ($script['2'] != "top") ) {
if ($fheader) {
$header = "header_$Board.php";
}else {
$header = "header.php";
}


Under it place this:

$currentPage = $_SERVER['SCRIPT_FILENAME'];

if ( $currentPage == "/PATH/TO/index1.php") {
$header = "header_index1.php";
}
elseif ( $currentPage == "/PATH/TO/index2.php") {
$header = "header_index2.php";
}
elseif ( $currentPage == "/PATH/TO/index3.php") {
$header = "header_index3.php";
}
elseif ( $currentPage == "/PATH/TO/index.php") {
$header = "header.php";
}

Now remember not to overwrite the final closing }

You will need to place 3 more header files in your includes directory if you want a different one in the format meantioned above header_index1.php etc.

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Thanks Chuck.

edited next question.. found answer

Last edited by Smilesforu; 12/26/2003 3:52 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL so no more questions

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
They coming just trying to find time to get to that point. Really appreciate the help as it opens me up to keep plugging away at the big picture. This place is the help desk/manual for integrations.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
[]Smilesforu said:
Thanks Chuck.

edited next question.. found answer [/]

Everyone wants to know what the question was now


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)