xoops forums

websi7

Just popping in
Posted on: 2009/3/30 5:14
websi7
websi7 (Show more)
Just popping in
Posts: 2
Since: 2009/3/27
#1

Home Page create/edit and other content

I am new to XOOPS but not to web development - the site is all working but I am having trouble (despite searching the forums) to create a HOME PAGE and ABOUT US. There are content modules but many are not 100% english, block management in system also is vague.

Can someone please point me to a good 100% english content module or how to create/edit a few key pages needed.

Thanks....XOOPs is great

Monika

Not too shy to talk
Posted on: 2009/3/30 5:22
Monika
Monika (Show more)
Not too shy to talk
Posts: 103
Since: 2008/12/19
#2

Re: Home Page create/edit and other content

Hi welcome.
Try this

<?php  
if (file_exists("mainfile.php")) {  
    include(
"mainfile.php");  
}  
elseif(
file_exists("../mainfile.php")) {  
    include(
"../mainfile.php");  
}  
else {  
    include(
"../../mainfile.php");  
}  
include(
XOOPS_ROOT_PATH "/header.php");  
$xoopsTpl->assign('xoops_showrblock'1); // 1 to display right blocks, 0 to hide  
$xoopsTpl->assign('xoops_showlblock'1); // 1 to display left blocks , 0 to hide 


Your HTML code here
  
include(XOOPS_ROOT_PATH "/footer.php");  
?>



Mamba

Moderator
Posted on: 2009/3/30 6:12
Mamba
Mamba (Show more)
Moderator
Posts: 10990
Since: 2004/4/23
#3

Re: Home Page create/edit and other content

Please, no double posting!

I've deleted the other post.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

ghia

Community Support Member
Posted on: 2009/3/30 8:27
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#4

Re: Home Page create/edit and other content

In general you should leave this part out, because it can make display empty columns.
$xoopsTpl->assign('xoops_showrblock'1); // 1 to display right blocks, 0 to hide  
$xoopsTpl->assign('xoops_showlblock'1); // 1 to display left blocks , 0 to hide

websi7

Just popping in
Posted on: 2009/4/1 4:54
websi7
websi7 (Show more)
Just popping in
Posts: 2
Since: 2009/3/27
#5

Re: Home Page create/edit and other content

Thanks for tips - found out the solution - create a new BLOCK, and do the HTML in an editor then paste in this new block layout and locate the block (in my case called home page)

I also creates 2 section (right and below) for GOOGLE ADSENSE in the same way, quick and neat once you hit on the way!!!