News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMFShop - Shop MOD

Started by SMFHacks.com Team, December 27, 2004, 06:46:17 AM

Previous topic - Next topic

Koda

Hello, I am looking for a few custom items for this mod (or another free mod that can do this).

The items are:

Bold new topic
Italicize new topic
Underline new topic
Color/Glow new topic

-----

Bold name
Italicice name
Underline name
Color/Glow name

------

Am more looking for the item to modify new topics.  I did find an old mod that can make names glow, and an item to work with this mod, but I believe the mod is for smf 1.0 not 2.0.  http://smfshop.com/forum/items/some-name-alteration-items/

Thank you!

vbgamer45

Attached display name css for SMF 1.1.X


Attached SMF Pets SMF 1.1.X
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

dirtfox

Not Displaying Credits on Profile.

I gave myself credits, in the system I do have credits, but I just don't know the Prefix and Suffix to show the amount on profile.
Please help?


Gwenwyfar

Prefix and suffix is your custom name for the credits. Like for example you could add a prefix $ and then it would all be "$ value". Or $ prefix with a "forum gold" suffix would show like "$345 forum gold". Just put whatever you want in it.

dirtfox

Quote from: Fortytwo on September 24, 2015, 06:58:31 PM
Prefix and suffix is your custom name for the credits. Like for example you could add a prefix $ and then it would all be "$ value". Or $ prefix with a "forum gold" suffix would show like "$345 forum gold". Just put whatever you want in it.
Didn't work :(
And I still have 100 credits.
This is what I get now with that...

romanos8

In my forum the mod shows an amount of credit but a different ammount of money vaialble to buy items. I have added to test the ammount of "10 000000" to admins using the membergroup feature of the store mod but my money is still the same. Please check the screens capture






ittiphol

need help

my code works but it's not show avatar

global $smcFunc, $scripturl, $memberContext;

$members_result = $smcFunc['db_query']('', '
   SELECT id_member, real_name, money
   FROM {db_prefix}members
   ORDER BY money DESC
   LIMIT 5');
$members = array();
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
   $members[] = array(
      'name' => $row_members['real_name'],
      'id' => $row_members['id_member'],
      'money' => $row_members['money'],
      'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
      'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
   );
}
$smcFunc['db_free_result']($members_result);

if (empty($members))
   return;

echo '<table>'; 
   
foreach ($members as $money) {
   echo '
   <tr>
      <td style="width: 55px; text-align: center;">

';



if (!empty($context['user']['avatar'])){

echo '



<a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">



<img src="', $context['user']['avatar']['href'],'" style="width: 20px; height: 20px; border: 1px;" alt="' . $txt['forumProfile'] . '" class="picpGal5"/>

</a>';}



else{

                echo ' <a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">

<img src="', $settings['images_url'], '/noavatar.png" alt="' . $txt['forumProfile'] . '"  width="20" height="20" class="picpGal5"/></a>



';

}



echo '


      </td>
      <td>
         ', $money['link'], '<br />
          <span class="smalltext">
            <strong>Money:</strong> ', $money['money'], '
          </span>
      </td>
   </tr>';
}
echo '
</table>';


:'(

margarett

You need to, at least, globalize $context
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ittiphol

Quote from: margarett on November 10, 2015, 05:06:56 AM
You need to, at least, globalize $context

Thank you but i don't understand please fix my code for me  :'(

margarett

global $smcFunc, $scripturl, $memberContext, $context;
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ittiphol

Quote from: ittiphol on November 10, 2015, 03:05:16 AM
need help

my code works but it's not show avatar

global $smcFunc, $scripturl, $memberContext;

$members_result = $smcFunc['db_query']('', '
   SELECT id_member, real_name, money
   FROM {db_prefix}members
   ORDER BY money DESC
   LIMIT 5');
$members = array();
while ($row_members = $smcFunc['db_fetch_assoc']($members_result))
{
   $members[] = array(
      'name' => $row_members['real_name'],
      'id' => $row_members['id_member'],
      'money' => $row_members['money'],
      'href' => $scripturl . '?action=profile;u=' . $row_members['id_member'],
      'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['id_member'] . '">' . $row_members['real_name'] . '</a>'
   );
}
$smcFunc['db_free_result']($members_result);

if (empty($members))
   return;

echo '<table>'; 
   
foreach ($members as $money) {
   echo '
   <tr>
      <td style="width: 55px; text-align: center;">

';



if (!empty($context['user']['avatar'])){

echo '



<a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">



<img src="', $context['user']['avatar']['href'],'" style="width: 20px; height: 20px; border: 1px;" alt="' . $txt['forumProfile'] . '" class="picpGal5"/>

</a>';}



else{

                echo ' <a href="' . $scripturl . '?action=profile;area=forumprofile' . $memID . ';sa=forumProfile" alt="' . $txt['forumProfile'] . '">

<img src="', $settings['images_url'], '/noavatar.png" alt="' . $txt['forumProfile'] . '"  width="20" height="20" class="picpGal5"/></a>



';

}



echo '


      </td>
      <td>
         ', $money['link'], '<br />
          <span class="smalltext">
            <strong>Money:</strong> ', $money['money'], '
          </span>
      </td>
   </tr>';
}
echo '
</table>';


:'(


Avatar it's show same all member


ittiphol


margarett

Yes, that's what your code is doing really...

You are fetching the 5 "richest" :P users but you are only getting their ID, name and money.

$context['user']['avatar'] holds the user data for the user currently viewing SMF, so it has absolutely no relation to the members you fetched before...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ittiphol

Quote from: margarett on November 10, 2015, 08:09:24 AM
Yes, that's what your code is doing really...

You are fetching the 5 "richest" :P users but you are only getting their ID, name and money.

$context['user']['avatar'] holds the user data for the user currently viewing SMF, so it has absolutely no relation to the members you fetched before...

it's not my code i don't know to say (sorry my english a little bit)
you can fix it for me

thank you  :-[

erikgracht

Hi to all,

I have the problem using smf latest version with smfshop 3.3.2 with files above 10 mb.
Files under 10 mb are downloaded in good shape but above it gets 0 bytes.

I read about filedownload2.php, but the site with that files has errors. Can somebody attach this file for me?

Thanks in advance and have a nice day

Erik

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

erikgracht

Thanks vbgamer45 for your reply.

I made the info.php and it said on upload_max_filesize 128M
Same for post_max_size

I can't change php.ini, so i used the .htaccess statements to set it to 550M.

Then i tried it again, with the same result. One file of 82.2Mb and one of 182.8 Mb, both downloaded as 0 bytes.

Other suggestions?

Do i needs the earlier mentioned filedownloadv2.php? I don't see that one in the 3.3.2 smfshop package.

vbgamer45

You should create a phpinfo page and test that it took affect.
Otherwise your host might need to change it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

erikgracht

It is still 128M, but then i must be succesfull with the file of 82.2Mb.??

I shall contact the hosting company.

Thanks for your very quick reply 😌

Regards
Erik

erikgracht

Strange....

with a file from 4.9 Mb it is successful. no errors in log.
When i took a file at 82.2 MB or the on at 182.8 Mb the download looks as starting but gets 0 bytes.
errorlog gives this error:

http://www.xxxxxxx.org/smf/index.php?action=shop;do=inv3&amp;id=78 [nofollow]
2: readfile(0): failed to open stream: No such file or directory
File: /var/www/web/smf/Sources/shop/items/filedownload.php
Line: 75

and line 75:
70:      function onUse()
71:      {
72:         global $context, $smcFunc, $user_info, $item_info, $user;
73:         header('Content-type: application/octet-stream');
74:         header('Content-Disposition: attachment; filename=' . $item_info[1]);
==>75:         readfile($item_info[2]);
76:         
77:            // Get the administrator username
78:            $result = $smcFunc['db_query']('', '

Advertisement: