The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Using News Scripts - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Using News Scripts (/showthread.php?tid=161)



Using News Scripts - homershines - 2009-10-02

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


Using News Scripts - pixelita - 2009-10-13

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.


Using News Scripts - ccagle8 - 2009-10-14

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)


Using News Scripts - homershines - 2009-10-17

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


Using News Scripts - pixelita - 2009-10-17

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.


Using News Scripts - homershines - 2009-10-22

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