Great one and questions.
-
I was studying cubepoint with your blog and found mycred. I think this is really great!! very happy with your plugin.
I have questions.
1. http://mycred.me/support/tutorials/how-to-make-your-custom-hook/
I have tried to make a hook and followed your tutorial.
When I update my account information on “back-end”, it works great!
But it’s not working on “front-end”. I think my theme is based on ajax function.I have found this on frameworks/classes/themex.user.php
This is my theme : http://themextemplates.com/demo/lovestory/
ID: demo
pwd: demopublic static function init() { //refresh module data add_action('wp', array(__CLASS__, 'refresh'), 1); //update user actions add_action('wp', array(__CLASS__, 'updateUser'), 99); add_action('wp_ajax_themex_update_user', array(__CLASS__, 'updateUser')); add_action('wp_ajax_nopriv_themex_update_user', array(__CLASS__, 'updateUser')); add_action('template_redirect', array(__CLASS__, 'activateUser')); //add messages filter add_filter('comments_clauses', array( __CLASS__, 'filterMessages')); //add avatar filter add_filter('get_avatar', array(__CLASS__, 'getAvatar'), 10, 5); //render user profile add_filter('show_user_profile', array(__CLASS__,'renderProfile')); add_filter('edit_user_profile', array(__CLASS__,'renderProfile')); //render user toolbar add_filter('show_admin_bar', array(__CLASS__,'renderToolbar')); //render gifts template add_action('wp_footer', array(__CLASS__,'renderGifts')); //filters user statuses add_action('wp', array(__CLASS__, 'filterStatuses')); }
2. this could be too silly question.
I am trying to put shortcodes in my php file.<?php echo do_shortcode('[mycred_my_rank user_id="1" show_title="1" show_logo="1" first="name"]'); ?>
I want add li or span there to put some classes. how I could make it?
it comes only name, logo and title. I need to put some css style and html codes.and these kinds of shortcodes, how can I make it all php codes? I may need to put codes in php (templates files).
<ul class="my-custom-rank-list"> [mycred_list_ranks wrap=""] <li>%rank_logo% %rank% <div class="req">%min% - %max%</div></li> [/mycred_list_ranks] </ul>
I really like your plugin and thanks for great!! plugin, tutorials.
Thanks,
- The topic ‘Great one and questions.’ is closed to new replies.