Recent Topics

1 Nov 10, 2007 16:40    

Hey!

I tried the code from this (pretty old) thread: http://forums.b2evolution.net/viewtopic.php?t=7610&highlight=pdf

And I made some changes already, because it didn't work (I put this code in the index.main.php of the nifty corners skin):


...
				<?php $Item->edit_link( ' &bull; ' ) // Link to backoffice for editing ?>
	
				<?php $Item->trackback_rdf() // trackback autodiscovery information ?>

                &bull; <a href="http://rss2pdf.com/index.php?url=<?php $Blog->disp( 'rdf_url', 'raw' ) ?>%26title=<?php echo $Item->urltitle ?>&src=rss&title=&img=1" title="Print '<?php $ttl = $Item->title; $ttl = str_replace('"', '', $ttl); echo $ttl; ?>' as a PDF Document"><img src="http://stealthmusic.net/blog/skins/nifty_corners/arrow.gif" border="0" align="top" width="16" height="16"/>Print</a>

			</div>
	

After the "bull" is my code. Especially this peace of code seems not to work:

<?php $Blog->disp( 'rdf_url', 'raw' ) ?>

Because I can see, that the resulting string in my html code is empty. So I guess, the class was not found in this PHP file. I wonder, how I can include the class...
I code in several languages, but not PHP, so I was playing a round with "global" but that also seems not to work.

Any hints on that?

Thanks!!
Jan

(ahh, here ist the blog: http://stealthmusic.net/blog/index.php?blog=1, you can find it under every post, ther's a small arrow and a "print" label)

2 Nov 12, 2007 13:40

try $Blog->disp( 'rss2_url', 'raw' )

¥

3 Nov 12, 2007 16:22

Hey thanks!!

It works!! Is the otherone I used before deprecated?

How can I find a documentation of all available PHP functions in b2evo?

Thanks!

4 Nov 12, 2007 17:41

stelzbock wrote:

Hey thanks!!

It works!! Is the otherone I used before deprecated?

How can I find a documentation of all available PHP functions in b2evo?

Thanks!

http://doc.b2evolution.net/

Good luck


Form is loading...