PDA

View Full Version : Hi, need help on a few things


Tuo Chieh A Chou
04-02-2005, 10:50 PM
Hi, all the staffs of AL
I like the software so much. Great job
I was running a AL asp.net before and I swtiched to php recently. In .net, to modify panel is easy, because you have pre made panels so that i just need to upload it and apply it.But for php. you dont have those pre made panels(small news panel..etc) so it is really hard for me to do coding. I have no knowledge of php.

My questions
I need to put news panel at the right column(only heading) on my default page.(show 20 news)
I need to put a text counter on every article including blogs
i need to grab news from yahoo and I have news grabber but I dont know where to put the php code. I tried to put php code in default page, but it i didnt work. I think i need a php page to put php code. Below is my php code

<?php
require_once '/home/tashi/carp/carp.php';
CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');
?>
Where should i insert this code? I am trying to run RSS news on my frontpage.

Thank you so much.
http://www.timesoftibet.com

Chris S
04-04-2005, 01:55 AM
Hi there,

Panels work in much the same way for both the .Net and PHP version. They both live in the templates/template_name/Panels/ directory.

If you want that php code displayed on the right hand side (all the time), edit the templates/template_name/Panels/DefaultRightPanel.php file and place it where you need it.

Information about editing the panels & templates is in our guide - http://www.interspire.com/articlelive/documentation.php . Go to the PHP installation guide, then look at the Skins/Templates section.

Let us know if you need more information.

Hi, all the staffs of AL
I like the software so much. Great job
I was running a AL asp.net before and I swtiched to php recently. In .net, to modify panel is easy, because you have pre made panels so that i just need to upload it and apply it.But for php. you dont have those pre made panels(small news panel..etc) so it is really hard for me to do coding. I have no knowledge of php.

My questions
I need to put news panel at the right column(only heading) on my default page.(show 20 news)
I need to put a text counter on every article including blogs
i need to grab news from yahoo and I have news grabber but I dont know where to put the php code. I tried to put php code in default page, but it i didnt work. I think i need a php page to put php code. Below is my php code

require_once '/home/tashi/carp/carp.php';
CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');
?>
Where should i insert this code? I am trying to run RSS news on my frontpage.

Thank you so much.
http://www.timesoftibet.com

Tuo Chieh A Chou
04-05-2005, 10:01 PM
Dear Chris
I post my php code inside the Defaultrightpanel.php but it didnt work. My whole site went blank.
Also, I need a small news panel with only title and link.Showing 20 articles title.
I also need to put a text counter on every article. Again, where should i put my php scripts counter. Please help. Thank you so much. BTW, I am going to upgrade for phpAL.

Chris S
04-06-2005, 01:43 AM
Hi,

If your whole site went blank then you most likely created a parse error in PHP (check your code - run 'php -l filename.php' from the command line).

You can put a text counter on every article by editing the Panels/ViewArticlePanel.php file (if it's a PHP counter - if it's just an image or something edit the Panels/ViewArticlePanel.html).

Dear Chris
I post my php code inside the Defaultrightpanel.php but it didnt work. My whole site went blank.
Also, I need a small news panel with only title and link.Showing 20 articles title.
I also need to put a text counter on every article. Again, where should i put my php scripts counter. Please help. Thank you so much. BTW, I am going to upgrade for phpAL.

Tuo Chieh A Chou
04-08-2005, 04:25 AM
Hi Crist, I still cant fix the problem. I installed the php counter but the counter is counting all the pages as one page.BTW, Is there any php code to retrieve the static from AL on the article page? I mean can you show me the code. Thank you.

Anyone can help me create a small news box for AL php. I would like to show only title and link. Thank you.

Chris S
04-11-2005, 02:46 AM
Hi,

Without seeing the counter code I can't offer any suggestions (I guess it's ignoring the full url and just using the page - eg 'articles.php').

What statistics are you talking about?

Hi Crist, I still cant fix the problem. I installed the php counter but the counter is counting all the pages as one page.BTW, Is there any php code to retrieve the static from AL on the article page? I mean can you show me the code. Thank you.

Anyone can help me create a small news box for AL php. I would like to show only title and link. Thank you.