SMF Trader System

Started by SMFHacks.com Team, July 12, 2006, 12:35:09 AM

Previous topic - Next topic

evolution25

#380
its a link at bottom you click it goes to another site im trying to change that
and its nothing changing in my custom theme

vbgamer45

If it is copyright link to smfhacks.com needs to remain unless copyright removal is purchased
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

evolution25

so why wouldnt the modifying i did appear in my custom theme

vbgamer45

Can't help you with that unless you get copyright removal if you are trying to remove the link back to smfhacks.com
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

evolution25

im talking about i kept it but i changed name of trade count and stuff but now its not showing in custom them as the new names

scorpion1082

// Show the member's primary group (like 'Administrator') if they have one.
         echo '
                  <li>', $message['member']['group_stars'], '</li>
                  <li>', $message['member']['group'], '</li>';

this is the code found in my theme.  ur mod says its supposed to look like this:

// Show the member's primary group (like 'Administrator') if they have one. if (isset($message['member']['group']) && $message['member']['group'] != '') echo ' <li>', $message['member']['group'], '</li>'; 

this is my using [select] to select the code from the error box that pops up for install in other theme during my applying the package.  the format selects weird.  everything is in a paragraph which apparently, even after switching the original code to ur code, comes up as error.  it cant find it.  i wud try to just copy this:

//Start SMF Trader System //First do the query for the number of ratings global $smcFunc; $result = $smcFunc['db_query']('', " SELECT COUNT(*) AS total,salevalue FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue"); $context['neturalcount'] = 0; $context['pcount'] = 0; $context['ncount'] = 0; while($row = $smcFunc['db_fetch_assoc']($result)) { if ($row['salevalue'] == 0) { $context['pcount'] = $row['total']; } else if ($row['salevalue'] == 2) { $context['ncount'] = $row['total']; } else if ($row['salevalue'] == 1) { $context['neturalcount'] = $row['total']; } } $smcFunc['db_free_result']($result); if ($modSettings['trader_use_pos_neg']) $tradecount = ($context['pcount'] - $context['ncount']); else $tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount']; // Show the trader info echo '<li> <b>' . $txt['smftrader_profile'] . ' </b> (<a href="' . $scripturl . '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount) : $tradecount , '</a>)</li>'; //END SMF Trader System 

after like it says, but its also in paragraph form and im not sure it will work.  how do i make this work?  do u have the codes in proper format so it can?

vbgamer45

I would just add it after

echo '
                  <li>', $message['member']['group_stars'], '</li>
                  <li>', $message['member']['group'], '</li>';


And then it would work for your theme
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

scorpion1082

well, im trying to get the mod to self install and self uninstall so id like to change the original code to what urs expects so that it can find it each time.

Kindred

I will note that something in your editor seems to be removing all carriage returns...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

scorpion1082

can someone post the proper format of those codes i listed?  it seems the author will not, even though it would completely solve the issue.

vbgamer45

I posted it above just add after the code that you had. I can't read the jumbled code that you posted.
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

scorpion1082

this:

// Show the member's primary group (like 'Administrator') if they have one. if (isset($message['member']['group']) && $message['member']['group'] != '') echo ' <li>', $message['member']['group'], '</li>';

and this:

//Start SMF Trader System //First do the query for the number of ratings global $smcFunc; $result = $smcFunc['db_query']('', " SELECT COUNT(*) AS total,salevalue FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue"); $context['neturalcount'] = 0; $context['pcount'] = 0; $context['ncount'] = 0; while($row = $smcFunc['db_fetch_assoc']($result)) { if ($row['salevalue'] == 0) { $context['pcount'] = $row['total']; } else if ($row['salevalue'] == 2) { $context['ncount'] = $row['total']; } else if ($row['salevalue'] == 1) { $context['neturalcount'] = $row['total']; } } $smcFunc['db_free_result']($result); if ($modSettings['trader_use_pos_neg']) $tradecount = ($context['pcount'] - $context['ncount']); else $tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount']; // Show the trader info echo '<li> <b>' . $txt['smftrader_profile'] . ' </b> (<a href="' . $scripturl . '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount) : $tradecount , '</a>)</li>'; //END SMF Trader System

are both from ur mod.  now, what u posted:

Quote from: vbgamer45 on November 03, 2009, 07:16:58 PM
I would just add it after

echo '
                  <li>', $message['member']['group_stars'], '</li>
                  <li>', $message['member']['group'], '</li>';


And then it would work for your theme


see that select code box u used?  thats what i used to get this "jumbled code."  it seems that it wont KEEP the format as ur select code box shows-- the proper spacing, the different lines, etc.  i keep trying to use a handful of your mods man, and i do appreciate ur making them, but i just keep seeing errors come up and believe me, its as frustrating to me as it is to u.  and ur mod is the only select code box that doesnt keep the proper spacing and such.  just hoping u can copy/paste the proper format of these two code lines into a reply here or a pm or something so i can just copy/paste the text, instead of using the select code box.  this way, i can replace the code in my theme with the code your mod thinks is going to be there so it can self install and uninstall.

Kindred

the loss of format is due to your editor...   whatever you are using is causing the code jumble, because I have applied this mod on 4 sites without any errors.

So, your statement is incorrect...   that jumble is not from the mod...  that jumble is from using an incorrect program to edit php code.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

scorpion1082

it must be something on the server side then, cause ive had no issues before when doing this with other mods.  he might have done something to the server php editor, idk.  this mod doesnt parse for any 2.0 version of smf when i go to this sites page for it.  i wud use that since i know it would keep the spacing and everything, but yeah, doesnt work.  can i use the parse for 1.1.10 from this sites manual install instructions?  thats the last one i remember working.

Kindred

no.  1.1.10 will not work on 2.0

it looks like the mod parser might be broken for the 2.0 versions...    I never use the mod parser anyway...  Just open the XML file and read the instructions there...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Nick Whetstone

Awesome Mod! :D

Is there any chance this will be compatible with RC2? It's the last Mod I need to work before I switch.

Thanks a ton :)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

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

Nick Whetstone

The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

vaesir

Guys haw can i change Submit feedback for USER
Thanks great mod
http://romaniavirtuala.info - Romanian Community from eRepublik
http://stargateromania.com - Stargate Romanian Community
http://stargateworlds.ro - Stargate  Worlds Romanian Community

vbgamer45

Quote from: vaesir on November 21, 2009, 03:09:30 PM
Guys haw can i change Submit feedback for USER
Thanks great mod
You have to modify profile.template.php in the themes/default folder and add an image instead of text
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

Advertisement: