Home arrow Forum
discussbot
  Welcome, Guest. Please login or register.
January 07, 2009, 01:54:04 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: discussbot « previous next »
Pages: [1] Go Down Print
Author Topic: discussbot  (Read 3042 times)
palik
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
discussbot
« on: May 09, 2005, 10:25:27 AM »

hoi Smiley

just got discussbot from your download - its really nice but gives me strange error - when i place it in short text (first part of content item) - the comment link works only if i see whole content item, when i see just short text (on my news page for example) it shows moscode - {mos_smf_discuss}...

i tried to write moscode with and without forum specified - always the same...


Logged
Andrew
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: discussbot
« Reply #1 on: May 09, 2005, 10:09:40 PM »

I am getting the same. Andrew.
Logged
palik
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: discussbot
« Reply #2 on: May 13, 2005, 08:53:26 AM »

i digged some posts on smf forum and i found that this was done intentially because back-link that mambot made in forum was leading to frontpage and not to article .... i commented out some lines from mosbot and now i got comments on frontpage but i dont know how to make them work properly... you have to comment those lines in smf.discussbot.php

Code:
//if (($_REQUEST['option'] !="com_content" && $_REQUEST['option'] !="com_frontpage" ))
//{
/// return;
//}
//else
//{


and then commend trailing } in code just before JavaScript

Code:
   return $showlink;



   }

//}   -- this is what you got to comment out

?>
<script language="JavaScript">
function send_form(form_id)
{
document.getElementById(form_id).submit();
}
</script>


and it will work - but with bugs

i think that bot should have make the comment links different for every article on frontpage... maybe i will look into this

bye
Logged
palik
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: discussbot on front page
« Reply #3 on: May 31, 2005, 05:31:53 AM »

Well truth is that i know why discussbot was disabled on frontpage but i dont have time to rewrite it to work properly

Discussbot pastes into first post back-link to the article, but when you click on comment link from frontpage (or any blog page with multiple intro-texts) it will paste link to that blog/news-page

For now i got temporary fix - just after you create news item, go to the full view of it (even if it has no full text) and comment it - the back-link will be pointing to newsitem not frontpage...
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: discussbot « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE