![]() |
ah yes i see... i am slowing down on this and other hacks... waiting for word on the next release...
thanks |
Yeah, this is the only hack i am installing :-), i got what you want working:
see http://www.ascifi.com/forums/index.php same as http://www.ascifi.com/forums/index.php?go=1 shows the stargate forums: see http://www.ascifi.com/forums/index.php?go=2 shows sci-fi movies forums of course 3 levels of categories would be better, hopefully in next release. Wonder how long :smile: |
Chris,
How'd you do that? |
Quote:
|
Make it so that you have only one index.php. Put this at the top:
if (isset($go)) { if ($go==1) { $catname="Stargate"; $yourcat="1_2_3_4_5_6"; } elseif ($go==2) { $catname="Sci Fi Films"; $yourcat="7_8_9_10_11_12_13"; } elseif ($go==3) { $catname="Farscape"; $yourcat="14_15_16_17_18"; } else { $catname=""; $yourcat="1_2_3_4_5_6"; } } else { $catname=""; $yourcat="1_2_3_4_5_6"; As you can see, i have 3 'versions' of index.php 1) Stargate 2) SciFi Films 3) farscape with go=1 for stargate with go=2 for films with go=3 for farscape but by setting the else statements to the same categories as go=1 (ie stargate) then a call to index.php without go will result in just showing the stargate categories. See what i mean. Any one got any ideas on my question though? how to make it so that a call to index.php without go will just take you to a different html page. Thanks |
Quote:
|
you say:
4) In the forumhome template, you can insert the variable $catname wherever you want the custom list name to appear. I would like to be able to have the url like http://www.domain.com/forums/index2.php?go=$num is that going to be ok if i do if ($go==1) { $catname="Stargate"; $yourcat="1_2_3_4_5_6"; $num="1" like that and then just put the above url in the template. Do i need to add anything else anywhere to make this work? Thank you. |
Ok this does not work. Somewhere do i need to add the variable $catnumber to make it work?
Thank you, this would be extremley helpfull. |
Ok, i was being silly. This does work. Ignore my request :-)
|
Sorry to continue this, but I am stuck:
Ok, I have got what I was talking about for the main pages and also for the thread page (using the same procedure but for forumid. The problem is i don't know how to do it for showthread because i can't use the ?threadid because i do not know in advance which category it will be in. --- So... is there anything inside showthread that i can use as a variable to test to see which category that is in. If i know which category it is in then i can add what I need. So how do I find out? Thanks. Hope that makes sense. |
All times are GMT. The time now is 06:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|