Closed

The blogrums are now closed. If you wish to visit them on there new home then you can find it here ( InnerVisions Blogrums ).

AuthorItem cat and tags and stuff

PHP:

<?php
$foo get_the_category_by_ID$Item->main_cat_ID );
 
echo '<h3>'.$foo->dget'name' ).' said : '.$Item->tagsarray(
                'before' =>           '',
                'after' =>            '',
                'separator' =>        ' ',
                'links' =>            false,
                'url' =>              '#',
            ) ).'</h3>';
?>

¥

I may have opened the door, but you entered of your own free will
image

 
Afwas
user avatar

Posts : 27

Location : Groningen, The Netherlands

Joined : 03/03/08 10:39 am

Posted on : 24/03/08 07:36 am

PHP:

/**
 
     * Perform rendering
 
     *
 
     * @see Plugin::RenderItemAsHtml()
 
     */
 
    function RenderItemAsHtml( & $params )
 
    {
 
    $content = & $params['data'];
 
 
 
        $content preg_replace'$\[cat wrote]$'$Item->main_category() . ' wrote: '$content );
 
 
 
        return true;
 
    }
 
¥åßßå
user avatar

Posts : 43

Location : 127.0.0.1

Joined : 03/03/08 10:38 am

Posted on : 24/03/08 07:40 am

try :

Code:

global $Item;
$foo = get_the_category_by_ID( $Item->main_cat_ID );
$content = str_replace( array( '[cat wrote]', '[tags]' ), array( $foo->dget( 'name' ).' wrote', implode( ' ', $Item->get_tags() ), $content );

¥

I may have opened the door, but you entered of your own free will
image

 
Afwas
user avatar

Posts : 27

Location : Groningen, The Netherlands

Joined : 03/03/08 10:39 am

Posted on : 24/03/08 09:46 am

Is this insane?

PHP:

function FilterItemContents( & $params )
    {
        $title = & $params['title'];
        $content = & $params'data' ];
        global $Item;
        
        $foo get_the_category_by_ID$Item->main_cat_ID );
        
        $title str_replace'[cat wrote]'$foo['cat_name'].' wrote : '.implode' '$Item->get_tags() ), $content );
        
        $params'title' ] = $title;
        
        return true;
    }

Notice: Trying to get property of non-object in /home/hemmi3/public_html/blog/plugins/_quote_cats.plugin.php on line 118
An unexpected error has occured!

If this error persits, please report it to the administrator.

Go back to home page
Additional information about this error:
Requested category does not exist!