Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 3
New Today: 1
Stats
Total Posts: 42791
Total Topics: 7455
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 75
Total: 75

Author Topic: Show credit in profile member  (Read 5897 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: 16233
    • 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: 16233
    • 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: 16233
    • 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
4991 Views
Last post July 08, 2013, 10:56:10 pm
by SMFHacks
2 Replies
2842 Views
Last post July 12, 2014, 02:44:10 pm
by Jonas1975
6 Replies
3907 Views
Last post August 18, 2018, 12:03:07 pm
by SMFHacks
3 Replies
1650 Views
Last post October 02, 2018, 11:22:22 am
by SMFHacks
4 Replies
1494 Views
Last post December 29, 2020, 10:37:17 pm
by swayforth

+- Recent Topics

prettyurls - TroubleShooting.wiki by thatsjustit
March 24, 2023, 07:56:39 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Bulk File Import by SMFHacks
March 08, 2023, 07:56:23 am

Powered by EzPortal