1
shansta22
Html Page trick
  • 2005/3/7 4:39

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


G'day,
Just a little trick that i thought i might share..
I accidentally did this while editing my html head/footer wrap pages.. Since I have been using XOOPS I have always added html pages using a blank.php and inserting my html in between <?php tags,
like below: (had to put the html/php tags in brackets)

(?php)
include("mainfile.php");
include("header.php");
$xoopsOption['show_rblock'] = 1; //0 for no right block
?>

(html)
(head)
MY HTML WHATEVA IT IS
(?php)
include("footer.php");
?>

then saving it as whateverhtmlpage.php..

When opening the page it would just show your standard XOOPS page title, whatever it is, mine is Talking Sport - For Aussie Sport Fanatics..

But today I was editing my html.php and I accidentally inserted the:

(?php include("mainfile.php"); include("header.php"); $xoopsOption['show_rblock'] = 1; //0 for no right block
?>

just after the (body) tag and the:

(?php
include("footer.php");
?>

just before the (/body) tag

And then i added My page title as follows:

TITLE)Talking Sport - Links(TITLE
LINK REV="made" href="mailto:shan@talkingsport.net"
META NAME="keywords" CONTENT="blah, blah, blah, blah"
META NAME="description" CONTENT="Talking Sport - Links"
META NAME="author" CONTENT="shan"
META NAME="ROBOTS" CONTENT="ALL"

So now when I go to those html pages I actually get the html title instead of the standard XOOPS page title..

If you want to see want I mean exactly you can visit any one of my html pages here..

http://talkingsport.net/aboutus.php
http://talkingsport.net/privacy.php
http://talkingsport.net/links.php
http://talkingsport.net/2005-fixtures.php

I am not sure if someone has done this before but if not I thought it would be handy to know for your future html pages..

Download links.php to have a look at exactly what i mean..

Hope this post wans't to long & I hope it helps someone

shan.

2
m0nty
Re: Html Page trick
  • 2005/3/7 4:48

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


hehe nice :) there's lots of ways tho, but yours is easy enough :)

a l9ittle tip for you tho, when posting code on newbb forums, instead of you posting as you did..

ie (?php) surrounding in brackets..

you can use the code function..
and [/code ]  (remove the spaces)  then you can type in your code as it should be.. for example >

[code]
<?php
include("mainfile.php");
include(
"header.php");
$xoopsOption['show_rblock'] = 1//0 for no right block
?>

<html>
<head>
MY HTML WHATEVA IT IS
<?php
include("footer.php");
?>

3
shansta22
Re: Html Page trick
  • 2005/3/7 4:53

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


cheers,

do you know at all how I can add page titles to modules?

shan.

4
m0nty
Re: Html Page trick
  • 2005/3/7 5:03

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


off hand no.. but i don't think it's all that hard to do if you are comfortable with a little editing..

this thread might help you more i think..

there's some useful links in there etc that will certainly guide you along to do what u ask..

https://xoops.org/modules/newbb/viewtopic.php?topic_id=28226&forum=15&post_id=134227#forumpost134227

Login

Who's Online

153 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits