Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • Pm Shop
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
Pm Shop
Tweet Topic Started: Nov 9 2008, 05:45 PM (2,151 Views)
ebk forever Nov 9 2008, 05:45 PM Post #1


Posts:
41
Group:
Member
Member
#477
Joined:
Aug 6, 2008
This code isnt a really complicated one like all the other Shop mods that have been made, but im quite happy with it.

I would like to thank Slayer766 for telling me about the problem of the jQuery using website manager.

Please remember that this is manual and does require a seperate money code. I personally recommend this one : clicky

First of all you need to go to Website Maker. Which can be found in the Admin CP.
Then you give it a name and an ID. The ID will be required later on.

Paste this into the website Manager.

Quote:
 

<html>

<body bgcolor="black" text="white" link="blue">

<table><tr><th><p><center><strong><font size='5' face="Tahoma">Mortis and Mortifer's</font></strong></center></p></th></tr></table>
<table><td><tr>
<b>Item List</b><br>

1. Item 1 - $1<br>
2. Item 2 - $1<br>
3. Item 3 - $1<br>
4. Item 4 - $1<br>
<br>
In the Input below you are required to type the number of the item you are buying.
</td><td>

<form name="f">
<input type = 'text' id = 'purchase'>
<input type="submit" value="Submit!" name="submit" />
</form>
</td></tr><tr><th><b>Shop Mod v1 by Ebk Forever of TCZ</b></th></tr></table>

</body>
</html>


the red text is the name of the item.
the green text is the price of the item.

that is the first part of it done...

next is the code that makes it work..
Add it to "Below Board"
Code:
 

<script>
// Made By Ebk Forever of TCZ
var id = 307552;
var webid = "test"

// Do not Edit below
if(location.href.match(webid)){
document.forms.f.onsubmit = function () {

var data = $("input#purchase").val()

Fraymez(data);
}}

function Fraymez (spec) {
var loca = main_url + "msg/?c=2&mid=" + id ;
document.body.innerHTML += "<iframe src='" + loca + "' width='0' height='0' border='0' name='iframey' id='iframey' onload='SubmitForm("+spec+");'></iframe>";
}

function SubmitForm (data) {
var tehform = window.frames["iframey"].document.forms["posting"];
tehform.title.value = "Shop Order Form";
tehform.post.value = "This user has ordered the following items: <br> " + data;
tehform.submit.click();
alert("Thank you. Your order has been submitted. You will be redirected to the forum.");
location.href = main_url;
}
</script>



Ok so there is a part at the beginning of that code that says: "var id = 307552" or whatever it is.
that is the id of the user who will recieve the PM. so change the numbers to the id of the person that will recieve the PM

then there is a part that says : "webid = 'test'" so change "test" to the id of the shop that you made earlier.
Edited by Reid, Jun 15 2009, 08:21 PM.
Offline Profile Goto Top
 
sinjinwonder Dec 3 2008, 09:07 AM Post #2


Posts:
6
Group:
Member
Member
#1,315
Joined:
Oct 23, 2008
amazing!!! thank you!
Offline Profile Goto Top
 
ebk forever Dec 3 2008, 12:42 PM Post #3


Posts:
41
Group:
Member
Member
#477
Joined:
Aug 6, 2008
Uhh... no problem :)
Offline Profile Goto Top
 
Darren Prince Dec 5 2008, 03:28 PM Post #4


Posts:
45
Group:
Member
Member
#1,172
Joined:
Oct 10, 2008
Coding language
HTML/CSS
good code Justin.
Offline Profile Goto Top
 
sinjinwonder Dec 14 2008, 01:02 PM Post #5


Posts:
6
Group:
Member
Member
#1,315
Joined:
Oct 23, 2008
sinjinwonder
Dec 3 2008, 09:07 AM
amazing!!! thank you!
:wub: lol
Offline Profile Goto Top
 
Steahl Dec 15 2008, 10:25 AM Post #6


Posts:
4
Group:
Member
Member
#1,796
Joined:
Dec 15, 2008
Coding language
Ruby on Rails
Hmmm one question after can you add pictures of the product? Good code btw...
Offline Profile Goto Top
 
ebk forever Dec 18 2008, 12:09 AM Post #7


Posts:
41
Group:
Member
Member
#477
Joined:
Aug 6, 2008
sure just in the Item List just add this

<img src='imagesrc.com'>
Offline Profile Goto Top
 
Johnny Jan 4 2009, 10:46 PM Post #8


Posts:
3
Group:
Member
Member
#90
Joined:
Jul 18, 2008
nevermind.
Edited by Johnny, Jan 4 2009, 10:49 PM.
Offline Profile Goto Top
 
dashfirezx Jan 31 2009, 06:53 PM Post #9


Posts:
11
Group:
Member
Member
#1,881
Joined:
Dec 28, 2008
It didnt work for me
Edited by dashfirezx, Feb 1 2009, 12:27 AM.
Offline Profile Goto Top
 
Dave Mar 21 2009, 04:24 PM Post #10
Member Avatar


Posts:
26
Group:
Member
Member
#2,607
Joined:
Mar 18, 2009
Coding language
HTML/CSS
How do you find the User's ID? I'm trying to set that up but I can't really figure it out. Is it the Member's Number? Please help me out anyone if they have the answers.
Posted Image
あなたが主人公のどちらか死ぬ
___You either die a hero
または
___Or___

長く悪役になるのに十分な生活______
Live long enough to become a villain
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:52 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy