Advertise Here

Author Topic: [Code] Shop V1  (Read 50707 times)

0 Members and 2 Guests are viewing this topic.

guest4485

  • Guest
Re: [Code] Shop V1
« Reply #30 on: June 01, 2008, 12:56:27 pm »
Hi, I did a little editing and with this code you can add images to the shop thanks to agent moose =)

Code: [Select]
<script>
var Name = "NAME";
var Sign = "SIGN";
var PerPost = "PERPOST";
var UserID = "ID";

var Item = new Array();
Item[Item.length] = ["ITEM <img src='IMAGE URL'","DESCRIPTION","COST"];

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");
</script>

I'll be editing it some more and see what I can do. Agent Moose If you don't want me posting this here just tell me and I will edit this post =)

Offline Agent Moose Jr.

  • SMF For Free Sr. Member
  • *
  • Posts: 462
    • View Profile
    • The Risen Slayers

  • Total Badges: 28
    Badges: (View All)
    Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Avatar
Re: [Code] Shop V1
« Reply #31 on: June 02, 2008, 06:19:43 am »
actully you messed it up.. heres the correct way :)

Picture Before Text:
Code: [Select]
script>
var Name = "NAME";
var Sign = "SIGN";
var PerPost = "PERPOST";
var UserID = "ID";

var Item = new Array();
Item[Item.length] = ["<img src='imageurl'/> Text","DESCRIPTION","COST"];

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");

and Picture After Text:
Code: [Select]
script>
var Name = "NAME";
var Sign = "SIGN";
var PerPost = "PERPOST";
var UserID = "ID";

var Item = new Array();
Item[Item.length] = ["ITEM <img src='IMAGE URL'/>","DESCRIPTION","COST"];

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");
Aqua Fire

Abstract

Offline EyeSpyDesigns

  • SMF For Free Member
  • *
  • Posts: 48
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #32 on: August 14, 2008, 03:32:20 pm »
The code works for me, however --- When I change someone's posts (like transfer posts from an old forum to the new one and credit back member's post count by altering their post counts in their profile) it ends up showing the money as "Post Count: 57" or something like that instead of the money.

See example:


See how it says next to the Moo Money the post count instead of the money. It should say $135 instead. But if I go back to the profile and change the post count back to the original post count, then it shows the money.

There's no way to add money to anyone's account, because you cannot change their post count, nor can you alter the money - unless I am missing something?

That forum's address is http://madmoos.smfforfree2.com  - it's a forum I am setting up for a friend. On my forum, the shop works and it works on her too, but both forums ... I have that post count issue. Any ideas??

Offline Hazzaah1

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Shop V1
« Reply #33 on: August 19, 2008, 08:50:23 pm »
Love this code  :) but recently i added some items and the code doesn't seem to work anymore the "Shop" tab is not appearing

www.tinyurl.com/MERC-HQ  the website heres the code i have.

<script>
var Name = "Credits";
var Sign = "Mill";
var PerPost = ".25";
var UserID = "1";

var Item = new Array();
Item[Item.length] = ["Pilot License","This is a Test item buy if you whant to help me","10"];
Item[Item.length] = ["Tetryon Cannon","Class 9 Gun. H3800 S2250 Ref5.00 Spe4000","75"];
Item[Item.length] = ["Tears Of Blood","Class 7 Gun. H750 S575 Ref8.00 Spe4300","50"];
Item[Item.length] = ["Shariels","Class 9 Gun. H3000 S2250 Ref2.00 Spe5000","175"];

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");
</script>
Quote
<script>
var Name = "Credits";
var Sign = "Mill";
var PerPost = ".25";
var UserID = "1";

var Item = new Array();
Item[Item.length] = ["Pilot License","This is a Test item buy if you whant to help me","10"];
Item[Item.length] = ["Tetryon Cannon","Class 9 Gun. H3800 S2250 Ref5.00 Spe4000","75"];
Item[Item.length] = ["Tears Of Blood","Class 7 Gun. H750 S575 Ref8.00 Spe4300","50"];
Item[Item.length] = ["Shariels","Class 9 Gun. H3000 S2250 Ref2.00 Spe5000","175"];

document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");
</script>

would be great if you could help me if need any more info please ask.

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #34 on: August 27, 2008, 12:33:48 pm »
Is there a way to make a profile field to ADD money?

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Shop V1
« Reply #35 on: August 27, 2008, 04:19:10 pm »
That will involve me changing the whole code, and that will take awhile.  But if you put -1, or what ever number, it will add more money.  As long as it is in the negatives that is :P
Check out Revolution X's Brand new Code Index!

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Shop V1
« Reply #36 on: August 27, 2008, 04:21:06 pm »
Agent Moose, I have a question for you.  Why is it that when someone orders something from my shop, no matter what it is, I get the same letter every time?  I always have to check the image url to make sure I don't give them the incorrect item.


And I Play:  Mafia-Mandemz

guest2694

  • Guest
Re: [Code] Shop V1
« Reply #37 on: August 27, 2008, 04:35:02 pm »
Forum Url: http://ourhangout.smfforfree4.com
Thanks Moose!
I have that same problem LL
mine always says buy cheese  :2funny:

Offline Stitch

  • SMF For Free Full Member
  • *
  • Posts: 213
  • VMK will always remain in my heart.
    • View Profile
    • Project: Phoenix

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #38 on: August 27, 2008, 05:40:21 pm »
That will involve me changing the whole code, and that will take awhile.  But if you put -1, or what ever number, it will add more money.  As long as it is in the negatives that is :P

OMG agent moose i love you!!!!!!!!  :smitten: :smitten: :smitten: :smitten: :smitten: the -<insert#> worked! i can add money to accouts with out rasing their post count!!!!!!!

anyway yea i still have 2 bugs
- When my members buy something it sends me the same message
- I still get the Posts:090 190 DisneyDollars:

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #39 on: August 27, 2008, 06:03:01 pm »
omg. i ALMOST got the code to work so the money in ur mini profile doesnt overlap AND the shop still works. but the message u get doesnt say the right amount of money so im gonna edit some more. this is wierd cuz i have no knowledge of javascript and i have figured out how to edit codes to make them do stuff...  :D

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #40 on: August 27, 2008, 06:36:55 pm »
ok well i got it to ork and all but when somebody buys something it doesnt tell you the right item they bought. BUT, the subject of the PM that you recieve DOES tell you what they bought. so you can just find out how much money that item is and take that much money away from the user.

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #41 on: August 29, 2008, 09:57:16 am »
ok so when i go to subtract money from someone, it doesnt do anything.

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Shop V1
« Reply #42 on: August 29, 2008, 10:36:13 am »
You may have to play with it.  I found that subtracting a larger amount and then resetting it back to 0 sometimes triggers it into acting correctly.


And I Play:  Mafia-Mandemz

Offline puchisana

  • SMF For Free Member
  • *
  • Posts: 37
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Shop V1
« Reply #43 on: September 03, 2008, 06:13:33 pm »
Can we put images also?

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Shop V1
« Reply #44 on: September 03, 2008, 06:15:12 pm »
yes. just put

Code: [Select]
<IMG SRC='URL TO IMAGE'/>
and replace the URL TO IMAGE with the url to the image you want to put in it.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1555 Views
Last post July 23, 2008, 02:38:52 pm
by guest2694
3 Replies
1375 Views
Last post November 17, 2008, 06:08:27 pm
by Shimmy Shabby
1 Replies
1449 Views
Last post January 25, 2009, 12:19:19 pm
by simply sibyl
21 Replies
7312 Views
Last post October 12, 2009, 07:59:54 am
by Jntg4
3 Replies
1845 Views
Last post March 15, 2009, 02:19:02 pm
by xboi26