Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using News Scripts
#1
I'm a newbie wrestling with php and such. I'd like to use a news script, like CuteNews RU and possibly a few other special feature scripts with GetSimple.

Is that possible?

** Let me try to present a better question:

I have been able to include php scripts using an iframe. Through that method, I have been able to use scripts like.....

<? include("path_to_phpscript/phpscript.php");?>

They are included like....

<iframe src="plugins/path_to_phpscript/phpscript.php" style=" border-width:0 " width="100%" height="600" frameborder="0" scrolling="no"></iframe>


But with scripts like...

<?php
include('path_to_phpscript/phpscript.php');
show_news(NUMBER);
show_categories();
?>

I'm unable to use this method, at least the way I've been doing it. Is there any documentation that I can read or examples that I can see about how to include php scripts into a GetSimple page successfully?

Peace and thanks.

homershines
Reply
#2
I believe you can put those code snippets into a component and call that component anywhere in your template. Or create a special template for the code and use that template on the page requiring the code.
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#3
I agree joni, those are the best two ways to do it, the last one being almost fail-proof I would think (I haven't tested it though)
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#4
pixelita Wrote:I believe you can put those code snippets into a component and call that component anywhere in your template. Or create a special template for the code and use that template on the page requiring the code.

Thanks. I tried adding the componenets and that can definitely work for some things.

The template idea is one that I need a little guidance on.

Are we talking about the templates that appear on the Admin/Pages/Page Editing Mode?

Are they stored in GetSimple at admin/template?

If so, I would set one up and place my code there then select it for a page I desire in the Admin/Pages/Page Editing Mode?

Is that correct?


Thanks.

homershines
Reply
#5
Yes. You would create a new template (e.g., news.php), just make a copy of the default template, and modify it to add the code you want, where you want it. Make sure to upload the new template to your theme folder so GS can find it.

Then when you create a new page, you should see the new template as one of the available choices in the page template dropdown.
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply
#6
Sorry for the delay in responding.

Thank you for your help. I did get things working.

One interesting thing that is clearly a newbie issue:

... I installed the Winged Info News System - http://winged.info/
....the way you suggested and it went fine. However, the links in the news came back to the GetSimple Start page no matter what I set up in the news manager.

Later, I installed another news script, News Office - http://newanz.com/item/49/newsoffice-2+.html
Same thing, but in the news manager was a choice:
Yes or No -

And a question:
Already using PHP $_GET on your news page?

I chose yes, and it was fine.

What is this about? I assume it's a path issue.
Am I correct?

Anyway, if folks want to include news into their sites, with GetSimple CMS, this one works quickly.

Peace and many thanks.

homershines
Reply




Users browsing this thread: 1 Guest(s)