PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old April 22nd, 2007, 04:31 AM   #1 (permalink)
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 23rd, 2007 at 12:38 AM.
Kirby is offline  
Old April 22nd, 2007, 03:45 PM   #2 (permalink)
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,243
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
I took a look @ what your talking about and thought of this.
It seems to work.

I pumped the numbers up there a bit to get out of the way.

Hook global_complete
Code:
Content visible to verified customers only.
Hook online_location_preprocess
Code:
Content visible to verified customers only.
gallery/global_gallery.php

Code:
Content visible to verified customers only.
Zachariah is offline  
Old May 21st, 2007, 04:01 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2005
Posts: 22
I'm completely lost. Where does all this go?

Thanks!
Chani is offline  
Old May 22nd, 2007, 11:39 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 101
yeah would be nice to be able to see before and after or find this and edit this way its easier for others cause its still not working correctly
DementedMindz is offline  
Old May 22nd, 2007, 12:12 PM   #5 (permalink)
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,243
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
New plugin:

Hook: global_complete
Code:
Content visible to verified customers only.

/forums/includes/vbgallery/online_location_preprocess.php

Replace code from:
<?php
// code here
?>

Code:
Content visible to verified customers only.
gallery/global_gallery.php

At the end before
?>
Code:
Content visible to verified customers only.
Zachariah is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category Jump not working correctly Kirby Bugs - vBulletin 3.6x 1 March 6th, 2007 05:23 PM
photo post is not working correctly umu_c6938 Photopost Pro Installation & Upgrades 1 December 18th, 2006 08:36 AM
"Report Photo" not working correctly(FIXED) mb24335 Photopost Pro Bug Reports 3 June 29th, 2005 12:55 PM
PP 5.03: Ratings not working correctly wx4castr General Discussion 3 June 14th, 2005 04:38 PM
Gold "date added" not working jrofosho Bugs From 1.0.0 7 June 5th, 2005 04:03 PM


All times are GMT -5. The time now is 01:00 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0