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

Home » FUDforum Development » Plugins and Code Hacks » Looking for hack...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Looking for hack... [message #8633 is a reply to message #8612] Tue, 11 February 2003 23:04 Go to previous messageGo to previous message
Sergey is currently offline  Sergey   United States
Messages: 41
Registered: January 2003
Karma:
Member
prottoss wrote on Mon, 10 February 2003 20:57

Suppose you've decided to include your php script inside post page. So the process would be quite simple, take you php script and place it anywhere. The open post.php.t (PHP source of the template) and add <?php include "full_path_to_your_file.php"; ?>. Now go to template editor and rebuilt your theme.

Voila.


Sorry, I hoped I am not going to bother you either... But ->

I am not good in php and I still can not get it to work Crying or Very Sad

I created file recent.php and put it in WWW_SERVER_ROOT/theme/default/ directory. ($n_post should be specified somewhere and I put in the beginning $n_post=10;)

Then I modified online_today.php.t template by putting <?php include "full_path_to_your_file/recent.php"; ?> at the and after ?> right?...

After I rebuilt my theme I went to the online_today page and get nothing...
I tried for testing purposes to put command 'echo "test";' inside recent.php file . I could see word "test" on the online_today page if I put 'echo' before function or after , but if I put somewhere inside function, I see nothing.

Sorry for being such a pain in the ...


-------------------
"If you really want something in this life you have to work for it.
Now quiet, they're about to announce the lottery numbers."
Author: Homer Simpson.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: New threads on the front page of the site
Next Topic: General Hacking Recommendation please
Goto Forum:
  

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

Current Time: Fri Nov 22 14:22:55 GMT 2024

Total time taken to generate the page: 0.03997 seconds