Topic: Trying to make "Subscribe to Topic" into a list.... having trouble..

As I stated in the topic, I'm trying to make "Subscribe to Topic" into an unordered list in the CSS which has "subscribe to topic", "digg this" and a couple of other social networking tools.  I'm having difficulty trying to accomplish this in viewtopic.php though.  Here is what I have in viewtopic.php starting around line 143:

if ($pun_config['o_quickpost'] == '1' &&
    !$pun_user['is_guest'] &&
    ($cur_topic['post_replies'] == '1' || ($cur_topic['post_replies'] == '' && $pun_user['g_post_replies'] == '1')) &&
    ($cur_topic['closed'] == '0' || $is_admmod))
{
    $required_fields = array('req_message' => $lang_common['Message']);
    $quickpost = true;
}

if (!$pun_user['is_guest'] && $pun_config['o_subscriptions'] == '1')
{
    if ($cur_topic['is_subscribed'])
        // I apologize for the variable naming here. It's a mix of subscription and action I guess :-)
        $subscraction = '
        
        <div id="social-toolbar">
    <ul class="tools">
        <li class="email">    
        
        '.$lang_topic['Is subscribed'].' - <a href="misc.php?unsubscribe='.$id.'">'.$lang_topic['Unsubscribe'].'</a></li>'."\n";
        
        <li class="rss"><a href="rss.php?tid=<?php echo $id ?>"">RSS Feed for this Topic</a></li>
        <li class="digg"><a href="http://digg.com/submit?phase=2&url=<?php echo $pun_config['o_base_url'] ?>/viewtopic.php?pid=<?php echo $cur_post['id'].'#p'.$cur_post['id'] ?>&title=<?php echo pun_htmlspecialchars($cur_topic['subject']) ?>">Digg This</a></li>
        <li class="delicious"><a rel="nofollow" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&url='+encodeURIComponent(location.href)+'&notes=&tags=&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('Delicious','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Del.icio.us</a></li>
        <li class="magnolia"><a rel="nofollow" href="http://ma.gnolia.com/" onclick="window.open('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&description=&tags=');return false;" onmouseover="schnapp('MaGnolia','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Ma.gnolia</a></li>
        <li class="stumble last"><a rel="nofollow" href="http://www.stumbleupon.com/" onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('StumbleUpon','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">StumbleUpon</a></li>
    </ul>
</div>
        
    else
        $subscraction = '
        
        <div id="social-toolbar">
    <ul class="tools">
        <li class="email"><a href="misc.php?subscribe='.$id.'">'.$lang_topic['Subscribe'].'</a></li>'."\n";
        
        <li class="rss"><a href="rss.php?tid=<?php echo $id ?>"">RSS Feed for this Topic</a></li>
        <li class="digg"><a href="http://digg.com/submit?phase=2&url=<?php echo $pun_config['o_base_url'] ?>/viewtopic.php?pid=<?php echo $cur_post['id'].'#p'.$cur_post['id'] ?>&title=<?php echo pun_htmlspecialchars($cur_topic['subject']) ?>">Digg This</a></li>
        <li class="delicious"><a rel="nofollow" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&url='+encodeURIComponent(location.href)+'&notes=&tags=&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('Delicious','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Del.icio.us</a></li>
        <li class="magnolia"><a rel="nofollow" href="http://ma.gnolia.com/" onclick="window.open('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&description=&tags=');return false;" onmouseover="schnapp('MaGnolia','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Ma.gnolia</a></li>
        <li class="stumble last"><a rel="nofollow" href="http://www.stumbleupon.com/" onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('StumbleUpon','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">StumbleUpon</a></li>
    </ul>
</div>
        
}
else
    $subscraction = '<div class="clearer"></div>'."\n";

$page_title = pun_htmlspecialchars($pun_config['o_board_title'].' / '.$cur_topic['subject']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';

?>

<div class="linkst">
        <div class="inbox">
            <p class="pagelink conl"><?php echo $paging_links ?></p>
            <p class="postlink conr"><?php echo $post_link ?></p>

Re: Trying to make "Subscribe to Topic" into a list.... having trouble..

no one has any ideas?

Re: Trying to make "Subscribe to Topic" into a list.... having trouble..

Is there a reason you don't want the 'social networking' links available to guests?

If not this should work, a small change to the original code

if (!$pun_user['is_guest'] && $pun_config['o_subscriptions'] == '1')
{
    if ($cur_topic['is_subscribed'])
        // I apologize for the variable naming here. It's a mix of subscription and action I guess :-)
        $subscraction = '<li class="email">'.$lang_topic['Is subscribed'].' - <a href="misc.php?unsubscribe='.$id.'">'.$lang_topic['Unsubscribe'].'</a></li>'."\n";
    else
        $subscraction = '<li class="email"><a href="misc.php?subscribe='.$id.'">'.$lang_topic['Subscribe'].'</a></li>'."\n";
}
else
    $subscraction = ''."\n";

Then around line 350

Find

        <?php echo $subscraction ?>

and replace with
<div id="social-toolbar">
    <ul class="tools">
        <?php echo $subscraction ?>
        <li class="rss"><a href="rss.php?tid=<?php echo $id ?>"">RSS Feed for this Topic</a></li>
        <li class="digg"><a href="http://digg.com/submit?phase=2&url=<?php echo $pun_config['o_base_url'] ?>/viewtopic.php?pid=<?php echo $cur_post['id'].'#p'.$cur_post['id'] ?>&title=<?php echo pun_htmlspecialchars($cur_topic['subject']) ?>">Digg This</a></li>
        <li class="delicious"><a rel="nofollow" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&url='+encodeURIComponent(location.href)+'&notes=&tags=&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('Delicious','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Del.icio.us</a></li>
        <li class="magnolia"><a rel="nofollow" href="http://ma.gnolia.com/" onclick="window.open('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&description=&tags=');return false;" onmouseover="schnapp('MaGnolia','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Ma.gnolia</a></li>
        <li class="stumble last"><a rel="nofollow" href="http://www.stumbleupon.com/" onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('StumbleUpon','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">StumbleUpon</a></li>
    </ul>
</div>

You may need a div clearer in there but the basic idea should be pretty clear.

Re: Trying to make "Subscribe to Topic" into a list.... having trouble..

Or, to hide it for guests:

Find

        <?php echo $subscraction ?>

and replace with
<div id="social-toolbar">
    <ul class="tools">
        <?php echo $subscraction ?>
<?php
if (!$pun_user['is_guest'])
{
?>
        <li class="rss"><a href="rss.php?tid=<?php echo $id ?>"">RSS Feed for this Topic</a></li>
        <li class="digg"><a href="http://digg.com/submit?phase=2&url=<?php echo $pun_config['o_base_url'] ?>/viewtopic.php?pid=<?php echo $cur_post['id'].'#p'.$cur_post['id'] ?>&title=<?php echo pun_htmlspecialchars($cur_topic['subject']) ?>">Digg This</a></li>
        <li class="delicious"><a rel="nofollow" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&url='+encodeURIComponent(location.href)+'&notes=&tags=&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('Delicious','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Del.icio.us</a></li>
        <li class="magnolia"><a rel="nofollow" href="http://ma.gnolia.com/" onclick="window.open('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&description=&tags=');return false;" onmouseover="schnapp('MaGnolia','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">Ma.gnolia</a></li>
        <li class="stumble last"><a rel="nofollow" href="http://www.stumbleupon.com/" onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));return false;" onmouseover="schnapp('StumbleUpon','','<?php echo PUN_ROOT; ?>',1)" onmouseout="schnipp()">StumbleUpon</a></li>
<?php
}
?>
    </ul>
</div>