vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   content.php issue (https://vborg.vbsupport.ru/showthread.php?t=244571)

Khan_ 06-14-2010 03:22 AM

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 .

DragonBlade 06-14-2010 05:07 AM

You can disable the CMS if you arent using it

your24hourstore 06-14-2010 09:59 AM

admincp in plugin manager just disable it

Lynne 06-14-2010 01:28 PM

Or, open up the index.php and read the instructions on how to redirect to forum.php instead of content.php

Khan_ 06-14-2010 05:32 PM

Thanks mates .. appreciated .

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

Quote:

Originally Posted by Lynne (Post 2053490)
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.

DragonBlade 06-14-2010 07:01 PM

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'); 


Khan_ 06-14-2010 07:30 PM

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.

D19RNY 06-14-2010 08:09 PM

Thats exactly what I need

Lynne 06-14-2010 09:40 PM

Quote:

Originally Posted by Khan_ (Post 2053690)
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

Khan_ 06-15-2010 03:32 PM

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.


All times are GMT. The time now is 11:38 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.01753 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete