View Single Post
Old April 22nd, 2007, 03:31 AM   #1 (permalink)
Kirby
Member
 
Join Date: Jun 2004
Posts: 164
WOL not working correctly [added 2.3]

Symptom
If I access forum home, WOL shows me browing gallery index.

Background
In online_location_preprocess.php, the location is checked against $vba_options['gallery_url'].
This does not work, as datastore iteam adv_gallery_opt might not be loaded there, and gallery_url is a complete URL (eg. http://www.yoursite.com/gallery) while field location is only relative (eg. /gallery/index.php).

Suggested Fix
Use field badlocation of table session to store a flag that the user is in Gallery.
Currently values 1-3 are in use, so some higher value like 100 should be kinda safe.

Hook global_complete
Code:
Content visible to verified customers only.
Hook online_location_preprocess
Code:
Content visible to verified customers only.
The other hooks for WOL might need code to handle situations where the gallery has its own subdomain.

Last edited by Kirby; April 22nd, 2007 at 11:38 PM.
Kirby is offline