Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #911679
    Johannes M
    Participant

    dear Theme.co support,
    i hope you can help me.

    url: http://www.itm-worms.de/meinaccount/
    WordPress 4.5.1
    X: Version: 4.4.2

    i have create a new child template to show in my website.
    Target Site : http://www.itm-worms.de/meinaccount/

    template i use from you , view / TEMPLATE-LAYOUT-FULL-WIDTH.PHP
    i want change the content on the site , so i catch the content script.

    this is a snippet of the new code

        <?php x_get_view( 'global', '_content' ); 
    	
    	// CATCH INFORMATION FROM LOGGED IN USER					 		    	
    	global $wpdb;
    	global $mylink;
    
    	$mylink = $wpdb->get_row($wpdb->prepare("SELECT * FROM wp_users WHERE user_login = %s",$current_user->user_login));
    	if ($wpdb->last_error) {
    		  die('error=' . var_dump($wpdb->last_query) . ',' . var_dump($wpdb->error));
    	}
    	if ($mylink == 0){
    		exit("Database error. please try again later!");
    	}
    

    i want catch all fields of $current_user->user_login, but $mylink is 0.
    my wonder is $wpdb->last_error gives no error . but the line $mylink == 0.
    later the vars $current_user->user_login are empty.

    thank you.

    #911683
    Johannes M
    Participant
    This reply has been marked as private.
    #912060
    Rupok
    Member

    Hey there,

    Thanks for writing in! Regretfully, this particular customization is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

  • <script> jQuery(function($){ $("#no-reply-911679 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>