The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Nov 18, 2005 3:56 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 26, 2005 11:09 am
Posts: 198
There is a problem with the Simpleboard discussbot version:

Discuss-Mambot-2[1].1-with-security-patch-UNZIP-FIRST.zip

whereby it does not pass an Itemid along for the content item when creating a new topic.

The link back to the content item which is generated in the new topic therefore gets an Itemid=1 and picks up the modules and template of the frontpage rather than the ones it should have.

Here is the fix. In file simpleboard.discussbot.php

Find:
Code:
$Itemid=$database->loadResult();

Add immediately below it:
Code:
$rowItemid = $mainframe->getItemid($row->id);


Find:
Code:
if ($resultid == ""){
      $showlink = sefRelToAbs("index.php?option=com_simpleboard&Itemid=" . $Itemid
      . "&func=post&do=newFromBot&resubject=".strtr(base64_encode($row->title), "+/", "()")."&catid=".$catid
      . "&rowid=".$row->id
      );
      $countPosts=0;
   }

Change to:
Code:
if ($resultid == ""){
      $showlink = sefRelToAbs("index.php?option=com_simpleboard&Itemid=" . $Itemid
      . "&func=post&do=newFromBot&resubject=".strtr(base64_encode($row->title), "+/", "()")."&catid=".$catid
      . "&rowid=".$row->id."&rowItemid=".$rowItemid
      );
      $countPosts=0;
   }


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group