Home arrow Forum JSMF 2.0 Final
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 09:03:30 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  JSMF 2.0 Final
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 8 9 [10] 11 12 13 Go Down Print
Author Topic: JSMF 2.0 Final  (Read 41882 times)
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 Final
« Reply #135 on: January 10, 2007, 10:58:01 AM »

Doing debugging I found that the code is failing when it tries to include your joomla template.  Did you make modifications to your joomla template for Orstio's bridge?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Mackavi
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 22


View Profile
Re: JSMF 2.0 Final
« Reply #136 on: January 10, 2007, 11:43:35 AM »

Honest can't remember, tried too many things.  Surely if I switched templates then it should work?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 Final
« Reply #137 on: January 10, 2007, 12:00:39 PM »

Finally!  In the joomla index I set the following to enable TRUE php error logging:

Code:
ini_set('log_errors', 1);
ini_set('error_log', 'error_log');
error_reporting(E_ALL);

Then I refreshed the page, checked the file error_log in the joomla root, and there is the error that your webhost is swallowing or something:

Code:
[10-Jan-2007 17:44:13] PHP Fatal error:  Call to undefined function:  () in /homepages/7/d183703408/htdocs/interaktiv/cms/support/Sources/Subs.php on line 2474

The error is coming from

Code:
// Don't allow more than half of the characters to be left unencoded.
$allowPlain = $func['strlen']($string) / 2;

which is again the user of the array $func which may be conflicting with another module, meaning another module has used $func since SMF initialized it and therefore all the data SMF stored in that variable has been overwritten.  That is why it says call to undefined function and then gives no function name, because the definition SMF gave it has been overwritten.  Changing this line to simply strlen should correct the immediate problem. 

Change this code:
Code:
// Don't allow more than half of the characters to be left unencoded.
$allowPlain = $func['strlen']($string) / 2;

To this:

Code:
reloadSettings();
// Don't allow more than half of the characters to be left unencoded.
$allowPlain = $func['strlen']($string) / 2;


This reload the $func array from SMF.  This may cause problems with other components but it will fix the display of smf and your site.  It is working now.


By the way, this is not the fault of the bridge.  Simply, you have other components that use the same variable as SMF does and since they are not in objects or classes there is overlap.  That is the reason JSMF 2.0 so heavily relies on classes, there should be no way that my variables would conflict.  I cannot say the same for other developers and SMF does not use classes so this will continue to be a problem.
« Last Edit: January 10, 2007, 12:13:40 PM by -Wolverine » Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Mackavi
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 22


View Profile
Re: JSMF 2.0 Final
« Reply #138 on: January 10, 2007, 12:33:43 PM »

Wolverine - you are a scholar and a gentleman!!!  Understand about 10% of what you explained but it works and that is brilliant.  Doubt VM will be interested as their site is full of complaints about bad coding, but will post info on to writer of Product Book because he is currently looking at the problem from his side.  Again many, many thanks.
Logged
Darkki
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: JSMF 2.0 Final
« Reply #139 on: January 11, 2007, 01:47:17 AM »

Having problems with inline post editing when using my forums as wrapped. Without wrap everything works fine.

Got SMF 1.1.1
Joomla 1.0.12
and Bridge 2.0

I'm getting green line "Loading.." at the top of pages but nothing happens. I assume that it tries to load some javascript there and IE error message is:

Code:
Line:         40
Character:    2
Error:        No access
Code:         0
URL-address:  /index.php?option=com_smf&Itemid=27&topic=9.msg298;topicseen

Anyone can help me?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 Final
« Reply #140 on: January 11, 2007, 11:31:57 AM »

this can happen if your Joomla template isn't correctly including the custom headers.  This is done through a call to mosShowHead() which should appear in your joomla template index.php file in the <head> section of the template.  Basically, I pull all the SMF headers and add them to the joomla custom header, which then displays it in the appropriate place.  The SMF headers contain javascript to handle this.  If the javascript is missing you will get this error. 

If you have firefox download firebug(the most useful JS debug tool EVAR!).  It should tell you exactly why it failed.  I suspect the header is not correct.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Andrew W
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 2


View Profile
Re: JSMF 2.0 Final
« Reply #141 on: January 11, 2007, 09:21:06 PM »

I have:
Joomla 1.0.12
SMF 1.1.1
Community Builder 1.0.2
Joomla-SMF version: 2.0

Joomla-SMF Forum Config:
Registration system:  () SMF (*) Joomla/Mambo () CB () CBE
Login module:  () Joomla-SMF (*) Joomla/Mambo () CB () CBE

Yes, I have logging in problems too.

My current configuration is the best configuration that I can use to get most things working. It is the only configuration that properly registers passwords for both Joomla and SMF. The only problem is that I can't get CB profiles working. CB registration/login for this is hopeless, but I would like to use CB features.

I believe I may have screwed up my system by installing JSMF bridge before installing community builder. I was given the impression with what I read that CB Plugin came with the JSMF bridge, so I thought this would install all of this Community Builder that I knew nothing about. So then when it came to installing the CB Plugin, which was actually separate, there was nothing to install it into. So I removed the JSMF bridge, then installed CB, then re-installed JSMF again. I may have killed something, I don't know. I don't really want to go swimming through a sea of ugly mySQL and PHP code to find out.

I'll just keep tinkering til I get something that works good.

SMF has a nice looking and (from the look of it) secure registration process. Community Builder has a highly customisable registration process, which needs a lot of CSS tinkering to make it look good. Perhaps I can figure out a way of directing the first login to a CB profile creation page... ouch!
Logged
hackeman
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: JSMF 2.0 Final
« Reply #142 on: January 11, 2007, 10:25:59 PM »

Here's another one...

I have set "Automatically reply to topic" to YES  but "Automatically create" to NO, meaning there will not be a forum topic automatically created for each posted news item, unless a user posts a comment to the article.

This works all fine, apart from the fact that the first comment made by a user is considered an initial post and not a reply, which results in the "Comments (X)" shows (0) after the first comment and (1) after the second comment. It's always one number too low.

I guess this is how you've chosen to do by design since it's how SMF returns number of replies, but do you have any suggestion on a workaround to this? I prefer not to have a forum topic created for articles no one has commented.

Thanks.
« Last Edit: January 11, 2007, 10:27:32 PM by hackeman » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 Final
« Reply #143 on: January 12, 2007, 10:09:53 AM »

uncomment this bit of code on or around line 575, change it from:

Code:
//        if (!$instant || !((time()-$seconds) < $ctime)) {
//            $replies = $topic->numReplies + 1;
//        } else {
//            $replies = $topic->numReplies;
//        }

To this:
Code:
        if (!$instant || !((time()-$seconds) < $ctime)) {
            $replies = $topic->numReplies + 1;
        } else {
            $replies = $topic->numReplies;
        }

Then change the following section of code starting at line 586 from this:
Code:
        if ($auto_reply) {
            if ($auto_reply_img) {
                $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img border="0" src="' . $settings['images_url'] . '/topic/my_veryhot_post.gif" alt="Reply to Topic" /> ('.$topic->numReplies.') '.$link_text.'</a></div>';
            } else {
            $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Discuss Topic" /> ('.$topic->numReplies.') '.$link_text.'</a></div>';
            }
        } else {
            $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?topic=' . $resultid . $smf_location) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Discuss Topic" /> ('.$topic->numReplies.') '.$link_text.'</a></div>';
        }

To this:
Code:
        if ($auto_reply) {
            if ($auto_reply_img) {
                $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img border="0" src="' . $settings['images_url'] . '/topic/my_veryhot_post.gif" alt="Reply to Topic" /> ('.$replies.') '.$link_text.'</a></div>';
            } else {
            $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Discuss Topic" /> ('.$replies.') '.$link_text.'</a></div>';
            }
        } else {
            $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?topic=' . $resultid . $smf_location) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Discuss Topic" /> ('.$replies.') '.$link_text.'</a></div>';
        }

The code was there, written by Kevin, but I had disabled it for some reason, I think to be in line with the true SMF way of handling replies.
« Last Edit: January 12, 2007, 10:15:34 AM by -Wolverine » Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
LortGob
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 9


View Profile
Re: JSMF 2.0 Final
« Reply #144 on: January 14, 2007, 06:39:09 AM »

I'm also having problems logging in, logging out or registering on my site.
I run:
Joomla 1.0.12
SMF 1.1.1
JSMF 2.0 Final

I have traced the problem as a conflict between JSMF and OpenSEF. If OpenSEF is off and index.php is patched, everything works. If I turn OpenSEF on, logging/registering does not work until I unpatch.

I have no idea how to solve this, can anyone help?

Logged

hackeman
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: JSMF 2.0 Final
« Reply #145 on: January 14, 2007, 04:04:18 PM »

uncomment this bit of code on or around line 575, change it from:

Thanks a lot, that did the trick. Smiley
Logged
walkin
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
SMF Table Prefix
« Reply #146 on: January 15, 2007, 03:10:42 AM »

what should i insert in the SMF Table Prefix. Its giving a error. Please guide me  Huh
Logged
Alexander
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: JSMF 2.0 Final - Using with Mambo 4.5.4 SP3
« Reply #147 on: January 22, 2007, 04:18:39 PM »

Hallo,

I am using the SMF-BRidge since al lot of versions and first I want to say THANKS for the great work.

Now I upgraded my system from Mambo 4.5.2.3 up to 4.5.4 SP3. Normaly I wanted update up to 4.6.1 but there is the Login-Problem which is discussed in a lot of forums. Well, now I have the following configuration:

Mambo 4.5.4 SP3
SMF 1.1.1
Bridge 2.0 Final

I installed everything like described in the Tutorial, but I get the folowing error-MEssage:

"Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "jsmfFrontend" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/html/web/html/cms/index.php on line 56"

Could anybody tell me whats the Problem? Is the JSMF-Bridge not anymore working with Mambo?

Thanks for answering. BEcaus I dont get any of the Bridge-Versions working? The last version I used (1.1 Beta) crashed the system after the using with Mambo 4.5.4.

Greetings from Alex
Logged
Andrew W
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 2


View Profile
Re: JSMF 2.0 Final
« Reply #148 on: January 26, 2007, 07:58:08 PM »

Yay, everything is functioning pretty well on my site. My registration and login works through either Joomla or SMF. CB login and registration doesn't work at all and I don't even need it. I have CB profiles running because of a this hack. The only thing that is pissing me off is that the comprofiler doesn't display correctly in Firefox, but does in IE. The comprofiler uses CSS generated menus which increase and decrease the height when clicking on each menu item, causing the whole thing to jump up and down the page, but only in Firefox. It looks very sh$tty and would really like to find a hack to fix it.



As I said before....

I have:
Joomla 1.0.12
SMF 1.1.1
Community Builder 1.0.2
Joomla-SMF version: 2.0

Joomla-SMF Forum Config:
Registration system:  () SMF (*) Joomla/Mambo () CB () CBE
Login module:  () Joomla-SMF (*) Joomla/Mambo () CB () CBE
Logged
Darkki
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: JSMF 2.0 Final
« Reply #149 on: February 02, 2007, 10:10:19 AM »

Having problems with inline post editing when using my forums as wrapped. Without wrap everything works fine.

Got SMF 1.1.1
Joomla 1.0.12
and Bridge 2.0

I'm getting green line "Loading.." at the top of pages but nothing happens. I assume that it tries to load some javascript there and IE error message is:

Code:
Line:         40
Character:    2
Error:        No access
Code:         0
URL-address:  /index.php?option=com_smf&Itemid=27&topic=9.msg298;topicseen

Anyone can help me?
I managed to found some solutions to work. I had to edit xml_topic.js file and change all these:
smf_scripturl + "?action=.." -> jsmf_scripturl + "action=.."

This way I got fast quote working and now I can get to the inline editing form. But when I try to save those editings I'm getting error:
XMLDoc.getElementsByTagName("smf")[0] has no properties xml_topic.js (line 133)

If I refrest the screen I can see that all my changed got saved perfectly. It's just that the page is ain't redirect to the post as it should after saving.
« Last Edit: February 02, 2007, 12:06:31 PM by Darkki » Logged
Pages: 1 ... 8 9 [10] 11 12 13 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login