Topic RSS
Hi! I have a problem. Link "Join the forum discussion on this post" have two position at top and bottom, but i need place link in different place, how can i do it? Maybe just place a php code in different place my blog theme, but what php code? 
no other location currently possible without hacking core code. The link is displayed/added to the wp post content in routine sf_blog_show_link() if you wanted to play with it.
I try this function in index.php, but it's not work:
have this warning:
please, help
you dont want to call that function. It takes the post content as an argument. It then outputs the entire post content with the link to the forum post included. That function is a wp filter on the post content.
I mentioned it so you could take a look at the code to see how we added the link. there is no function available to call and output the link anywhere you want it. you are going to have to code up your own, using the referenced function as a guideline.
Try something like this where you want it
$postid = $wp_query->post->ID;
$checkrow = sf_blog_links_postmeta('read', $postid, '');
if ($checkrow)
{
$keys = explode('@', $checkrow->meta_value);
$sfpostlinking = array();
$sfpostlinking = get_option('sfpostlinking');
$text = stripslashes($sfpostlinking['sflinkblogtext']);
$icon = '<img src=”'.SFRESOURCES.'bloglink.png” alt=”" />';
$text = str_replace('%ICON%', $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>';
}
I would bet this fails when it cant find some of the sf routines… you will need to include the required files so they can be found… also, you can change the first three lines if you already have the post id available…
Also, VERY IMPORTANT, but if you cut and paste that, it will mangle the single and double quotes… type those in by hand…
have fatal error 
i want put it here:
<?php $values = get_post_custom_values("Image");
if (isset($values[0])) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="100px" height="65px" /></a>
<?php } ?>
<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>PUT HERE LINK]</div>
</div>
if you have a time, please see index.php
Most Users Ever Online: 444
Currently Online: Yellow Swordfish, steve.engelking
56 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: 79531
Newest Members: ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate, eatonrabbit, prasanna
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22211), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline
Quote




Visit



Privacy Policy
Yellow Swordfish


