vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Changing index.php for custom category list? (https://vborg.vbsupport.ru/showthread.php?t=2756)

09-10-2000 01:22 PM

ah yes i see... i am slowing down on this and other hacks... waiting for word on the next release...

thanks

09-10-2000 02:01 PM

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:

09-10-2000 04:11 PM

Chris,

How'd you do that?

09-10-2000 04:17 PM

Quote:

Originally posted by chrispadfield
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:

cool so it works... the reason i wanted it is to start up forums unrelated to my vb... conincidently the off topic forums on my site are sci-fi/fantasy/tv related :D

09-10-2000 05:19 PM

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

09-10-2000 05:24 PM

Quote:

conincidently the off topic forums on my site are sci-fi/fantasy/tv related :D

[/B]
Hehe.. competition hey.. agghhh... guess i know who not to help from now on :smile:

09-17-2000 01:13 PM

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.

09-17-2000 01:18 PM

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.

09-17-2000 01:22 PM

Ok, i was being silly. This does work. Ignore my request :-)

09-17-2000 02:06 PM

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
  • Page Generation 0.01113 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete