Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Q & A
 
<< Previous thread | Next thread >>  
How do i make my forum on a whole page????          
Author Post
Anonymous
Sun Feb 22 2004, 02:23AM
Guest
:
ok i was not so sure where to place this question, cause e107.org is "offline", so i hope u dont mind if i put it here :D :D

anyhow i want to know how can i make my forum show on a whole page, meaning the left side menus will show + the forum (when u click on it that is) and the right side menus will not be shown.

The same like on this site.

So please tell me what should i change and where?

thank u in advance.
cheers,
;)


ihor
Sun Feb 22 2004, 02:26AM
Registered Member #1490
Joined: Fri Jan 02 2004, 02:36PM
Location: Toronto, Canada
Posts: 38
that was me i just forgot to login, what can i say it was along day ......... B)
Back to top
Website
jkibbles
Sun Feb 22 2004, 03:26AM
Registered Member #460
Joined: Sun Jul 06 2003, 09:11PM
Location:
Posts: 148
This is a better question for the crowd at [link], but I'll give it a shot.

You need to use a $customheader and $customfooter tag in your theme, and define the pages that use the customtags with a $custompages reference. Sounds complicated, but it isn't.

If you want the left side menus and the upper portion of the page to show, just copy the information contained in the $header tag, and paste it below the $header section under a tag of $customheader.

For the footer, just do the following under the $footer tag section:

$CUSTOMFOOTER="
</td></tr>
</table>";


Then, under that, add in:
$CUSTOMPAGES="forum.phpforum_post.phpforum_viewforum.phpforum_viewtopic.php";



Here is the entire Header and Footer section of my theme.php to show you what I mean.

$HEADER=
"<divstyle=\"text-align:center\">
<tablestyle=\"width:100%\"cellspacing=\"3\"><tr><tdcolspan=\"3\"style=\"text-align:center\">
{LOGO}
<spanstyle=\"font-size:13px;color:#ffffff;font-style:strong\">
<divclass=\"caption\">SiteLinks</div>
<divclass=\"border\">
<divclass=\"bodytable\">
{SITELINKS=menu}
</div></div>
</td></tr><tr><tdstyle=\"width:20%;vertical-align:top;\">
{SETSTYLE=leftmenu}
{MENU=1}
</td><tdstyle=\"width:60%;vertical-align:top;\">";

$CUSTOMHEADER=
"<divstyle=\"text-align:center\">
<tablestyle=\"width:100%\"cellspacing=\"3\"><tr><tdcolspan=\"3\"style=\"text-align:center\">
{LOGO}
<spanstyle=\"font-size:13px;color:#ffffff;font-style:strong\">
<divclass=\"caption\">SiteLinks</div>
<divclass=\"border\">
<divclass=\"bodytable\">
{SITELINKS=menu}
</div></div>
</td></tr><tr>
<tdstyle=\"width:20%;vertical-align:top;\">
{SETSTYLE=leftmenu}
{MENU=1}
</td><tdstyle=\"width:80%;vertical-align:top;\">";

$FOOTER=
"<tdstyle='width:20%;vertical-align:top'>
{MENU=2}
</td></tr>
<tr>
</tr>
</table>
<tablestyle='width:100%'>
<tr>
<tdstyle='width:33%;vertical-align:top'>
{MENU=3}
</td>
<tdstyle='width:33%;vertical-align:top'>
{MENU=4}
</td>
<tdstyle='width:33%;vertical-align:top'>
{MENU=5}
</td>
</tr>
<tr>
<tdcolspan='3'style='text-align:center'>
{SITEDISCLAIMER}
</td>
</tr>
</table></div>";

$CUSTOMFOOTER="
</td></tr>
<tr>
<tdcolspan='3'style='text-align:center'class='smalltext'>
{SITEDISCLAIMER}
</td>
</tr>
</table>";

$CUSTOMPAGES="forum.phpforum_post.phpforum_viewforum.phpforum_viewtopic.php";


Hope all that helps.
<span class='smallblacktext'>[ Edited Sat Feb 21 2004, 10:27PM ]</span>
Back to top
ihor
Sun Feb 22 2004, 08:45PM
Registered Member #1490
Joined: Fri Jan 02 2004, 02:36PM
Location: Toronto, Canada
Posts: 38
thank you my friend, i just followed everything u said and it worked, thanks !amazed

however, the left side menu(s) now are kind of huge ( the width of the left side menus is too big, well atleast bigger then normal)

Please see the pic bellow:

[link]

(this is taken from my test server on my local machine)

So how can i have just a forum on the right side, and the left side normal sized (normal width) of teh left sided menus???

thank you.

cheers,


;)


==========================
this is the main part of the code i used in my theme.php:




$HEADER .= 
"
<table style='width:100%; background-color:#F5F5F5' cellspacing='3' class='topborder'>
<tr>
<td style='text-align:left; vertical-align:bottom'>
{CUSTOM=clock}
</td>
<td style='text-align:right'>
{CUSTOM=search}
</td>
</tr>
</table>
<table style='width:100%; background-color:white' cellspacing='3' class='topborder'>
<tr>
<td colspan='2' style='text-align:left'>
{LOGO}
</td>
<td style='text-align:right'>
{BANNER}
</td>
</tr>
</table>
<br />
<table style='width:100%' cellspacing='3'>
<tr>
<td style='width:20%; vertical-align: top;'>
{SITELINKS=menu}
{MENU=1}
</td><td style='width:60%; vertical-align: top;'>";

$CUSTOMHEADER =
"<div style=\"text-align:center\">
<table style=\"width:100%\" cellspacing=\"3\"><tr>&l
t;td colspan=\"3\" style=\"text-align:center\">
{LOGO}
<span style=\"font-size: 13px; color:#ffffff;font-style: strong\">
<div class=\"caption\">Site Links</div>
<div class=\"border\">
<div class=\"bodytable\">
{SITELINKS=menu}
</div></div>
</td></tr><tr>
<td style=\"width:20%; vertical-align: top;\">
{SETSTYLE=leftmenu}
{MENU=1}
</td><td style=\"width:80%; vertical-align: top;\">";


$FOOTER = 
"</td><td style='width:20%; vertical-align:top'>
{MENU=2}
</td></tr>
<tr>
<td colspan='3' style='text-align:center' class='smalltext'>

{SITEDISCLAIMER}
</td>
</tr>
</table>
<div style='text-align:center'>
<table style='width:100%'>
<tr>
<td style='width:30%; vertical-align:top'>
 
{MENU=3}
</td>
<td style='width:40%; vertical-align:top'>
{MENU=4}
</td>
<td style='width:30%; vertical-align:top'>
 
{MENU=5}
</td>
</tr>
</table>
</div>";

$CUSTOMFOOTER = "
</td></tr>
<tr>
<td colspan='3' style='text-align:center' class='smalltext'>
{SITEDISCLAIMER}
</td>
</tr>
</table>";

$CUSTOMPAGES = "forum.php forum_post.php forum_viewforum.php forum_viewtopic.php";

<span class='smallblacktext'>[ Edited Sun Feb 22 2004, 03:51PM ]</span>
Back to top
Website
whoisrich
Sun Feb 22 2004, 09:27PM

Registered Member #1165
Joined: Fri Nov 07 2003, 12:27AM
Location: UK
Posts: 800
Erm, that seems to be very complicated,

Im sure you can just edit the forum.php and just remove

require_once(HEADERF);


If you dont want the left side

require_once(FOOTERF);


If you dont want the right side, as in screenshot

And remove both if you want the forum full page.
Back to top
Website
ihor
Sun Feb 22 2004, 09:45PM
Registered Member #1490
Joined: Fri Jan 02 2004, 02:36PM
Location: Toronto, Canada
Posts: 38
I just want everything to remain as it is in the picture bellow, but I want the WIDTH of the left side menus to be less then it is now (on the picture).

Picture:
[link]

So how do I do that taking in consideration all the code of my DMX theme.php:
(Tell me please what I need to change exactly and where, I hope my question is clear):


// [theme]

$themename = "e107 SOOP";
$themeversion = "1.0";
$themeauthor = "BBinder";
$themedate = "26/11/2003";
$themeinfo = "E1007 SOOP based on e107.v4 by jalist, inspired by www.soopportal.com";

define("THEME_DISCLAIMER", "<br /><i>e107.v4 theme by jalist</i>");


// [layout]

$layout = "_default";
$logo = THEME."images/bullet3.gif";





$HEADER .= 
"
<table style='width:100%; background-color:#F5F5F5' cellspacing='3' class='topborder'>
<tr>
<td style='text-align:left; vertical-align:bottom'>
{CUSTOM=clock}
</td>
<td style='text-align:right'>
{CUSTOM=search}
</td>
</tr>
</table>
<table style='width:100%; background-color:white' cellspacing='3' class='topborder'>
<tr>
<td colspan='2' style='text-align:left'>
{LOGO}
</td>
<td style='text-align:right'>
{BANNER}
</td>
</tr>
</table>
<br />
<table style='width:100%' cellspacing='3'>
<tr>
<td style='width:20%; vertical-align: top;'>
{SITELINKS=menu}
{MENU=1}
</td><td style='width:60%; vertical-align: top;'>";

$CUSTOMHEADER =
"<div style=\"text-align:center\">
<table style=\"width:100%\" cellspacing=\"3\"><tr>&l
t;td colspan=\"3\" style=\"text-align:center\">
{LOGO}
<span style=\"font-size: 13px; color:#ffffff;font-style: strong\">
<div class=\"caption\">Site Links</div>
<div class=\"border\">
<div class=\"bodytable\">
{SITELINKS=menu}
</div></div>
</td></tr><tr>
<td style=\"width:20%; vertical-align: top;\">
{SETSTYLE=leftmenu}
{MENU=1}
</td><td style=\"width:80%; vertical-align: top;\">";


$FOOTER = 
"</td><td style='width:20%; vertical-align:top'>
{MENU=2}
</td></tr>
<tr>
<td colspan='3' style='text-align:center' class='smalltext'>

{SITEDISCLAIMER}
</td>
</tr>
</table>
<div style='text-align:center'>
<table style='width:100%'>
<tr>
<td style='width:30%; vertical-align:top'>
 
{MENU=3}
</td>
<td style='width:40%; vertical-align:top'>
{MENU=4}
</td>
<td style='width:30%; vertical-align:top'>
 
{MENU=5}
</td>
</tr>
</table>
</div>";

$CUSTOMFOOTER = "
</td></tr>
<tr>
<td colspan='3' style='text-align:center' class='smalltext'>
{SITEDISCLAIMER}
</td>
</tr>
</table>";

$CUSTOMPAGES = "forum.php forum_post.php forum_viewforum.php forum_viewtopic.php";





function rand_tag(){
    $tags = file(e_BASE."files/taglines.txt");
    return stripslashes(htmlspecialchars($tags[rand(0, count($tags))]));
}

//    [newsstyle]

$NEWSSTYLE = "
<div class='spacer'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captiontopleft'><img src='".THEME."images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
<td class='captiontopmiddle'><img src='".THEME."images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
<td class='captiontopright'><img src='".THEME."images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captionleft'><img src='".THEME."images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
<td class='captionbar' style='white-space:nowrap'>
{NEWSTITLE}
</td>
<td class='captionend'><img src='".THEME."images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
<td class='captionmain'><img src='".THEME."images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
<td class='captionright'><img src='".THEME."images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bodyleft'><img src='".THEME."images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
<td class='bodymain'>
{NEWSICON}
{NEWSBODY}
{EXTENDED}
<div class='alttd' style='text-align:right'>
Posted by 
{NEWSAUTHOR}
on
{NEWSDATE}
 | 
{NEWSCOMMENTS}
 | 
{EMAILICON}
{PRINTICON}
</div>
</td>
<td class='bodyright'><img src='".THEME."images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bottomleft'><img src='".THEME."images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
<td class='bottommain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
<td class='bottomright'><img src='".THEME."images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
</tr>
</table>
</div>";



define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", "Read/Post Comment: ");
define("COMMENTOFFSTRING", "Comments are turned off for this item");
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
define("EXTENDEDSTRING", "Read the rest ...");
define("POST_EXTENDEDSTRING", " ]<br />");



// [linkstyle]

define(PRELINK, "");
define(POSTLINK, "");
define(LINKSTART, "<img src='".THEME."images/bullet2.gif' alt='bullet' /> ");
define(LINKEND, "<br />");
define(LINKDISPLAY, 2);
define(LINKALIGN, "left");


//    [tablestyle]

function tablestyle($caption, $text){
    global $style;
//    echo "Mode: ".$style;

    echo "<div class='spacer'>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captiontopleft'><img src='".THEME."images/blank.gif' width='24' height='3' alt='' style='display: block;' /></td>
<td class='captiontopmiddle'><img src='".THEME."images/blank.gif' width='1' height='3' alt='' style='display: block;' /></td>
<td class='captiontopright'><img src='".THEME."images/blank.gif' width='11' height='3' alt='' style='display: block;' /></td>
</tr>
</table>



<table cellpadding='0' cellspacing='0'>
<tr>
<td class='captionleft'><img src='".THEME."images/blank.gif' width='24' height='18' alt='' style='display: block;' /></td>
<td class='captionbar' style='white-space:nowrap'>".$caption."</td>
<td class='captionend'><img src='".THEME."images/blank.gif' width='12' height='18' alt='' style='display: block;' /></td>
<td class='captionmain'><img src='".THEME."images/blank.gif' width='1' height='18' alt='' style='display: block;' /></td>
<td class='captionright'><img src='".THEME."images/blank.gif' width='11' height='18' alt='' style='display: block;' /></td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bodyleft'><img src='".THEME."images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
<td class='bodymain'>".$text."</td>
<td class='bodyright'><img src='".THEME."images/blank.gif' width='3' height='1' alt='' style='display: block;' /></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='bottomleft'><img src='".THEME."images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
<td class='bottommain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display: block;' /></td>
<td class='bottomright'><img src='".THEME."images/blank.gif' width='10' height='9' alt='' style='display: block;' /></td>
</tr>
</table>

</div>";

}


$POLLSTYLE = <<< EOF
<b>Poll:</b> {QUESTION}
<br /><br />
{OPTIONS=<div class='alttd'>OPTION</div>BAR<br /><span class='smalltext'>PERCENTAGE VOTES</span><br />\n}
<div style='text-align:center' class='smalltext'>{VOTE_TOTAL} {COMMENTS}
<br />
{OLDPOLLS}
</div>
EOF;

$CHATBOXSTYLE = "
<div class='alttd'>
 
<div class='mediumtext'>
<img src='".THEME."images/bullet2.gif' alt='bullet' />
<b>{USERNAME}</b> @ {TIMEDATE}
</div>
</div>
<div class='mediumtext'>
{MESSAGE}
</div>
<br />";

define(CB_STYLE, $CHATBOXSTYLE);


$COMMENTSTYLE = "
<div style='text-align:center'>
<table style='width:100%'>
<tr>
<td colspan='2' class='alttd'>
<img src='".THEME."images/bullet2.gif' alt='bullet' /> 
<b>
{USERNAME}
</b>
 | 
 {TIMEDATE}
</td>
</tr>
<tr>
<td style='width:30%; vertical-align:top'>
<div class='spacer'>
{AVATAR}
</div>
<span class='smalltext'>
{COMMENTS}
<br />
{JOINED}
</span>
</td>
<td style='width:70%; vertical-align:top'>
{COMMENT}
</td>
</tr>
</table>
</div>
<br />";

?>


thank u again.

Back to top
Website
vilhelm
Sun Feb 22 2004, 10:03PM
Registered Member #934
Joined: Mon Sep 29 2003, 04:19PM
Location:
Posts: 393

$CUSTOMHEADER = "
<table style='width:100%; background-color:#F5F5F5' cellspacing='3' class='topborder'>
<tr>
<td style='text-align:left; vertical-align:bottom'>
{CUSTOM=clock}
</td>
<td style='text-align:right'>
{CUSTOM=search}
</td>
</tr>
</table>
<table style='width:100%; background-color:white' cellspacing='3' class='topborder'>
<tr>
<td colspan='2' style='text-align:left'>
{LOGO}
</td>
<td style='text-align:right'>
{BANNER}
</td>
</tr>
</table>
<br />
<table style='width:100%' cellspacing='3'>
<tr>
<td style='width:20%; vertical-align: top;'>
{SITELINKS=menu}
{MENU=1}
</td><td style='width:60%; vertical-align: top;' colspan='2'>
";

$CUSTOMFOOTER = "
</td></tr>
<tr>
<td colspan='3' style='text-align:center' class='smalltext'>

{SITEDISCLAIMER}
</td>
</tr>
</table>
<div style='text-align:center'>
<table style='width:100%'>
<tr>
<td style='width:30%; vertical-align:top'>
 
{MENU=3}
</td>
<td style='width:40%; vertical-align:top'>
{MENU=4}
</td>
<td style='width:30%; vertical-align:top'>
 
{MENU=5}
</td>
</tr>
</table>
</div>
";


do you have an html editor? it's just changing the tables around and getting rid of {MENU=2}...
edit it more if you want your bottom 3 menus gone

just make sure to balance your td and tr tags
Back to top
vilhelm
Sun Feb 22 2004, 10:52PM
Registered Member #934
Joined: Mon Sep 29 2003, 04:19PM
Location:
Posts: 393
oh, right before where it says {MENU=1} you might want to change the 20% to like 15% or something to make that column smaller
Back to top
ihor
Sun Feb 22 2004, 11:47PM
Registered Member #1490
Joined: Fri Jan 02 2004, 02:36PM
Location: Toronto, Canada
Posts: 38
vilhelm wrote ...
oh, right before where it says {MENU=1} you might want to change the 20% to like 15% or something to make that column smaller


thanks vilhelm ...
;) :) :D

great help !amazed
Back to top
Website
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.2636 sec, 0.1514 of that for queries. DB queries: 45.