Latest Comments
|
homershines New member
Posts: 15
Joined: Oct 26th, 2009
|
Jan 30th, 2010 at 17:33:52
Greetings.
I didn't notice many of the problems that folks were having. But excited to see NewsOffice still growing. Have a question: Can we integrate a latest comments option in our pages like the one in the Dashboard? Many thanks. homershines |
|
Tom de Bruijn Owner of Newanz
Posts: 205
Joined: Jul 26th, 2008
|
Well there is no official way to do this, but it is possible.
I just made this real quick: Link to down loadable file Save that file as a .php file in the main NewsOffice directory. Then include it using: Code
<?php include("PATH_TO_YOUR_NEWSOFFICE_INSTALLATION/lastest_comments_homer.php"); ?>
I hope it works and you might use it, but I can't give you any more support than this on it. Good luck. Thank you for reading, Tom de Bruijn Know the rules, read our Terms of Use. |
|
homershines New member
Posts: 15
Joined: Oct 26th, 2009
|
Thanks Tom.
I'll try it out. Looking forward to seeing your CMS project. Thanks again & peace. homershines |
|
Tom de Bruijn Owner of Newanz
Posts: 205
Joined: Jul 26th, 2008
|
Let me know if it works. I hope so
![]() Yeah me to. When will it be done? Not really soon, as I just posted a news message about. Thank you for reading, Tom de Bruijn Know the rules, read our Terms of Use. |
|
homershines New member
Posts: 15
Joined: Oct 26th, 2009
|
Thanks Tom.
Nope. The include didn't work. Tried it various ways. Thanks though. Homer |
|
Tom de Bruijn Owner of Newanz
Posts: 205
Joined: Jul 26th, 2008
|
Bummer...
Ehm... It worked in my situation, but that's, of course, the ideal environment for NewsOffice. Any error messages you are willing to share so I can take a look why things go wrong? Thank you for reading, Tom de Bruijn Know the rules, read our Terms of Use. |
|
homershines New member
Posts: 15
Joined: Oct 26th, 2009
|
Sorry.
I can't figure out how to get the error messages displayed in the CMS. [GetSimple CMS] But I also didn't see any error messages listed in my browser's designer assist plugins. Sorry. Homer |
|
Tom de Bruijn Owner of Newanz
Posts: 205
Joined: Jul 26th, 2008
|
Homer,
Two things you can try, if you want. In the getsimple CMS directory (I downloaded it to understand how it works) and open the gsconfig.php file. Uncomment (remove the # sign) from the "#define('GSDEBUG', TRUE);" line. Should hopefully show some errors, if not; do the following: (On newsoffice 2.0.15 Beta) Open file: core/clean_boot.php Change line 74: error_reporting(0); To: error_reporting(E_ALL); That activates NewsOffice its error function. Tell me how that went. Tom Thank you for reading, Tom de Bruijn Know the rules, read our Terms of Use. |
|
homershines New member
Posts: 15
Joined: Oct 26th, 2009
|
Thanks.
That was great info to have access to. Here's the error messages that I got..... Warning: include(myplugins/newsoffice/lastest_comments_homer.php) [function.include]: failed to open stream: No such file or directory in /Users/homerjackson/offline-web design work/333GetSimple-203/admin/inc/theme_functions.php(284) : eval()'d code on line 1 Warning: include() [function.include]: Failed opening 'myplugins/newsoffice/lastest_comments_homer.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php' in /Users/homerjackson/offline-web design work/333GetSimple-203/admin/inc/theme_functions.php(284) : eval()'d code on line 1Notice: Undefined variable: inter in /Users/homerjackson/offline-web design work/333GetSimple-203/admin/inc/theme_functions.php on line 89 Thanks again. Homer Last updated: Feb 18th, 2010 at 19:57:19
|
|
Tom de Bruijn Owner of Newanz
Posts: 205
Joined: Jul 26th, 2008
|
The CMS can not find the file to include. Is this the same url prefix ("myplugins/newsoffice/"
you used for your news page?You can use Code
realpath("./");
Use that path, change it to point to your newsoffice installation and then the latest_comments_homer.php file. That filename is the name you gave the file you downloaded, right? Good luck. Tom Last updated: Feb 19th, 2010 at 16:09:44
Thank you for reading, Tom de Bruijn Know the rules, read our Terms of Use. |

in /Users/homerjackson/offline-web design work/333GetSimple-203/admin/inc/theme_functions.php(284) : eval()'d code on line 1