Recent Topics

Help with Create a new skin

Thread started by , Sat Feb 18, 2012 01:34 – Last touched: Sat Feb 18, 2012 01:34
Started by , 02/18/12

Feb 18, 2012 01:34    

Hello everyone. I hope you can take a moment to help me.

I have created a new skin from my website style . .

I have followed the tutorial and have my blog template with all image paths and css paths etc all working correctly and they appear accurate in dreamweaver.

http://manual.b2evolution.net/Create_a_new_skin

Now that I upload the file (you'll see this by clicking blog link, obv) the background and wrapper seem to be correct and have the correct styling but no other aspect of my layout is displayed . .

I reckon it's got something to do with containers, although i'm not sure.

can someone please point me in the right direction in terms of getting my blog to look just like the rest of my layout at all ?

Thanks alot, Alan

p.s. The only I have posted a link to my site here is for the purpose of explanation. absolutely nothing to do with backlinks or anything like that at all . . . I have no interest in spamming and I really appreciate this product and it's community.

Comment from:

that manual is more outdated than a pilgrim in an apple store.
As far as i see, you got everything in place content-wise, all you need to do is to do some css play.Report back when when you get stuck / need help, but currently i cant understand where you need it.

02/18/12 @ 02:01

Comment from:

Thanks tilqicom . . . . .

tbh, If around 4 hours and now hitting a brick wall defines stuck, then I am stuck. lol . . .

your right, I'm nearly there , , , when u say css play, would u know where to start because as I say . . . everything in my html and css is working and correct. The _main.php file looks identical to all my other pages yet no other aspect of the web page, seems to be displaying in my blog layout. . .

I would really appreciate it if you could suggest what to change . . so near but yet so far tilqicom.

02/18/12 @ 02:07

Comment from:

alwightman wrote:

Thanks tilqicom . . . . .

tbh, If around 4 hours and now hitting a brick wall defines stuck, then I am stuck. lol . . .

your right, I'm nearly there , , , when u say css play, would u know where to start because as I say . . . everything in my html and css is working and correct. The _main.php file looks identical to all my other pages yet no other aspect of the web page, seems to be displaying in my blog layout. . .

I would really appreciate it if you could suggest what to change . . so near but yet so far tilqicom.

well, afai see, you have pasted your website's css into style.css, like

Code

#logofooter {
........
    width: 200px;
}
#skypeicon {
........
    float: left;

But i dont see any matching elements in html.The div classes and stuff are still blog's default theme's.Suit your selectors and you should be fine

02/18/12 @ 02:14

Comment from:

Yes, you are right tilqicom . . I have pasted my full css into style.css and i pasted my full html into _main.php . . .

I then used the tut as a guide and managed to read beyond the antiquaited bits and added the php and the blog content into my main content div #topleft . . I then changed the paths in both of the above files to all of my images, hence why in dreamseaver the _main.php looks fine . . .

I almost get you here tilqicom . . . if you have the time could u try once more with a more detailed explanation and i'll go from there . .

i really appreciate your time btw

p.s. that css and html is all my own writen code . . . not the blog template

02/18/12 @ 02:21

Comment from:

you need to play with ""index.main.php" , "_main.php" does nothing i suppose.

02/18/12 @ 02:51

Comment from:

Now . . the "why didn't I think of that" has just popped into my head . . :)

You've been a great help tilqicom . . . I'll get cracking on that and hopefully the next time I post it will be with a complete and accurate blog , i hope.

Thanks a lot

02/18/12 @ 02:54

Comment from:

yup , , , getting there . . . my javascript nav and slider don't seem to operate however . . . i'm sure i'll crack it but if you have a pointer , please post it :)

02/18/12 @ 03:12

Comment from:

alwightman wrote:

yup , , , getting there . . . my javascript nav and slider don't seem to operate however . . . i'm sure i'll crack it but if you have a pointer , please post it :)

you didnt load sliderman.js into your blog, therefore you get "Sliderman is not defined"

02/18/12 @ 03:43

Comment from:

I see . . . I'm trying to put either the full js folder and as an alternative each individual js file for sliderman and for nav into my "wightmanweb" skin folder and it is still not working . . .

Is this the right place to put these files or should they go in my blogs folder ?

02/18/12 @ 03:57

Comment from:

the files may stay whereever they were.you didnt include the js in source.
open your ../blog/skins/your_skin/_html.header.inc.php

and load the script in your <head> <script type="text/javascript" src="......sliderman.js"></script>
or before closing body tag in _html.footer.php , your choice.

Btw, 36kb script(sliderman) is just too much for such a simple slider.Use jquery.cycle.min if you ask me.

02/18/12 @ 04:04

Comment from:

Yaeh, your defo right right with the slider. I was messing with this one but I will opt for cycle in future . . .

I have neither of the files that u mentioned in my blog. within ../blog/skins/your_skin/ there is no sign of either . . . do I need to get them from somewhere and add them or what ?

_html.header.inc.php or _html.footer.php

02/18/12 @ 04:20

Comment from:

by "../blog/skins/your_skin/" i mean

"...co.uk/blogs/skins/wightmanweb/"

but seems that you dont have html.header or html.footer files in your skin, so it gets them from one folder up ../skins/. Just copy the file you need from there into your skin folder so that it will read from there and modify it accordingly

02/18/12 @ 04:29

Comment from:

hhhmmm . . . thats a strange one . . your explanation is great and i'm sure i'm doing it right but it still isnt working . . .

I'm gonna call it a night for now . . . can I just say you are an asset to the community and you've helped me hugely tonight . . .

I'll sleep on it and persivere and i'll be back in touch . . . I'll look forward to contributing to the community in the near future myself . .

Thanks, Alan

02/18/12 @ 04:38

Comment from:

Yup . . stuck with that javascript problem . .

put me out my misery if u can . . . still cant get my nav or slider to operate

02/19/12 @ 02:49

Comment from:

You still dont have the script loaded anywhere.
Copy

Code

blogs/skins/_html_header.inc.php

to

Code

blogs/skins/wightmanweb/

and then open

Code

blogs/skins/wightmanweb/_html_header.inc.php

and add

Code

<script src="http://www.wightmanweb.co.uk/js/sliderman.1.3.6.js" type="text/javascript">
02/19/12 @ 12:27

Comment from:

hi tilqicom .....

this really is a strange one ... ive taken the file down now, but when I carry out your instructions, and upload the /skins/wightmanweb/_html_header.inc.php file the blog now no longer comes up at all ...

Ive pulled the file just now ,,, what can I be doing wrong ?

02/19/12 @ 13:29

Comment from:

you probably have it all in index.main.php.
Simply load the js

Code

<script src="http://www.wightmanweb.co.uk/js/sliderman.1.3.6.js" type="text/javascript">

inside your <head> in the file

02/19/12 @ 14:53

Comment from:

Hi mate . . I managed to crack it by adding it to the /skin/_html_header.inc.php without moving that file into my /skins/wightmanweb/ . . . its now all working well . . . . .

Just trying to find a method of limiting the text volume on each post on my main blog page . . . .

i'd like it so that If i were to write a blog with say 1000 words then on the main page where I have 3 blogs featured, I'd like each post to be limited to say 100 words with something like >>read more link attached to reveal the full post . . .

I wonder if you know how I would do this

02/19/12 @ 14:58

Comment from:

When writing the post insert read more where you want to truncate it

02/19/12 @ 15:28

Comment from:

Thanks a great deal tilqicom . . . I am still struggling to get my truncation working as I want it too . . . however, I just want to take a moment to thank you again as I wouldn't have got this far with out you.

hat's off to ya buddy :)

02/20/12 @ 12:12
powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.