|
Joined: Jan 2002
Posts: 674
Junior Member
|
Junior Member
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? 
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
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
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
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
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.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
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
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
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
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
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.
|
|
|
|
Joined: Jan 2002
Posts: 674
Junior Member
|
Junior Member
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
Joined: Apr 2001
Posts: 3,266 |
|
|
|
|
Joined: Jan 2002
Posts: 674
Junior Member
|
Junior Member
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 at the moment - but expanding all the time....)
|
|
|
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.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|