sanumolu5
Forum Replies Created
-
Hi,
Here is an update. I am successfully able to create a dashboard/rewards page by creating a rewards.php file in themes/<child-theme>/tutor/dashboard. I have the following code in rewards.php file
<?php /** * Frontend Rewards Page * * @package Tutor\Templates * @subpackage Dashboard * @author JKYog <[email protected]> * @link https://themeum.com * @version 1.4.3 */ use TUTOR\Input; // Get the current user ID $user_id = get_current_user_id(); // Get user points $user_points = gamipress_get_user_points( $user_id ); // Get user achievements $user_achievements = gamipress_get_user_achievements( $user_id ); ?> <div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24"><?php esc_html_e( 'Rewards', 'tutor' ); ?></div> <div class="tutor-dashboard-content-inner"> <section class="user-rewards"> <div class="tutor-row tutor-mb-24"> <h2><?php esc_html_e( 'User Points:', 'tutor' ); ?> <?php echo $user_points; ?></h2> </div> <div class="tutor-row tutor-mb-24"> <h3><?php esc_html_e( 'Achievements:', 'tutor' ); ?></h3> <?php echo do_shortcode( '[gamipress_user_achievements user_id="' . $user_id . '"]' ); ?> </div> <div class="tutor-row tutor-mb-24"> <h3><?php esc_html_e( 'Ranks:', 'tutor' ); ?></h3> <?php echo do_shortcode( '[gamipress_user_ranks user_id="' . $user_id . '"]' ); ?> </div> </section> </div>
However this is not processing gamipress shortcode and showing the results. Instead it is showing it as a text as follows:
Rewards User Points: 0 Achievements: [gamipress_user_achievements user_id="491"] Ranks: [gamipress_user_ranks user_id="491"]
Could you please guide where am I doing wrong?
I appreciate your guidance in referring to the section on overriding the tutor template. However, it appears that the provided information doesn’t include a sample code demonstrating how to create a page under the dashboard, similar to pages like “/dashboard/my-profile/” or “/dashboard/wishlist/.”
My objective is to establish a page like “/dashboard/rewards” that displays gamipress user points, achievements, and rank.
While I’ve managed to successfully add a link to the Dashboard navigation by following the steps outlined in https://docs.themeum.com/tutor-lms/developers/editing-tutor-dashboard/, I’m still facing the challenge of creating the “Rewards” page as described above. I would greatly appreciate your guidance in achieving this.
Hi @dioni00
I have given the following in my code
[gamipress_button type="submit" label="LIVE" class="live-class-link" url="' . $class_details['zoom_link'] . '"]
and it correctly generated the following html
<button type="submit" id="" class="gamipress-button live-class-link" form="" name="" value="" data-url="https://jkyog.co/courses" data-post="11041" data-comment="0">LIVE</button>
However, I would like to open the url in a new tab. How can I achieve this?
Thank you for the reply. Could you please provide reference materials for custom development to connect with the Zoom API?
Hello,
Please find the following link to the video :
https://drive.google.com/file/d/1caIj1m5dHR_6Q6rbDZd9cPzkxV0FcmhT/view?usp=sharing
@dioni00 ,
I have puzzles from amuselabs.com and jigsawplanet.com. I have included them in my website using embed code provided for puzzles in their respective websites. Now, I would like to integrate these puzzles with Gamipress. Is it possible to achieve this? Please note that there are no plugins installed in my wordpress site for these puzzles.
Hello @uappsk
I did not understand what you meant by Unfortunately, you are not using our plugin.
I have disabled Lazyload and it actually showed up images. However, this cannot be the solution, because after all we are using SG Optimizer and enabling Lazyload to improve performance of the website. If we have to disable, then it is like compromising on the performance. What would be the use in that case? Isn’t it?
Ok, Thank you.
Thank you very much for your kind offer to help.
Regarding this issue, I may have been mistaken. It might not be a double refresh problem, but rather a situation where the page briefly appears before it is fully loaded. You can verify this by checking the link provided and confirming. https://vidhyar3.sg-host.com/
Is there a way to let the page appear completely only after it is fully loaded?
Yes, it is occurring even after deactivating USP. It could possibly be occurring due to some other issue. Thank you though.
An update. My apologies, I found that this double refresh is happening on all pages, not just on those where User Submitted Posts was used. But this double refresh is happening when the user is not logged in. The issue isn’t occurring after user logged in.
I did some testing and found that this issue of double refresh is occurring only on pages that has User Submitted Posts shortcode, that too only when the user is not logged in. Please take a look at this link
https://vidhyar3.sg-host.com/blog/
I am just unable to find the cause of this issue. Kindly assisst.
Is there any update regarding this issue. It’s been more than a month a support ticket was raised. And until now, there hasn’t been any update on it.
Hi @prashantrai
I am unable to raise a ticket at the link you provided. It is asking for an account to raise a ticket. As I mentioned earlier I do not have WP Forms pro. I am not sure why you are directing me to that link?