PDA

View Full Version : external.php footer syntax help


Budget101
09-26-2010, 02:17 PM
I would like to add my own footer to the external.php so that it is automatically called when a feed posts. I'm assuming I can add this in line #670 (Under RSS1). However, my syntax appears to be off. . .

$xml->add_tag('footer', $thread['prefix_plain'] . unhtmlspecialchars($thread['title']), is a post from $vbulletin->options['bburl'] "));

I am trying to create syntax so that the "Footer" appears in this format:

THREAD TITLE (http://mydomain.com/thread-title-goes-here-automatically) is a post by MEMBER NAME at MY DOMAIN NAME. (http://mydomain.com/url-goes-here-automatically)

Could someone please assist me with the correct syntax to use to call these variables?

Lynne
09-26-2010, 02:59 PM
And exactly what are you expecting this "footer" to look like in the page source? There is no valid footer tag that I can find.

Budget101
09-26-2010, 03:03 PM
And exactly what are you expecting this "footer" to look like in the page source?

I want the footer to appear in the bottom of Each RSS Feed Post (Like a signature).

--------------- Added 1285518113 at 1285518113 ---------------

Lynn- this is what I am trying to do:

http://yoast.com/wordpress/rss-footer/

Unfortunately, vb isn't user friendly when it comes to making RSS changes/enhancements

kh99
09-26-2010, 04:11 PM
I don't know anything about adding tags to the RSS feed, but it looks like there's some quote/string matching problems with what you posted. I think you want something like:



$xml->add_tag('footer', $thread['prefix_plain'] .
unhtmlspecialchars($thread['title']) .
" is a post from $vbulletin->options[bburl] ");

Lynne
09-26-2010, 05:14 PM
Can you show me an example rss that does this? In looking at the code, I am not seeing <footer> being added at all. I am seeing them adding this to the end of the content.