Creating and modifying plugins.
entropy
Regular
Posts: 9 Joined: Sun Aug 22, 2004 4:34 am
Location: Columbus, OH, USA
Contact:
Post
by entropy » Sun Aug 22, 2004 4:55 am
I am trying to install a PHP counter on my blog and am having issues with a code that needs to be inserted to my index.php file. When ever I add the code I have issues. The instructions for my counter states I need to add an include statement
Code: Select all
"<?php include("/home/entropya/public_html/counter/counter.php"); ?>
however, I understand this is for HTML and not PHP. How can I add this to the index.php file?
The counter is from
http://www.ep-dev.com . It is a very cool counter that will show how many people are on line in addition to how many people have visited.
Entropy Web Developer
bahwi
Regular
Posts: 9 Joined: Wed Aug 11, 2004 10:55 pm
Post
by bahwi » Wed Aug 25, 2004 6:31 am
Here is a quick hack to let you embed it in a sidebar.
http://josephguhlin.com/s9y/serendipity ... nugget.txt
Change it to .php and put it in plugins/serendipity_plugin_php_nugget/ and it will work.
No need to put php opening/closing tags either.
It can be very dangerous though! It's a quick hack of the HTML Nugget Plugin so you just need to set it to "Overview"
If you want it displayed elsewhere, let me know and I'll see what I can come up with.
This is the cleanest way I could think of off the bat.
Enjoy!
davecjr
Regular
Posts: 167 Joined: Fri Oct 29, 2004 3:09 pm
Contact:
Post
by davecjr » Wed Nov 17, 2004 4:10 am
I don't know enough about PHP and since it said it may be 'very dangerous' , I was wondering if someone has tried this one out.
Thanks
monkey
Posts: 2 Joined: Sun Nov 14, 2004 3:08 pm
Location: Taiwan
Contact:
Post
by monkey » Thu Nov 25, 2004 3:39 pm
Change it to .php and put it in plugins/serendipity_plugin_php_nugget/ and it will work.
No need to put php opening/closing tags either.
It can be very dangerous though! It's a quick hack of the HTML Nugget Plugin so you just need to set it to "Overview"
I put the file... but it do'nt work @@"
www.s9y.net/blog