SMFHacks.com
Downloads System Pro => Support => Topic started by: pasqualino77 on July 13, 2015, 03:20:08 pm
-
I don't see a credit in profile member
-
Credits are not shown in a members profile.
-
it's not possible?
-
Possible but would need to be hand coded.
-
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 ?
-
ok tell me
write the correct procedure
-
please it's very important
-
You would need to search though phpadmin at the moment by their memberid or username.
-
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>
-
Just add the code to Load.php and it will become available to use it.
'last_login' => empty($user_settings['last_login']) ? 0 : $user_settings['last_login'],
'downpro_credits' => empty($user_settings['downpro_credits']) ? 0 : $user_settings['downpro_credits'],
This step you'll have to do it three times
mem.posts, mem.last_login,
mem.posts, mem.last_login, mem.downpro_credits,
'last_login_timestamp' => empty($profile['last_login']) ? 0 : forum_time(0, $profile['last_login']),
'downpro_credits' => $profile['downpro_credits'],
And done!
Now you can use it in profile page. (Profile.template.php
e.g.
if (!empty($context['member']['blurb']))
echo '
<dt>', $txt['personal_text'], ': </dt>
<dd>', $context['member']['blurb'], '</dd>';
echo '
<dt>Credits: </dt>
<dd>', $context['member']['downpro_credits'], '</dd>';
You can show them in posts also, if you want...
Regards ;)
-
Also, on credits system page, you have a users list and you can order it by name, credits, etc.
-
wow ... beautiful reply :-)
very very good .. thanks