embedding other packages (singapore)

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

embedding other packages (singapore)

Post by calguy1000 »

depending on the package, I've been sucessfully able to embed another package (specifically singapore) into my cms site, whilst disallowing access to the site directly with the following method.

a) create a user defined tag called "packagename"
    which just does an "include()"

b) create a .htaccess file in the package directory with
    SetEnvIfNoCase User-Agent "^$" locally_linked=1
    SetEnvIfNoCase Referer "^" locally_linked=1
    Order Deny,Allow
    Deny from all
    allow from env=locally_linked

Your Mileage May Vary, but this works relatively well for me.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Tips and Tricks”