« February 2012»
S M T W T F S
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

[blog...]

Currently the posts are filtered by: t3blog
Reset this filter to see all posts.

19.04.2011
21:36

RSS Feed with Image with TYPO3 t3blog Extension

Screenshot of RSS feed in Opera Browser

On Facebook some feeds of my blog are feeded automatically by the RSS Graffiti application. And I wonder for a while why the tt_news RSS feed contains the preview image but the t3blog RSS feed comes without it.

 

If find images with a short teaser much more interesting than only text. That's why I add an image.

 

I checked out the current class.rss.php from the forge.typo3.org repository. The developers changed a lot since the last release 1.0.0 and there is still no release 1.1.0. But this class didn't worked as expected because there is still a bug inside. So first I made a bugreport with a patch.

 

After this the content:encoded field was filled but the images where gone nevertheless. That's because they strip all  tags out of the description with the PHP function strip_tags(). So I added the -tag to the allowed tags in line 598:

 


 

 

$text = strip_tags($text, '<a><img><b><br><em><hr><i><li><ol><p><strong><ul>');

 

 

back

13.10.2010
16:53

Add Flattr to your T3Blog

Flattr is a possibility to honour content in the web.

 

The users pays a fixed amount of money (e.g. 5 EUR) per month to Flattr and clicks on the Flattr-button on content he likes. At the end of the month, flattr divides the 5 EUR through the amount of clicks and gives this part to the content provider.

I created an account with the username "albig". And I'm able to flattr immediately and submit things, other peoples may flattr.

 

But how to integrate in t3blog?

 

I choose the following way:

  1. Create an extension template and add:
    page.headerData.700 = TEXT
    page.headerData.700.value (
    <script type="text/javascript">
    /* <![CDATA[ */    
    (function() {        
    var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];                
    s.type = 'text/javascript';        
    s.async = true;        
    s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto&language=de_DE&uid=YOUR_USER_NAME';                
    t.parentNode.insertBefore(s, t);    
    })();
    /* ]]> */
    </script>
    )

    This code is from flattr and integrates the flattr javascript API 0.6 into your website.

    Of course you have to change your flattr userid and your language in the GET-variables. But anyhow. Your userid may be set also in the following code.

  2. Add this to your t3blog template:
    listItem { 
    # Top of a Entry.
    6 = COA
    6 {
     wrap = <div class="socialFlattr">|<div class="clear"><!-- clear --></div></div>
     10 = LOAD_REGISTER
    10 {
     titleBlog {
    field = title
    }
    titleBlog.stripHtml = 1
    }
     20 = TEXT
    20 {
    wrap = <div class="flattr">|</div>
    value (
    <a class="FlattrButton" style="display:none;"
    title="{register:titleBlog}"
     data-flattr-button="compact"
     data-flattr-tags="{register:tagCloud}"
    data-flattr-category="text"
    href="http://linux.bigga.de/{field:blogUrl}">
    {register:titleBlog}
    </a>
    )
    insertData = 1
    }
    }
    }

    single.10 {
    6 < plugin.tx_t3blog_pi2.blogList.listItem.6
    }


    This adds a new content text object to the listItem. The same is copied to the single view at the end of the coding.

back

19.06.2010
20:37

Link t3blog and tt_news Articles on Your TYPO3-Site

Quite often I want to set a link to an article I wrote somewhere else on this TYPO3 page. This is no problem, if this article is on a separate page with a unique ID.

 

But howto set a link to a t3blog article or a tt_news article?

 

As usual, there are several possibilities:

 

I tried them all. To link a tt_news article is no problem with all of it. But howto link a t3blog-article? This seems to be not so easy if you're using realurl!

[...]

By adding the following Typoscript to your page TSconfig (Page->Edit->Options), tinymce_rte shows you the articles and t3blog-categories when selecting the blog-record folder (in my case ID is 3):

 

RTE.default {  
linkhandler {      
tx_t3blog_post {          
default { 
# instead of default you could write the id of the storage folder            
# id of the Single News Page             
parameter = 3            
additionalParams = &tx_t3blog_pi1[blogList][showUidPerma]={field:uid}
additionalParams.insertData = 1
select = uid,title as header,hidden
sorting = crdate desc
}
}        

 

 

       tx_t3blog_cat {            
default {                
parameter = 3                
additionalParams = &tx_t3blog_pi1[blogList][category]={field:uid}                
additionalParams.insertData = 1                
select = uid,catname as header,hidden                
sorting = crdate desc            
}

}
}

 

 


 

Unfortunately it is not possible to select the tags from the menu. This is because all tags of one post are stored in the tagClouds field of the tx_t3blog_post table. So still have to add an external link to your page and add e.g. "blog/tags/typo3" if you're using realurl, your blog is located on page "blog" and you want to select the "typo3" tag.

back

15.04.2010
17:45

Howto Change Language of tx-pagebrowse by DMITRY DULEPOV

Recently, t3blog changed with 0.8.3 the pagebrowser and requires now to install tx-pagebrowse by Dmitry Dulepov.

 

Using the new pagebrowser needs to change your CSS settings otherwise it looks like the default and not like you maybe used to have it.

 

On my German Blog, www.dresden-west.de, the pagebrowser remains English and I now examined why. The solution is the missing language file. It's not comming with the extension itself. But you have to pull it manually:

 

  1. goto the Extension Manager
  2. select "Translation handling"
  3. select your languages you want to pull (e.g. "German")
  4. press "Update from Repository"

Now it should be in German or whatever language you have selected.

 

back

02.12.2009
18:15

Bugfix for t3blog RSS feed showing wrong category names

Recently I discovered RSS feeds as cool feature of t3blog. So I imported this blog as feed in my main website www.bigga.de. But I wondered about the category names above the titles. It seemed to be switched "linux" and "typo3".

 

Today I got deeper in the code and found the reason for this. The category names were not switched but totally wrong because it took the amount of categories (you may assign multiple to one blog entry) as selector for the category name in table tx_t3blog_cat.

 

This maybe right in former times but in current release 0.6.2 you have to join table tx_t3blog_post_cat_mm as well.

 

I fixed this issue for me and made a bug report for Typo3 on bugs.typo3.org

 

You find my simple patch also here.

 

back

[ 29.01.2012 ]