Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GS Blog v1.4
(2012-09-30, 23:53:32)mikeh Wrote:
influxweb Wrote:@islander and @mikeh

I was reading @islanders post on the I18N Search topic (http://get-simple.info/forum/post/30945/#p30945) regarding hooking GS Blog to be searchable with said plugin. I attempted to place the code in...with disastrous results. I didn't see any other formal way of requesting a feature addition, so I though this would be the best way. Can the hooks be added into the GS Blog module to allow searching this way?

Thank you,
Matt
I will add this in the next version.

@mikeh - I was curious if you were able to figure a way enable the I18N Search plugin to search GS Blog posts?
Reply
I'm having an issue with the RSS feed generated from the plugin, it doesn't validate on FeedBurner and when I try to view it on Firefox, it just doesn't show up the posts. Is this something that's being worked on?

I get the errors:

1. "The URL does not appear to reference a valid XML file."
2. "XML parsing error"
3. "Self reference doesn't match document location"
Reply
(Replying to Oleg06, http://get-simple.info/forums/showthread...5#pid32075 )

Temporary fix for Russian dates (month names, week days) encoding:

Edit blog/class/primary/Blog.php, find this (around line 750-760)
PHP Code:
        setlocale(LC_TIME$this->getSettingsData("lang")); 

Change it to:
PHP Code:
        setlocale(LC_TIME'ru_RU.UTF8''ru.UTF8''ru_RU.UTF-8''ru.UTF-8''ru_RU''ru'); 

(I've not tested)
Reply
for plugin gs blog to do transliteration slug and tag cloud
Reply
Hi!

I've trying the GS Blog plugin and it is great! Good Work!

I've updated the spanish translation file to 1.5 version. The "focoves" version was good, but has any missing strings and some other issues I've tryed to fix. Thanks to focoves to the previous work. Wink

I've noticed some bugs maybe you could help me to solve (see the gs-blog-errors.png attached file):

1 - The Post Options texts are all on english. The es_ES.php contains this translated strings, but does not load...

2 - The upload thumbnail does not work for me. Only a blank text field appears. If I type a url to a local image file, then it's works, but there are no way to upload and automatize this job.

Thank you and great work!!
jEsuSdA 8)


Attached Files Thumbnail(s)
   

.php   es_ES.php (Size: 13.44 KB / Downloads: 1)
Reply
@Oleg06

To add slug transliteration support to GS Blog,

Edit blog/class/primary/Blog.php
Around line 640, find this:

PHP Code:
    public function blog_create_slug($str
    {
        
$str to7bit($str'UTF-8');
        
$str clean_url($str);
        return 
$str;
    } 

Change it by:

PHP Code:
    public function blog_create_slug($str
    {
        global 
$i18n;
        if (isset(
$i18n['TRANSLITERATION']) && is_array($translit=$i18n['TRANSLITERATION']) && count($translit>0))
            
$str str_replace(array_keys($translit),array_values($translit),$str);
        
$str to7bit($str'UTF-8');
        
$str clean_url($str);
        return 
$str;
    } 

(There are 3 lines inserted just after the "{" and before the "$str = ...")

Not tested (as usual. ;-)) [Edit] I should have. There was an error. Fixed.
Reply
(2013-01-21, 23:21:51)jesusda Wrote: The Post Options texts are all on english. The es_ES.php contains this translated strings, but does not load...

While testing this plugin some time ago I had some issue like that, but I didn't research further.

Try this:
- GS Blog -> Settings -> select es_ES and SAVE.
- GetSimple admin -> settings -> select es_ES and SAVE.
Reply
(2013-01-22, 02:21:53)Carlos Wrote: Try this:
- GS Blog -> Settings -> select es_ES and SAVE.
- GetSimple admin -> settings -> select es_ES and SAVE.

Hi Carlos!

I have checked this language configuration and they still have the es_ES values. I think the plugin does not load the strings and it uses the fixed ones.

I think GS Blog is a great Blog Plugin, but Do you know any other Blog plugin with more or better features?

Thanks! Wink
jEsuSdA 8)
Reply
need to do a tag cloud as in News manager
Reply
hi dears ,

actually its very awesome useful plugin , i'm trying to test add in my website but i need some help please ,

first how can i upload more Thumbnails! i want to add three Thumbnails for each post and i'll collect them in CSS slide ,

second how can i show last three posts by category without title, and in excerpt 110 letters ,

your help is very much appreciated guys ...
Reply
Hi mikeh, how do you get the post thumbnail to display on the full post page (not the main blog page)? When I "read more" to view the full post, the thumbnail isn't there for some reason.

I also wondering if it would be possible to use a different page template for each blog category? I'm currently using WordPress but would LOVE to abandon it for this - that's the only thing standing in my way - please help =)

Great plugin BTW, I like GS more and more every day thanks to great developers like you! Thanks for any help you can offer!

Ben
Reply
any help plz , how can i show last post by category ?
Reply
for more opportunities to use other plugins
http://get-simple.info/extend/plugin/i18n-search/82/
http://get-simple.info/extend/plugin/i18...pages/319/
Reply
(2013-01-28, 06:12:26)Oleg06 Wrote: for more opportunities to use other plugins
http://get-simple.info/extend/plugin/i18n-search/82/
http://get-simple.info/extend/plugin/i18...pages/319/

i don't know how to use them to see the recent three post from a specific category , plz your help if you can ?
Reply
ask your question here
http://get-simple.info/forums/showthread.php?tid=2747
http://get-simple.info/forums/showthread.php?tid=1256
http://mvlcek.bplaced.net/
Reply
Where to define a template for the full post? When I click on the post's title the page with all blog posts is displayed. No matter of categories. And there is no picture related to the blog post.
Reply
(2013-01-29, 19:57:50)arkinsstoun Wrote: Where to define a template for the full post? When I click on the post's title the page with all blog posts is displayed. No matter of categories. And there is no picture related to the blog post.

I think the "post" template is assumed by the "blog" template. When you select the "blog page" in preferences, it asumes blog uses the template the "blog page" are configured to use.

The thumbnail does not appears in the post by default. Only in the xcerpt.

But you can change the GS Blog code to allow show thumbnail in both:

You must edit the blog/inc/frontEndFunctions.php file and here is is my modification:


PHP Code:
            <class="blog_post_content">
                <?
php
                
if(!isset($_GET['post']) && $blogSettings["postthumbnail"] == 'Y' && !empty($post->thumbnail)) 
                { 
                    echo 
'<img src="'.$SITEURL.'data/uploads/'.$post->thumbnail.'" style="" class="blog_post_thumbnail" />';
                }
                if(
$excerpt == false || $excerpt == true && $blogSettings["postformat"] == "Y")
                {
                    if( 
$blogSettings["postthumbnail"] == 'Y' && !empty($post->thumbnail)) 
                    { 
                        echo 
'<img src="'.$SITEURL.'data/uploads/'.$post->thumbnail.'" style="" class="blog_post_thumbnail" />';
                    }            
                    echo 
html_entity_decode($post->content);
                }
                else
                {
                    if(
$excerpt == true && $blogSettings["postformat"] == "N")
                    {
                        if(
$blogSettings["excerptlength"] == '')
                        {
                            
$excerpt_length 250;
                        }
                        else
                        {
                            
$excerpt_length $blogSettings["excerptlength"];
                        }
                        echo 
$Blog->create_excerpt(html_entity_decode($post->content), 0$excerpt_length);
                    }
                }
                if(!isset(
$_GET['post']) && $blogSettings['displayreadmore'] == 'Y')
                {
                    echo 
'...&nbsp;&nbsp;&nbsp<br /><a href="'.$url.'" class="read_more_link">'.$blogSettings['readmore'].'</a>';
                }
                
?>
            </p> 

I attach the entire file. Wink

Salu2 de jEsuSdA 8)


Attached Files
.php   frontEndFunctions.php (Size: 17.72 KB / Downloads: 4)
Reply
(2013-01-29, 20:21:34)jesusda Wrote: I attach the entire file. Wink

Hi Jesusda, I tried out your code and it does indeed add a thumbnail to the full post page but it also adds a second thumbnail to the main Blog excerpt listing page. See below for a screenshot. Any chance you can modify your file to remove the second thumbnail? It's exactly what I need, thanks!

[Image: blog.jpg]

Ben
Reply
(2013-01-30, 02:02:27)bensayers Wrote: Hi Jesusda, I tried out your code and it does indeed add a thumbnail to the full post page but it also adds a second thumbnail to the main Blog excerpt listing page. See below for a screenshot. Any chance you can modify your file to remove the second thumbnail? It's exactly what I need, thanks!

Hello Ben,

It was a bit confusing, but I think I've solved the problem and this version works fine. Let me know if there are some bugs Wink


Here the new code:

PHP Code:
    <class="blog_post_content">
                <?
php


                
if(!isset($_GET['post']) && $blogSettings["postthumbnail"] == 'Y' && $blogSettings["postformat"] == "N" &&  !empty($post->thumbnail)) 
                { 
                        echo 
'<img src="'.$SITEURL.'data/uploads/'.$post->thumbnail.'" style="" class="blog_post_thumbnail" />';        
                }
                
                
                if(
$excerpt == false || $excerpt == true && $blogSettings["postformat"] == "Y")
                {
                    if( 
$blogSettings["postthumbnail"] == 'Y' && !empty($post->thumbnail)) 
                    { 
                        echo 
'<img src="'.$SITEURL.'data/uploads/'.$post->thumbnail.'" style="" class="blog_post_thumbnail" />';
                    }            
                    echo 
html_entity_decode($post->content);
                }
                
                
                
                
                else
                {
                    if(
$excerpt == true && $blogSettings["postformat"] == "N")
                    {
                        if(
$blogSettings["excerptlength"] == '')
                        {
                            
$excerpt_length 250;
                        }
                        else
                        {
                            
$excerpt_length $blogSettings["excerptlength"];
                        }
                        
                        
                    if( 
$blogSettings["postthumbnail"] == 'N' && !empty($post->thumbnail)) 
                    { 
                        echo 
'<img src="'.$SITEURL.'data/uploads/'.$post->thumbnail.'" style="" class="blog_post_thumbnail" />';
                    }        
                        
                        echo 
$Blog->create_excerpt(html_entity_decode($post->content), 0$excerpt_length);
                        echo 
'...';
                    }
                }
                
                
                
                if(!isset(
$_GET['post']) && $blogSettings['displayreadmore'] == 'Y')
                {
                    echo 
'&nbsp;&nbsp;&nbsp<br /><a href="'.$url.'" class="read_more_link">'.$blogSettings['readmore'].'</a>';
                }
                
?>
                
            </p> 

And here the complete file:


Attached Files
.php   frontEndFunctions.php (Size: 18.08 KB / Downloads: 8)
Reply
(2013-01-30, 04:30:13)jesusda Wrote: It was a bit confusing, but I think I've solved the problem and this version works fine. Let me know if there are some bugs Wink

Yes, it's perfect, thank you so much! If anyone is looking to display the post thumbnail on the full post pages, the code above is what you're looking for Big Grin

Thanks again - cheers!

- Ben
Reply
thanks jesusda its very useful code ,, plz i need your help if you can !

i want to display the recent three post from a specific category in excerpt mode with its thumbnail and read more link ,,, i made it using show_blog_recent_posts(true, null, true, true); but without category!! so how can we edit the code to show specific category ?

thanks in advance
Reply
on the full post image can be inserted and the editor
Reply
hiiii there,,plz help

i want to display the recent three post from a specific category in excerpt mode with its thumbnail and read more link ,,, i made it using show_blog_recent_posts(true, null, true, true); but without category!! so how can we edit the code to show specific category ?

thanks in advance
Reply
hii dears ,

i'm having an error while trying to upload thumbnails to a post there is a error message says " Could not save uploaded file.The upload was cancelled, or server error encountered " ! any one know how to solve this please !?
Reply
hey any help please ! i tried to upload the thumbnails and it works with internet explorer !! but on mozilla or chroume the error appears and says " Could not save uploaded file.The upload was cancelled, or server error encountered "

anyone faced the same problem ?
Reply




Users browsing this thread: 1 Guest(s)