Results 1 to 2 of 2

Thread: Signature in news topics

  1. #1

    Default Signature in news topics

    When I enable the signature featuer in the news topics on my site. it uses the person that last posted sig for every thing? I will give an example

    alittle bit on this. I just converted to vB from an Invision board. I donno if that would have anything to do with it or not. But as you can see in the screenshot below that it shows up the first members sig.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Signature in news topics

    Thanks for pointing this out. It looks like there's a problem with the variable we're using for the signature cache. If you'll look in your forum/modules/news.php file for this code though:
    PHP Code:
                    // Signature
                    
    $show['signature'] = false;
                    if (
    $mod_options['portal_news_showsignature'] AND $news['showsignature'] AND trim($news['signatureparsed']))
                    {
                        
    $show['signature'] = true;

                        if (!
    $cachedsigs[$news['userid']])
                        {
                            
    $cachedsigs[$news['userid']] = $bbcode_parser->parse($news['signature'], 'signature'truefalse$news['signatureparsed'], $news['sighasimages'], true);
                        }

                        
    $news['signature'] =& $cachedsigs[$news['userid']];
                    } 
    Replace with this:
    PHP Code:
                    // Signature
                    
    $show['signature'] = false;
                    if (
    $mod_options['portal_news_showsignature'] AND $news['showsignature'] AND trim($news['signatureparsed']))
                    {
                        
    $show['signature'] = true;

                        if (!
    $cachedsigs[$news['postuserid']])
                        {
                            
    $cachedsigs[$news['postuserid']] = $bbcode_parser->parse($news['signature'], 'signature'truefalse$news['signatureparsed'], $news['sighasimages'], true);
                        }

                        
    $news['signature'] =& $cachedsigs[$news['postuserid']];
                    } 
    And that should take care of the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Suggestion: Let us decide how many columns for News & Topics
    By eden in forum Feedback & Suggestions
    Replies: 0
    Last Post: 07-15-2005, 03:54 PM
  2. News in latest topics
    By sapper6fd in forum Troubleshooting / "How do I..." Questions
    Replies: 1
    Last Post: 12-27-2004, 07:54 PM
  3. Looking for a site I saw in a signature...
    By Andy R in forum Feedback & Suggestions
    Replies: 0
    Last Post: 07-26-2004, 11:54 PM
  4. Signature images not showing
    By chrisvonc in forum Bugs & Other Issues
    Replies: 2
    Last Post: 05-20-2004, 06:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •