Help with layers & sidebar tags

Jan 08, 2009 12:09

1. Journal you are trying to modify: summerslaughter

2. Account Level: paid

3. What are you trying to accomplish?
I made a theme layer & combined it with my user layer, but when I try to use it as a custom style it screws up my header. Like this.

Figured it out!

the code )

sidebar, header, issues, tags

Leave a comment

Comments 5

ex_uniquewo January 8 2009, 20:25:24 UTC
Tags List:

I'm not sure it is the best code but here's a simple way to do it using CSS:

.tags {
visibility: hidden !important;
}

.tags a {
visibility: visible !important;
}

Reply

summerslaughter January 8 2009, 20:52:54 UTC
Hmm, that gets rid of the # of uses, but it still leaves space where they were.

Reply

ex_uniquewo January 8 2009, 21:04:07 UTC
Yeah, I know. The other possibility is to add this code to your layer:

function _taglist(int max, int multiplier) {
var Page p = get_page();
var TagDetail[] total_tags = $p->visible_tag_list();
var int most_count = 1;
var TagDetail[] tags;
var int tcount = 0;
var string[] links = [];
var int[][] graph;
var int skipped = 0;
if (size $total_tags > $max) {
var int toskip = size $total_tags - $max;
foreach var TagDetail tag ($total_tags) {
$graph[$tag.use_count][size $graph[$tag.use_count]] = $tcount;

$tcount++;

}
var int T1c = 0;
foreach var int[] T1 ($graph) {
if ($T1) {

var int[] newT1;
if (size $T1 <= $toskip ( ... )

Reply

summerslaughter January 8 2009, 21:06:40 UTC
That works perfectly. Thank you!

Reply


(The comment has been removed)

summerslaughter January 10 2009, 15:50:19 UTC
I had to change the active theme in my user layer.

If you add the following code to your user layer, it will reset the theme to Deep Ocean and that fixed the header problem for me.

set active_theme = "x2";
set theme_css = "x-2-1.css";

Every time you change something in your CSS or your custom layer you'll need to make sure that code is in your user layer.

Reply


Leave a comment

Up