Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 184
Total: 184

Author Topic: Show credit in profile member  (Read 7260 times)

0 Members and 1 Guest are viewing this topic.

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Show credit in profile member
« on: July 13, 2015, 03:20:08 pm »
I don't see a credit in profile member

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Show credit in profile member
« Reply #1 on: July 13, 2015, 03:31:55 pm »
Credits are not shown in a members profile.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Show credit in profile member
« Reply #2 on: July 13, 2015, 03:50:18 pm »
it's not possible?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Show credit in profile member
« Reply #3 on: July 13, 2015, 04:11:40 pm »
Possible but would need to be hand coded.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Show credit in profile member
« Reply #4 on: July 14, 2015, 04:26:49 am »
ok but i have 13 000 user

i can't serch for a single user.

How do I know the credtis that has a user ? Through phpmyadmi ?

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Show credit in profile member
« Reply #5 on: July 14, 2015, 02:07:10 pm »
ok tell me

write the correct procedure

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Show credit in profile member
« Reply #6 on: July 15, 2015, 12:37:59 pm »
please it's very important

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Show credit in profile member
« Reply #7 on: July 15, 2015, 01:52:21 pm »
You would need to search though phpadmin at the moment by their memberid or username.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Show credit in profile member
« Reply #8 on: July 16, 2015, 03:07:25 am »
I have 14,000 users and 30 moderators. We can not use phpmyadmin. I can use phpmyadmin but only me.

I can give user and password (phpmyadmin) at 30 user.

I see the template ...

are this the code?

<td align="center">', $txt['download_current_credits'],(Downloads_IsUnlimitedCreditsMember() == true ? $txt['downloads_txt_unlimited_credits']  : Downloads_getMembersCredits($user_info['id'])), '</td>


Offline Diego Andrés

  • Member
  • *
  • Posts: 39
    • View Profile
    • SMF Tricks
Re: Show credit in profile member
« Reply #9 on: July 16, 2015, 10:17:42 am »
Just add the code to Load.php and it will become available to use it.
Code: (Find) [Select]
'last_login' => empty($user_settings['last_login']) ? 0 : $user_settings['last_login'],
Code: (Add after) [Select]
'downpro_credits' => empty($user_settings['downpro_credits']) ? 0 : $user_settings['downpro_credits'],
This step you'll have to do it three times
Code: (Find) [Select]
mem.posts, mem.last_login,
Code: (Replace) [Select]
mem.posts, mem.last_login, mem.downpro_credits,
Code: (Find) [Select]
'last_login_timestamp' => empty($profile['last_login']) ? 0 : forum_time(0, $profile['last_login']),
Code: (Add after) [Select]
'downpro_credits' => $profile['downpro_credits'],
And done!

Now you can use it in profile page. (Profile.template.php
e.g.
Code: (Find) [Select]
if (!empty($context['member']['blurb']))
echo '
<dt>', $txt['personal_text'], ': </dt>
<dd>', $context['member']['blurb'], '</dd>';
Code: (Add After) [Select]
echo '
<dt>Credits: </dt>
<dd>', $context['member']['downpro_credits'], '</dd>';

You can show them in posts also, if you want...

Regards  ;)

SMF Tricks - Free & Premium Themes for SMF.

Offline Diego Andrés

  • Member
  • *
  • Posts: 39
    • View Profile
    • SMF Tricks
Re: Show credit in profile member
« Reply #10 on: July 16, 2015, 10:18:44 am »
Also, on credits system page, you have a users list and you can order it by name, credits, etc.

SMF Tricks - Free & Premium Themes for SMF.

Offline pasqualino77

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Show credit in profile member
« Reply #11 on: July 16, 2015, 11:18:54 am »
wow ... beautiful reply :-)

very very good .. thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
6546 Views
Last post July 08, 2013, 10:56:10 pm
by SMFHacks
2 Replies
3822 Views
Last post July 12, 2014, 02:44:10 pm
by Jonas1975
6 Replies
12941 Views
Last post August 18, 2018, 12:03:07 pm
by SMFHacks
3 Replies
2784 Views
Last post October 02, 2018, 11:22:22 am
by SMFHacks
4 Replies
2626 Views
Last post December 29, 2020, 10:37:17 pm
by swayforth

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal