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 12-13-2019, 03:22 PM
eboggs_jkvl eboggs_jkvl is offline
 
Join Date: Feb 2005
Location: Jacksonville Florida
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default .htaccess file

Is there a specific location in Vb4 for this file?

I think I need to add a line to it to make the "Calendar" click go to a google calendar but I need to find the darn .htaccess file.

Where the heck is it?

I plan on adding this code:

Redirect 301 /calendar.php http://www.google.com/[your calendar url]

Elmer
Reply With Quote
  #2  
Old 12-13-2019, 03:38 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The .htaccess file is not required for vBulletin 4. Generally, it should be located at the root. That is, in the same folder as the login.php, register.php and global.php files.
Reply With Quote
  #3  
Old 12-13-2019, 05:40 PM
eboggs_jkvl eboggs_jkvl is offline
 
Join Date: Feb 2005
Location: Jacksonville Florida
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahso....


So I create the file in the root and put that line of code in it and anyone that clicks on Calendar (calendar.php) will be rerouted to the public Gmail account we are trying to establish for our Car Club Forum?

Elmer

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

I found out the way to redirect the "Calendar" link to go to a Google Calendar. This allows all of my forum members to access a syncronized calendar that shows all of the activities of my car club forum.

It is accomplished by editing the calendar.php file and redirect the file function to go to the URL of my public google calendar.

The following editing is used to go to my public google calendar:

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.5 - Licence Number VBF1234567
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2017 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # www.vbulletin.com | www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'calendar');
define('CSRF_PROTECTION', true);
define('GET_EDIT_TEMPLATES', 'edit,add,manage');

// COMMENT The lines below do the redirect to my public google calendar https url
$redirect_url='https://calendar.google.com/calendar/embed?src=.........america%2FNew_York';
echo '<meta http-equiv="Refresh" content="0; url=' . $redirect_url . '" />';
exit;


All of the rest of the code for the calendar.php is unedited and not read by the calendar.php action. It can be left in the file but it is ignored. I abbreviated my URL code to save space. You would need to put your complete URL code in your edit. To go back to the original file function, you can comment out the added code with "//" or simply remove the added code.



I hope this can help someone that wants to use a synchronized calendar on their VB4 rather than the "stock" vBulletin calendar.


Elmer
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:36 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.03427 seconds
  • Memory Usage 2,175KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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