Isolating custom modules for specific pages (go back »)

June 5 2007, 7:25 AM

I added some element identifiers for your personal pages. This means that with clever css'ing you'll be able to isolate where to display your custom modules. In another words, you'll be able to turn on and off a custom module depending on which page you're on. The four identifiers are as follows: profile; blog; friends; photos.

On my pages, I have custom modules for profiles, blog, and photos, but not friends (since the friends page doesn't really "support" the module look). I achieved this by adding a class to the custom module (custombox), and then this code:

#friends div.custombox { display:none; }

The code above will only affect the friends page because it's the only page with the identifier "friends". Hmm, I wish I could paste some code here using BBcode, I guess in the future we'll scrap FCKeditor and I'll build my own editor supporting BBcodes.

In CreateBlog

Comments

Displaying 1 - 5 of 5 comments

I put the code into my css and my custom module (music) still appears on my friends page. I must be doing something wrong. D:

Posted by SarahxJoy on Jul 27, 07 11:20 pm

i cant get it to work...... =[

Posted by lkajsfklajskds on Jul 6, 07 1:35 pm

grr outerbox col3 to outerbox col4 custombox

Posted by Blaqheartedstar on Jun 9, 07 12:57 pm

u might want to change to so the code above can work

Posted by Blaqheartedstar on Jun 9, 07 12:56 pm

ur right the friends page doesn't support it well... becomes a mess
but this is awesome
is there a way to block just one for certain pages instead of all the custom modules u have on your page?

Posted by Blaqheartedstar on Jun 8, 07 2:07 pm

Add Comment

You must be logged in to comment

Profile

micron
  • Male

Statistics

Comments 5
Page views 2695

Custom Module

As requested, I've added support for custom modules by changing some HTML around (it might have affected your pages, so go check).

Side Module (footer HTML)

Main Module (header HTML)

Footer (footer HTML)