1
websi7
Home Page create/edit and other content
  • 2009/3/30 5:14

  • websi7

  • Just popping in

  • Posts: 2

  • Since: 2009/3/27


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

2
Monika
Re: Home Page create/edit and other content
  • 2009/3/30 5:22

  • Monika

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/12/19


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");  
?>



3
Mamba
Re: Home Page create/edit and other content
  • 2009/3/30 6:12

  • Mamba

  • Moderator

  • Posts: 11547

  • Since: 2004/4/23


Please, no double posting!

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

4
ghia
Re: Home Page create/edit and other content
  • 2009/3/30 8:27

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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

5
websi7
Re: Home Page create/edit and other content
  • 2009/4/1 4:54

  • websi7

  • Just popping in

  • Posts: 2

  • Since: 2009/3/27


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!!!