The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I only have one forum at the moment and want to make forumdisplay.php my homepage without doing any type of redirect but I keep getting "Invalid Forum specified. If you followed a valid link, please notify the administrator."
This is what I have done so far: 1) Created a new plugin in the Admin CP with a Hook Location of global_start and with PHP Plugin Code PHP Code:
I'm brand new to vB so I'm having trouble figuring how to manipulate the forumid variable that forum.php passes over in the URL to forumdisplay.php. If anyone can point me in the right direction I would be very thankful. |
#2
|
|||
|
|||
![]()
Bump!
|
#3
|
||||
|
||||
![]()
So, you want it so if users go to index.php, they get shown the forumid 4 forumdisplay page instead? Just leave forumdisplay.php and index.php alone and create a plugin like:
hook - global_bootstrap_init_start PHP Code:
Set index.php to go to forumdisplay.php (line 62) also. |
#4
|
|||
|
|||
![]()
That did the trick! It works exactly as I wanted now. Thank you very much Lynne! I'm naming my first born after you now
![]() |
#5
|
||||
|
||||
![]()
{{{Lynne marks on calendar to check back with Eric in ten years and see if he really did name his firstborn after her.}}}
![]() |
#6
|
|||
|
|||
![]()
Hi Lynne,
I am trying to attempt the same thing. It works well but the url keeps changing (it's redirecting to the actual forum instead). I would like it do display the forum without changing the url. Thanks. |
#7
|
||||
|
||||
![]()
If you don't want to change the actual url, then that is a server setting. You can probably do it using htaccess - try googling it.
|
#8
|
|||
|
|||
![]()
What I mean is;
When I go to the home page, I would like it to display that one forum without leaving the home page. What is happening in my situation is that when I visit the home page the website redirects me to the forum page instead. --------------- Added [DATE]1297193839[/DATE] at [TIME]1297193839[/TIME] --------------- This is the line that keeps redirecting me, how can I overcome it without deleting? I have tried to comment it out and it worked well but I am not sure that won't create errors. PHP Code:
|
#9
|
||||
|
||||
![]()
Try it on your test site. Your test site is the best place to try out anything before doing it live.
|
#10
|
|||
|
|||
![]()
I am doing that at the moment. If I comment out this line
PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|