PDA


View Full Version : [Request] - Force Specific Stylesheet


Martell
04-29-2005, 12:10 PM
Pursuant to a "How Do I" Q I had, I'd like to request a hack to force a specific stylesheet. I am willing to pay (via paypal) for the Hack.

theMusicMan
04-29-2005, 12:39 PM
Pursuant to a "How Do I" Q I had, I'd like to request a hack to force a specific stylesheet. I am willing to pay (via paypal) for the Hack.

Can you not to this on the URL you use to direct people to your links directory or gallery?

Try

http://www.yoursite.com/your_links/index.php?styleid=n

Where n = the style ID of the style you wish to force.

Martell
04-30-2005, 08:20 PM
Thanks John, but it appears that the way I have this set up (links dir is completely protected and based on a subscription system) that it doesn't work.

theMusicMan
04-30-2005, 08:41 PM
Hmmm... I thought it should still work regardless of permissions. If someone tries to view the Links Dir but doesn't have permissions, then the standard vB permissions error would be displayed, but if they do have the correct permission they then should see the forum with the style set as specified in the ?styleid=n parameter in the URL link.

Brian
05-01-2005, 12:28 PM
Try looking in your global.php file for this code:
// #############################################################################
// ######################## START TEMPLATES & STYLES ###########################
// #############################################################################


And right above it add something like this:
if (VBA_SCRIPT == 'links')
{
$codestyleid = X;
}
(Change X there with the styleid).