Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2010, 04:22 AM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default content.php issue

I want to get rid of content.php (Home tab) .. i want people come directly to forum.php ..not to HOME (content.php).. i tried to delete the file content.php from server but its giving the error when go to domain ..what should i do to get rid of home tab and redirect users directly to forum.php..

Thanks for help .
Reply With Quote
  #2  
Old 06-14-2010, 06:07 AM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can disable the CMS if you arent using it
Reply With Quote
  #3  
Old 06-14-2010, 10:59 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

admincp in plugin manager just disable it
Reply With Quote
  #4  
Old 06-14-2010, 02:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or, open up the index.php and read the instructions on how to redirect to forum.php instead of content.php
Reply With Quote
  #5  
Old 06-14-2010, 06:32 PM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mates .. appreciated .

--------------- Added [DATE]1276545968[/DATE] at [TIME]1276545968[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
Or, open up the index.php and read the instructions on how to redirect to forum.php instead of content.php
lynne,

I tried to upside down the content.php and forum.php .. but it dosen't works .. i know it might not be the correct way to do it ..

what part of index.php do i need to edit .. i want to use HOME tab but people login to site should go directly to forum.php .. not content.php ..

can you provide the details for it .

PHP Code:
/**
 * If you want to move this file to the root of your website, change this 
 * line to your vBulletin directory and uncomment it (delete the //).
 *
 * For example, if vBulletin is installed in '/forum' the line should 
 * state:
 *
 *    define(VB_RELATIVE_PATH, 'forum');
 *
 * Note: You may need to change the cookie path of your vBulletin 
 * installation to enable your users to log in at the root of your website.
 * If you move this file to the root of your website then you should ensure 
 * the cookie path is set to '/'.
 *
 * See 'Admin Control Panel
 *    ->Cookies and HTTP Header Options
 *      ->Path to Save Cookies
 */

//define(VB_RELATIVE_PATH, 'forums');


// Do not edit.
if (defined('VB_RELATIVE_PATH'))
{
    
chdir('./' VB_RELATIVE_PATH);
}


/**
 * You can choose the default script here.  Uncomment the appropriate line 
 * to set the default script.  Note: Only uncomment one of these, you must 
 * add // to comment out the script(s) that you DO NOT want to use as your 
 * default script.
 *
 * You can choose the default script even if you do not plan to move this 
 * file to the root of your website.
 */

/**
 * Use the CMS as the default script:
 */

require('content.php');


/**
 * Use the forum as the default script:
 */

// require('forum.php'); 
Thanks.
Reply With Quote
  #6  
Old 06-14-2010, 08:01 PM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This:

PHP Code:
/**
 * If you want to move this file to the root of your website, change this 
 * line to your vBulletin directory and uncomment it (delete the //).
 *
 * For example, if vBulletin is installed in '/forum' the line should 
 * state:
 *
 *    define(VB_RELATIVE_PATH, 'forum');
 *
 * Note: You may need to change the cookie path of your vBulletin 
 * installation to enable your users to log in at the root of your website.
 * If you move this file to the root of your website then you should ensure 
 * the cookie path is set to '/'.
 *
 * See 'Admin Control Panel
 *    ->Cookies and HTTP Header Options
 *      ->Path to Save Cookies
 */

//define(VB_RELATIVE_PATH, 'forums');


// Do not edit.
if (defined('VB_RELATIVE_PATH'))
{
    
chdir('./' VB_RELATIVE_PATH);
}


/**
 * You can choose the default script here.  Uncomment the appropriate line 
 * to set the default script.  Note: Only uncomment one of these, you must 
 * add // to comment out the script(s) that you DO NOT want to use as your 
 * default script.
 *
 * You can choose the default script even if you do not plan to move this 
 * file to the root of your website.
 */

/**
 * Use the CMS as the default script:
 */

//require('content.php');


/**
 * Use the forum as the default script:
 */

require('forum.php'); 
Reply With Quote
  #7  
Old 06-14-2010, 08:30 PM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks DragonBlade^ .. i did that but when i click HOME tab its coming back to forum.php .. its not going on content.php ...

What i want is when people come to my site they should go directly to forum.php not content.php but when you click HOME tab they should be able to go Content.php ..

Do you know how to do that ?

Thanks.
Reply With Quote
  #8  
Old 06-14-2010, 09:09 PM
D19RNY D19RNY is offline
 
Join Date: Jun 2010
Location: LDN
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats exactly what I need
Reply With Quote
  #9  
Old 06-14-2010, 10:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Khan_ View Post
Thanks DragonBlade^ .. i did that but when i click HOME tab its coming back to forum.php .. its not going on content.php ...
If that is happening, then you've done something wrong in a setting or something. Check vboptions > content management > site tab url > should be content.php
Reply With Quote
  #10  
Old 06-15-2010, 04:32 PM
Khan_ Khan_ is offline
 
Join Date: Sep 2009
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne .. works now exactly as i want it to ..

When i was trying to redirect to forum.php instead of content.php .. i changed it to forum.php ..Thats why it was going on to forum.php even after clicking HOME tab ..

thanks DragonBlade & lynne . i appreciate.
Reply With Quote
Reply


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:19 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.05394 seconds
  • Memory Usage 2,257KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete