Author Topic: I got nothing much  (Read 4336 times)

Polymath

  • Guest
I got nothing much
« on: January 29, 2006, 12:29:59 pm »
I installed the shop SMFShop_2.0. All I got is it in admin. Nothing at all anywhere else. No buttons, no nothing. Any way to get this going. Even can't get an error. I have nothing in the index.template. nowhere, nothing, nadda.

All these mods and all these forums I have to join to find out how to get things to work is filling up my favorites lists.

Sorry, I'm actually laughing about it. The good thing is I'm not being spammed all over the place from registering to all these forums, lol :D

Its just that things should work(according to those that wrote them) and they don't. My fault probably as I'm not a programmer..

Gotta laugh about it or I'll cry all day.... :'(

 :D :D :D :D

Offline Daniel15

Re: I got nothing much
« Reply #1 on: January 29, 2006, 12:53:23 pm »
For some reason, your shop installation doesn't have a shop button. Your shop is at http://gamesocket.gamekiwi.com/forum/index.php?action=shop

To fix:
Open Themes/default/Index.template.php
Find:

<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'];

Add after:

    
//BEGIN Shop MOD 0.2 Code
	
//BEGIN SMFShop 2.0 (Build 8) MOD Code
	
	
loadLanguage('Shop');
	
//END SMFShop MOD 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



Polymath

  • Guest
Re: I got nothing much
« Reply #2 on: January 29, 2006, 03:48:40 pm »
~sigh~ thanks Daniel. I've read that in another thread. 'search string not found'

Ok, I got it in well I got this>> I guess I need to fix it by getting a button from the button thread.

I had to manually find >:( the string where to put the code, but thankyou for the motivation.  I had to put it in Themes/babylon/template as the default don't work for me..another of my code mistakes I think,lol

Themes/babylon/images/english/shop.gif   was there a shop gif in the file? Ahh yes there is......moved to Themes/babylon/images/english. Got that working now.

Ummm, be back soon enough.. I'm off to look at your shop in this forum to see what else is missing. I assume its supposed to show up on the profile in peoples posts?

I'm rapt I finally got to search out where to put the code and make it happen. Ta.

Ok I'm missing it from the profile in peoples posts.


« Last Edit: January 29, 2006, 03:55:05 pm by Polymath »

Offline Daniel15

Re: I got nothing much
« Reply #3 on: January 29, 2006, 04:05:56 pm »
OK, here you go:
Open Themes/babylon/Display.template.php
Find:
Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

Replace with:
Code: [Select]
// 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
           

//BEGIN SMFShop MOD 1.31 (Build 7) CODE
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br>";
//END SMFShop MOD 1.31 code

Polymath

  • Guest
Re: I got nothing much
« Reply #4 on: January 30, 2006, 11:59:43 am »
 ;D :D Why thank you daniel. Thats working too now....

 I think I got it all working now.... Thankyou very much, a nice programme.

I'll have to wait for someone to use it to see if things are all working. Have a good day ;)