Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > Support > left - right blocks


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: left - right blocks

Junior Member





Posts: 33
Registered: 10/8/2002
Status: Offline

  posted on 3/22/2003 at 04:54 PM
Is there a way of displaying or not displaying left or right blocks depending on the url called?
 
Reply With Quote

Junior Member




Posts: 33
Registered: 10/8/2002
Status: Offline

  posted on 3/25/2003 at 03:28 AM
....... if we can't select to display the left block depending on the URL called ..... can we .......

Can we have two PostWrap modules? One for displaying left blocks and one for not showing left blocks?

Example: PostWrap and PostWarpLeft

From within my theme control my left blocks depending on the module called. The I would only select the proper module to put the URL in.

.... seems like it should work but how much work in there to rewrite one PostWrap module to change the name to PostWrapLeft?

[Edited on 25/3/2003 by chemaster]

 
Reply With Quote

Administrator




Posts: 4608
Registered: 10/7/2002
Status: Offline

  posted on 3/25/2003 at 03:46 PM
You should be able to have multiple PostWrap mods, but in AT Lite .6 to have Custom Modules based on PostWrap URL (the page var), try the something like the following when defining a Custom Module:

if($page == "http://yoururl.com")
{
$custom_module['PostWrap'] = array (
'right' => true,
);
}

if($page == "http://someotherurl.com")
{
$custom_module['PostWrap'] = array (
'left' => false,
'right' => false,
);
}


Or using a switch like:

switch($page)
{
case "http://yoururl.com":
$custom_module['PostWrap'] = array (
'right' => true,
);
break;

case "http://someotherurl.com":
$custom_module['PostWrap'] = array (
'left' => false,
'right' => false,
);
break;
}

HTH
-Shawn

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 180

Powered by the AutoTheme HTML Theme System
Page created in 1.874338 Seconds