2nd question. In which MySQL table is de media credit info stored? Can it be exported? Currently I’m building a new website, I copied the images, but I want to keep also the meta of the images.
]]>I’ve registered a custom hook in my child theme using the following code:
function __construct( $hook_prefs, $type = 'mycred_default' ) {
parent::__construct( array(
'id' => 'bugtracker_bug_added',
'defaults' => array(
'creds' => 1,
'log' => '%plural% for submitting a BugTracker bug'
)
), $hook_prefs, $type );
}
/**
* Hook into WordPress
*/
public function run() {
// Since we are running a single instance, we do not need to check
// if points are set to zero (disable). myCRED will check if this
// hook has been enabled before calling this method so no need to check
// that either.
add_action( 'admin_post_nopriv', array( $this, 'adminpost_ping' ) );
add_action( 'admin_post', array( $this, 'adminpost_ping' ) );
}
/**
* Check if this is a request from the BugTracker to give points
*/
public function adminpost_ping( $user_id ) {
$this->core->add_creds(
'bugtracker_ping',
2,
$this->prefs['creds'],
$this->prefs['log'],
'',
'',
$this->mycred_type
);
$this->core->update_users_balance( 2, 5 );
}
}
I want the user with User ID 2 to receive points each time a GET request is sent to the URL I listed above. However, currently the user receives no points when the URL is pinged. How should I go about this differently?
Thanks so much!
P.S. I excluded pasting my preferences()
and sanitise_preferences()
functions here to keep from bloating the post, but they are written into the custom class as well.
i am using Virtue and i am very glad of this theme. I am thinking about buing version pro.
I would like to ask you how to create direct link from portfolio item to open external site?
So instead of opening portfolio site i want to go to external site, for example google.
Maybe some CSS code?
Please help,
Jacek
I would like to create a page(password protected) where the site owner could login to an external service with one click like email/facebook without having to provide login credentials and display that service in a modal box.
Any plugin/service suggestions would be greatly appreciated!
Thank you!
Tony
I’ve attached a link to SUMO.ME explaination. Thank you.
]]>This link is now inoperable. What I need to do now is to have the link “here” (as above) replaced somehow to go to the IFrame widget as below.
<script type=’text/javascript’ src=’https://fineartamerica.com/widgetshoppingcart/widgetscripts.php’></script>
<iframe id=’pixelsshoppingcartiframe’ src=’https://fineartamerica.com/widgetshoppingcart/artwork.html?memberidtype=artistid&memberid=183148&domainid=0&showheader=0&height=600&autoheight=true’ style=’display: inline-block; width: 100%; height: 820px; border: none; overflow: hidden;’></iframe>
Can someone please help me, and tell me how to achieve this.
Many thanks in advance.
Elisabeth
I would like to embed a couple of pages (i.e. tutorials) of my WordPress site in another site using an IFrame.
Is there a way (maybe an attribute that I could pass in the query string of the URL) that would hide header, footer, navbar, etc, providing only the content of the page?
Thank you in advance!
Regards,
Cristian.