View Thread
Who is here? 1 guest(s)
|
left&right panels go one side
|
|
| jankovichs |
Posted on 21-02-2012 11:57
|
|
Newbie ![]() Posts: 9 Joined: 15/10/2011 10:35 |
hi guys! can u theme master help me in this one :) all i need is that right side panels or left side panels can bee movable next to right or next to left side panel ... maybe there is a mod for that or i should edit some of theme files? there is attachment what i mean. thx a lot!
jankovichs attached the following image:
Edited by jankovichs on 21-02-2012 12:05 |
|
|
|
| NetriX |
Posted on 21-02-2012 19:01
|
|
Addicated Frequent Poster ![]() Posts: 393 Joined: 01/05/2008 13:30 |
See the theme.php file for examples: themes/your_theme_name/theme.php Find the function "render_page". To echo the content of the left panels: if (LEFT) { echo LEFT; } For right panels: if (RIGHT) { echo RIGHT; } For center upper and lower panels: echo U_CENTER.CONTENT.L_CENTER; So, change your theme.php file's source to match something similar to this: function render_page() {
if (LEFT) { echo LEFT; } if (RIGHT) echo RIGHT; } echo U_CENTER.CONTENT.L_CENTER; } PHPFusionMods.com <- Quality Mods and Infusions for Free!
|
|
|
|
| jankovichs |
Posted on 22-02-2012 02:15
|
|
Newbie ![]() Posts: 9 Joined: 15/10/2011 10:35 |
thank you Netrix but still errors bah i tried ewerything. got a lot of errors . newer been edit theme files . there is my theme.php if somone could help me.... thx <?php
/*------------------------------------------------------------------ Ghost V1 by Joe Allen (http://www.JoeAllenPro.com/) You Can Use And Share the theme as much as you want but please don't remove copyright of theme -------------------------------------------------------------------*/ if (!defined("IN_FUSION")) { die("Access Denied"); } require_once INCLUDES."theme_functions_include.php"; define("THEME_WIDTH", "990"); define("THEME_BULLET", "·"); //v7 sublinks function is a bit more for this, so taken from v6 and tweaked function thesublinks($sep="·",$class="") { $i = 0; $res = ""; $sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC"); if (dbrows($sres)) { while($sdata = dbarray($sres)) { if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; } $link_target = $sdata['link_window'] == "1" ? " target='_blank'" : ""; $link_class = $class ? " class='$class'" : ""; if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) { $res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>"; } else { $res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>"; } $i++; } } if ($i != 0) { return $res; } else { return " "; } } function render_page($license=false) { global $settings, $main_style; //Header echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr><td> <table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' style='border: 0px; margin: 0px auto'> <tr><td> <p align='right' style='padding-right:20px;'><font color='#ffffff' size='4'>".stripslashes($settings['sitename'])."</font><br/></p>"; echo "</td></tr></table>\n"; //sublinks css echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0'><tr><td>"; echo "<div id='altlinkler'>"; echo "<ul><li>".thesublinks("</li>\n<li>"); echo "</li></ul><div class='clear-both'> </div></div>"; if ($settings['siteintro'] != "") { echo "</td></tr><tr><td class='welc'><center>".stripslashes($settings['siteintro'])."</center></td></tr></table>"; } else { echo "</td></tr></table>"; } //Content echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='barry'>\n<tr>\n"; if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; } echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>"; if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; } echo "</tr>\n</table>\n"; //Footer echo "<div id='footer'><table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='footermain'> <tr> <td class='footerleft'>".showcopyright()."</td> <td class='footerright'> </td> </tr> </table> </div> </td></tr></table> \n"; } function render_news($subject, $news, $info) { echo "<div class='capmain'>$subject</div>\n"; echo "<div class='main-body floatfix'>".$news."</div>\n"; echo "<div class='news-footer'>\n"; echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']); echo "</div>\n"; } function render_article($subject, $article, $info) { echo "<div class='border tablebreak'>"; echo "<div class='capmain'>$subject</div>\n"; echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n"; echo "<div class='news-footer'>\n"; echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']); echo "</div>\n"; echo "</div>"; } function opentable($title) { echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'> <tr> <td class='capmain'>$title</td> </tr> <tr> <td class='main-body'>\n"; } function closetable() { echo "</td> </tr> </table>\n"; } function openbox($title) { echo "<table border='1' cellpadding='0' cellspacing='0' class='round'> <tr> <td></td> <td class='rounded-tl'></td> <td class='rounded-t'></td> <td class='rounded-tr'></td> <td></td> </tr> <tr> <td class='rounded-l'></td> <td class='rounded-main' colspan='3'>"; } function closebox() { echo "</td> <td class='rounded-r'></td> </tr> <tr> <td></td> <td class='rounded-bl'></td> <td class='rounded-b'></td> <td class='rounded-br'></td> <td></td> </tr> </table>"; } function openside($title, $collapse = false, $state = "on") { echo "<div class='border tablebreak'>"; global $panel_collapse; $panel_collapse = $collapse; echo "<div class='border'>\n"; echo "<div class='scapmain'>"; if ($collapse == true) { $boxname = str_replace(" ", "", $title); echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>"; } echo $title."</div>\n<div class='side-body floatfix'>\n"; if ($collapse == true) { echo panelstate($state, $boxname); } } function closeside($collapse = false) { global $panel_collapse; if ($panel_collapse == true) { echo "</div>\n"; } echo "</div>\n</div>\n"; echo "</div>"; } ?> Edited by jankovichs on 22-02-2012 02:19 |
|
|
|
| afoster |
Posted on 22-02-2012 06:36
|
|
Frequent poster ![]() Posts: 161 Joined: 25/07/2008 05:43 |
Unless I am reading the post wrong, (and I could be) I believe what he wants is the right panel to be next to the left panel, with the center panel off to the side as noted in his screen dump. I don't know enough about coding to know if what Netrix provided does this or not. |
|
|
|
| skpacman |
Posted on 22-02-2012 10:34
|
|
Junior ![]() Posts: 30 Joined: 11/02/2010 17:49 |
The area you should be paying attention to for moving sides and centers around is the content area and the associated css in the styles.css//ContentIf you change this: to this: It'll move the the left panel next to the right one, but it may break other things, like the center panel's position. not entirely sure on this one. Edited by skpacman on 22-02-2012 10:48 |
|
|
|
| Skeeve |
Posted on 25-07-2012 07:31
|
|
Junior ![]() Posts: 18 Joined: 07/11/2008 14:45 |
I'm trying to change Area69 into a blog looking theme, similar to TLC_blog. I tried the above suggestion, but it didn't change anything. The Area69 render_page code snippet for it: echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";edit- I just noticed we've moved to styles.css...will try that now. edit2- Ok, that is themes.php code, not styles.css. /sigh Edited by Skeeve on 25-07-2012 14:30 |
|
|
|
| Skeeve |
Posted on 25-07-2012 14:47
|
|
Junior ![]() Posts: 18 Joined: 07/11/2008 14:45 |
After much trial and error, I've got it. from original themes.php echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";I noticed the left, center and right were in order. So I cut and moved the LEFT line and put it after CENTER, making CENTER the first line. echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";My site now has the left side as Main area and the left and right columns are both on the right side. |
|
|
|
| Jump to Forum: |


Information
Resources
Submit












