Closed (won't fix)
Project:
Redirect 403 to User Login
Version:
6.x-1.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2011 at 09:32 UTC
Updated:
22 Jan 2025 at 16:06 UTC
Jump to comment: Most recent
Comments
Comment #1
arisaves commentedbump
Comment #2
arisaves commentedwould one be able to add a class to the url being pulled into the module? i'm using colorbox and it generally manages to load any link/url with the class "colorbox-load" added to it.
Comment #3
arisaves commentedSo, I kind of cheated it. I'm sure somebody extremely adept in PHP would need a shower after reviewing this method, but my use-case is as follows:
I have several "doors" that lead to locked content. I am using colorbox to display modals. I wanted authenticated users to get a prompt to enter a code, and anonymous users to get a login window.
I built the anchor tags with the classes and URL parameters needed to open the content in a colorbox, and used the Context Assets module to load a .js file for users with appropriate credentials. In the external .js file, I wrote a function to remove the classes and parameters from the anchor tags so that the desired destination wouldn't open in a colorbox.
REAL messy, but I haven't run into any problems yet.
Comment #4
dieterholvoet commentedDrupal 6 has long been unsupported.