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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-14-2010, 11:00 AM
SystemOAD SystemOAD is offline
 
Join Date: Mar 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Disable all but forums and .htaccess redirects

Hi,

I only need to use the forums in my vB4 suite so I would like to know how I would disable the cms and/or blog please?

Also I tried to setup some redirects in the .htaccess file but its not working out too well so would some mind giving me a hand to work out what I'v done wrong on that please?
Here is the htaccess code I made (its the last 3 lines for my vB):
Code:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName extreme-gaming-network.com
AuthUserFile /home2/extremeg/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/extremeg/public_html/_vti_pvt/service.grp

RewriteEngine On
RewriteCond %{HTTP_HOST} ^extreme-gaming-network.com
RewriteRule (.*) http://www.extreme-gaming-network.com/$1 [R=301,L]

#Redirect 301 /forums/ http://www.extreme-gaming-network.com/forums/forum.php
#Redirect 301 /forums/content.php http://www.extreme-gaming-network.com/forums/forum.php
#Redirect 301 /forums/blog.php http://www.extreme-gaming-network.com/forums/forum.php
I # out the lines for the time being so not to mess with SEO. Also the forums are installed in a sub-director not a sub-domain but I take it I do still add the redirects as above to my root folder and not in a new file in the forums folder?

Regards,
Nath
Reply With Quote
  #2  
Old 12-14-2010, 02:00 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To disable the CMS and Blog, go to admincp > plugins & products > manage products > find vBulletin CMS and vBulletin Blog > click Disable next to each of them.
Reply With Quote
  #3  
Old 12-14-2010, 02:16 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also don't forget to double check your index.php file and change the default script if required:

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

require('content.php');


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

// require('forum.php');
So to use the forum as default remove the // in front and to comment out the CMS add in // in front of the content.php snippet of code .

New example:

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

// require('content.php');


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

require('forum.php');
Reply With Quote
  #4  
Old 12-14-2010, 02:35 PM
SystemOAD SystemOAD is offline
 
Join Date: Mar 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys, its prob that bit in the index.php file I missed out last time I tried
Is it the index.php in the default (roof) forum folder I need to change or the one for each theam I want to use?
Reply With Quote
  #5  
Old 12-14-2010, 02:42 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SystemOAD View Post
Thanks guys, its prob that bit in the index.php file I missed out last time I tried
Is it the index.php in the default (roof) forum folder I need to change or the one for each theam I want to use?
Actually I believe Lynne had the best info here, disable them via the product manager the index edit is something extra you should do if not using the CMS . You only need to edit the index.php that's included in your vbulletin files i.e. the index.php that is on your forums ROOT folder.
Reply With Quote
  #6  
Old 12-14-2010, 02:59 PM
SystemOAD SystemOAD is offline
 
Join Date: Mar 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup I done both but I think I tried something like that a couple of months ago without editing the index.php file and thats why it wasnt working.

Its all working now though so thank you both for the help

Also No need for help with the htaccess as thats now sorted as I only needed to add one line to redirect /forums/forum.php to /forums/
Reply With Quote
  #7  
Old 12-14-2010, 03:16 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SystemOAD View Post
Yup I done both but I think I tried something like that a couple of months ago without editing the index.php file and thats why it wasnt working.

Its all working now though so thank you both for the help

Also No need for help with the htaccess as thats now sorted as I only needed to add one line to redirect /forums/forum.php to /forums/
Good to hear it's all working
Reply With Quote
  #8  
Old 12-14-2010, 03:22 PM
SystemOAD SystemOAD is offline
 
Join Date: Mar 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Now I just need to find a donation plugin for vB4 and finish the coding and thats the easy part of the forums done.

Then I just waiting on my coder to finish the scripting for the main site.
Reply With Quote
  #9  
Old 12-14-2010, 05:22 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SystemOAD View Post
Thank you Now I just need to find a donation plugin for vB4 and finish the coding and thats the easy part of the forums done.

Then I just waiting on my coder to finish the scripting for the main site.
See if either of these peek your interest

https://vborg.vbsupport.ru/showthread.php?t=250340
https://vborg.vbsupport.ru/showthread.php?t=236480
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 01:17 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.03761 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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