1
isaacraja
Maxmizing the Fourm window and hiding all other links and banners(FULLSCREEN)
  • 2004/5/21 17:37

  • isaacraja

  • Just popping in

  • Posts: 8

  • Since: 2004/5/18


sir ,in XOOPS ,when using forums the forums appears in a small page resulting in scrolling of web page. How to hide all other thing and show only forum related things. that is how to make forum in Full screen>?

2
ladon
Re: Maxmizing the Fourm window and hiding all other links and banners(FULLSCREEN)
  • 2004/5/21 18:19

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


You can achieve what you want by using smarty the way I do:

My theme.html is very small. I only use it to look at the module in use and then include a .html file for that module. And ofcourse, when needed, a .html uses its own .css.

The theme.html look something like this:
<{if $xoops_pagetitle == Forum}>
   <{include 
file="themedir/themeforum.html"}>
<{/if}>
<{if 
$xoops_pagetitle == TESTING}>
   <{include 
file="themedir/thememain.html"}>
<{/if}>
<{if 
$xoops_pagetitle == News}>    
   <{include 
file="themedir/themenews.html"}>
<{/if}>


the included themes are the full theme files. In this case the themeforum.html displays only a few things: the content. I removed all blocks and tables except for header and footer (for banners and stuff).

So the forum theme could look like this (only body in example):
<body>
<
table width="772"  border="0" align="center" cellpadding="0" cellspacing="0">
   <
tr
     <
td class="head_banner"><{$xoops_banner}>td>
   tr>
   <
tr>
     <
td class="content"
       <{
$xoops_contents}>
     td>
   tr>
   <
tr>
     <
td height="20" bgcolor="#9CCFCE" align="center">
       <
$xoops_footer}>
     td>
   tr>
table>
body>


This could be usefull when you want to show nothing except the forum. Just selecting all blocks not to display at the forum module won't do. This way you can just set the block to "all pages" and still not let it show at forums (or however you want it).

3
carnuke
Re: Maxmizing the Fourm window and hiding all other links and banners(FULLSCREEN)
  • 2005/9/3 14:20

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Im using this code in my theme.html

<{php}>
<{if 
$xoops_pagetitle == Forum}>
   <{include 
file="themedir/themeforum.html"}>
<{/if}>
<{if 
$xoops_pagetitle == xcgal}>
   <{include 
file="themedir/themexcgal.html"}>
<{/if}>
<{if 
$xoops_pagetitle == News}>    
   <{include 
file="themedir/themenews.html"}>
<{/if}>
<{/
php}>


To switch themes on modules. Mmm, it won't work on 2.2.3. I get a templates_c parse error.

Can someone tell me what's wrong here please?

TIA

Richard
hhttp://houseofstrauss.co.uk Resource for alternative health and holistic lifestyle
search xoops

Login

Who's Online

212 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits