Recent Topics

1 Jan 29, 2008 02:19    

My b2evolution Version: Not Entered

I was reading around in the forums and i see people have added the social tags before 2.x. In 2.x when use:

<a href="http://digg.com/submit?phase=2&url=<?php $Item->permanent_url(); ?>&title=<?php $Item->title(); ?>&topic=celebrity" ><img src="img/digg.gif"> Digg it</a>

its displaying the title and the link around the title which is messing up my tags. i'm been going through the code but its taking forever...does anyone know the title tag w/out the link in it i could use like in the admin panel?

2 Jan 29, 2008 19:54

do i have this posted in the wrong section or is this really that hard?

3 Jan 31, 2008 00:43

if anyone cares or i'm talking to myself its...

$Item->title( array(
'link_type' => 'none',
) );

5 Feb 01, 2008 00:58

¥åßßå wrote:

$Item->title;

;)

¥

yeah i tried that a bunch of times....it doesnt seem to work either in 2.4 or maybe its just my template. i have to do it the other way or it returns nothing. i also tried ->title(); but that wraps the links in it.

6 Feb 01, 2008 01:34

I was just doing something and came up with

$this_item_title = str_replace( ' ', '%20', $Item->get( 'title' ) );

Not getting a reply doesn't mean no one is listening yah? Generally it means no one has an answer, or if someone does they ain't come along yet. People bump threads, but dig this: if you bump your own just to bump it then it won't show up in the link for "unanswered posts".

Anyway glad you found a solution and thanks for sharing it.


Form is loading...