1
Zaphod
PHP Code in News 1.4 Document
  • 2005/8/27 0:22

  • Zaphod

  • Not too shy to talk

  • Posts: 104

  • Since: 2005/4/17


Is it possible to insert PHP code into a News document?

What I would like to do is have a conditional display of part of the document.
Ie:

Blah, blah
.
.
if( AnonymousUser )
{
Please register to see clip.
}
else
{
>>Click here to see clip<<
}

I’m not a PHP/Xoops programmer so and example of how to do this would be appreciated.

Regards
Terry

2
hervet
Re: PHP Code in News 1.4 Document
  • 2005/9/16 17:21

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


With News 1.4 if you don't check the module's option "Restrict Topics on Index Page?" then the users will be able to see the introduction (the scoop) but not the rest of the text.

Login

Who's Online

170 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 170


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