Topic RSS
It will take me a couple of days til I have time, but let me see if I can package this into a proper template tag and see if I can get it into the 4.0.3 release that should be coming just about any day now (we plan beta release in step with wp 2.8 beta which is days away)…
it wont be an option, but a template tag… ie a code function you can call… pretty much what you are looking for to put a link outside of the actual post content…
okay, got this coded up tonight and it will be in 4.0.3…
If you want to add the new tag yourself to try out (add to file sf-tags.php), its:
{
sf_initialise_globals();
include_once('forum/sf-links.php');
$checkrow = sf_blog_links_postmeta('read', $postid, '');
if ($checkrow)
{
$keys = explode('@', $checkrow->meta_value);
$text = stripslashes(get_option('sflinkblogtext'));
$icon = '<img src="'.SFRESOURCES.'bloglink.png" alt="" />';
if ($show_img)
{
$text = str_replace('%ICON%', $icon, $text);
} else {
$text = str_replace('%ICON%', '', $text);
}
$postcount = sf_get_posts_count_in_topic($keys[1]);
$counttext = ' – ('.$postcount.') '.__("Posts", "sforum");
echo '<span class="sfforumlink"><a href="'.sf_build_url(sf_get_forum_slug($keys[0]), sf_get_topic_slug($keys[1]), 1, 0).'">'.$text.'</a>'.$counttext.'</span>';
}
}
and can then be called where you want it to display. You must pass it the post id, which when in the loop is simply $post->ID
ок, I add this tag to sf-tags.php, how call this function?
I try this:
and have:
]
in line 115 I add your code
Most Users Ever Online: 444
Currently Online: steve.engelking
96 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2625
Members: 7361
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10890
Posts: 79543
Newest Members: ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate, eatonrabbit, prasanna
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22223), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline




Quote
Visit 
Privacy Policy



