1
dhackmann
php tags in news module
  • 2007/3/12 14:02

  • dhackmann

  • Just popping in

  • Posts: 5

  • Since: 2004/9/15


XOOPS Version: 2.0.13.2
Module Name/Version: News 1.1
PHP Version: 4.3.4
MySQL Version: 4.0.20-standard
Web Server Software (Apache/IIS/Other): Apache 2.0.49
Operating System: Suse Linux, Kernel 2.6.4-52
Theme you are using: 7dana-round
Custom template: (Yes/No) No
PHP Debug Messages:
Notice [PHP]: Undefined variablei in file modules/YahooNews/xoops_version.php line 31
Notice 
[PHP]: Undefined indexanonpost in file modules/news/include/storyform.inc.php line 42

MySQL Debug Messages:
Smarty Debug Messages:
A full description of the issue:

I am trying to include a file called maps.html in the News module. I am simply using this tag in the screen where
you typically enter your news text:

<?php include "maps.html" ?>


When I preview this input, the screen shows nothing. Is this a possible operation? Can I not use php code in
the news module like I would html tags? Any answers would be appreciated.

Thanks,

D

2
middleton
Re: php tags in news module
  • 2007/3/12 23:29

  • middleton

  • Just popping in

  • Posts: 30

  • Since: 2006/12/21


I'm not the best person to answer this, but maybe you should try adding it as an iframe. If the .html file is local, I think there is javascript code out there that can determine the dimensions of the document, and size the iframe appropriately so you won't have any scrollbars.

Brad

3
phppp
Re: php tags in news module
  • 2007/3/13 1:24

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Not very clear about your question

4
dhackmann
Re: php tags in news module
  • 2007/3/13 11:28

  • dhackmann

  • Just popping in

  • Posts: 5

  • Since: 2004/9/15


Sorry, I guess my question is a little unclear.

What I want to do is enter the tag

<?php include "maps.html" ?>


into the text field where I would enter news for my visitors.

maps.html is a local file that uses the google maps api to display a map. I have found that dumping the html and javascript from the api code into the text area doesn't work, so I thought about using the 'include' tag as a way to display the file in the news module.

My objective is to display the map as a news entry just like I would with text. Am I on the right track? It seems, I can't submit php code through the text field. I can submit html code, and the news module uses it to format my text.

So if I write

<b>bold</b>


I get <b>bold</b> text. It seems this does not work for php tags. Am I correct? Or is it simply my version of xoops, or the news module.

Thanks,

Dan

Login

Who's Online

248 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 248


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