Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetSimple Blog
(2016-03-28, 18:07:53)tuxophil Wrote:
(2016-03-28, 12:09:17)jwzumwalt Wrote: What specific edit did you do on line #327 ?

The offending line is:


Code:
            if(!empty((string)$data->thumbnail)) { // Does a thumbnail exist with the post?
I moved the line with the string cast up and replaced (string)$data->thumbnail by $thumbnail. The code now reads:


Code:
                $thumbfile = (string) $data->thumbnail;
             if(!empty($thumbfile)) { // Does a thumbnail exist with the post?
               // Output the HTML for the image
The output I gave in my previous comment on this issue was given by the "diff" command. It's a very valuable and widely-used tool when handling code of all sorts.

Thx That fixed it.
Now the blog is over riding my startup page and made it blank.

It looks like maybe the db has not been initialized.
Any attempt to use the backend gives this error:
Notice: Undefined index: bloghelp (or blogcreatepost, etc ) in <site>/plugins/gs-blog/inc/adminFunctions.php on line xx.
(usually line #24, 26, or 67)
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
if it overriding your start page, maybe because this page is the one initially setup to show the blogs. You can change that in the settings for the blog plugin where you specify on which page the blogs should show up, I will check what is on those lines in the code...

EDIT: Its seems the code is looking for where to go on the page and check the user rights for that functions if the user is allowed to, e.g. on line 24 check if the user selected 'create post' if the permission 'blogcreatepost' is true:


PHP Code:
} elseif(isset($_GET['create_post']) && $blogUserPermissions['blogcreatepost'] == true) {
    
editPost(); 

somehow it seems the $blogUserPermissions haven't then been initialized correctly which is odd. Anything that may block cookies?
Reply
(2016-03-29, 03:24:30)Sisyphos Wrote: somehow it seems the $blogUserPermissions haven't then been initialized correctly which is odd. Anything that may block cookies?

The site runs fine with about 20 other plugins so db and templates is running smoothly, it is just this plugin that is complaining for some reason. I also uninstalled and re-installed hoping maybe it would reboot itself properly - but I get the same " Undefined index" errors.

I do not know anything about programming with templates, but I have SQL and PHP db programming experience. If this where normal PHP code it would mean the db did not have the specified column name - but who knows with templates?
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
there seems to be some malfunction concerning user permissions:


when logged in as admin, all blog functions work fine. logged in as a user with certain permissions restricted (but not for gs blog!), "create post", "edit post"  do not show any reaction and in debug mode no message appears.
"custom fields", "categories", "manage user definded fields" "rss auto importer", "settings" react normally, although i did not set the permissions for that to true.
any suggestions?
Reply
(2016-03-29, 04:03:05)jwzumwalt Wrote:
(2016-03-29, 03:24:30)Sisyphos Wrote: somehow it seems the $blogUserPermissions haven't then been initialized correctly which is odd. Anything that may block cookies?

The site runs fine with about 20 other plugins so db and templates is running smoothly, it is just this plugin that is complaining for some reason. I also uninstalled and re-installed hoping maybe it would reboot itself properly - but I get the same " Undefined index" errors.

I do not know anything about programming with templates, but I have SQL and PHP db programming experience. If this where normal PHP code it would mean the db did not have the specified column name - but who knows with templates?

Due to troubles I actually started with version 3.3.1 which somehow worked better and it seem to have initialized certain files for me. After that I upgraded to 3.4 and had to fix the aforementioned line in the code and it is working since. Will try to find if there is a way to ensure the files are correctly created right from version 3.4.
Reply
(2016-03-30, 06:35:01)Sisyphos Wrote:
(2016-03-29, 04:03:05)jwzumwalt Wrote:
(2016-03-29, 03:24:30)Sisyphos Wrote: somehow it seems the $blogUserPermissions haven't then been initialized correctly which is odd. Anything that may block cookies?

The site runs fine with about 20 other plugins so db and templates is running smoothly, it is just this plugin that is complaining for some reason. I also uninstalled and re-installed hoping maybe it would reboot itself properly - but I get the same " Undefined index" errors.

I do not know anything about programming with templates, but I have SQL and PHP db programming experience. If this where normal PHP code it would mean the db did not have the specified column name - but who knows with templates?

Due to troubles I actually started with version 3.3.1 which somehow worked better and it seem to have initialized certain files for me. After that I upgraded to 3.4 and had to fix the aforementioned line in the code and it is working since. Will try to find if there is a way to ensure the files are correctly created right from version 3.4.

Ah! isn't volunteer work worth every dime yoy get paid Sad  All you get to hear is the complaints. Whoops! I am about to sneeze a compliment....  thanks for the hard work!

Oh I almost forgot... if you have everything working right, then everyone complains that it needs more features until you do break it!
------------------------------------------------
UPDATE
Just tried installing 1.0.1 then 3.4.1....  It worked!!
So, there is a config problem.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
(2016-03-30, 16:02:30)jwzumwalt Wrote: UPDATE
Just tried installing 1.0.1 then 1.5....  It worked!!
So, there is a config problem.

dear jwzumwalt, what are you referring to when writing about version numbers 1.0.1 and 1.5 ? some plugin maybe, or an older version of getsimple blog?
Reply
(2016-03-30, 16:44:58)pigsound Wrote:
(2016-03-30, 16:02:30)jwzumwalt Wrote: UPDATE
Just tried installing 1.0.1 then 3.4.1....  It worked!!
So, there is a config problem.

dear jwzumwalt, what are you referring to when writing about version numbers 1.0.1 and 1.5 ? some plugin maybe, or an older version of getsimple blog?

  1. Go to the blog plugin page http://get-simple.info/extend/plugin/gs-blog/462/
  2. At the very bottom of the screen is "Archived Versions:" click on "show"
  3. select and install 1.0.1
  4. then select and install 3.4.1 from http://get-simple.info/extend/plugin/get...-blog/810/
  5. disable the old blog
  6. at about line #327 make this change in <site>/plugins/gs-blog/inc/adminFunctions.php
Replace

Code:
if(!empty((string)$data->thumbnail)) { // Does a thumbnail exist with the post?


With

Code:
                $thumbfile = (string) $data->thumbnail;
             if(!empty($thumbfile)) { // Does a thumbnail exist with the post?
               // Output the HTML for the image
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply
thank you for your fast reply!
Reply
I've made a note of the string casting issue and have created an issue on GitHub [#089] along with a few other issues that were discovered during testing of the next update.

The problems with UserManagement is known, but there is nothing that can be done about it. The problem has to do with the order in which your plugins load (they load alphabetically). For it to work, user management needs to load before the blog, currently it does not (G is before U). There is a work around for this: Disable the users plugin, rename user-management.php to a-user-management.php. Enable the plugin again. Everything should work as expected now.
Check out my website: JohnStray.id.au
Reply
(2016-03-30, 19:09:22)johnstray2001 Wrote: The problems with UserManagement is known, but there is nothing that can be done about it. The problem has to do with the order in which your plugins load (they load alphabetically). For it to work, user management needs to load before the blog, currently it does not (G is before U). There is a work around for this: Disable the users plugin, rename user-management.php to a-user-management.php. Enable the plugin again. Everything should work as expected now.

There is a plugin that might help with this issue (I diddn't test it):

Reorder the plugins so that content is loaded in the order you want: http://get-simple.info/extend/plugin/plu...order/398/
Reply
I never knew about this one. I might grab it and see how it works. See if I can work it's functionality into GS Blog to force user management to load before the blog.
Check out my website: JohnStray.id.au
Reply
it seems that the page where the blog events are displayed only shows the posts with a date equal to the current month. is there a way to configure gsblog to show all events with future dates?
Reply
(2016-03-30, 19:09:22)johnstray2001 Wrote: The problems with UserManagement is known, but there is nothing that can be done about it. The problem has to do with the order in which your plugins load (they load alphabetically). For it to work, user management needs to load before the blog, currently it does not (G is before U). There is a work around for this: Disable the users plugin, rename user-management.php to a-user-management.php. Enable the plugin again. Everything should work as expected now.

i just tried your workaround.
user 1 (the admin with no restricted rights) can create and edit posts, user 2 (created secondly, no restricted rights) still cannot create nor edit posts. what can i do to correct this bug?
i use getsimple 3.3.8 with getsimple blog 3.4.1

--update--
trying to solve the user permissions problem i realized that in the user management where you check and uncheck the permissions, my settings were not saved when hitting the save button. so i opend the xml-file of the affected user in data/users/ and edited the permissions manually. now user 2 can also edit and create blog posts. :-)
Reply
I am setting up a blog on a test site using GetSimple v3.3.8 and GetSimple Blog v 3.4.1
I trolled through the thread but may have missed seeing the answers to my questions.
 
I want to show "read more" on the end of my excerpts. I changed frontEndFunctions.php line 308 to "$read_more=true" but it didn’t make any change.
Q1. What else needs to change to get "read more" on the end of my excerpts" ?
 
When Pretty URLs is set to No, I can see the page Ok
When Pretty URLs is set to Yes, and I click on a post from the Blog page or from the category list I get 'Oops! Page not found!
Q2. How can I have Pretty URLs and see the pages?
 
Thanks
I'm no Einstein, nor do I profess to be. Just saying what I would try in the circumstances.
Reply
$read_more actually requires a string of text. This is a known issue and a fix is on its way. For now, set it like this: $read_more = 'Read more'

To get pretty URLs to work, you need to add the extra bit to your .htaccess file. Once you enable PrettyURLs in the blog settings, a link appears that will show a dialog with what your file should look like to make it work.
Check out my website: JohnStray.id.au
Reply
(2016-04-07, 07:32:56)johnstray2001 Wrote: $read_more actually requires a string of text. This is a known issue and a fix is on its way. For now, set it like this: $read_more = 'Read more'

This didn't work for me. I'll just hang off and wait for the fix.

I like this plugin, I've got another site I will be adding it to.

thanks.
I'm no Einstein, nor do I profess to be. Just saying what I would try in the circumstances.
Reply
New to GS and this plugin. Trying it out and trying to decide whether to use it or News Manager

I have everything working except the "recent posts" link. I've tried inserting the following code both in the sidebar and on a test page:

<?php show_blog_recent_posts($excerpt=false, $excerpt_length=null, $thumbnail=null, $read_more=null); ?>

But nothing appears. In the plugin settings I do have the recent posts count set to 5.

I know this plugin is deprecated and will be replaced by SimpleBlog (currently in alpha). I couldn't find any documentation on the website anymore though. Sad
Reply
Archive List of a certain month displays "Blog Archive: [current month]"

no matter which month's archive list i choose, the headline is always showing the actual month - so for now, may.
i assumed, the headline should display the month of the displayed archived blogs.

does anybody have a clue what is going wrong here?
Reply
I installed and tried your plugin so far not bad but has couple of errors need to be fixed asap as it's causing the site to overload allowed resources ending with 508 error.

PHP Notice: Undefined variable: tag in /home/user/public_html/plugins/gs-blog/inc/frontEndFunctions.php on line 398

PHP Warning: Illegal offset type in /home/user/public_html/plugins/gs-blog/inc/frontEndFunctions.php on line 198

Missing argument 1 for show_blog_tag(), called in /home/user/public_html/admin/inc/theme_functions.php(544) : eval()'d code on line 27 and defined in /home/user/public_html/plugins/gs-blog/inc/frontEndFunctions.php on line 388

Undefined variable: data in /home/user/public_html/plugins/gs-blog/inc/frontEndFunctions.php on line 392

PHP Notice: Trying to get property of non-object in /home/user/public_html/plugins/gs-blog/inc/frontEndFunctions.php on line 392

Please assist, thank you!
Reply
BLOG SETTINGS – NUMBER OF ARTICLES


i am confused with the settings concerning the number of articles on one page and the number of recent articles.

presently, i have set the number of articles on one page to 12, the number of recent articles are set to 6.
on the blog page, 6 articles are shown, when i flip to "next page", 8 articles are shown. this doesn't seem to reflect my settings. when i increase the number of articles on one page, the number of articles on the blog page increase as well and the number of articles on the next page decrease. but never do the numbers of articles on both pages add up to the sum of the articles i set in the blog settings. i cannot see a relation between the defined settings and the number of shown articles.
can anybody explain the settings to me? i don't get it.

another thing i wonder about is why after flipping to the "next page" i have no possibility to move on to the next "next page", although there would be more articles to show. can i somewhere switch it on or off?
Reply
Greetings folks,

I have a couple of questions. I'm still using the older version of GS Blog 1.5 on my live site, but I use the latest version of GetSimple Blog 3.41 on my localhost site.

1. I've just upgraded to Get Simple CMS 3.3.10 and it seems that the CK Editor in GetSimple Blog 3.41 is working improperly. When I click the link to add an image to my article, the grey screen appears, but the dialogue box is not there. There is no X to click to close it either.

How do I solve this?


2. On the archive page where GetSimple Blog 3.41 shows the thumbnail and excerpt from the number of posts that you want per page, I'd like to create more space between the entries.

How do I do that?

3. And finally, how do I remove, or move the publish dates from the posts?

Many thanks in advance.

Homershines
Reply
(2016-06-17, 22:24:37)homershines Wrote: 1. I've just upgraded to Get Simple CMS 3.3.10 and it seems that the CK Editor in GetSimple Blog 3.41 is working improperly. When I click the link to add an image to my article, the grey screen appears, but the dialogue box is not there. There is no X to click to close it either.

How do I solve this?
I can't reproduce that problem. You can activate debug mode (in gsconfig.php, or via this plugin) and see if there's an error.
Reply
1. Try clearing your browser cache, or test with a private browser window, or a different browser.
Reply
(2016-06-18, 00:01:01)Carlos Wrote: 1. Try clearing your browser cache, or test with a private browser window, or a different browser.

Thanks Carlos and datiswous.
I use Firefox as my go-to browser, and tried it in Opera.
No problems at all.

Are my other questions issues that have been addressed earlier somewhere in the GetSimple Blog threads?

I search, but maybe I'm asking the wrong thing.

Many thanks gentlemen.


Homershines
Reply




Users browsing this thread: 1 Guest(s)
Free HDTV Channels Residential Solar Panels