Calendar vbulletin Redirects

Use the file(s) in here. I imagine you've already got some vB redirects so you can skip 301config.php and just upload calendar.php.

If you've got a different import log, put the following on line 2 of calendar.php where import_log_x is the appropriate import log:
Code:
define('IMPORT_LOG_TABLE', 'import_log_x');
 

Attachments

  • NixFifty_Calendar-vBRedirects.zip
    1.3 KB · Views: 1
I added to line 2:
define('IMPORT_LOG_TABLE', 'archived_import_log');

But it doesnt work.
/forum/calendar.php redirects to domain root.
 
I added to line 2:
define('IMPORT_LOG_TABLE', 'archived_import_log');

But it doesnt work.
/forum/calendar.php redirects to domain root.
Is that the archived import log for your events though? I.e. does this return anything:

Code:
select * from archived_import_log where content_type = 'nf_calendar_event' limit 1
 
You are right. I have corrected this, but no dice.
I changed it to:
archived_import_log_calendar_vb

But no working redirects. I use centminmod and PHP 7.1 btw.
 
Weird, works ok on my end. I've made a small tweak to calendar.php. Try this one.

Also make sure there's actually event import records in that table. If there aren't, you'll get kicked to forum root as expected.
 

Attachments

  • NixFifty_Calendar-vBRedirects.zip
    1.3 KB · Views: 1
No dice. There are records in the table.
Did you test for the main calendar page or only for event urls?
 
No dice. There are records in the table.
Did you test for the main calendar page or only for event urls?
Ah, are you not trying event urls? I suppose it makes more sense to redirect to the calendar page itself rather than forum root. :X3:

If you are trying event urls, what do they look like? Mine were like this: calendar.php?do=getinfo&e=1&day=2018-7-24

I don't recall another format but it's been years.
 

Attachments

  • NixFifty_Calendar-vBRedirects.zip
    1.3 KB · Views: 1
Back
Top