[Burichan] [Futaba] [Kusabax]  -  [WT]  [Home] [Manage]
IF YOU DO NOT READ THE COMMENTS IN CONFIG.PHP YOU VOID YOUR RIGHT TO SUPPORT

[Return] [Entire Thread] [Last 50 posts]
Posting mode: Reply
Name
Email
Subject   (reply to 11979)
Message
File
Password  (for post and file deletion)
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 1220 unique user posts. View catalog


File
Removed
No. 11979
ok so im trying to make a custom CSS that has a fixed width but sadly most of the things dont seem to work.Here is how the pages menu looks (pretty fucked up)
Here is the code.
http://pastebin.com/stCUPwWv
Expand all images
>> No. 11980
File
Removed
also here is this shit slapped to the left.I have no idea how to move it to the center like all my other shit.If there is anyone thats good at coding css please help me.
>> No. 12091
align: center;
>> No. 12095
whats your chan?
>> No. 12106
>>12091
that little fucker doesnt have a ID i can use the CSS to.
>>12095
whats the point in this question!?
>> No. 12107
>>12106
yeah, it's a pain in the ass to target with jquery, too.

you might have to add some layers and ids to the templates first, that's what i had to do.
>> No. 12109
>>12107
any idea how to add ids?I dont really understand the templates and im cofused and dont know where to look or what to edit.Care to help?
>> No. 12111
File
Removed
>>12109
yeah, it's a bit involved but not too complicated. Be sure to back up your templates first.

open up the *_thread and *_board_page templates for whatever board type you're working with. Basically you want to find where the html is and wrap elements in divs and assign them ids. It's difficult to be too specific because it depends on just how you want to change your layout.

Here is my img_thread template as an example:
http://pastebin.com/HxzuYDGz

You can see where I added classes for the first post elements (.postthumb, .firstthumb, .firstpost) and general elements like .xyz for post divs (I removed the tables) and .abc as a container for the entire page between the postform and the footer. IDs are exactly the same. I should have used IDs but I didn't.

Just about any html element you can add 'id="whatever"' to and have css effect it. After you add some ids, it's just a matter of setting some css values for those ids.

One other note about width: if you're using the table layout, you'll want to remove or change the float and width values already there for td.reply (i forget which stylesheet it's in.)

Get Firebug for Firefox (I'm sure Chrome has something too but I can't stand Chrome so I don't know) and it'll let you tweak the css without having to commit to anything. After you have some css that works you can cut and paste from the firebug window into your css file.
>> No. 12127
>>12111
yeah thats how i worked so far :) now i only need to find the 2-3 things i showed you + add them IDS then tweak the css so everything works fine.Will get back to this thread when i have the time to fiddle with the code and post results.
>> No. 12132
>>12127
one thing to watch out for if you do decide to get rid of the tables are the loops in the templates -- firefox (and maybe chrome I don't know) will fix bad html for you but in IE if you didn't close your divs for the messages in the right places they'll render nested inside each other instead of one after the other.
>> No. 12137
care to explain how to fix this?Also by tables do you mean the sideframe?
>> No. 12146
>>12137
the html tables that display the threads. look at the source.

and to fix them you just have to make sure the start tags and end tags are in the right places. it was trial and error for me, if you want to keep the tables then it doesn't matter.
>> No. 12164
>>12146
all i want to fiddle around is the navigation part and that menu part in the seccond image.
>> No. 12165
>>12146
do you have anyidea where i can find the 2 things in >>11979
and >>11980
im having a really hard time understanding these templates :S
>> No. 12166
OP here again.No matter what i change when i upload the template and rebuild HTML nothing changes.I found this in img_thread:
{if $replycount > 2}

<span style="float:right">

&#91;<a href="/{$board.name}/">{t}Return{/t}</a>&#93;

{if %KU_FIRSTLAST && ( count($posts) > 50 || $replycount > 50)}

&#91;<a href="/{$board.name}/res/{$posts.0.id}.html">{t}Entire Thread{/t}</a>&#93;

&#91;<a href="/{$board.name}/res/{$posts.0.id}+50.html">{t}Last 50 posts{/t}</a>&#93;

{if ( count($posts) > 100 || $replycount > 100) }

&#91;<a href="/{$board.name}/res/{$posts.0.id}-100.html">{t}First 100 posts{/t}</a>&#93;

{/if}

{/if}

</span>

{/if}

i think its what i need.
>> No. 12194
bumping because this is bullshit.No matter what i change in img_thread template it doesnt do anything.
>> No. 12309
bump again.No matter what code i add in the template after the upload nothing changes it doesnt matter if its a div or if i rename something to sdfdsfsfsfd
>> No. 12320
Try deleting the contents of templates_c. Sometimes, very rarely, Dwoo won't pick up on template changes and regenerate the templates.
>> No. 12329
>>12320
ok i added this to the template
{if not $isread}
{if $replycount > 2}
<div class="threadmenu">
<span style="float:right">
&#91;<a href="/{$board.name}/">{t}Return{/t}</a>&#93;
{if %KU_FIRSTLAST && ( count($posts) > 50 || $replycount > 50)}
&#91;<a href="/{$board.name}/res/{$posts.0.id}.html">{t}Entire Thread{/t}</a>&#93;
&#91;<a href="/{$board.name}/res/{$posts.0.id}+50.html">{t}Last 50 posts{/t}</a>&#93;
{if ( count($posts) > 100 || $replycount > 100) }
&#91;<a href="/{$board.name}/res/{$posts.0.id}-100.html">{t}First 100 posts{/t}</a>&#93;
{/if}
{/if}
</span>
</div>
{/if}

and deleted everything you said and there is still no div around >>11980
>> No. 12331
Oh nvm i finally fixed it now all i have to find is the pages and report thing in >>11979
>> No. 12341
when you finish it. Upload? :D
[Return] [Entire Thread] [Last 50 posts]


Delete post []
Password  
Report post
Reason