Joomla Forum

Joomla Hacks => Joomla-SMF 2.0.x => Topic started by: -Wolverine on October 26, 2006, 11:16:16 PM



Title: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 26, 2006, 11:16:16 PM
I have reworked Brat's plugins and made some improvements to them.  Mainly I added an install process that publishes the plugins.  I also reworked the code such that the absolute minimum of db queries are used.  Please let me know any problems you might encounter

NOTE:The avatar sync may fail until you install JSMF 2.0RC2(which should be released this week).  I have not been able to confirm early reports of it failing but I suspect it was related to JSMF 2.0RC1.

All credit goes to Brat for taking the time to figure out these plugins.  These plugins are a major contribution, so thanks Brat!  ;)

edit: cb_plugin_smf_info_2_1_1.zip updated friday 10-27 930pEST


Title: Re: CB Plugins for SMF (v2.1)
Post by: Peter on October 27, 2006, 09:21:50 AM
Awesome Wolverine...Thank you :)  Is there anyway to just have the Signature box from SMF profile appear on the Profile Tab/CB Profile Config...I mentioned it to Brat previously...It would be good to prevent users from touching the SMF profile completely and just allow them to change sigs.

On the SMF_Info plugin I am geting an error (whenever someone clicks on a Username to view the profile, the following box pops up)

Attached is a screenshot of the box.

This prevents anyone from viewing profiles, as it fails to load the page after it.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 27, 2006, 10:15:21 AM
hmmmm, lemme look into that


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on October 27, 2006, 01:41:22 PM
I just installed the SMF_Profile Plugin and am now getting the same error as Peter.  I tried uninstalling the CB Profile plugin but the error is still there and now no one can access their CB Profile.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 27, 2006, 01:54:26 PM
yep, my bad, here is the change, in file components/com_comprofiler/plugins/user/plug_smfinfo/smf_info.php change line 59 from this:
Code:
            if (empty($user_id)) {
to this
Code:
            if (empty($user->smf_id)) {

That should fix it.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on October 27, 2006, 02:47:00 PM
Nope, didn't fix it.  Made the change you suggested and still getting a blank screen when going to a users profile.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 27, 2006, 02:49:54 PM
you reported getting the same error as peter.  Does that fix that problem?  If so, please state so.  If you are having further problems then please be clear about it. 


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on October 27, 2006, 03:01:04 PM
yep, my bad, here is the change, in file components/com_comprofiler/plugins/user/plug_smfinfo/smf_info.php change line 59 from this:
Code:
            if (empty($user_id)) {
to this
Code:
            if (empty($user->smf_id)) {

That should fix it.

I was getting the same error as peter when clicking on a users profile, after applying the above mentioned code all I get now is a blank screen, no error, but a blank white screen.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on October 27, 2006, 03:27:16 PM
Now I can't even log into the backend of my Joomla website.  Everytime I enter the admin username and password it just loops back around to the login screen again.  This really sucks!


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 27, 2006, 05:19:29 PM
well I seriously doubt that that is due to the plugin.  Have you tried clearing your cookies and cache?


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on October 27, 2006, 07:23:21 PM
Yes, I have deleted the cookies and cleared the cache, I've also tried both IE and Firefox browsers.  I'm not suggesting that it was caused by the Joomla-SMF bridge, it's just very strange because it started happening at the same time and I hadn't even logged into the backend to do anything.  Still cannot get it to work.  If this continues I'm going to scrap the whole site and re-installing everything.  What a pain in the butt!


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 27, 2006, 09:13:30 PM
well, you aren't being very descriptive, I thought you *only* installed the cb plugins.  Are you telling me you installed the whole bridge when this happened or what?


Title: Re: CB Plugins for SMF (v2.1)
Post by: christiaan on October 28, 2006, 02:10:48 AM
Awesome Wolverine...Thank you :)  Is there anyway to just have the Signature box from SMF profile appear on the Profile Tab/CB Profile Config...I mentioned it to Brat previously...It would be good to prevent users from touching the SMF profile completely and just allow them to change sigs.

On the SMF_Info plugin I am geting an error (whenever someone clicks on a Username to view the profile, the following box pops up)

Attached is a screenshot of the box.

This prevents anyone from viewing profiles, as it fails to load the page after it.

I got the same error! I will try the fix from wolverine

Edit
Everything is working fine now! See on my profile:
http://www.berggeit.nl/index.php?option=com_comprofiler&task=userProfile&user=62

How can I change the tab forum posts? The numbers on the left are not nice #1,#2 etc, see the tab Forum Berichten (dutch) on my profile

I am realy glad with these plugins!!!
Thanks!

Regards Christiaan


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 28, 2006, 10:26:37 AM
got any suggestions for the numbering.  I just kept what Brat had there but it can be whatever.  I can probably make it configurable if we have multiple suggestions.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Brat on October 29, 2006, 01:26:00 AM
got any suggestions for the numbering.  I just kept what Brat had there but it can be whatever.  I can probably make it configurable if we have multiple suggestions.

The numbering is really just a crude, down and dirty ordered list I threw in the SMF Posts plugin. Unfortunately, this is hard-coded in, and not elegant. I may be able to add some CSS options to it so you can set this in your Joomla template's CSS file. Let me know.

Ugh... the signature thing! I'd let that slip due to a crazy work week. If the plugins are stable enough at this point (let me know, Wolverine), I can go in and play with a signature plugin. Regarding not touching the user profile... that's kinda hard to do, when you want people to be able to alter signatures and so forth. Please explain exactly what you mean by not wanting members to access the forum profile at all.

Regards,
Brat.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 29, 2006, 09:58:20 AM
Brat, they are stable, go ahead and play around.  ;D


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on October 29, 2006, 02:46:02 PM
well, you aren't being very descriptive, I thought you *only* installed the cb plugins.  Are you telling me you installed the whole bridge when this happened or what?

The bridge has been installed and running for a over a week.  I was having problems with SMF not syncing properly with CB.  The avatars did not sync between the two, users would time out unexpectedly after only a couple of minutes, some could not even log in.  I installed the CB profile plugin and than started getting an error when clicking on a users profile, same error that Peter was getting.  I then applied the code fix that you posted:

Code:
            if (empty($user_id)) {
to this
Code:
            if (empty($user->smf_id)) {

At that point the error went away but I only had a blank white screen when selecting someones profile.  I then went to log in to the backend as admin to uninstall the CB Profile Plugin but was not able to.  At this point in time I am still not able to.  It accepts the username and password and than reloads the login screen.  If I type the password in incorrectly it say's incorrect password.  But if I put in the correct username and password the screen the just refreshes back to the login screen.  I've tried clearing the cache, deleting cookies, I cannot figure out how to get back in now and it's very frustrating.

I just re-installed and re-built our website a couple of weeks ago because it was hacked and being used to spoof pay-pal accounts, now users have come back and logged in with new accounts and I'm afraid I'm going to have to reload everything all over again.  I don't know what to do!?


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on October 29, 2006, 03:56:24 PM
blank screens don't just happen.  There must be information in your PHP error log.  Simply turn php error logging to maximum and cause the failure, and the check the log.  What does it say?


Title: Re: CB Plugins for SMF (v2.1)
Post by: Peter on October 30, 2006, 06:05:54 AM
Thanks again Brat for taking a look at this...

What I meant when I said it would be good to stop people from touching their SMF Profiles, I meant I would personally prefer them not to see all those options that SMF Profile has.  The current plugin, of course, just opens up their SMF Profile and allows them at the bottom of it to change their signature, but it has all the other SMF options  - Which to me are irrelevant and only cause confusion for the user.

The way I see it, SMF isn't what users are getting when using JSMF...They are getting Joomla with an awesome forum. 

Yes, of course it is SMF and everyone knows that (by the credit link at the bottom crediting the forum to Simple Machines)...However, SMF "user" control/functionality should be disabled because they shouldn't be accessing SMF directly. 

They should be controlling the way their profile looks, avatar looks, general posting aesthetics etc etc via Joomla/CB...

This has obviously been acheived beautifully by Wolverine's bridge...They login to Joomla, their avatar is displayed from their Joomla/CB profile - When users want to see someone's profile, they see the CB profile. 

That to me is complete functionality and for me personally (as all this post is illustrating of course) that is perfect.  The only missing feature for me is the signature administration directly through the CB profile...and having the forum stats (post count etc.) on the profile.  You of course mostly excellently fixed that.

I just feel personally, to maintain cohesion...Having signature customisation through their profile (pref through their CB "Update your Profile"/Profile Admin) would complete it, completely disabling any visual/direct interaction with SMF's own, seperate profile configuration (of course its still happening...but it would be cool if it happens without the layman knowing it...so, the typical/average forum user is controlling all the most important aspects for them (aesthetics) through their official profile (CB).

This post was unnecessarly long, sorry about that!...But I thought I'd give it some time since you've both taken the time to address my posts more than once!

P.


The numbering is really just a crude, down and dirty ordered list I threw in the SMF Posts plugin. Unfortunately, this is hard-coded in, and not elegant. I may be able to add some CSS options to it so you can set this in your Joomla template's CSS file. Let me know.

Ugh... the signature thing! I'd let that slip due to a crazy work week. If the plugins are stable enough at this point (let me know, Wolverine), I can go in and play with a signature plugin. Regarding not touching the user profile... that's kinda hard to do, when you want people to be able to alter signatures and so forth. Please explain exactly what you mean by not wanting members to access the forum profile at all.

Regards,
Brat.


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on October 30, 2006, 09:26:06 PM
To fully control SMF information (including signature that everyone wishes so much ;D) purely from CB, refer to http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,2591.0


Title: Re: CB Plugins for SMF (v2.1)
Post by: christiaan on November 01, 2006, 08:31:24 AM
The numbering is really just a crude, down and dirty ordered list I threw in the SMF Posts plugin. Unfortunately, this is hard-coded in, and not elegant. I may be able to add some CSS options to it so you can set this in your Joomla template's CSS file. Let me know.

Regards,
Brat.

Thanks!!
Hi, I changed the numbering, see overhere:
http://www.berggeit.nl/index.php?option=com_comprofiler&task=userProfile&Itemid=43
Go to Forum Berichten (dutch, forum posts)

How can I change the date in:
30 oktober 2006 instead of oktober 30 2006


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 01, 2006, 08:35:14 AM
Sure I can change it to that

You date *should* be dictacted by SMF admin configuration or what is configured in the jsmf language file(at the bottom)


Title: Re: CB Plugins for SMF (v2.1)
Post by: christiaan on November 01, 2006, 08:43:04 AM
Sure I can change it to that

You date *should* be dictacted by SMF admin configuration or what is configured in the jsmf language file(at the bottom)

Thanks! so... everything is working fine for me! thanks for everything!


Title: Re: CB Plugins for SMF (v2.1)
Post by: Regd User on November 01, 2006, 09:50:04 PM
These are awesome!  Works flawlessly on my site with RC2.

My only suggestion is change the Avatar Sync instructions to say something like

Sync from Main to Forum  or even Joomla to Forum since many casual users don't know what CB and SMF stand for, let along what they are.



Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 01, 2006, 10:23:15 PM
Good point, I'll make the change.  However, these are language definitions and all you need to add to your CB language file is the following two definitions:

_UE_SYNC_CB_AVATAR_TO_SMF
_UE_SYNC_CB_AVATAR_FROM_SMF

Then it can say whatever you want!  ;)


Title: Re: CB Plugins for SMF (v2.1)
Post by: Regd User on November 02, 2006, 02:53:35 PM
Looks like I spoke too soon.  I am unable to change user Text's unless I go to the forum's direct URL.

Clicking on "Modify Profile" opens the correct SMF page within Joomla (unwrapped), but any changes made do not stick after the page redirects back to the profile.



Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 02, 2006, 03:04:01 PM
Looks like I spoke too soon.  I am unable to change user Text's unless I go to the forum's direct URL.

Clicking on "Modify Profile" opens the correct SMF page within Joomla (unwrapped), but any changes made do not stick after the page redirects back to the profile.


This is a bug I just identified in the bridge, not the plugins.  You should not be redirected back to the profile, if that happens none of the data was saved.  This worked previously but with the addition of the itemid to the cb profile links(per user request) it is now broken.  I just identified this problem and am working on a fix. 


Title: Re: CB Plugins for SMF (v2.1)
Post by: Regd User on November 02, 2006, 03:11:14 PM
Thank you kindly.  You guys are doing great work here.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on November 03, 2006, 12:34:35 AM
blank screens don't just happen.  There must be information in your PHP error log.  Simply turn php error logging to maximum and cause the failure, and the check the log.  What does it say?

Turning on error logging would be a great idea, however, like I previously posted, I cannot log into the backend anymore!

Now I can't even log into the backend of my Joomla website.  Everytime I enter the admin username and password it just loops back around to the login screen again.  This really sucks!

I'm at the point where I'm going to have to scrap the whole site and start over again and not use SMF or this bridge, it has done nothing but cause problems and bring me to a screeching hault.  And with the lack of support that I have received here, I plan on going back to Joomlaboard, doesn't have as many features but at least it's stable and it works.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 03, 2006, 09:09:08 AM
Turning on error logging would be a great idea, however, like I previously posted, I cannot log into the backend anymore!
this can be done in your php.ini as well as in your joomla index.php.
I'm at the point where I'm going to have to scrap the whole site and start over again and not use SMF or this bridge, it has done nothing but cause problems and bring me to a screeching hault.  And with the lack of support that I have received here, I plan on going back to Joomlaboard, doesn't have as many features but at least it's stable and it works.
... lack of support ... sorry for not providing enough *free* development and support to one person with a problem that no-one else is having.  Enjoy your joomlaboard.


Title: Re: CB Plugins for SMF (v2.1)
Post by: theelite on November 03, 2006, 10:54:50 AM
yo mark,
out of any bridge I tried for integration for joomla..gallery2, phpbb, even SMF's own "official" bridge for joomla, none have had the number of updates or has had the care of the developer in identifying and fixing bugs than joomlahacks has. not to mention it's all free.

joomlaboard is great integration with CB and Joomla, but when you look at the total lack of features and unfriendly customization it has, when compared to SMF, it's a no go for anyone that wants a viable forum.

so have some patience and work through it instead of expecting perfection.


Title: Re: CB Plugins for SMF (v2.1)
Post by: guilliam on November 03, 2006, 01:23:21 PM
will be taking:

CB 1.01
Joomla 1.0.11
SMF 1.1 RC3

for a spin. will post what probs i see and see solutions if there are any.

- g


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 05, 2006, 02:12:52 AM
The bridge has been installed and running for a over a week.  I was having problems with SMF not syncing properly with CB.  The avatars did not sync between the two, users would time out unexpectedly after only a couple of minutes, some could not even log in.  I installed the CB profile plugin and than started getting an error when clicking on a users profile, same error that Peter was getting.  I then applied the code fix that you posted:

Code:
            if (empty($user_id)) {
to this
Code:
            if (empty($user->smf_id)) {

At that point the error went away but I only had a blank white screen when selecting someones profile.  I then went to log in to the backend as admin to uninstall the CB Profile Plugin but was not able to.  At this point in time I am still not able to.  It accepts the username and password and than reloads the login screen.  If I type the password in incorrectly it say's incorrect password.  But if I put in the correct username and password the screen the just refreshes back to the login screen.  I've tried clearing the cache, deleting cookies, I cannot figure out how to get back in now and it's very frustrating.

I just re-installed and re-built our website a couple of weeks ago because it was hacked and being used to spoof pay-pal accounts, now users have come back and logged in with new accounts and I'm afraid I'm going to have to reload everything all over again.  I don't know what to do!?

Being unable to log into your admin backend has very little chance to be related to the JSMF bridge. If you cant uninstall CB normally, simply go to your FTP, remove the com_comprofiler both in the administrator/components and components folder, and remove any database table with "comprofiler" in it. You can also do that with JSMF, but make sure you reinstalled the same JSMF version, or know what you're doing with the files that JSMF modified and replace them with the original backups.

Also, make sure when you go to your site's admin backend, enter your site's url with the "www." prefix (if that's what you specify as your live site in your config, or vice versa).

If you still cant enter the backend, download the full installation copy of the joomla version you're using, unzip it into a folder, and overwrite the folder administrator/includes of your site with the one you downloaded, together with index.php and index2.php.

If all fails, then i guess the simplest way is to restart everything, but theelite is correct in pointing out that SMF is by far the best forum (it is almost as capable as vbulletin, and it's free), and that the bridge here at joomlahacks is the best bridge for joomla and smf. In 90% of the cases whereby things dont work, the software is rarely the problem. The user is ;) So being a tad bit polite when requesting help from an open community help, especially when the problem seems only to happen to you. That usually point to the user at fault.

Rgds, Mike


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on November 07, 2006, 10:35:18 PM
hi,

is it normal that when user A is checking CB profile of user B in "Forum Posts" tab, he sees the topics and boards that user B is subscribed to? ShouldnŽt that be private information?

Cheers,
NiCo


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 07, 2006, 11:52:35 PM
thought about that, but I simply rewrote what Brat had previously.  I agree, and that can be implemented fairly easily. 


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 08, 2006, 10:22:28 AM
hi,

is it normal that when user A is checking CB profile of user B in "Forum Posts" tab, he sees the topics and boards that user B is subscribed to? ShouldnŽt that be private information?

Cheers,
NiCo
Replace your comprofiler/plugin/user/plug_smfposts/smf_posts.php with this uploaded file.

Note: only super admin and owner can see subscribed topics/boards.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Jelte on November 08, 2006, 10:53:22 AM
Is it normal that I haven't got any parameters on every of these plugins (and including tabs)?


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on November 08, 2006, 11:21:46 AM
Replace your comprofiler/plugin/user/plug_smfposts/smf_posts.php with this uploaded file.

Thank you p9939068...is this a mod? in that case, will Wolverine use it or heŽll release a different file version with his own modification?

I just want to make sure it doesnŽt get difficult to follow the update in the future ;-)

Cheers,
NiCo


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 08, 2006, 11:28:11 AM
Is it normal that I haven't got any parameters on every of these plugins (and including tabs)?
Yes, they do not have their own tabs/params when you edit your profile.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 08, 2006, 11:29:08 AM
Is it normal that I haven't got any parameters on every of these plugins (and including tabs)?
What parameters would you be expecting? Yes it is normal, because at this point there are no parameters.


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 08, 2006, 11:30:06 AM
Thank you p9939068...is this a mod? in that case, will Wolverine use it or heŽll release a different file version with his own modification?

I just want to make sure it doesnŽt get difficult to follow the update in the future ;-)

Cheers,
NiCo
When a future version from Wolverine is available, you can just uninstall the old plugin and install the new one. All i did was add a condition statement that shows the subscription part only to owner and admin :)

Rgds, Mike


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 08, 2006, 11:32:20 AM
Thank you p9939068...is this a mod? in that case, will Wolverine use it or heŽll release a different file version with his own modification?

I just want to make sure it doesnŽt get difficult to follow the update in the future ;-)

Cheers,
NiCo
I will take a look at what he did and most like roll it into the core plugin if he has no objections.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Jelte on November 08, 2006, 11:53:04 AM
What parameters would you be expecting? Yes it is normal, because at this point there are no parameters.

For the smf info plugin the option which information is displayed.

For the smf post plugin how many post that should be displayed.


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 08, 2006, 12:18:37 PM
I will take a look at what he did and most like roll it into the core plugin if he has no objections.
none at all :)


Title: Re: CB Plugins for SMF (v2.1)
Post by: Brat on November 09, 2006, 03:09:28 PM
Sorry for the silence - I've had this bug up my butt to modify Mamblog and that's what I've been up to for anyone who cares to know.  ;)

That said, I read that the plugins are stable. At this point, they belong to Joomlahacks, but I can play with features and such. Has the Topic Subscriptions code been modified (only authorized forum staff ant the subscription owner should really see these)? Also, has anyone done the CSS improvements to the posts plugin? And yeah, the poor neglected Signature plugin (I'm sorry - again, I blame this on the Mamblog stuff I've had to handle  :P)...

Anyway, I just need to get up to speed as to where things are currently before I jump back in. Thanks!

Regards,
Brat.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Mark on November 24, 2006, 07:33:59 PM
Sorry, I took a needed break from this for a couple of weeks, I got so frustrated I needed to get my mind off it for awhile.  I agree, I believe SMF is one of, if not the best free forum component available for Joomla.  And I would not mind paying or making a donation for a good product with good support.

Our last Mambo site was hacked and used to spoof pay pal accounts and I just finished installing Joomla from scratch a couple of weeks before the problems started happening.  And we just started to get our traffic to return to the site.  I never had so many problems with the old website running Joomlaboard, this time with SMF I had problems with synchronizing logins, photos, problems with user profiles, etc, etc.

As you said it could possibly be user error, although this is not a first time install for me, I've successfully setup and configured almost a dozen Mambo/Joomla websites, I am a computer consultant by trade, MCSE and Cisco certified and began my career programming in Applesoft Basic back in 1985.  Have programmed in Cobol, Pascal, RPG, Visual Basic, and so on, NOT to say I'm an expert, far from it, and I am certainly lacking in my PHP skills, my point is, I'm not an amateur or a noob.  Anyway, I wll try the suggestions you made and hopefullt with that and the mental break I took things can get back to working order.  Thanks Mike and Elite for your feedback and Wolverine, I know you do a good job here, I read the forums regularly, thanks for your help.

Regards,
Mark

Being unable to log into your admin backend has very little chance to be related to the JSMF bridge. If you cant uninstall CB normally, simply go to your FTP, remove the com_comprofiler both in the administrator/components and components folder, and remove any database table with "comprofiler" in it. You can also do that with JSMF, but make sure you reinstalled the same JSMF version, or know what you're doing with the files that JSMF modified and replace them with the original backups.

Also, make sure when you go to your site's admin backend, enter your site's url with the "www." prefix (if that's what you specify as your live site in your config, or vice versa).

If you still cant enter the backend, download the full installation copy of the joomla version you're using, unzip it into a folder, and overwrite the folder administrator/includes of your site with the one you downloaded, together with index.php and index2.php.

If all fails, then i guess the simplest way is to restart everything, but theelite is correct in pointing out that SMF is by far the best forum (it is almost as capable as vbulletin, and it's free), and that the bridge here at joomlahacks is the best bridge for joomla and smf. In 90% of the cases whereby things dont work, the software is rarely the problem. The user is ;) So being a tad bit polite when requesting help from an open community help, especially when the problem seems only to happen to you. That usually point to the user at fault.

Rgds, Mike


Title: Re: CB Plugins for SMF (v2.1)
Post by: asteroidjay on November 25, 2006, 10:37:25 AM
Is the Postition category on SMFinfo and SMFprofile supposed to show membergroups? Because it doesn't show up for anyone but the admin.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 09:25:42 AM
Hello i installed the component and modules without problems for
joomla 1.0.11 + SMF 1.1 RC3 + CB 1.0 RC2
But i have 3 problems with the plugins.

1.
plugin_smfForumPosts - when u hide/show a post item content.(Double slashes)
Code:
http://xxx.com/bbs/Smileys//cry.gif

2.
plugin_smfProfile has also a broken avatar link -a quick fix inside
/components/com_comprofiler/plugin/user/plug_smfprofile/smf_profile.php on line 204
 
Code:
$thumb_path = JPATH_BASE . '/images/comprofiler/tn' . $file;
TO
Code:
$thumb_path = JPATH_BASE . '/images/comprofiler/' . $file;
ALSO
Code:
$av_url = $mosConfig_live_site . '/images/comprofiler/tn' . $member['avatar'];
TO
Code:
$av_url = $mosConfig_live_site . '/images/comprofiler/' . $member['avatar'];
3.
I can access the modify Forum profil form, but when i submit changes i get a
Quote
The page you are trying to access does not exist.
Any ideas?


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 26, 2006, 11:01:41 AM
2.
plugin_smfProfile has also a broken avatar link -a quick fix inside
/components/com_comprofiler/plugin/user/plug_smfprofile/smf_profile.php on line 204
 
Code:
$thumb_path = JPATH_BASE . '/images/comprofiler/tn' . $file;
TO
Code:
$thumb_path = JPATH_BASE . '/images/comprofiler/' . $file;
ALSO
Code:
$av_url = $mosConfig_live_site . '/images/comprofiler/tn' . $member['avatar'];
TO
Code:
$av_url = $mosConfig_live_site . '/images/comprofiler/' . $member['avatar'];
the above original codes are actually correct. the "tn" you see is the thumbnail of the avatar. check your images folder if the thumbnails actually exist. they have the same filenames as their original-sized avatars, just with a "tn" in front.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 12:42:35 PM
Thx, i changed it back ...


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 01:31:00 PM
3.
I can access the modify Forum profil form, but when i submit changes i get a
Code:
The page you are trying to access does not exist.

The link url in the address browser status bar shows something like this:
http://xxx.com/index.php?index.php?option=com_smf&Itemid=99&action=profile2

When i fix this to
http://xxx.com/index.php?option=com_smf&Itemid=99&action=profile2

i get:" This profil dioes not exist".


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on November 26, 2006, 02:07:35 PM
open up your joomla's configuration.php and look for $mosConfig_live_site. it should contain a value similar to http://www.domain.com, with the www and without the index.php


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 02:35:22 PM
open up your joomla's configuration.php and look for $mosConfig_live_site. it should contain a value similar to http://www.domain.com, with the www and without the index.php
No it doesn't contain an index.php - the live_site setting.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 26, 2006, 04:49:38 PM
could be your SMF forum url, what is it set to?


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 05:14:36 PM
could be your SMF forum url, what is it set to?
Hello,
it's set correctly http://domain/forum

Also i thought u on this from reading this reply.
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,2554.msg12641#msg12641

And i checked the Bridge Guide from settings, beside the modify profile and account all other things seem to work.
Disabled htaccess didnt solved it either.




Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on November 26, 2006, 05:44:43 PM
the urls are cached, so after you make a change make sure to click save in the JSMF config to purge the cache.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 05:58:04 PM
Deleted cache and saved again checked with 3 diffrent browsers.
Still same error.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Cornickle on November 26, 2006, 08:38:27 PM
Maybe this helps i found a working link.

current link(non working):
http://xxx.com/index.php?index.php?option=com_smf&Itemid=99&action=profile2

working link:
http://xxx.com/forum/index.php?action=profile;u=20;sa=forumProfile

A fast fix is:
Creating a menu wrapper item eg. Profile with: http://xxx.com/forum/index.php?action=profile

I add this on the bottom of smf_profile.html.php
Code:
  <b><a class="cb_plug_smfprofile" href="<?php echo $jsmf->fixLink('index.php?option=com_wrapper&Itemid=99;u='.$user->smf_id.';sa=forumProfile');?>" title="<?php echo $txt['profileEdit'];?>" target="_blank"><?php echo $txt['profileEdit'];?></a></b>&nbsp;::&nbsp;
                         


Title: Re: CB Plugins for SMF (v2.1)
Post by: peter mee on December 04, 2006, 04:40:36 PM
I have exactly the same issue as Cornickle.

Cornickle: where is smf_profile.html.php?
I'd like to try your fix.

Also, is it normal for Modify Profile and Account Related Settings from CB to open in a new window? Where could this behavious be changed??

Peter


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 06, 2006, 06:59:34 PM
hi people :)

i have:

SMF 1.1
CB 1.0.1
JSMF 2.0 RC3
Latest CB plugins
CBAuthorBot 1.0

i have the author bot that displays the username in "Written by johndoe" as a link to its profile. It has allways worked, but i just decided to use an Alias instead of the username.

When i click on that alias link(which should take me to the uprofile of the user that submitted the article) i get the error that you can see in the image i attach.

Any ideas?

Cheers,
NiCo



Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on December 06, 2006, 08:57:22 PM
CB is sending the alias as the username and we cannot get the SMF user id if we don't have the real username.  I would avoid using aliases.


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 07, 2006, 12:57:51 AM
unfortunately for me :-(

The alias is something i need. I have several users/investigators that form a group/institution. Each of them will publish articles in the frontpage, but the institution name has to be shown instead of each of their user names :-(

iŽll see how i manage.

Thanks,
Nico(


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on December 07, 2006, 10:53:57 AM
Thats the difficult thing with two systems and two separate ids.  The only unifying field is the username. 


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 07, 2006, 05:23:41 PM
however, the link of the Alias still has the joomla user id in it. I mean, the URL that it points to is the same as if an Alias is not used and the username is is shown instead.

i donŽt understand then what happens to the smf_info plugin that it gets confused. The Alias is only set in the Joomla jos_content for that specific content item, not for the user, so it shouldnŽt affect the plugin.

excuse me for insisting, but i want to understand it, i am a bit confused.
Thanks,
NiCo



Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on December 07, 2006, 06:57:56 PM
read again what I said.  SMF db knows nothing about a joomla user id.  Joomla knows nothing about the SMF user id.  They are not the same.  The only thing that is the same is the username.  And in this case, CB is sending the alias as the username.  That is why the smf profile plugin cannot find the smf information because there is no such username.


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 09, 2006, 08:02:12 PM
Good news  ;D

i just finished updating to CB 1.0.2 and i also updated to latest version of cb_authorbot (1.02) and the magic happens. Now clicking on the Alias link in the "Written by...." below the content title, shows the correct profile  :)

Cheers,
NiCo


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on December 09, 2006, 10:30:07 PM
Good news  ;D

i just finished updating to CB 1.0.2 and i also updated to latest version of cb_authorbot (1.02) and the magic happens. Now clicking on the Alias link in the "Written by...." below the content title, shows the correct profile  :)

Cheers,
NiCo
Just a heads-up since you're using the CB authorbot. There's a hack on the authorbot over at joomlapolis that adds the author's avatar thumbnail beside the author's name on the content. Cool feature, thought you'd like that :)

Rgds, Mike


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 09, 2006, 10:34:54 PM
i am planning on starting my site online without the avatars for users, and once the community grows a little bit i will enable that option. When i do that, iŽll definetely be interested in that cb_authorbot hack you mentioned.

thanks for pointing that out ;-)
NiCo


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 10, 2006, 03:21:45 PM
I will take a look at what he did and most like roll it into the core plugin if he has no objections.

i see that in the smf_posts plugin still any user can see what topics and forums are other users subscribed to. No update on this?  ???

Cheers,
NiCo


Title: Re: CB Plugins for SMF (v2.1)
Post by: MetalHellsAngel on December 18, 2006, 11:25:16 PM
Anyone ever get a fix on this

Quote
The page you are trying to access does not exist

I have the same issue


Title: Re: CB Plugins for SMF (v2.1)
Post by: MetalHellsAngel on December 19, 2006, 12:19:44 AM
Nevermind I fixed it by uninstalling and reinstalling it


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 22, 2006, 10:39:47 AM
Replace your comprofiler/plugin/user/plug_smfposts/smf_posts.php with this uploaded file.

Note: only super admin and owner can see subscribed topics/boards.

i have tried the modification in the latest version of the plugin but there is a lot of modified code now...it looks a lot different(i guess improved by Wolverine)

i guessed the piece of code where i could try the same thing and modified it manually:

Code:
if ($my->id == $user->id || $my->usertype == "Super Administrator") {
        SMFPosts_HTML::displayTopicNotifications();
        SMFPosts_HTML::displayBoardNotifications();
        }

But it just hides the notifications for everybody. What am i missing?

Thanks anybody for any advice,
NiCo


Title: Re: CB Plugins for SMF (v2.1)
Post by: chrissie85 on December 22, 2006, 06:41:23 PM
Nevermind I fixed it by uninstalling and reinstalling it

Hello I was wondering if there is an fix for the double index.php?


Title: Re: CB Plugins for SMF (v2.1)
Post by: p9939068 on December 23, 2006, 12:23:33 AM
i have tried the modification in the latest version of the plugin but there is a lot of modified code now...it looks a lot different(i guess improved by Wolverine)

i guessed the piece of code where i could try the same thing and modified it manually:

Code:
if ($my->id == $user->id || $my->usertype == "Super Administrator") {
        SMFPosts_HTML::displayTopicNotifications();
        SMFPosts_HTML::displayBoardNotifications();
        }

But it just hides the notifications for everybody. What am i missing?

Thanks anybody for any advice,
NiCo

You did not call $my as a global variable. add $my in the global line above.
Code:
global $my;


Title: Re: CB Plugins for SMF (v2.1)
Post by: ivytony on December 23, 2006, 12:48:12 AM
If I have installed the plugins in the package of JSMF 2.0 RC3, do I still need to 'upgrade' to the plugins attached to the first post in this thread??

I know this kind of sounds st$p$d, but I saw the version (2.1) of the plugins in the first post looks higher than those in the JSMF 2.0 RC3 package. In addition, JSMF 2.0 rc3 was released later than the first post. right???

thanks


Title: Re: CB Plugins for SMF (v2.1)
Post by: GlingGlo on December 23, 2006, 10:32:11 AM
You did not call $my as a global variable. add $my in the global line above.
Code:
global $my;

Nice!!!
 ;D


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on December 24, 2006, 12:41:19 PM
i have tried the modification in the latest version of the plugin but there is a lot of modified code now...it looks a lot different(i guess improved by Wolverine)

i guessed the piece of code where i could try the same thing and modified it manually:

Code:
if ($my->id == $user->id || $my->usertype == "Super Administrator") {
        SMFPosts_HTML::displayTopicNotifications();
        SMFPosts_HTML::displayBoardNotifications();
        }

But it just hides the notifications for everybody. What am i missing?

Thanks anybody for any advice,
NiCo

Here is what I came up with and will be in the next version

Code:
        if (strcasecmp($user_info['username'], $user->username) == 0 ||
            strstr($my->usertype, 'Administrator') !== false || $user_info['is_admin']) {
            SMFPosts_HTML::displayTopicNotifications();
            SMFPosts_HTML::displayBoardNotifications();
        }


Title: Re: CB Plugins for SMF (v2.1)
Post by: peter mee on January 03, 2007, 11:24:25 AM
Maybe this helps i found a working link.

current link(non working):
http://xxx.com/index.php?index.php?option=com_smf&Itemid=99&action=profile2

working link:
http://xxx.com/forum/index.php?action=profile;u=20;sa=forumProfile

A fast fix is:
Creating a menu wrapper item eg. Profile with: http://xxx.com/forum/index.php?action=profile

I add this on the bottom of smf_profile.html.php
Code:
  <b><a class="cb_plug_smfprofile" href="<?php echo $jsmf->fixLink('index.php?option=com_wrapper&Itemid=99;u='.$user->smf_id.';sa=forumProfile');?>" title="<?php echo $txt['profileEdit'];?>" target="_blank"><?php echo $txt['profileEdit'];?></a></b>&nbsp;::&nbsp;
                         

For the record, I found smf_profile.html/php at the following location;

components/com_comprofiler/plugin/user/plug_smfprofile/

However, the above fix does not work for me. It produces the Joomla homepage under a 'wrapper' banner. Maybe this is because I have SMF wrapped in the first place??

Any thoughts on how to resolve the issue raised by Cornickle of the failure to save user settings acess through Cb 'modify profile' link????

(HAVE INSTALLED SMF_PROFILE 2.1.1 TO NO AVAIL)

Peter


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on January 03, 2007, 12:13:15 PM
For the record, I found smf_profile.html/php at the following location;

components/com_comprofiler/plugin/user/plug_smfprofile/

However, the above fix does not work for me. It produces the Joomla homepage under a 'wrapper' banner. Maybe this is because I have SMF wrapped in the first place??

Any thoughts on how to resolve the issue raised by Cornickle of the failure to save user settings acess through Cb 'modify profile' link????

(HAVE INSTALLED SMF_PROFILE 2.1.1 TO NO AVAIL)

Peter
are you running JSMF 2.0 final?  I believe I fixed the inital problem cornickle mentioned in 2.0 final.


Title: Re: CB Plugins for SMF (v2.1)
Post by: peter mee on January 03, 2007, 02:18:52 PM
are you running JSMF 2.0 final?  I believe I fixed the inital problem cornickle mentioned in 2.0 final.
I was not (was at RC01). I have now uninstalled all plugs/mods and JSMF itself, reinstalled everything from 2.0Final package and re-configured everything.

Now, when I hit 'Change Profile' in SMF, (having navigated there from 'Modify Profile' link in CB, I get a message similar to the following (excuse caps);

DOWNLOAD OF AVATAR FROM URL PROHIBITED::
HTTP://WWW.MYDOMAIN.COM/IMAGES/COMPROFILER/TN63_45322371572F2.JPG

FROM:/HOME/MYACCOUNT/PUBLIC_HTML/COMPONENTS/COM_SMF/SMF.CLASS.PHP || INTEGRATECHANGEMEMBERDATA || 1332

Thoughts appreciated.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on January 03, 2007, 02:26:43 PM
your server has allow_url_fopen disabled in your php.ini which limits the avatar synchronization severly.

edit:  but I see the problem.  Due to the way SMF handles avatars I either needed to copy the file to an smf directory, create it as an smf attachment, name it according to SMF attachments naming, and update the smf table....

...or simply provide a url to the image.  I obviously chose the later.  When I get some time I will set this up so that it does the former method if allow_url_fopen is disabled. 


Title: Re: CB Plugins for SMF (v2.1)
Post by: peter mee on January 03, 2007, 04:33:11 PM
your server has allow_url_fopen disabled in your php.ini which limits the avatar synchronization severly.

edit:  but I see the problem.  Due to the way SMF handles avatars I either needed to copy the file to an smf directory, create it as an smf attachment, name it according to SMF attachments naming, and update the smf table....

...or simply provide a url to the image.  I obviously chose the later.  When I get some time I will set this up so that it does the former method if allow_url_fopen is disabled. 

Thanks for the usual rapid response. I don't have access to my php.ini but I'll try setting allow_url_fopen in .htaccess to see if that helps...


Title: Re: CB Plugins for SMF (v2.1)
Post by: fabs on February 13, 2007, 12:36:37 PM
Hi Wolverine! Have you made any changes in SMF 2.0.2 that would require new plugins? I have Joomla 1.0.11 and the 2.0.2 bridge with cb connection plugin and cb 1.0.2 installed.

I installed all 4 available cb profile plugins to check them out but only the smf profile and posts plugin create a tab. the info and signature plugin install but don't seem to do anything in the cb profile... no tabs no editing possibilities in cb profile-nothing...
any idea?

moreover:
it would be great to have a plugin to change the smf location, MSN,ICQ and website information through cb... or make a plugin to sync those fields if they already exist in cb profile. ask mr geefland from CBconnector!! he has the profiles more synced automatically on editing in one of the two systems- forum or cb.

---------------------
edit:
I have started a new thread for this feature request here:
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,3368.0 (http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,3368.0)
moreover I have requested geeffland from Cbconnector to join in as the CBconnector 2.0 alpha seems to have that ability.
A comparison of CBconnector 2.0 alpha and Joomlahacks SMF bridge can be found here:
http://cbconnector.com/forum/viewtopic.php?t=49 (http://cbconnector.com/forum/viewtopic.php?t=49)


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on February 14, 2007, 12:59:28 PM
CB plugin for JSMF 2.0.3.  You should update to that version.  It prevents a user from actually being able to update their username.


Title: Re: CB Plugins for SMF (v2.1)
Post by: Jason on February 14, 2007, 11:57:49 PM
Can someone help with the following error upon deleting a user from the CB user manager:

Fatal error: Call to undefined function: cleardirectory() in /home/heartwis/public_html/components/com_comprofiler/plugin/user/plug_cbprofilegallery/cb.profilegallery.php on line 1574

I understand the call to clear the directory upon deleting a user, but why the error?

I am running:

Joomla         1.0.12
SMF            1.1.1
CB             1.0.2
JSMF Bridge    2.0.2
smf_cb_plugin  2.0.3
smf_profile    2.1

I have also discovered one other small problem that I know is simple. What directory does CB upload avatar images to? I am getting the error: Error occurred during the moving of the uploaded file.

I assume I just need to chmod the correct directory.


Title: Re: CB Plugins for SMF (v2.1)
Post by: -Wolverine on February 18, 2007, 09:48:48 AM
images/comprofiler/ is the directory.... I'd check with the author of the cb profile gallery component.  Or is that a core CB plugin?


Title: Re: CB Plugins for SMF (v2.1)
Post by: Alexander Van Parys Piergili on February 18, 2007, 04:03:39 PM
Hello,

What should I use to show a tab on the CB Profile with each members forum posts? (I mean in each member profile show its posts).

Thanks!

Regards,

Alex!


Title: Re: CB Plugins for SMF (v2.1)
Post by: peter mee on February 18, 2007, 04:14:03 PM
Hello,

What should I use to show a tab on the CB Profile with each members forum posts? (I mean in each member profile show its posts).

Thanks!

Regards,

Alex!

smf_posts cb plug in should do what you need.

Peter


Title: Re: CB Plugins for SMF (v2.1)
Post by: tadej on July 11, 2008, 02:22:51 PM
Replace your comprofiler/plugin/user/plug_smfposts/smf_posts.php with this uploaded file.

Note: only super admin and owner can see subscribed topics/boards.

This doesnt work form me, I get error when I upload smf_posts.php: Fatal error: getSMFPostsTab::require() [function.require]: Failed opening required 'cbsmf-sef.php' (include_path='/domains/next-level.si/public_html/administrator/components/com_smf/includes:.:/usr/local/lib/php')

Any idea? Where to get that file?

thx and bye


Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com