1
cutley
custom html page with block inside *solution*
  • 2007/2/16 1:14

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


UPDATE: Found out how to do it! . On the custom page i used php to include another php page with no content with its theme set to "block". I made a theme called block which has no styles applied and just the code to include a block.

Page > 2nd page > theme > block

The block is run in the theme, which is applied to a 2nd page which is included in the main page.

SIMPLE

**************

very simple; how do i show a block within a custom html page. So its actually within the "<{$xoops_contents}>" area of the page.

I can't include the include block code in the theme template.

i'v tried to add
<table cellspacing="0">
    <
tr>

      <
td id="centercolumn">
        
        <{if 
$xoops_showcblock == 1}>
        <
table cellspacing="0">
        <
tr>
        
            <
td id="centerRcolumn">        
            
            <{foreach 
item=block from=$xoops_crblocks}>
                <{include 
file="default/theme_blockcenter_r.html"}>
            <{/foreach}>
            
            td>
        tr>
        table>
        <{/if}>
        
          
      td>
    tr>
  table>
to the page.php but that just comes up as plain txt.


Any help would be greated with a smile
- - - - -
xoops FTW

2
JMorris
Re: custom html page with block inside
  • 2007/2/16 2:02

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Have you tried the PageWrap module? Essentially, it's an empty module that you can either add your HTML to the index.php file to, or assign blocks to. You can easily rename the module to whatever you want by changing the directory name, just make sure you change the $modversion['dirname'] variable in xoops_version.php.

HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
cutley
Re: custom html page with block inside
  • 2007/2/16 11:02

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


thanks for your help, the page is already included in the theme so i can put blocks in the standard place in relation to the content (above, below, left and right) but i would like to include a block within the content.

does that make sence?

(why do i always make my XOOPS designs so annoying to make i ask myself)



BTW update: the page is .php the html code is included within the


Atm the block code is not being read at all, its being treated like plaintext. Should i add tags in, or can i keep the block in the theme.html and then move it to a different position on the page with a div?

?????
- - - - -
xoops FTW

4
cutley
Re: custom html page with block inside *solution*
  • 2007/2/16 15:34

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


Solution found see top post
- - - - -
xoops FTW

Login

Who's Online

324 user(s) are online (207 user(s) are browsing Support Forums)


Members: 0


Guests: 324


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