Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-28-2000 Last Update: Never Installs: 0
 
No support by the author.

I share my forums with some other motorsport sites including some rally sites. What I would like to do for them is allow them to link to my front page but only see the rallying and one other category i.e. I have the categories[*]General[*]Racing[*]Rallying[*]Computers[*]Private Messaging

Want I want to do is create a new index.php say rallyindex.php which will only display[*]General[*]Rallying[*]Private Messaging

I've had a look around index.php but can't make head nor tail of it. Anyone be kind enough to help?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 09-10-2000, 01:22 PM
Guest
 
Posts: n/a
Default

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

thanks
Reply With Quote
  #33  
Old 09-10-2000, 02:01 PM
Guest
 
Posts: n/a
Default

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:
Reply With Quote
  #34  
Old 09-10-2000, 04:11 PM
Guest
 
Posts: n/a
Default

Chris,

How'd you do that?
Reply With Quote
  #35  
Old 09-10-2000, 04:17 PM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #36  
Old 09-10-2000, 05:19 PM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #37  
Old 09-10-2000, 05:24 PM
Guest
 
Posts: n/a
Default

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

[/B]
Hehe.. competition hey.. agghhh... guess i know who not to help from now on :smile:
Reply With Quote
  #38  
Old 09-17-2000, 01:13 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #39  
Old 09-17-2000, 01:18 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #40  
Old 09-17-2000, 01:22 PM
Guest
 
Posts: n/a
Default

Ok, i was being silly. This does work. Ignore my request :-)
Reply With Quote
  #41  
Old 09-17-2000, 02:06 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:56 PM.


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.04364 seconds
  • Memory Usage 2,267KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete