FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » how to execute php code into fud templates?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
how to execute php code into fud templates? [message #32754] Wed, 19 July 2006 00:10 Go to previous message
matthieu_phpmv is currently offline  matthieu_phpmv   France
Messages: 44
Registered: November 2004
Karma:
Member
Hello

I would like to display a partnership link only on main forums pages. How could I do this?

If i would know how to execute php code in templates, i would put this little code
$neo="LINK";

if ($REDIRECT_URL=="/forums/") {echo $neo;}
if (ereg("/f/13/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/14/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/15/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/11/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/6/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/7/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/8/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/10/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/f/9/0/",$REDIRECT_URL)) {echo $neo;}
if (ereg("/l/0/",$REDIRECT_URL)) {echo $neo;}


Is it possible in fud forum?
For example in smarty template engine I can do this by adding {php} tag before and {/php} after the little php code.

Thanks in advance for help!
Matt
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Integrate With A Mailing List
Next Topic: Email Mailing list integration
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 17:29:14 GMT 2024

Total time taken to generate the page: 0.04644 seconds