Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Execute PHP script
Trader
Posted on 14 Dec 2009, 14:05:42

Access: Member
Total Posts: 8
Joined: 2009-11-22

Hello.

Is there any way to execute php script on News? The reason why I ask is that I'd like to put PHP counter to news article.

#1265
Chris
Posted on 14 Dec 2009, 14:12:12

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

The system has a built in view counter. If you look at Templates section then expand News, you'll see {viewcount}, simply add this to wherever you want the view count for each individual article to show.
#1266
Trader
Posted on 14 Dec 2009, 14:17:22

Access: Member
Total Posts: 8
Joined: 2009-11-22

Yes, I know, but what I ment is I'd like to put news article and the article includes counter that counts days for some event. So that's why I need to put PHP code on article.
#1267
Chris
Posted on 14 Dec 2009, 14:21:20

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Ah I see what you mean. This isn't possible without hacking at a few of the files. What I'll do later on today when I get a bit of free time is make a few changes for you. For example you could add something like {codecount} into the templates, then the system would replace that with your own counter include.

Keep checking back here later on today and I'll make the changes for you.
#1268
Network-13.com © 2013