Solved: 1 Year, 11 Months, 2 Weeks ago Likes count on other page
#1
Solved: 1 Year, 11 Months, 2 Weeks ago
I want to show likes count here:
This is on the index page.
[Image: Sl5pteI.png]

But i can't find what $ to put.
Those are fake likes and i want to display the real likes the user has.

This is the line:
What code do i put to replace the "3037" value?
<td class="trow1 no_bottom_borde largetext" width="33%" valign="middle" align="center"><span class="sidebar_likes"><span class="reputation_positive">3037</span></span><br><span class="x-smalltext">Likes</span></td>
Reply
#2
Solved: 1 Year, 11 Months, 2 Weeks ago
You could begin telling us which likes plugin you use, could be definitely helpful.
Reply
#3
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-01, 06:54 PM)Omar G. Wrote: You could begin telling us which likes plugin you use, could be definitely helpful.


I'm using this plugin https://community.mybb.com/thread-169382.html
Reply
#4
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-01, 03:02 PM)AlexKKhalifa Wrote: What code do i put to replace the "3037" value?

{$mybb->user['tyl_unumrcvtyls']}
Reply
#5
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-03, 07:42 AM)Laird Wrote:
(2020-10-01, 03:02 PM)AlexKKhalifa Wrote: What code do i put to replace the "3037" value?

{$mybb->user['tyl_unumrcvtyls']}
Thank you so much it worked!

(2020-10-03, 07:42 AM)Laird Wrote:
(2020-10-01, 03:02 PM)AlexKKhalifa Wrote: What code do i put to replace the "3037" value?

{$mybb->user['tyl_unumrcvtyls']}
Do you know about points from newpoints plugin? From what i know it only appears on the member profile. I want to show on the index page.
Reply
#6
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-03, 03:21 PM)AlexKKhalifa Wrote: Thank you so much it worked!

No probs. Happy to help.

(2020-10-03, 03:21 PM)AlexKKhalifa Wrote: Do you know about points from newpoints plugin? From what i know it only appears on the member profile. I want to show on the index page.

I haven't used the NewPoints plugin before, but I took a look and put this together for you. If there's a better way to achieve this, then hopefully somebody lets us know.

First, save the attached file to your inc/plugins directory. Then, go to Plugins in the ACP and activate it as the "NewPoints on Index" plugin. Then edit your index template and add in your desired location {$newpoints}.


Attached Files
.php   newpointsonindex.php (Size: 986 bytes / Downloads: 23)
Reply
#7
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-03, 04:59 PM)Laird Wrote:
(2020-10-03, 03:21 PM)AlexKKhalifa Wrote: Thank you so much it worked!

No probs. Happy to help.

(2020-10-03, 03:21 PM)AlexKKhalifa Wrote: Do you know about points from newpoints plugin? From what i know it only appears on the member profile. I want to show on the index page.

I haven't used the NewPoints plugin before, but I took a look and put this together for you. If there's a better way to achieve this, then hopefully somebody lets us know.

First, save the attached file to your inc/plugins directory. Then, go to Plugins in the ACP and activate it as the "NewPoints on Index" plugin. Then edit your index template and add in your desired location {$newpoints}.

It didn't work sir, it shows 0 while i have 292k

On Index:

[Image: rS5PuFO.png]

On Member Profile
[Image: mAlqpRL.png]
Reply
#8
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-03, 10:42 PM)AlexKKhalifa Wrote: It didn't work sir, it shows 0 while i have 292k

Apologies, I forgot to declare a global variable ($mybb). Have updated the file in my previous post. Please redownload and retry.
Reply
#9
Solved: 1 Year, 11 Months, 2 Weeks ago
(2020-10-04, 02:11 AM)Laird Wrote:
(2020-10-03, 10:42 PM)AlexKKhalifa Wrote: It didn't work sir, it shows 0 while i have 292k

Apologies, I forgot to declare a global variable ($mybb). Have updated the file in my previous post. Please redownload and retry.

No need to apologize, thank you for your help. Might need it later. Add me on discord AlexKKhalifa#2021

(2020-10-04, 02:11 AM)Laird Wrote:
(2020-10-03, 10:42 PM)AlexKKhalifa Wrote: It didn't work sir, it shows 0 while i have 292k

Apologies, I forgot to declare a global variable ($mybb). Have updated the file in my previous post. Please redownload and retry.
Sorry sir send me another friend request
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)