1
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



2
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



3
dhackmann
php include tag in news module
  • 2007/3/8 18:10

  • dhackmann

  • Just popping in

  • Posts: 5

  • Since: 2004/9/15


I'm trying to figure out if I can use php's include tag within the submit portion of the news module. Is this possible? If so, can I include a file using google maps API?

Thanks,

D



4
dhackmann
Re: all pages blank on install 2.0.7
  • 2004/9/21 14:02

  • dhackmann

  • Just popping in

  • Posts: 5

  • Since: 2004/9/15


Thanks for the reply.

I simply pointed the browser tohttp://localhost on the server




5
dhackmann
all pages blank on install 2.0.7
  • 2004/9/21 12:58

  • dhackmann

  • Just popping in

  • Posts: 5

  • Since: 2004/9/15


Hi:

I installed 2.0.7 on my server running suse 9.1. I made all the necessary files/folder writable, am running up to date version of both php and mysql. However, if I try to load any page it is simply blank. I have done a search on this topic and saw that several people have had similar problems. However, I have not seen a solution yet.

Also, I have managed to get runcms to work correctly on the same server, but would rather use xoops. Any tips on where to start looking would be appreciated as I am fairly new to xoops.

Thanks.




TopTop



Login

Who's Online

192 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

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

Latest GitHub Commits