Advertisement:

Author Topic: ST Shop for SMF  (Read 197328 times)

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #60 on: November 13, 2009, 02:35:46 PM »
realy i cant replicate this any way point is an integer not a string i think float will be better ill do sommore testing wioth that jusdtm to make sure
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline SkyLineR34

  • Jr. Member
  • **
  • Posts: 114
Re: SA Shop 0.4
« Reply #61 on: November 14, 2009, 07:47:10 AM »
realy i cant replicate this any way point is an integer not a string i think float will be better ill do sommore testing wioth that jusdtm to make sure

Yes I know its an integer...But I have tried to post with it going into the database as int and errors galore.  I've been toying with the script a little...and haven't been able to figure out why the errors are there.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #62 on: November 14, 2009, 02:45:44 PM »
ok ill have to look into it
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Croco

  • SMF Hero
  • ******
  • Posts: 2,812
    • Andareena.com
Re: SA Shop 0.4
« Reply #63 on: November 19, 2009, 02:03:00 AM »
I recommend to use in Shop.template.php
Code: [Select]
die($string)instead of
Code: [Select]
fatal_error($string,$log)

because the last one won't print an error message unless the $txt is empty or undefined. While I think you wanted the die method effect.


If you try to run or enter a disabled area you won't get the error message. But if you change it to die method then it should be exactly as you wanted.


Cheers,
Croco
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #64 on: November 23, 2009, 03:49:56 PM »
yes ive noticed that mysefl but you cant use die smf dont allow it in the coding guid lines

fatal_error() should work it used to in previus version of smf idk why it ont now works in some places but not others

ie for my battle mod that uses fatal_error() if the user has no hp atk and what not and that works try going to a disalbed area and it dont lol

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Croco

  • SMF Hero
  • ******
  • Posts: 2,812
    • Andareena.com
Re: SA Shop 0.4
« Reply #65 on: November 23, 2009, 09:27:50 PM »
I checked the implementation and what they do if $txt is not defined then die($msg) otherwise just do other stuff which is logging the error in the error report. But you are passing false to not logged in error log. Hence nothing is happening. If fatal_error was working before then I see a potential bug that if the flag is false it should print the message.
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,603
  • It's quite perplexing isn't it
Re: SA Shop 0.4
« Reply #66 on: December 07, 2009, 10:00:59 PM »

ast3r1x Games Room Images


hey SA, I was looking at your shop mod again and I wondered what the games room part of the shop is supposed to do?

~thanks

Offline Croco

  • SMF Hero
  • ******
  • Posts: 2,812
    • Andareena.com
Re: SA Shop 0.4
« Reply #67 on: December 08, 2009, 04:57:13 AM »

ast3r1x Games Room Images


hey SA, I was looking at your shop mod again and I wondered what the games room part of the shop is supposed to do?

~thanks
You need to buy a ticket to able to access it even if you are the admin.
It contains games where you can increase or lose your credits.
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,603
  • It's quite perplexing isn't it
Re: SA Shop 0.4
« Reply #68 on: December 08, 2009, 07:50:31 AM »
ah ok I see it now.  Actually I thought the games pass for was for the arcade mod.  I bought a pass to test it out but there are some display problems, see the text behind the HOME BUY ITEMS YOUR INVENTORY etc below



after buying



about to use item



after using item

Is this a bug?

Clean install, no errors, no other mods except SA Battle and SA shop installed

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #69 on: December 08, 2009, 09:11:58 AM »
yes it a bug i will fix next week would of done it sooner but i have been to busy
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,603
  • It's quite perplexing isn't it
Re: SA Shop 0.4
« Reply #70 on: December 08, 2009, 10:12:04 AM »
no worries mate,never seen it before.

Offline DoctorMalboro

  • SMF Hero
  • ******
  • Posts: 9,084
  • Gender: Male
  • うまいいいいいい!!!!!
    • @DoctorMalboro on Twitter
    • Personal website
Re: SA Shop 0.4
« Reply #71 on: December 08, 2009, 04:07:59 PM »
excelent shop, i will try to use it for mi web site  8)

Spanish translation

Code: [Select]
//shop Start
$txt['Shop_ver'] = 'Versión/Creditos';

$txt['whoall_shop_bank'] = 'Viendo el <a href="' . $scripturl . '?action=shop;sa=bank">Banco</a>';
$txt['whoall_shop_gift'] = 'Enviando un<a href="' . $scripturl . '?action=shop;sa=gift">Regalo</a>';
$txt['whoall_shop_inventory2'] = 'Miembros viendo el <a href="' . $scripturl . '?action=shop;sa=inventory2">Inventorio</a>';
$txt['whoall_shop_inventory'] = 'Viendo su <a href="' . $scripturl . '?action=shop;sa=inventory">Inventorio</a>';
$txt['whoall_shop_buy'] = 'Comprando items en <a href="' . $scripturl . '?action=shop;sa=buy">la Tienda</a>';
$txt['whoall_shop'] = 'Viendo la <a href="' . $scripturl . '?action=shop">Tienda</a>';
$txt['whoall_gameroom'] = 'Jugando en la <a href="' . $scripturl . '?action=shop;sa=gameroom">Sala de juegos</a>';

$txt['shop_mainten'] = 'Mantenimiento';
$txt['shop_admin_usergroup'] = 'Funciones de rangos';
$txt['View_Inventory2'] ='Ver inventorio';
$txt['View_Inventory'] ='Ver inventorio';
$txt['shop_settingsm'] = 'Configuraci&oacute;n principal';
$txt['MoneySettings'] = 'Configuraci&oacute;n de dinero';
$txt['shop_admin_invent'] = 'Inventario';
$txt['itemsssss'] = 'Items';
$txt['AddItems'] = 'A&nacute;adir Items';
$txt['RestockItems'] = 'Restaurar Items';
$txt['shop_admin_catlist'] = 'Categor&iacute;as';
$txt['MainSettings'] = 'Car. Principales';
$txt['shop_procredit'] = 'Creditos';
$txt['shop_shop2'] = 'Tienda SA';
$txt['shop_tab_main'] ='Tienda';

$txt['permissiongroup_simple_shop'] = 'Tienda';
$txt['permissionname_view_shop'] = 'Acceso a la Tienda';
$txt['permissionname_view_buy'] = 'Permitirles comprar items';
$txt['permissionhelp_view_buy'] = 'El usuario tiene permiso de comprar items';
$txt['cannot_view_buy'] = 'No puedes comprar items';
$txt['permissionhelp_view_shop'] = 'Tiene acceso a la Tienda';
$txt['cannot_view_shop'] = 'No puedes ver la tienda.';
$txt['permissiongroup_shop'] = 'Tienda';
$txt['permissionname_view_gameroom'] = 'Acceder a la Sala de Juegos';
$txt['permissionhelp_view_gameroom'] = 'Los usuarios tienen acceso a la Sala de Juegos';
$txt['cannot_view_gameroom'] = 'No puedes entrar a la Sala de Juegos.';
$txt['permissionname_view_trade'] = 'Acceder al Centro de Intercambios';
$txt['permissionhelp_view_trade'] = 'El usuario tiene acceso al Centro de Intercambios';
$txt['cannot_view_trade'] = 'No puedes entrar al Centro de Intercambios.';
$txt['permissionname_view_bank'] = 'Acceder al Banco';
$txt['permissionhelp_view_bank'] = 'Los usuarios tienen acceso al Banco';
$txt['cannot_view_bank'] = 'No puedes acceder al Banco.';
$txt['permissionname_view_gift'] = 'Permitir enviar regalos';
$txt['permissionhelp_view_gift'] = 'El usuario tiene acceso a enviar Regalos';
$txt['cannot_view_gift'] = 'No puedes enviar Regalos.';
$txt['permissionname_view_othersinv'] = 'Acceder al inventario de otros usuarios';
$txt['permissionhelp_view_othersinv'] = 'Si el usuario tiene acceso a ver el inventario de otros usuarios';
$txt['cannot_view_othersinv'] = 'No puedes acceder al inventario de otros.';
//shop End

Thank you a lot, it works  :D

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #72 on: December 09, 2009, 01:56:03 PM »
thank you ill try to update the package next week and ill also add you to the credits for the translation in admin :)
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline CTRicardo

  • Newbie
  • *
  • Posts: 6
Re: SA Shop 0.4
« Reply #73 on: December 12, 2009, 06:55:04 PM »
Hi Sleepy, i need help with SA Shop. I need to know how to add space for the items and how to increase the space for the text of the description of the items

Regards

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #74 on: December 13, 2009, 08:57:34 PM »
SA Shop 0.4.2 Realsed

!fixed ff errors
!fixed fatal error messages
+added spanish tranlation
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Bob Perry of Web Presence Consulting

  • Sophist Member
  • *****
  • Posts: 1,018
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: SA Shop 0.4
« Reply #75 on: December 14, 2009, 04:48:30 AM »
SA Shop 0.4.2 Realsed


Heads up, you need to check the version number of what's reported in package manager, zip file says 0.4.2, but package manager says 0.4.1
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #76 on: December 14, 2009, 10:55:38 AM »
thx :) i updated the package
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline lelkins

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Shop 0.4
« Reply #77 on: December 16, 2009, 11:58:51 AM »
How can I get the number of credits a user has to display in the profile section next to a post, so under their avatar and links, etc.
Thanks

By the way, this seems like a fantastic mod!

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Shop 0.4
« Reply #78 on: December 16, 2009, 12:06:08 PM »
it allready does no?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline lelkins

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Shop 0.4
« Reply #79 on: December 16, 2009, 12:11:23 PM »
Doesn't seem to for me. I uninstalled and then reinstalled but still no job.
I am on SMF2.0 RC2 using the default template.
I have put the following code into display.template.php but it won't show the number of credits. If I put the code to show Prefix and Suffix then it shows so not sure why it won't show the number of credits.
Code: [Select]
<li class="postcount">',$txt['shop_procredit'],':', $context['member']['cash'], '</li>';Thanks