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: 11366

  • Since: 2004/4/23


Please, no double posting!

I've deleted the other post.
Support XOOPS => DONATE
Use 2.5.10 | 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!!!

Login

Who's Online

175 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

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

Latest GitHub Commits