Logged Out
Create an Account
Login:
Password:

Forgot your password?
Advanced Layout Questions?

Advanced Layout Questions?
[Back to Index]  [Bottom of Thread]
Thread Tags
Primary: [Advanced Layout]
Secondary: None
Hello,
I have a series of questions to ask concerning the Adv Layout.

To start with let me give a little background...
I didn't origionally design my site, a member volunteered to do that for me, since I haven't designed in over 6 years. Having said that, he appearantly has lost interest in continuing maintainance on the site. So I am now filling in that position. As I dig through the code he provided and I am finding alot of features access is not made available and certain cosmetics also left out.

Now for my questions...

1) I see there is a <!--System:SD--> call in two places of the Gold layout. One is in the <link> and the other is in an <a href=> tag. What is this call for and is it restricted to Template layouts only? As it isn't listed in the Advanced Layout admins.

2) For the Forums part of the site, where in the layout.html and the CSS file do you modify/call to change the background of the already read posts vs new posts?

3) Still having trouble resizing the Calendar to fit better in the layout?
I have seperated out
.calcurent
.calbody
.calheader
Am I still missing something? As the font-size: 7.5pt and font-size: 9pt; isn't effecting the calendar at all.

4) I a small javascript function called recalcdivs()
is this a function designed to reposition specific divs tags based on the users resizing the browser? Sorry, I am rusty and new to some coding, just trying to get an understanding.

5) Also see a <!--System:All:Calendar--> call used. Again I don't see this one listed in the Advanced Layout admins, What does this one do exactly? Sorry, I got this one from the Gold layout, was looking at how some of these commands are being used to better understand them.

Well, that is it for now on my questions. I am sure I will have more at some point. Hopefully I will grasp what advice you all may have and that will lead me to better understand any additional question that might arise otherwise.

Again thank you

--
Sreh
Quote by Sreh
1) I see there is a <!--System:SD--> call in two places of the Gold layout. One is in the <link> and the other is in an <a href=> tag. What is this call for and is it restricted to Template layouts only? As it isn't listed in the Advanced Layout admins.


It was built primarily for the Templates for flexibility, but you an use it if you wish. It's undocumented at the moment, but it means "Subdomain." So if your site is xyz.dkpsystem.com, it'll always do "xyz". This is useful for a single guild particularly if they ever wish to change URLs of their site, they won't need to change the layout to reflect the changes. But it's completely optional.

Quote
2) For the Forums part of the site, where in the layout.html and the CSS file do you modify/call to change the background of the already read posts vs new posts?


This is in the CSS part. Look for the "newlist1" and "newlist2" rules.

Quote
3) Still having trouble resizing the Calendar to fit better in the layout?
I have seperated out
.calcurent
.calbody
.calheader
Am I still missing something? As the font-size: 7.5pt and font-size: 9pt; isn't effecting the calendar at all.


The calendar might not be resizable (I've never tried). I guess I'll have to look and possibly give it a class so that you could resize it.

Quote
4) I a small javascript function called recalcdivs()
is this a function designed to reposition specific divs tags based on the users resizing the browser? Sorry, I am rusty and new to some coding, just trying to get an understanding.


Could you post the code for it so I can see. Off the top of my head, I forget, but I believe that that's what it does.

Quote
5) Also see a <!--System:All:Calendar--> call used. Again I don't see this one listed in the Advanced Layout admins, What does this one do exactly? Sorry, I got this one from the Gold layout, was looking at how some of these commands are being used to better understand them.


This one is also undocumented. <!--System:Menus:All|Right|Left--> were added, which can allow your advanced layout to function with the "Menu Administration" section. The "Calendar" is actually an exclusion. It means that the Calendar won't be displayed with the rest of the menus.

I've got some documentation for the Advanced Layout stuff coming in much better detail (which is also requiring some pretty awesome changes to the Guide functionality).

--
It's all in the reflexes.
That is awsome, thanks for the responces...

As for the code request, here it is...

<script language=javascript>
function recalcdivs()
{
var curw = document.body.clientWidth;
for(i=1;document.getElementById("content" + i);i++)
document.getElementById("content" + i).style.width=(curw - 230) + "px";
}

function showstats(tf)
{
document.getElementById("statistics").style.display = tf ? "" : "none";
document.getElementById("statisticshidden").style.display = tf ? "none" : "";
}
</script>


Then a tags it is placed in...

<body onresize="recalcdivs()">
<a href="news.php"><img src="http://dkpfiles.com/<!--System:SD-->/logo" onload="recalcdivs()" border=0></a>


--
Sreh
Yep. You were right about what it does. It's just adjusting the size of the content for when/if the windows are resized.

--
It's all in the reflexes.
Quote by Chops
Yep. You were right about what it does. It's just adjusting the size of the content for when/if the windows are resized.


Cool, thank you

--
Sreh
Chops,

Thanks for the tips on the forum new vs old worked out well. I was wondering if there is a way to seperate out the class from the forums and the News page? I noticed that both are using .list1 and .list2 along with.

Problem I am having is when I apply the classes it not only changes the forums, but changes the News page as well. I would rather not have that effect occur on the News page. Is it something I am missing and can be done on my end or is it something that you may have to change?

Thanks.

--
Sreh


[Back to Index]  [Top of Thread]