Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:30 am EST
Geeklog Forums
How to Enable SplashBlock in 1.3.9?
Status: offline
vbgunz
Forum User
Full Member
Registered: 01/24/03
Posts: 169
I see within index.php some code to help ease the SplashBlock... The center block which spans over the center and right blocks...
How do I make my theme work with this by default for all users? I've created a topcenterblock-span.thtml and placed it within my themes root and filled the content with preferences/displayblock.thtml... No spanning, just problems...
Can someone help me enable this block? Thanks!
Victor B. Gonzalez -
http://aeonserv.com
How do I make my theme work with this by default for all users? I've created a topcenterblock-span.thtml and placed it within my themes root and filled the content with preferences/displayblock.thtml... No spanning, just problems...
Can someone help me enable this block? Thanks!
Victor B. Gonzalez -
http://aeonserv.com
34
8
Quote
Status: offline
vbgunz
Forum User
Full Member
Registered: 01/24/03
Posts: 169
I've got 2 of 3 of my themes updated for 1.3.9. I would like to offer the feature of the center block to span over. Can someone help me?
Thanks!
Victor B. Gonzalez -
http://aeonserv.com
Thanks!
Victor B. Gonzalez -
http://aeonserv.com
20
12
Quote
Good question Victor
I added this feature quite some time ago in the 1.3.9 development and it may not have been well documented.
As you noticed in index.php, there is a check for an additional template. If your theme has a topcenterblock-span.thtml then it will be used. A Global variable $GLOBALS['centerspan'] will be set and checked in COM_siteFooter(). This template file should have the following HTML
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="100%">
<td height="100%" width="100%" valign="top">
When the footer is generated in COM_siteFooter(), $GLOBALS['centerspan'] is checked. If it is set then an additional template variable {centerblockfooter-span} is set for footer.thtml. Add the new template variable to your theme footer.thtml file so that the additional table added via the new template above can be properly closed.
Using XSilver as an example - which has a lot of tables and I often use this theme for testing.
The new footer.thtml file looked like this:
<!-- End Content Area -->
</td>
{right_blocks}
</tr>
</table>
{centerblockfooter-span}
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="70%" class="footerblock" valign="middle" align="left">{copyright_notice}</td>
<td width="30%" class="footerblock" valign="middle" align="right">{powered_by} <a class="navtext" href="{geeklog_url}">GeekLog</a> <br>
{execution_textandtime} </td>
</tr>
</table>
</div>
</td>
<td width="6" background="{layout_url}/images/container-right-tube-bg.gif"><img border="0" src="{layout_url}/images/container-right-tube-bg.gif" width="6" height="5" alt=""></td>
</tr>
<tr>
<td width="6"><img border="0" src="{layout_url}/images/container-left-bottom-corner.gif" width="6" height="5" alt=""></td>
<td width="100%" background="{layout_url}/images/container-bottom-bg.gif"><img border="0" src="{layout_url}/images/container-bottom-bg.gif" width="10" height="5" alt=""></td>
<td width="6"><img border="0" src="{layout_url}/images/container-right-bottom-corner.gif" width="6" height="5" alt=""></td>
</tr>
</table>
</body>
</html>
Geeklog components by PortalParts -- www.portalparts.com
I added this feature quite some time ago in the 1.3.9 development and it may not have been well documented.
As you noticed in index.php, there is a check for an additional template. If your theme has a topcenterblock-span.thtml then it will be used. A Global variable $GLOBALS['centerspan'] will be set and checked in COM_siteFooter(). This template file should have the following HTML
Text Formatted Code
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="100%">
<td height="100%" width="100%" valign="top">
When the footer is generated in COM_siteFooter(), $GLOBALS['centerspan'] is checked. If it is set then an additional template variable {centerblockfooter-span} is set for footer.thtml. Add the new template variable to your theme footer.thtml file so that the additional table added via the new template above can be properly closed.
Using XSilver as an example - which has a lot of tables and I often use this theme for testing.
The new footer.thtml file looked like this:
Text Formatted Code
<!-- End Content Area -->
</td>
{right_blocks}
</tr>
</table>
{centerblockfooter-span}
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="70%" class="footerblock" valign="middle" align="left">{copyright_notice}</td>
<td width="30%" class="footerblock" valign="middle" align="right">{powered_by} <a class="navtext" href="{geeklog_url}">GeekLog</a> <br>
{execution_textandtime} </td>
</tr>
</table>
</div>
</td>
<td width="6" background="{layout_url}/images/container-right-tube-bg.gif"><img border="0" src="{layout_url}/images/container-right-tube-bg.gif" width="6" height="5" alt=""></td>
</tr>
<tr>
<td width="6"><img border="0" src="{layout_url}/images/container-left-bottom-corner.gif" width="6" height="5" alt=""></td>
<td width="100%" background="{layout_url}/images/container-bottom-bg.gif"><img border="0" src="{layout_url}/images/container-bottom-bg.gif" width="10" height="5" alt=""></td>
<td width="6"><img border="0" src="{layout_url}/images/container-right-bottom-corner.gif" width="6" height="5" alt=""></td>
</tr>
</table>
</body>
</html>
Geeklog components by PortalParts -- www.portalparts.com
18
20
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
Quote by Blaine...) it may not have been well documented.(..)
ROTFL
But it's great and works real well. I just needed to add a cellspacing to the first table, but that might be a problem with my selfmade theme
geKow
12
13
Quote
Status: offline
vbgunz
Forum User
Full Member
Registered: 01/24/03
Posts: 169
Thank you very much for the help Blaine. I have it enabled it for my themes and it is looking good. Definitely a better solution than the old!
Thanks!
Victor B. Gonzalez -
http://aeonserv.com
Thanks!
Victor B. Gonzalez -
http://aeonserv.com
11
12
Quote
All times are EST. The time is now 02:30 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content