some problems addin...
 
Notifications
Clear all

some problems adding favicon mod and csszzen menu bar buttons <solved>

14 Posts
2 Users
0 Reactions
3,123 Views
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

I have a few problems and a few questions.  

I attempted to follow :

https://efiction.org/forums/index.php?topic=5710

}
<link rel="shortcut icon" type="image/ico" href="" http://www.markedbytheboys.com/images/favicon.ico" ;" />
}

But, I receive a 216 error after this is done.

2)  Am i correct that a challenges block cannot be added to the index?  I think I read somewhere that was not created yet.

3)  I am giving up on my buttons for the navigation.  I found out the issue is my buttons will not stay "relative" which is why they keep moving when the page is minimized.  This makes it difficult for people to browse the buttons because the home button follows the mouse cursor around for some browsers.  I would like to just do away with those squares, and upload a bullet and create text links.  

I am not sure where to do this.  I do not believe I do this in the CSS.  I am thinking it must be in one of the templates, but I am not sure which one.  I am really sorry if this is an obvious question.  

again my site is - www.markedbytheboys.com/fanfiction


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 22/07/2009 9:50 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

It looks like those boxes are defined in the CSS. I think that makes sense, since CSSZen was designed for people to be able to just change up the CSS a bit to make their own pretty skin. For example, here.


#menu A, #footermenu A {
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
width:100px;
height:20px;
position: relative;
border: 1px solid #000;
background: #800000;
display: block;
text-align: center;
}

Width of 100px, height 20px, red background; that sounds like your box to me. There's about six sections there related to the menu, so playing with those should give you what you want.


 
Posted : 22/07/2009 11:13 pm
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

ok thank you. I didnt know if I could add images to css. I thought that had to be done in the html somewhere.  I wanted to upload a bullet image


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 22/07/2009 11:16 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

You can put those into CSS using img(). Or in the HTML. Your choice. Most people do CSS.


 
Posted : 22/07/2009 11:28 pm
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

cool. I will play around.  : )  Sounds a lot less complicated now, I hope. 

Any idea why my favicon did not want to work?  and, am I right about the challenges not being able to be listed on the index in a block?  I thought I read that...but I am not sure if I read it right.


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 22/07/2009 11:35 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

I haven't seen a challenges block, but that doesn't mean it doesn't exist. I never use challenges.

I don't know why the favicon isn't working. What browser are you using? I know IE's more particular than others.


 
Posted : 23/07/2009 2:23 am
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

I tried it in both. I think I must have the code wrong somehow.  I dunno.  I'll keep playing.  πŸ˜‰

Can you tell me where I can find where the images are linked to the scripts?  For instance. I know {featuredstories} is blueribbon.gif.  I would like to try changing this to a different graphic. I also wanted to upload a graphic for the {new}.  I checked variables.php in the default, but I did not see, nor did i see it in the variables.php for the skin itself.  I'm stumped.  πŸ˜•
Thanks!


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 23/07/2009 4:23 am
(@lyndsie)
Posts: 1263
Member Moderator
 

Hmm, I don't know much about this. I think to change them you would do so in the skin's variables.php. This wiki article talks about it a little: https://efiction.org/wiki/index.php5?title=Images_in_Skins

For any of the variables for skins, like {featuredstory} or what have you, those variables are typically created somewhere in one of the PHP files using "tpl assign->". I have no idea where that is, though.


 
Posted : 23/07/2009 3:08 pm
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

Thanks : )

I did read over that last night, but I didn't really understand it.  I tried putting my "new" graphic in the css instead of what is there now, but all it did was take away the formatting for the font, and did not show the graphic.


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 23/07/2009 4:04 pm
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

Just thought I would update what I tried next, in case anyone has a clue what I am doing wrong.  I tried this in the variables.php for my skin.  (again trying to change thew New! to a gif)

$new = <img src="'".$skindir."/images/new.gif"" alt='"new"'>;

Got this error:  
Parse error: syntax error, unexpected T_NEW in /home/stockhe2/public_html/fanfiction/skins/MBTB/variables.php on line 50


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 23/07/2009 8:07 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Is your filename new.gif or star.gif? I suspect the first. You want more something like this:


$new = "<img src="'".$skindir."skins/MBTB/images/new.gif'" alt='"._NEW."'>";

 
Posted : 23/07/2009 9:04 pm
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 
$new = "<img src="'".$skindir."skins/MBTB/images/new.gif'" alt='"._NEW."'>";

That took the error away, but still did not bring up the graphic.  Just changed the word NEW to a white font


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 23/07/2009 9:19 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

There's probably something wrong with the file path, then.  Oh yeah, checking I think I copied one of the bad examples to use. *headdesk* Both $skindir and skins in the path isn't going to work out.

Try this:


$new = "<img src="'".$skindir."/images/new.gif'" alt='"._NEW."'>";

 
Posted : 23/07/2009 9:25 pm
(@aquaanimus)
Posts: 82
Trusted Member
Topic starter
 

Squee!  that worked!  πŸ˜€ 

And!  I got my favicon to work!  LOL

Ok, now I am going to try and do the thing you sent me.  I am going to dl IE 8 on my desktop and test it there after I get it installed.


"Quoth the raven, `Nevermore.'"  - EAP

 
Posted : 23/07/2009 9:40 pm
Share: