SMF For Free Support Forum
Signup For Free Forum
September 02, 2010, 11:55:03 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: 1 2 [3] 4 5 6 ... 11
  Print  
Author Topic: [Code] Shop V1  (Read 25012 times)
0 Members and 1 Guest are viewing this topic.
[Core28]
SMF For Free Member
*
Offline Offline

Posts: 32


<?php="('End');?>


View Profile
« 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:
<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 =)
Logged

Caution keep out of childrens reach! Harmful if swallowed.
Agent Moose Jr.
SMF For Free Sr. Member
*
Offline Offline

Posts: 445


View Profile WWW
« Reply #31 on: June 02, 2008, 06:19:43 am »

actully you messed it up.. heres the correct way Smiley

Picture Before Text:
Code:
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:
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>");
Logged

Aqua Fire

Abstract
EyeSpyDesigns
SMF For Free Member
*
Offline Offline

Posts: 48



View Profile
« 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??
Logged

Hazzaah1
SMF For Free Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #33 on: August 19, 2008, 08:50:23 pm »

Love this code  Smiley 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.
Logged
Josh[y]
SMF For Free Sr. Member
*
Offline Offline

Posts: 478


<Insert whitty tagline here.>


View Profile
« Reply #34 on: August 27, 2008, 12:33:48 pm »

Is there a way to make a profile field to ADD money?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 825


Do not PM me for Code Support or Request


View Profile
« 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 Tongue
Logged

Check out Revolution X's Brand new Code Index!
LaundryLady
Helpers
*
Offline Offline

Posts: 3230


Internet Challenged


View Profile
« 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.
Logged

Isaiahs Grandma
SMF For Free Sponsors
*
Offline Offline

Posts: 333



View Profile WWW
« 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
Logged

Stitch
SMF For Free Full Member
*
Offline Offline

Posts: 213


VMK will always remain in my heart.


View Profile WWW
« 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 Tongue

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:
Logged

Josh[y]
SMF For Free Sr. Member
*
Offline Offline

Posts: 478


<Insert whitty tagline here.>


View Profile
« 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...  Cheesy
Logged

Josh[y]
SMF For Free Sr. Member
*
Offline Offline

Posts: 478


<Insert whitty tagline here.>


View Profile
« 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.
Logged

Josh[y]
SMF For Free Sr. Member
*
Offline Offline

Posts: 478


<Insert whitty tagline here.>


View Profile
« Reply #41 on: August 29, 2008, 09:57:16 am »

ok so when i go to subtract money from someone, it doesnt do anything.
Logged

LaundryLady
Helpers
*
Offline Offline

Posts: 3230


Internet Challenged


View Profile
« 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.
Logged

puchisana
SMF For Free Member
*
Offline Offline

Posts: 37


View Profile
« Reply #43 on: September 03, 2008, 06:13:33 pm »

Can we put images also?
Logged
Josh[y]
SMF For Free Sr. Member
*
Offline Offline

Posts: 478


<Insert whitty tagline here.>


View Profile
« Reply #44 on: September 03, 2008, 06:15:12 pm »

yes. just put

Code:
<IMG SRC='URL TO IMAGE'/>

and replace the URL TO IMAGE with the url to the image you want to put in it.
Logged



Pages: 1 2 [3] 4 5 6 ... 11
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.504 seconds with 21 queries. (Pretty URLs adds 0.116s, 2q)