Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
BuddyPress Plugin Integration Beta
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 8:03 pm

js... you would need to show us what your code looks like...  just pick one example...

phillip... not sure I understand... just use one profile - likely bp since they dont have any integration with SP... ;)   not sure why having two forms would be of value - that sounds more confusing than having a single location...  just point the forum profile to the bp profile and the needed sp forms are added...  then with this plugin, if you enabled the menu items, its only one click, just like leaving the sp profile to get to the forum...

or perhaps I am misunderstanding...

Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 9:29 pm

Well this is the code I have but I can't figure out how I should be adding the user id to sp_PostIndexUserSpecialRank... have tried a bunch of different ways that haven't worked out...

sp_forum_api_support();
global $bp;
$bp->displayed_user->id;
sp_PostIndexUserSpecialRank('showTitle=0');

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 12:55 am

No, you cannot use that function... if you read the codex article on that:  http://codex.simple-press.com/.....ecialrank/

it says it must be used within the topic view loop... ie the looping of forum posts... much like the wp template functions that only function in the loop...

you need to use the more generic, no loop specific function:  sp_UserSpecialRank()...

see: http://codex.simple-press.com/.....ecialrank/

Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 7:37 am

Just sent you the information to log into my site as admin and my FTP information.

Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 10:43 am

yeah still no dice with showing the special rank.... 

sp_forum_api_support();
global $bp;
sp_UserSpecialRank('showTitle=0', $bp->displayed_user->id->rank);
sp_OnlineStatus('', '$bp->displayed_user->id');

The online status shows tho :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 12:25 pm

what is:  $bp->displayed_user->id->rank

does buddypress have a rank??  and per the codex page I gave you, that is not an ID, but the SP ranks...  so

sp_forum_api_support();
global $spThisUser;
sp_UserSpecialRank('', $spThisUser->special_ranks);

you can custom the arguments per the codex page...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 12, 2013 - 2:57 am

@kevin... 

ran through your site for a couple 2 or 3 hours tonight...  very limited amount of data that I can see...  but your issue is very clearly the same as Carlos'... you are getting php out of memory errors... now, I have no clue why at the moment... but its is happening... even with 256M allocated...

no way for me to track what is going on as web user...  really need to get your host involved to see if they can tell which script or query is using up the memory...  it does die in a buddypress routine, but that doesnt really mean anything...

a bit of a head scratcher at the moment since its working well for most folks...

Avatar
Phillip Green
Member
Free Members
sp_UserOfflineSmall Offline
May 14, 2013 - 2:29 pm

Papa,

 

Regarding the profile information.  What I mean is that if you choose to view your forum profile with the standard Simple-Press forum appearance, none of the BP profile data is displayed.  It would be nice to use the BP Profile data inside the Simple-Press profile display instead of leaving the forum to view the BP profile.  I think I'm still being unclear, but I'm trying ;)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 14, 2013 - 3:44 pm

No, you were clear...  I was just making the point that at current time, we chose to combine the buddypress and simple press profile stuff into the buddypress profile...

multiple reasons...  shorter learning curve in writing the plugin.. straight forward to do and not have to learn how to access bp profile data...  along the same lines and a bigger deal is all the buddypress plugins out there that add additional profile fields and tabs...  pulling all that across would be problematic... which plugins to support? and which not to?  would defeat the purpose if we only pulled default bp data across and not all the plugins... much simpler to put our stuff over there...

but the real reason was that the majority of the users we consulted with on buddypress, have the buddpress stuff as the center of their site, not sp...  so it made more sense to focus the profile in the place most folks spend their time... now of course, this wont be true for 100% of the sites using bp and sp, but was a significant majority of those polled... 

and this doesnt mean we cannot consider going the other direction too... but in the initial release, the option will be to combine the profiles on the bp side...

Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
May 15, 2013 - 10:22 am

Mr Papa said
@kevin... 

ran through your site for a couple 2 or 3 hours tonight...  very limited amount of data that I can see...  but your issue is very clearly the same as Carlos'... you are getting php out of memory errors... now, I have no clue why at the moment... but its is happening... even with 256M allocated...

no way for me to track what is going on as web user...  really need to get your host involved to see if they can tell which script or query is using up the memory...  it does die in a buddypress routine, but that doesnt really mean anything...

a bit of a head scratcher at the moment since its working well for most folks...

I talked to media temple and all they said was pretty much what they told me last time which was there must be an error in the plugin script that is using way too much memory. They also said that it would be up to the plugin developer to find the error in the script, not them.

I asked if they could help me find it and they said they couldn't :(

 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625