Thread: .htaccess file
View Single Post
  #1  
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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01086 seconds
  • Memory Usage 1,770KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete