News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMFShop - Shop MOD

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

Previous topic - Next topic

Bigguy

So theres no one that can help cause I`m an ie user ?? I do use firefox to but my page was open with that,lol.

My original problem is with an error message when I use PJirc chat this is the error I get.
Notice: Undefined index: shop in /home/bigguy/public_html/smf/Sources/Load.php(1068) : eval()'d code on line 477

can someone help ??

Quote
OUCH I.E. USER! :P

scrawl

Quote from: Bigguy on August 30, 2005, 05:43:18 PM
So theres no one that can help cause I`m an ie user ?? I do use firefox to but my page was open with that,lol.

My original problem is with an error message when I use PJirc chat this is the error I get.
Notice: Undefined index: shop in /home/bigguy/public_html/smf/Sources/Load.php(1068) : eval()'d code on line 477

can someone help ??

Quote
OUCH I.E. USER! :P

it looks as if you haven't installed the shop mod correctly as it's saying "Apply Mod" i'd say give that a go man.

Bigguy

well thats the funny thing the shop is installed and runs great no problems at all. and the error I posted comes up when you go into PJirc chat. They figure its a shop problem. So I posted here.

scrawl

Quote from: Bigguy on August 30, 2005, 11:56:09 PM
well thats the funny thing the shop is installed and runs great no problems at all. and the error I posted comes up when you go into PJirc chat. They figure its a shop problem. So I posted here.

yes but have you tried pressing "apply mod" ?

Bigguy

Yeah, I get errors. I had the forum installed then the server did a php upgrade. My forum smf 1.0.3 all modded out didn`t work after the upgrade on the server so I upgraded to smf 1.0.5, used the same database as before and reinstalled some mods. When I uploaded the shop it took off great. So did the rest of the mods they all work. Now I get this one error that I need to get rid of.

zhoushi

Well, 2 months past, I guess I have to keep waiting for another one to two months to get a new version for my website, which is Mambo+smf 1.1 beta p3

Bigguy

When I press aply this is the error I get:

71.   Execute Modification    ./Themes/default/Display.template.php    Failure
72.   Execute Modification    ./Themes/default/index.template.php      Failure

If I ignore these and continue anyway what is going to happen ? Keep in mine I have coolmetal theme installed to.

ExistenZ

this is probably a rediculous question...but....How do you get this modification to work with other templates. Which files should you edit, etc. Is there some way I can find out. For instance the Apollo theme.
Regards,
Andre

trenchteam

Quote from: Bigguy on September 01, 2005, 01:21:53 PM
When I press aply this is the error I get:

71.   Execute Modification    ./Themes/default/Display.template.php    Failure
72.   Execute Modification    ./Themes/default/index.template.php      Failure

If I ignore these and continue anyway what is going to happen ? Keep in mine I have coolmetal theme installed to.

Manually add the needed code to those two templates in the default theme.  I just continued anyway, then added the areas that failed. It works good.

Bigguy

ok so what code has to go in those 2 files. I have edited one of those files quite alot to so it might be hard to find the exact place to put it.

Elmacik

dooooeeeesss this work for smf 1.1 b 3?
Home of Elmacik

xenovanis

Quote from: Insanitary on September 03, 2005, 04:10:39 AM
this is probably a rediculous question...but....How do you get this modification to work with other templates. Which files should you edit, etc. Is there some way I can find out. For instance the Apollo theme.

How to make mods work with themes?
"Insanity: doing the same thing over and over again and expecting different results."

ExistenZ

Regards,
Andre

Elmacik

Quote from: xenovanis on September 03, 2005, 04:55:31 PM
Quote from: Insanitary on September 03, 2005, 04:10:39 AM
this is probably a rediculous question...but....How do you get this modification to work with other templates. Which files should you edit, etc. Is there some way I can find out. For instance the Apollo theme.

How to make mods work with themes?


i didnt ask to make it work in a template.
i asked to make it work for a different version ;)
Home of Elmacik

zhoushi

Quote from: elmacik on September 03, 2005, 12:43:30 PM
dooooeeeesss this work for smf 1.1 b 3?
unfortunately, it never.

Elmacik

Home of Elmacik

crev

#576
I installed the SMFSHOP 1.2  fresh copy onto my SMF 1.0.5 forums.
However:
1. No shop link button is place with other buttons at top of forums.
2. Members $ credits do not show in members replys where the members name is + there is no link to inventory where members name is when they make a post.

Because of this i tried to install 1.1 - 1.2 update, but when i apply the update i get an error:

Quote53. Execute Modification ./Sources/Post.php Failure

when i click 'proceed' i then get the following error:

QuoteDuplicate column name 'image'
File: /home/crev/public_html/teen-vision/Packages/temp/updateScript.php
Line: 15

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
I think possibly i have to set a cron job but im not sure how to do this.

QuoteNOTE: In order to get the bank interest working, you MUST set a cron job. Use something like:
Code:/usr/bin/php -q /home/[username]/public_html/[forum]/Sources/shop/dointerest.php > /home/[username]/public_html/[forum]/interest_log.htm
replacing [username] with your cPanel username and [forum] with the directory name of your forum. This will work on most hosts.

I dont have a clue with php etc... only installed a few mods before.
Any help greatly appreciated.
Thanks,
Crev
hxxp:www.lexiks.com [nonactive] - TeenVision

Ps.
I also get the follwing error when trying to post a new post.... but the post stil goes through... and i expect there a more errors since installing this mod.

QuoteUnknown column 'money' in 'field list'
File: /home/crev/public_html/teen-vision/Sources/Post.php
Line: 1357

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
hxxp:www.zillionhosting.co.nr [nonactive]

<a href="hxxp:www.resellerspanel.com/?a=username [nonactive]"><img src="hxxp:www.resellerspanel.com/banners/468x60_03.gif [nonactive]" width="468" height="60" border="0"></a>

crev

i just uploaded my forum backup from the other day but im still getting the same problem

crev
hxxp:www.zillionhosting.co.nr [nonactive]

<a href="hxxp:www.resellerspanel.com/?a=username [nonactive]"><img src="hxxp:www.resellerspanel.com/banners/468x60_03.gif [nonactive]" width="468" height="60" border="0"></a>

Daniel15

Quote
I installed the SMFSHOP 1.2  fresh copy onto my SMF 1.0.5 forums.
However:
1. No shop link button is place with other buttons at top of forums.
2. Members $ credits do not show in members replys where the members name is + there is no link to inventory where members name is when they make a post.

This is because you're using a different theme. You need to make changes to Index.template.php and Display.template.php. Here's some instructions for you:

Quote
Open '/Themes/[themename]/Display.template.php'
Search for: [line 294]

// Show how many posts they have made.
echo ' ', $txt[26], ': ', $message['member']['posts'], '<br /> <br />';


Replace with: (this is a long section)

// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD


Save, and open '/Themes/default/index.template.php'
Search for: [line 446]

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];

NOTE: That bottom line (from echo '<a..... to ....seperator'];) is all 1 long line. If you have trouble finding it, just search for // The [calendar]! and it's near there

Add after:

    //BEGIN Shop MOD 0.2 Code
    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
    //END SHOP MOD

(source: SMFShop 0.2 readme file - All the edits have been the same since SMFShop 0.2)

Quote
Because of this i tried to install 1.1 - 1.2 update, but when i apply the update i get an error......
The errors are because the SMFShop 1.2 modifications are already in place, and it's trying to add them again.

Quote
Ps.
I also get the follwing error when trying to post a new post.... but the post stil goes through... and i expect there a more errors since installing this mod.
This means that the SMFShop MySQL fields were removed, but the code is still in there. I suggest you delete all traces of SMFShop and start over from scratch.

Files that are edited by SMFShop:
Index.php
Post.php
Subs.php
Themes/default/Display.template.php
Themes/default/Index.template.php

Just open all those files and search for a 'Shop MOD' section in them. Delete all the SMFShop code (as well as the SMFShop files at /Sources/shop) and try re-installing.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

TANDIONO.COM

#579
Hi! I received the following error when i open chat.php ::

Notice: Undefined index: shop in /home/xxxxx/public_html/Sources/Load.php(1119) : eval()'d code on line 547

here is the following forum error log:

8: Undefined index: shop
File: /home/xxxxx/public_html/Themes/default/Admin.template.php (eval?)
Line: 547

Please assist me. Thanks

Advertisement: