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

Home » FUDforum » How To » adding articles at the top.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
- adding articles at the top. [message #15494] Wed, 17 December 2003 12:04 Go to next message
hello-world is currently offline  hello-world   India
Messages: 47
Registered: December 2003
Karma: 0
Member


Hi,

I would like to know if it is possible to add files at the top, so
that the forum can act as an instant feedback mechanism.

Could somebody provide me a _general_ idea how to go about it...

Thanks in advance


- Re: adding articles at the top. [message #15502 is a reply to message #15494] Wed, 17 December 2003 15:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can use header.tmpl to add any content you desire to the top of the forum.

FUDforum Core Developer
- Re: adding articles at the top. [message #15510 is a reply to message #15502] Wed, 17 December 2003 16:53 Go to previous messageGo to next message
hello-world is currently offline  hello-world   India
Messages: 47
Registered: December 2003
Karma: 0
Member

Hi,

Sorry, I was a little vague, I guess.

Can I add dynamic content?

Actually a bunch of html files according to the topic.

FOr instance something like this..

<!-- include {VAR: id->topic}.html>

<!-- include {VAR:id->topic}_right.html>

Then _contents_ of these files will be automatically included inside.

In such a case, FUDforum can work as a full fledged content
management system, I mean, if CMF is what I understand it is.

Thanks in advance.


[Updated on: Wed, 17 December 2003 16:55]

Report message to a moderator

- Re: adding articles at the top. [message #15511 is a reply to message #15510] Wed, 17 December 2003 16:57 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can use PHP in the header, so if you wanted to include a PHP file you'd do:
<?php
readfile
("/full/path/to/file.html");
?>


You can of course embed variables into the path, but you need to be certain those variables will be set or add appropriate checks to check them.


FUDforum Core Developer
- Re: adding articles at the top. [message #15514 is a reply to message #15511] Wed, 17 December 2003 17:05 Go to previous message
hello-world is currently offline  hello-world   India
Messages: 47
Registered: December 2003
Karma: 0
Member

Hey,

That's damn cool.

Is there a way to embed "IF" statements inside the template file? If
I use php I wont be able to use the template syntax..


if (forum->id == 1) {

// Means it is the article with feedback..

main_section }

else {
main_section }



If that is not possible, could you just point me to the php files
that handles the templates.


Thanks.

[Updated on: Thu, 18 December 2003 06:22]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IP filter in version 2.3.8
Next Topic: Ho to install the German spell check
Goto Forum:
  

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

Current Time: Wed Apr 23 12:31:11 GMT 2025

Total time taken to generate the page: 0.10911 seconds