Navigation
Last Seen Users
julioharima03:26:19
vampalicious03:41:07
tungtung04:21:35
ow4nd06:57:07
fox07:44:19
GrafKakashi08:03:34
zottelxxl08:10:15
hczz08:31:16
mcatlin2809:06:12
Branti09:15:44

Members: 27,567
Newest: vampalicious
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [19 Votes]

7.00.xx
7.00.xx
8% [38 Votes]

7.01.xx
7.01.xx
8% [40 Votes]

7.02.xx
7.02.xx
80% [400 Votes]

Votes: 497
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

18-05-2013 10:01
Can I link a panel to another subdomain? If so how? openside() echo ??? "http://xxxxx/infus
ions/panel/panel.p
hp" closeside()

18-05-2013 01:20

18-05-2013 01:19

18-05-2013 01:18

18-05-2013 00:49

18-05-2013 00:48

18-05-2013 00:21

16-05-2013 22:09
monclermoncler

16-05-2013 22:08
bottes uggbottes ugg Cheers!

16-05-2013 22:07
<a href="http://www.bo
ttesuggpaschersold
e.com/">ugg pas cher</a>ugg pas cher Cheers!

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
View Thread
Who is here? 1 guest(s)
 Print Thread
left&right panels go one side
jankovichs
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:
av4zzm.jpg

Edited by jankovichs on 21-02-2012 12:05
 
NetriX
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!
 
Web
jankovichs
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", "&middot;");

//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="&middot;",$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 "&nbsp;"; }
}

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'>&nbsp;</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,"&middot;").newsopts($info,"&middot;").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,"&middot;").articleopts($info,"&middot;").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
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
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

Download source  Code
//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";




If you change this:
Download source  Code
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }




to this:
Download source  Code
if (LEFT) { echo "<td class='side-border-right' valign='top'>".LEFT."</td>"; }




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
 
Web
Skeeve
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:

Download source  Code
 echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
  echo "".(LEFT ? "<td id='side-border-left' valign='top'>".LEFT."</td>" : "")." ";
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   echo "".(RIGHT ? "<td id='side-border-right' valign='top'>".RIGHT."</td>" : "")." ";
   echo "</tr>\n</table>\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
 
Web
Skeeve
After much trial and error, I've got it.

from original themes.php

Download source  Code
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
   echo "".(LEFT ? "<td id='side-border-left' valign='top'>".LEFT."</td>" : "")." ";
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   echo "".(RIGHT ? "<td id='side-border-right' valign='top'>".RIGHT."</td>" : "")." ";
   echo "</tr>\n</table>\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.

Download source  Code
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   echo "".(LEFT ? "<td id='side-border-left' valign='top'>".LEFT."</td>" : "")." ";
   echo "".(RIGHT ? "<td id='side-border-right' valign='top'>".RIGHT."</td>" : "")." ";
   echo "</tr>\n</table>\n";






My site now has the left side as Main area and the left and right columns are both on the right side.
 
Web
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
PCPIN 6 & PHP-Fusion 7 Bridge Feedback and Announcements 1 12-04-2013 08:58
&#12464;&#12483;&#12481;&#12464;&#12483;&#12481;&#12458; GUCCIO &#12 Mod/Infusion Modification Request 1 26-03-2013 20:32
&#12523;&#12502;&#12479;&#12531; Feedback and Announcements 1 05-03-2013 17:38
&#12523;&#12502;&#12479;&#12531; &#12469;&#12452;&#12474; General Chat 1 05-03-2013 16:49
PHP-Fusion & PCPIN Chat Integration? Mod/Infusion Modification Request 10 04-03-2013 07:56