Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
Add Topic / Reply no longer work since last update?
Avatar
RyanD90
Guest
Guests
Dec 22, 2014 - 4:58 pm
sp_QuotePost Quote

Hey,

I've been using Simple Press for a while and normally I tweet bug reports to the twitter account, however I'm not sure if this is a bug or not...

The buttons (Add Topic / Reply) were working fine in the last version of Simple:Press but after I updated, I thought everything was working fine but the Add Topic / Reply aren't working.

The theme that I'm using is Thematic with a child theme, it would be nice if anyone could help.

I also have a question about a modification that I am looking to get, I use WishlistMember and I need something made for me to add/move members around based on their subscriptions in WishlistMember. Would I be able to buy that here?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 22, 2014 - 6:04 pm
sp_QuotePost Quote

assuming you are on wp 4.1 and sp 5.5.3 with all sp plugins updated, no known issues like this...

have you cleared you browser cache?  if using the sp combined js cache, might be worth clearing it too on the housekeeping admin panel...

and of course, no wp caching of the forum page...

for more detailed help, please open a topic in the support forum as the pre membership forum is not for support...

as to wishlist, please try reading:  https://simple-press.com/docum.....ip-plugin/

we use simple press with wishlist member here...

Avatar
RyanD90
Guest
Guests
Dec 22, 2014 - 7:32 pm
sp_QuotePost Quote

Hey Mr Papa,

I checked all of those and it seems something was changed in the API or skinning the last two versions of SP, I didn't make our theme for our forum but I managed to make a good enough workaround and just re-coloured one of the default skins and replaced the images.

As for the Wishlist part, you might be interested in the way we're doing it as the feature that I am wanting others may want...

Anyone who signs up to our site is a "subscriber" and they have a "Free Account" to access content separate from our paying members and vice versa, so we're unable to map users based on their role because all of our free and paying members have the "subscriber" role.

We're essentially looking for a feature to move users of specific membership levels to certain groups, in my case I want it so all of our paying members (15 different membership levels) to all be moved to Members Pro, obviously If a member cancels or their subscribtion runs out then I'd want them moved back to Members...

Does that make sense?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 22, 2014 - 10:15 pm
sp_QuotePost Quote

If any updates to custom themes are required, we always document it here:  https://simple-press.com/docum.....n/changes/

we try to minimize, but sometimes wp changes (like jquery ui update this time) and we have to react...

no automatic way since you handcuffed yourself by making all users, regardless wishlist member level, have the same wp role...  wistlist is designed to have levels per wp role...  as are other wp membership plugins...  and it makes it very easy to automatically move sp usergroup based on when wp role changes when membership plugin level changes...

otherwise, we have no way to know anything about membership levels or if they change...  remember, we are a plugin for wp...  so we only know when things happen when wp or plugins fire standard actions and hooks...  there is a role change hook so it alerts plugins to user changes in role/level...

Avatar
RyanD90
Guest
Guests
Dec 23, 2014 - 4:04 am
sp_QuotePost Quote

Could something not fairly easily be done using the following bit of code, obviously a change would need to be made to the "get user id" part so that it cycles through every user in the user database and then setup the if, else part at the start to do certain actions...

Surely it could then be added as a cron job?

// Array of paying levels.
$paid_levels= array(1323183238,1323183239,1323183240);

// Main call..
if (is_paid_member($paid_levels)){
// user is paid continue running your php script
}else{
// User is not paid, redirect to not paid URL
}

// Main function
function is_paid_member($paid_levels){
if(function_exists('WishListMemberAPIRequest')){

// Get user ID
global $current_user;
get_currentuserinfo();
$rm_curr_usr = $current_user->ID;

// Set default
$is_paid_member=FALSE;

// Setup api request to retreive user's levels
$request='/members/'.$rm_curr_usr;
$method='GET';
$data="";
$rm_mem_details = WishListMemberAPIRequest( $request, $method , $data );
//$rm_mem_details = unserialize($rm_mem_details);
$WLM_levels = $rm_mem_details['member'][0]['Levels'];

// Compare users levels to the array of paying levels.
foreach($WLM_levels AS $i => $rm_array_obj) {
$rm_level_array = (array)$rm_array_obj;
if(in_array($rm_level_array['Level_ID'],$paid_levels) ) {
$is_paid_member = TRUE;
break;
}
}

return $is_paid_member;

}else{
// WLM is not active
return FALSE;
}
}

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 23, 2014 - 4:27 am
sp_QuotePost Quote

Why use CRON? Although I am unsure what you intended to do with the result above!

Personally, I am unfamiliar with the WishList API but assuming they fire standard WordPress action hooks - which surely they must do - then your code could certainly and di,ply manipulate Simple:Press memberships when a users WL level changes. Just use the API. isn't that easier?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 23, 2014 - 10:07 am
sp_QuotePost Quote

well certainly you could probably use the wishlist api and/or hooks to accomplish what you want...  but its has not been needed in the past because using a role per level makes everything just happen automatically in the background...

for reference, here is wishlist  api and hooks:

http://codex.wishlistproducts......egory/api/

http://wishlistproducts.com/ap.....uttonooks/

pretty sure you could get what you need...

Avatar
Brad Besner
Member
Free Members
sp_UserOfflineSmall Offline
Dec 23, 2014 - 11:32 am
sp_QuotePost Quote

I'm having the same problem where the REPLY button is no longer working. I am going to look and see if I can find something that's conflicting. 

What were some of the work arounds that other people had? I'm on Wordpress 4.1 and have updated all of my plugins. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 23, 2014 - 11:36 am
sp_QuotePost Quote

mostly been caching issues...  nothing introduced in wp 4.1 or sp 5.5.3 at this point...  occasional odd js conflict with theme or other plugin, but not new to wp 4.1 or sp 5.5.3...  if using our combined js cache, try clearing it on toolbox housekeeping...

check your browser console and see if any errors reported...

Avatar
Brad Besner
Member
Free Members
sp_UserOfflineSmall Offline
Dec 23, 2014 - 11:51 am
sp_QuotePost Quote

That didn't work. I also cleared out all of the browser cache. Both Chrome and Firefox. I'm going to see if there are other calls to jquery that may be conflicting. If there are any other suggestions you may have please let me know. 

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: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590