Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter oelita

    (@oelita)

    Bonjour,

    Merci pour l’intervention, et pour l’info !

    Bonne journée
    Sylvie

    Thread Starter oelita

    (@oelita)

    Hi, thanks for this answer.

    I have to check back the client Ingenico config, that was made more than 1 year ago, following your manual.

    I think this a specific API user, yes. Im’ not sure about your ‘Direct HTTP server-to-server transaction feedback’ setting.

    Thread Starter oelita

    (@oelita)

    I understood something :

    It seems that our problems occur when we are not connected : no user connected, or client user. And it works OK when we are connected as an admin.

    In one browser I was connected as admin, not connected on the other one.

    I need to find out what capability is needed to allow the Alma widget to display informations. We use Advanced Access Manager (alias AAM) on this site.

    Thread Starter oelita

    (@oelita)

    In the debug logs, which are activated, I can see a fatal error that seems unrelated to me, but who knows :

    CRITICAL Uncaught Error: Call to a member function get_billing_first_name() on null in /www/xxxxx/public/wp-content/plugins/alma-woocommerce-gateway/includes/models/class-alma-wc-model-customer.php:133

    Thread Starter oelita

    (@oelita)

    Good to know, thanks !

    Thread Starter oelita

    (@oelita)

    Hello,

    So thanks ! That is why the invoice PDF was created, sent, but then it was hidden from the list of orders, or the order detail (as the invoice document existed at that time) !

    But sadly, even when I changed my code, it remained the exact same problem.

    I added some debug logging, and found out that, as I was doing

    $order->add_meta_data( 'wpcf-payeur', $payeur, TRUE );	
    $order->update_status( 'completed', 'Commande importée', TRUE); 
    $order->save();

    the invoice creation was called in the save function BEFORE the meta_data was saved.

    So, I changed my code to :

    $order->add_meta_data( 'wpcf-payeur', $payeur, TRUE );	
    $order->save();
    $order->update_status( 'completed', 'Commande importée', TRUE); 
    $order->save();

    and then, everything is fine !

    Thanks
    Sylvie

    Thread Starter oelita

    (@oelita)

    Bonjour,

    Du coup, j’ai demandé à ma cliente (je suis freelance et je construis la marketplace pour une cliente) de tester le cas multi-vendeur elle aussi, et elle tombe sur une impossibilité de payer :
    “Votre paiement est refusé” en rouge, suivi par un autre panneau rouge :
    “Abandon de la transaction pour problème technique”

    Amin, c’est aussi ?a que vous rencontrez, en disant que le transfert est NOK, ou le paiement passe, pour vous ?

    Bonne journée
    Sylvie

    Thread Starter oelita

    (@oelita)

    function pg_get_forum_freshness_link ($anchor, $forum_id) {
    	$anchor = pg_get_forum_freshness_link_anchor($forum_id) ;
    
    function rpg_get_forum_last_active_id ($active_id, $forum_id) {
    	$forum_id = bbp_get_forum_id( $forum_id );
    	$sub_forums = private_groups_get_permitted_subforums($forum_id) ;
    	$active_id = 0;
    	if ( !empty( $sub_forums ) ) {
    		$show = array();
    		//find the latest permissible 
    		foreach ( $sub_forums as $sub_forum ) {
    			$sub_forum_id =  $sub_forum->ID ;
    			$active_id = get_post_meta( $sub_forum_id , '_bbp_last_active_id', true );
    			$last_active = get_post_meta( $sub_forum_id, '_bbp_last_active_time', true );
    			if ( empty( $active_id ) ) { // not replies, maybe topics ?
    				$active_id = bbp_get_forum_last_topic_id( $sub_forum_id );
    				if ( !empty( $active_id ) ) {
    					$last_active = bbp_get_topic_last_active_time( $active_id );
    				}
    			}
    			if ( !empty( $active_id ) ) {
    				$curdate = strtotime($last_active);
    				$show[$curdate] = $active_id ;
    			}
    		}
    		$mostRecent= 0;
    		foreach($show as $date=>$value){
    			if ($date > $mostRecent) {
    				 $mostRecent = $date;
    			}
    		}
    		if ($mostRecent != 0) {
    			$active_id = $show[$mostRecent] ;
    		} else {
    			$active_id = 0;
    		}
    	}
    	return apply_filters( 'pg_get_forum_last_active_id', $active_id, $forum_id );
    }
    function pg_get_forum_freshness_link_anchor( $forum_id = 0 ) {
    	global $rpg_settingsf ;
    		$forum_id  = bbp_get_forum_id( $forum_id );
    		$active_id = bbp_get_forum_last_active_id( $forum_id ); // last repply
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_reply_id( $forum_id );
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_topic_id( $forum_id );
    		if ( !empty( $active_id ) ) {
    			//then reset forum_id to the forum of the active topic in case it is a sub forum
    			$forum_id = private_groups_get_forum_id_from_post_id($active_id) ;
    			$link_url  = $title = '';
    			if ( bbp_is_topic( $active_id ) ) {
    				$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    				$title    = bbp_get_forum_last_topic_title( $forum_id );
    			} elseif ( bbp_is_reply( $active_id ) ) {
    				$link_url = bbp_get_forum_last_reply_url( $forum_id );
    				$title    = bbp_get_forum_last_reply_title( $forum_id );
    			}
    			$time_since = bbp_get_forum_last_active_time( $forum_id );
    			if ( !empty( $time_since ) && !empty( $link_url ) ) {
    				//test if user can see this post, and post link if they can
    				$user_id = wp_get_current_user()->ID;
    				//now we can check if the user can view this, and if it's not private
    				if (private_groups_can_user_view_post($user_id,$active_id) &&  !bbp_is_forum_private($active_id)) {
    					$anchor ['link_url'] = $link_url ;
    					$anchor ['title'] = $title;
    					$anchor ['display'] = $time_since;
    				}
    				//if it is private, then check user can view
    				elseif (private_groups_can_user_view_post($user_id,$active_id) && 	bbp_is_forum_private($active_id) && current_user_can( 'read_private_forums' ) ) {
    					$anchor ['link_url'] = $link_url ;
    					$anchor ['title'] = $title;
    					$anchor ['display'] = $time_since;
    				}	
    				//else we need to work out what to show so 
    				//else if visibility is set...
    				elseif (!empty ($rpg_settingsf['set_forum_visibility'])) {
    					//so we need to set up a $link that will determine where they go, and change the date to a freshness message if set
    					//so set up for noite logged in and logged in
    					if (!is_user_logged_in()) {
    						if($rpg_settingsf['redirect_page2']) {
    							$link_url=$rpg_settingsf['redirect_page2'] ;
    						}	
    						else {		
    							$link_url="/wp-login";
    						}
    					}
    					//so if logged in, 
    					else {
    						if($rpg_settingsf['redirect_page1']) {
    							$link_url=$rpg_settingsf['redirect_page1'] ;
    						}	else {
    							$link_url='/404';
    						}
    					}
    					//now see if there is a freshness message
    					if (!empty ($rpg_settingsf['set_freshness_message']) ) {
    						$title=$rpg_settingsf['freshness_message'] ;
    					}
    					else {
    						$title = esc_html( $time_since ) ;
    					}
    					//so we have a link and a title, so create the anchor
    					$anchor ['link_url'] = $link_url ;
    					$anchor ['title'] = $title;
    					$anchor ['display'] = $title;
    				}
    				else {
    					//visibility is not set, and we have no topics to show the user so
    					$anchor ['title'] = 'no_topics';
    				}
    			}	else {
    				// we have no topics, or something else has gone wrong !
    				$anchor ['title'] = 'no_topics';
    			}
    		}	else {
    			// we have no topics, or something else has gone wrong !
    			$anchor ['title'] = 'no_topics';
    		}
    	return $anchor;
    }
    Thread Starter oelita

    (@oelita)

    The wrong replies count is my code fault (call to bbp_forum_post_count instead of bbp_forum_reply_count).

    The wrong freshness in my parent forum is due to the fact that the freshest message is a subforum topic and not a subforum reply, there is correction to make in your code.
    I have made some correction in rpg_get_forum_last_active_id, and it is now ok for me, would you want to have my code to look at it ?

    Thread Starter oelita

    (@oelita)

    and the replies count is weird, too (here is the forum and all its 3 subforums):
    forum and 3 subforums

    • This reply was modified 8 years, 1 month ago by oelita.
    Thread Starter oelita

    (@oelita)

    Thanks for reacting.
    But it is not ok, sorry.

    – You miss to send the new $forum_id parameter to your function pg_get_forum_freshness_link_anchor, so I corrected this before my subsequent testing

    – I don’t get the ‘no topics’ message when there are no topics in the forum (your code seems weird to me as you overwrite your $active_id without testing it first ?)

    – There is a wrong freshness on my parent forum, which is one of my subforums freshness, though I have another subforum with a fresher reply. As a hint, I’m in group1 and have access to this forum 1 and all subforums. The subforum which gets promoted as the freshest is a read-private-forum for group 2, while all others subforums are invisible to group2. (but I don’t care, cause I’m in group 1 so I can see them all)

    Does it help ?

    Problem solved with the new 1.1.3 version, thanks.

    There is no probleme with the visual editor, only with the form you generate in my page, to subscribe.

    I quote the former message from haleinad :

    “first i insert the form inside my page, then i put my email address, but when i click on “subscribe” doesn’t appear the message “You’ve successfully subscribed…..” but only this code: “YTo0OntzOjk6IndpZGdldF9pZCI7czoyMDoid3lzaWphLW5sLTEz etc….”

    I have the same problem. And as the solution was “conflict with different plug-in!”, I’m looking for that.

    I’m creating a support ticket, anyway ??

    Hello,
    I’ve got the same probleme with the new “newsletter” page I just created with your form inside. A token is displayed when sending an e-mail to subscribe.
    The site is private so I can’t give you the url, but I can see that the following plugin javascripts are on that page : contact form 7, and wp-postratings.
    Thanks in advance for help

    oelita

    (@oelita)

Viewing 15 replies - 1 through 15 (of 18 total)