Revolution X

Coding Community => Coding Snippets => Topic started by: xboi209 on June 02, 2009, 08:40:43 pm



Title: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 02, 2009, 08:40:43 pm
http://x.smfforfree.com/pages/x/shop2.php
Please note that this is a beta version and the final version will be released soon.

Quote
<!-- start shop code -->
<table style="height: 88px; text-align: center;" border="3" width="641">
<caption><span style="text-decoration: underline;"><strong><span style="font-size: medium;">Shop</span></strong></span></caption>
<tbody>
<tr>
<th><strong>Item</strong></th><th><strong>Description</strong></th><th><strong>Price</strong></th>
</tr>
<tr>
<td style="text-align: center;">ITEM</td>
<td style="text-align: center;">DESCRIPTION</td>
<td style="text-align: center;">PRICE</td>
</tr>
<tr>
<td style="text-align: center;">ITEM</td>
<td style="text-align: center;">DESCRIPTION</td>
<td style="text-align: center;">PRICE</td>
</tr>
<tr>
<td style="text-align: center;">ITEM</td>
<td style="text-align: center;">DESCRIPTION</td>
<td style="text-align: center;">PRICE</td>
</tr>
</tbody>
</table>
<!-- end shop code -->
<!--- Bank system -->
<p style="text-align: center;"><strong><span style="text-decoration: underline;"><span style="font-size: medium;">Bank</span></span></strong></p>
<table style="text-align: center;" border="3">
<tbody>
<tr>
<th><strong>Member</strong></th>
<th><strong>Money in hand</strong></th>
<th><strong>Money in bank</strong></th>
<th><strong>Withdrawed this week</strong></th>
<th><strong>Deposited this week</strong></th>
<th><strong>TOTAL</strong></th>
</tr>
<tr>
<td>MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
</tbody>
</table>
<!-- End of bank system -->
<!-- Start pm system -->
<p style="text-align: center;">
<script type="text/javascript"><!--
var send2user = "USERNAME";
var SUBjecT = "Insert Item Price and Name";

document.write('<iframe id="FRAMEME" name="FRAMEME" src="' + smf_scripturl + '?action=pm;sa=send" mce_src="' + smf_scripturl + '?action=pm;sa=send" frameborder="0" height="0" width="0"></iframe><div id="REFRESH"> </div><table class="bordercolor" width="80" cellspacing="1" cellpadding="3" border="0" style="text-align: center;" mce_style="text-align: center;" id="THEPM"><tbody><tr><td class="windowbg"><table width="10" cellpadding="3" border="0"><tbody><tr><td align="right"><b>Subject:</b></td><td><input type="hidden" value="' + send2user + '" size="40" id="SENDEM" /><input type="text" value="' + SUBjecT + '" size="40" id="IWEFVI" /><br /></td></tr><tr><td valign="top" align="right"><br /></td><td><textarea id="THAHMESSAGE" rows="3" cols="50" onkeyup="storeCaret(this);" onclick="storeCaret(this);" class="editor"></text' + 'area></td></tr><tr><td align="right" colspan="2"><input type="submit" value="Buy" onclick="BuyThis();" /></td></tr></tbody></table></td></tr></tbody></table>');
function BuyThis(){
var sendTo = document.getElementById("SENDEM").value;
var theMessage = document.getElementById("THAHMESSAGE").value;
var ASDFE = document.getElementById("IWEFVI").value;
document.getElementById("FRAMEME").src = "/?action=pm;sa=send";
if(confirm("Are you sure you want to buy this item?") == true){
window.frames["FRAMEME"].document.forms.postmodify.message.value = theMessage;
window.frames["FRAMEME"].document.forms.postmodify.to.value = sendTo;
window.frames["FRAMEME"].document.forms.postmodify.subject.value = ASDFE;
Update5();
}else{
return false;
};
};
function Update5(){
var Change = window.frames["FRAMEME"].document.getElementsByTagName("input");
for(w=0;w<Change.length;w++){
if(Change[w].value == "Send message"){
Change[w].click();
document.getElementById("THEPM").style.display = "none";
document.getElementById("REFRESH").innerHTML = "<center><font size='8px'>Loading...</font><br /><img src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' mce_src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' /></center>";
setTimeout("window.location.reload()",500);
};};
};
// --></script>
</p>
<!-- end of pm system -->
<!-- Credits -->
<table style="height: 82px; text-align: center;" border="0" width="636">
<tbody>
<tr>
<th><span style="text-decoration: underline;"><strong>Credits</strong></span></th>
</tr>
<tr>
<td>xboi209 <a href="http://x.smfforfree.com/index.php">Nintendo Community</a></td>
</tr>
<tr>
<td>Agent Moose <a href="http://revolutionx.smfforfree3.com">RevolutionX</a></td>
</tr>
<tr>
<td>Isaiah Grandma <a href="http://ourhangout.org">OurHangOut</a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><!-- Comment Box --></p>
<p style="text-align: center;"><!--begin htmlcommentbox.com --></p>
<div id="HCB_comment_box" style="text-align: center;">Comment Box is loading comments...</div>
<p style="text-align: center;">
<script type="text/javascript"><!--
 (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+window.location+"&mod=%241%24wq1rdBcg%24fqdKQgdm9pxUOEFNK3LPw0"+"&opts=7");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})();
// --></script>
</p>
<!-- end htmlcommentbox.com -->
<!--   Please DO NOT edit the credits of this shop code!!! -->
<p style="background-color: #ffffff; text-align: center;"><strong><span style="font-size: xx-small; color: #000000;"><span style="text-decoration: underline;"><span>Copyright Nintendo Community 2008 - 2009 http://x.smfforfree.com/index.php</span></span></span></strong></p>

Now theres something new, theres a part where it says USERNAME.
Edit that to your username so all pms come to you.
All tell ALL of your members before you use the shop, they MUST have the subject AND body of the message the same or it won't work.
You may ONLY edit anything in red.
If you have any questions please post here, thank you!


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 02, 2009, 09:48:12 pm
Hey nice job with this :)

Is it suppose to work in the webpage editor? Or no?


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Agent Moose on June 02, 2009, 10:17:06 pm
yep, this should work in the webpage editor :)  Last time I checked it did ;)

Good work xboi :)


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 02, 2009, 10:31:21 pm
huh...weird, I used it in the webpage editor and it didnt work...strange


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 03:31:08 pm
Did you put it in the html button?Thats where your suppose to do it.Agent Moose, couldn't do it without you.Thanks.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 03:32:50 pm
Also i fixed up some things so its not all white unlike the other version.Sorry i skipped so much beta for 2.0 lol.
2.0 final version is probably comming in about 2 or 3 weeks.Not sure but just keep checking.Also can someone post this at support?


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 03, 2009, 04:31:38 pm
Did you put it in the html button?Thats where your suppose to do it.Agent Moose, couldn't do it without you.Thanks.

Yes I put it in using the HTML button, all it shows is the code itself.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 05:42:22 pm
Thats strange, it loads the code itself???
Which webpage editor are you using?
Try putting the html tags in, see if that works =)


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 03, 2009, 05:48:27 pm
Heres the page for it, I havent edited it yet:

http://pic.smfforfree4.com/pages/pic/projectshop.php


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 06:10:02 pm
That is odd!
Try putting html tags as said.See if that works.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 03, 2009, 06:12:31 pm
Tried it, still didnt work :P


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 06:19:16 pm
I am not sure why this is happening.I know it works for me, let me take about 2 more minutes to look.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 06:21:57 pm
andrew, does any other of your webpages work?
I'm 80% sure that this isn't the code's fault.ITs probably your webpage editor?
Can you try it on a test site?


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 03, 2009, 06:33:35 pm
All my other webpages work, affiliate page, awards page, all work fine, its juse this one that shoes the code like this.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 06:39:00 pm
Try it on a test site, see if that works.if it does work on the test site, probably a code is probably making this not work on your site.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 03, 2009, 07:01:02 pm
Thats o so weird, it worked fine here:
http://pictest.smfforfree.com/pages/pictest/smartshop.php

Im gonna go see what I did wrong, I may have forgot part of the code or something, If I dont get this resolived, Ill head to support. Thanks xboi :)

EDIT:
Got it working on the normal site, not sure what I did, but it turned out great!
http://pic.smfforfree4.com/pages/pic/projectshop.php


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 03, 2009, 07:28:19 pm
Strange, plus when it showed the code alone, its not suppose to show it, the webpage editor should fix it for you.Also when i looked at the link, it felt like you edited the code.Its because the pm part, it matches with your style.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 03, 2009, 10:43:20 pm
OK...I was testing this out, theres only one problem with it, and its the PM part (of course)
I put the name Andrew in there, and tested it on my own.
Can I not test it for myself? Do I need someone else to do it? Or is something wrong in the code I have in it?:

Code:
<!-- start shop code -->
<table style="height: 88px; text-align: center;" border="3" width="641">
<caption><span style="text-decoration: underline;"><strong><span style="font-size: medium;">Shop</span></strong></span></caption>
<tbody>
<tr>
<th><strong>Item</strong></th><th><strong>Description</strong></th><th><strong>Price</strong></th>
</tr>
<tr>
<td style="text-align: center;">Bold Name</td>
<td style="text-align: center;">Get your name in <strong>bold</strong></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Underlined Name</td>
<td style="text-align: center;">Get your name <span style="text-decoration: underline;">underlined</span></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Custom Colored Name</td>
<td style="text-align: center;">Get your username your own color! Use <a href="http://www.colorjack.com/sphere/">This sphere</a> or <a href="http://www.immigration-usa.com/html_colors.html">This color chart</a> for more specific colors</td>
<td style="text-align: center;">700</td>
</tr>
<tr>
<td style="text-align: center;">Italic Name</td>
<td style="text-align: center;">Get your name in <em> italics</em></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Scrolling Name</td>
<td style="text-align: center;">Make your username Scroll</td>
<td style="text-align: center;">1400</td>
</tr>
<tr>
<td style="text-align: center;">Crown</td>
<td style="text-align: center;">Add this crown next to your name: <img src="http://i197.photobucket.com/albums/aa75/hockeysMVP222/warlord.gif" alt="" /></td>
<td style="text-align: center;">1000</td>
</tr>
</tbody>
</table>
<!-- end shop code --> <!--- Bank system -->
<p style="text-align: center;"><strong><span style="text-decoration: underline;"><span style="font-size: medium;">Bank</span></span></strong></p>
<table style="text-align: center;" border="3">
<tbody>
<tr>
<th><strong>Member</strong></th><th><strong>Money in hand</strong></th><th><strong>Money in bank</strong></th><th><strong>Withdrawed this week</strong></th><th><strong>Deposited this week</strong></th><th><strong>TOTAL</strong></th>
</tr>
<tr>
<td>MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
</tbody>
</table>
<!-- End of bank system --> <!-- Start pm system -->
<p style="text-align: center;">
<script type="text/javascript"><!--
var send2user = "Andrew";
var SUBjecT = "Insert Item Price and Name";

document.write('<iframe id="FRAMEME" name="FRAMEME" src="' + smf_scripturl + '?action=pm;sa=send" mce_src="' + smf_scripturl + '?action=pm;sa=send" frameborder="0" height="0" width="0"></iframe><div id="REFRESH"> </div><table class="bordercolor" width="80" cellspacing="1" cellpadding="3" border="0" style="text-align: center;" mce_style="text-align: center;" id="THEPM"><tbody><tr><td class="windowbg"><table width="10" cellpadding="3" border="0"><tbody><tr><td align="right"><b>Subject:</b></td><td><input type="hidden" value="' + send2user + '" size="40" id="SENDEM" /><input type="text" value="' + SUBjecT + '" size="40" id="IWEFVI" /><br /></td></tr><tr><td valign="top" align="right"><br /></td><td><textarea id="THAHMESSAGE" rows="3" cols="50" onkeyup="storeCaret(this);" onclick="storeCaret(this);" class="editor"></text' + 'area></td></tr><tr><td align="right" colspan="2"><input type="submit" value="Buy" onclick="BuyThis();" /></td></tr></tbody></table></td></tr></tbody></table>');
function BuyThis(){
var sendTo = document.getElementById("SENDEM").value;
var theMessage = document.getElementById("THAHMESSAGE").value;
var ASDFE = document.getElementById("IWEFVI").value;
document.getElementById("FRAMEME").src = "/?action=pm;sa=send";
if(confirm("Are you sure you want to buy this item?") == true){
window.frames["FRAMEME"].document.forms.postmodify.message.value = theMessage;
window.frames["FRAMEME"].document.forms.postmodify.to.value = sendTo;
window.frames["FRAMEME"].document.forms.postmodify.subject.value = ASDFE;
Update5();
}else{
return false;
};
};
function Update5(){
var Change = window.frames["FRAMEME"].document.getElementsByTagName("input");
for(w=0;w<Change.length;w++){
if(Change[w].value == "Send message"){
Change[w].click();
document.getElementById("THEPM").style.display = "none";
document.getElementById("REFRESH").innerHTML = "<center><font size='8px'>Loading...</font><br /><img src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' mce_src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' /></center>";
setTimeout("window.location.reload()",500);
};};
};
// --></script>
</p>
<!-- end of pm system --> <!-- Credits -->
<table style="height: 82px; text-align: center;" border="0" width="636">
<tbody>
<tr>
<th><span style="text-decoration: underline;"><strong>Credits</strong></span></th>
</tr>
<tr>
<td>xboi209 <a href="http://x.smfforfree.com/index.php">Nintendo Community</a></td>
</tr>
<tr>
<td>Agent Moose <a href="http://revolutionx.smfforfree3.com">RevolutionX</a></td>
</tr>
<tr>
<td>Isaiah Grandma <a href="http://ourhangout.org">OurHangOut</a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><!-- Comment Box --></p>
<p style="text-align: center;"><!--begin htmlcommentbox.com --></p>
<div id="HCB_comment_box" style="text-align: center;">Comment Box is loading comments...</div>
<p style="text-align: center;">
<script type="text/javascript"><!--
 (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+window.location+"&mod=%241%24wq1rdBcg%24fqdKQgdm9pxUOEFNK3LPw0"+"&opts=7");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})();
// --></script>
</p>
<!-- end htmlcommentbox.com --> <!--   Please DO NOT edit the credits of this shop code!!! -->
<p style="background-color: #ffffff; text-align: center;"><strong><span style="font-size: xx-small; color: #000000;"><span style="text-decoration: underline;"><span>Copyright Nintendo Community 2008 - 2009 http://x.smfforfree.com/index.php</span></span></span></strong></p>


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Exilis on June 04, 2009, 06:24:35 am
You don't put the username in that box, you put the user ID. To get the user ID, go to the user's profile. Look at the url... The red text is the user ID:
http://revolutionx.smfforfree3.com/index.php?action=profile;u=79


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 04, 2009, 07:26:59 am
You don't put the username in that box, you put the user ID. To get the user ID, go to the user's profile. Look at the url... The red text is the user ID:
http://revolutionx.smfforfree3.com/index.php?action=profile;u=79

Oh!! I thought it said to put my name not my ID, well, ill try that, and see if it works.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Agent Moose on June 04, 2009, 07:30:15 am
How the code is, it should work if you put the actuall username in there.

I tested it and it works fine for me...but not in IE.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 04, 2009, 08:18:41 am
I tried putting my ID number in there, and it still didnt work. Before I had my name,Andrew in there, and that didnt work either.:

Code:
<!-- start shop code -->
<table style="height: 88px; text-align: center;" border="3" width="641">
<caption><span style="text-decoration: underline;"><strong><span style="font-size: medium;">Shop</span></strong></span></caption>
<tbody>
<tr>
<th><strong>Item</strong></th><th><strong>Description</strong></th><th><strong>Price</strong></th>
</tr>
<tr>
<td style="text-align: center;">Bold Name</td>
<td style="text-align: center;">Get your name in <strong>bold</strong></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Underlined Name</td>
<td style="text-align: center;">Get your name <span style="text-decoration: underline;">underlined</span></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Custom Colored Name</td>
<td style="text-align: center;">Get your username your own color! Use <a href="http://www.colorjack.com/sphere/">This sphere</a> or <a href="http://www.immigration-usa.com/html_colors.html">This color chart</a> for more specific colors</td>
<td style="text-align: center;">700</td>
</tr>
<tr>
<td style="text-align: center;">Italic Name</td>
<td style="text-align: center;">Get your name in <em> italics</em></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Scrolling Name</td>
<td style="text-align: center;">Make your username Scroll</td>
<td style="text-align: center;">1400</td>
</tr>
<tr>
<td style="text-align: center;">Crown</td>
<td style="text-align: center;">Add this crown next to your name: <img src="http://i197.photobucket.com/albums/aa75/hockeysMVP222/warlord.gif" alt="" /></td>
<td style="text-align: center;">1000</td>
</tr>
</tbody>
</table>
<!-- end shop code --> <!--- Bank system -->
<p style="text-align: center;"><strong><span style="text-decoration: underline;"><span style="font-size: medium;">Bank</span></span></strong></p>
<table style="text-align: center;" border="3">
<tbody>
<tr>
<th><strong>Member</strong></th><th><strong>Money in hand</strong></th><th><strong>Money in bank</strong></th><th><strong>Withdrawed this week</strong></th><th><strong>Deposited this week</strong></th><th><strong>TOTAL</strong></th>
</tr>
<tr>
<td>MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
</tbody>
</table>
<!-- End of bank system --> <!-- Start pm system -->
<p style="text-align: center;">
<script type="text/javascript"><!--
var send2user = "2";
var SUBjecT = "Insert Item Price and Name";

document.write('<iframe id="FRAMEME" name="FRAMEME" src="' + smf_scripturl + '?action=pm;sa=send" mce_src="' + smf_scripturl + '?action=pm;sa=send" frameborder="0" height="0" width="0"></iframe><div id="REFRESH"> </div><table class="bordercolor" width="80" cellspacing="1" cellpadding="3" border="0" style="text-align: center;" mce_style="text-align: center;" id="THEPM"><tbody><tr><td class="windowbg"><table width="10" cellpadding="3" border="0"><tbody><tr><td align="right"><b>Subject:</b></td><td><input type="hidden" value="' + send2user + '" size="40" id="SENDEM" /><input type="text" value="' + SUBjecT + '" size="40" id="IWEFVI" /><br /></td></tr><tr><td valign="top" align="right"><br /></td><td><textarea id="THAHMESSAGE" rows="3" cols="50" onkeyup="storeCaret(this);" onclick="storeCaret(this);" class="editor"></text' + 'area></td></tr><tr><td align="right" colspan="2"><input type="submit" value="Buy" onclick="BuyThis();" /></td></tr></tbody></table></td></tr></tbody></table>');
function BuyThis(){
var sendTo = document.getElementById("SENDEM").value;
var theMessage = document.getElementById("THAHMESSAGE").value;
var ASDFE = document.getElementById("IWEFVI").value;
document.getElementById("FRAMEME").src = "/?action=pm;sa=send";
if(confirm("Are you sure you want to buy this item?") == true){
window.frames["FRAMEME"].document.forms.postmodify.message.value = theMessage;
window.frames["FRAMEME"].document.forms.postmodify.to.value = sendTo;
window.frames["FRAMEME"].document.forms.postmodify.subject.value = ASDFE;
Update5();
}else{
return false;
};
};
function Update5(){
var Change = window.frames["FRAMEME"].document.getElementsByTagName("input");
for(w=0;w<Change.length;w++){
if(Change[w].value == "Send message"){
Change[w].click();
document.getElementById("THEPM").style.display = "none";
document.getElementById("REFRESH").innerHTML = "<center><font size='8px'>Loading...</font><br /><img src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' mce_src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' /></center>";
setTimeout("window.location.reload()",500);
};};
};
// --></script>
</p>
<!-- end of pm system --> <!-- Credits -->
<table style="height: 82px; text-align: center;" border="0" width="636">
<tbody>
<tr>
<th><span style="text-decoration: underline;"><strong>Credits</strong></span></th>
</tr>
<tr>
<td>xboi209 <a href="http://x.smfforfree.com/index.php">Nintendo Community</a></td>
</tr>
<tr>
<td>Agent Moose <a href="http://revolutionx.smfforfree3.com">RevolutionX</a></td>
</tr>
<tr>
<td>Isaiah Grandma <a href="http://ourhangout.org">OurHangOut</a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><!-- Comment Box --></p>
<p style="text-align: center;"><!--begin htmlcommentbox.com --></p>
<div id="HCB_comment_box" style="text-align: center;">Comment Box is loading comments...</div>
<p style="text-align: center;">
<script type="text/javascript"><!--
 (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+window.location+"&mod=%241%24wq1rdBcg%24fqdKQgdm9pxUOEFNK3LPw0"+"&opts=7");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})();
// --></script>
</p>
<!-- end htmlcommentbox.com --> <!--   Please DO NOT edit the credits of this shop code!!! -->
<p style="background-color: #ffffff; text-align: center;"><strong><span style="font-size: xx-small; color: #000000;"><span style="text-decoration: underline;"><span>Copyright Nintendo Community 2008 - 2009 http://x.smfforfree.com/index.php</span></span></span></strong></p>


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Celebrus on June 04, 2009, 08:19:25 am
...but not in IE.

I just have to quote this from the Daring Fireball Colophon (http://daringfireball.net/colophon/).
If Daring Fireball looks goofy in your browser, you’re likely using a shitty browser that doesn’t support web standards. Internet Explorer, I’m looking in your direction. If you complain about this, I will laugh at you, because I do not care. If, however, you are using a modern, standards-compliant browser and have trouble viewing or reading Daring Fireball, please do let me know.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 04, 2009, 02:31:34 pm
I tried putting my ID number in there, and it still didnt work. Before I had my name,Andrew in there, and that didnt work either.:

Code:
<!-- start shop code -->
<table style="height: 88px; text-align: center;" border="3" width="641">
<caption><span style="text-decoration: underline;"><strong><span style="font-size: medium;">Shop</span></strong></span></caption>
<tbody>
<tr>
<th><strong>Item</strong></th><th><strong>Description</strong></th><th><strong>Price</strong></th>
</tr>
<tr>
<td style="text-align: center;">Bold Name</td>
<td style="text-align: center;">Get your name in <strong>bold</strong></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Underlined Name</td>
<td style="text-align: center;">Get your name <span style="text-decoration: underline;">underlined</span></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Custom Colored Name</td>
<td style="text-align: center;">Get your username your own color! Use <a href="http://www.colorjack.com/sphere/">This sphere</a> or <a href="http://www.immigration-usa.com/html_colors.html">This color chart</a> for more specific colors</td>
<td style="text-align: center;">700</td>
</tr>
<tr>
<td style="text-align: center;">Italic Name</td>
<td style="text-align: center;">Get your name in <em> italics</em></td>
<td style="text-align: center;">600</td>
</tr>
<tr>
<td style="text-align: center;">Scrolling Name</td>
<td style="text-align: center;">Make your username Scroll</td>
<td style="text-align: center;">1400</td>
</tr>
<tr>
<td style="text-align: center;">Crown</td>
<td style="text-align: center;">Add this crown next to your name: <img src="http://i197.photobucket.com/albums/aa75/hockeysMVP222/warlord.gif" alt="" /></td>
<td style="text-align: center;">1000</td>
</tr>
</tbody>
</table>
<!-- end shop code --> <!--- Bank system -->
<p style="text-align: center;"><strong><span style="text-decoration: underline;"><span style="font-size: medium;">Bank</span></span></strong></p>
<table style="text-align: center;" border="3">
<tbody>
<tr>
<th><strong>Member</strong></th><th><strong>Money in hand</strong></th><th><strong>Money in bank</strong></th><th><strong>Withdrawed this week</strong></th><th><strong>Deposited this week</strong></th><th><strong>TOTAL</strong></th>
</tr>
<tr>
<td>MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
<tr>
<td style="text-align: center;">MEMBER</td>
<td style="text-align: center;">MONEY IN HAND</td>
<td style="text-align: center;">MONEY IN BANK</td>
<td style="text-align: center;">WITHDRAWED THIS WEEK</td>
<td style="text-align: center;">DEPOSITED THIS WEEK</td>
<td style="text-align: center;">TOTAL</td>
</tr>
</tbody>
</table>
<!-- End of bank system --> <!-- Start pm system -->
<p style="text-align: center;">
<script type="text/javascript"><!--
var send2user = "2";
var SUBjecT = "Insert Item Price and Name";

document.write('<iframe id="FRAMEME" name="FRAMEME" src="' + smf_scripturl + '?action=pm;sa=send" mce_src="' + smf_scripturl + '?action=pm;sa=send" frameborder="0" height="0" width="0"></iframe><div id="REFRESH"> </div><table class="bordercolor" width="80" cellspacing="1" cellpadding="3" border="0" style="text-align: center;" mce_style="text-align: center;" id="THEPM"><tbody><tr><td class="windowbg"><table width="10" cellpadding="3" border="0"><tbody><tr><td align="right"><b>Subject:</b></td><td><input type="hidden" value="' + send2user + '" size="40" id="SENDEM" /><input type="text" value="' + SUBjecT + '" size="40" id="IWEFVI" /><br /></td></tr><tr><td valign="top" align="right"><br /></td><td><textarea id="THAHMESSAGE" rows="3" cols="50" onkeyup="storeCaret(this);" onclick="storeCaret(this);" class="editor"></text' + 'area></td></tr><tr><td align="right" colspan="2"><input type="submit" value="Buy" onclick="BuyThis();" /></td></tr></tbody></table></td></tr></tbody></table>');
function BuyThis(){
var sendTo = document.getElementById("SENDEM").value;
var theMessage = document.getElementById("THAHMESSAGE").value;
var ASDFE = document.getElementById("IWEFVI").value;
document.getElementById("FRAMEME").src = "/?action=pm;sa=send";
if(confirm("Are you sure you want to buy this item?") == true){
window.frames["FRAMEME"].document.forms.postmodify.message.value = theMessage;
window.frames["FRAMEME"].document.forms.postmodify.to.value = sendTo;
window.frames["FRAMEME"].document.forms.postmodify.subject.value = ASDFE;
Update5();
}else{
return false;
};
};
function Update5(){
var Change = window.frames["FRAMEME"].document.getElementsByTagName("input");
for(w=0;w<Change.length;w++){
if(Change[w].value == "Send message"){
Change[w].click();
document.getElementById("THEPM").style.display = "none";
document.getElementById("REFRESH").innerHTML = "<center><font size='8px'>Loading...</font><br /><img src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' mce_src='http://i307.photobucket.com/albums/nn293/ino_nicole/loading.gif' /></center>";
setTimeout("window.location.reload()",500);
};};
};
// --></script>
</p>
<!-- end of pm system --> <!-- Credits -->
<table style="height: 82px; text-align: center;" border="0" width="636">
<tbody>
<tr>
<th><span style="text-decoration: underline;"><strong>Credits</strong></span></th>
</tr>
<tr>
<td>xboi209 <a href="http://x.smfforfree.com/index.php">Nintendo Community</a></td>
</tr>
<tr>
<td>Agent Moose <a href="http://revolutionx.smfforfree3.com">RevolutionX</a></td>
</tr>
<tr>
<td>Isaiah Grandma <a href="http://ourhangout.org">OurHangOut</a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><!-- Comment Box --></p>
<p style="text-align: center;"><!--begin htmlcommentbox.com --></p>
<div id="HCB_comment_box" style="text-align: center;">Comment Box is loading comments...</div>
<p style="text-align: center;">
<script type="text/javascript"><!--
 (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+window.location+"&mod=%241%24wq1rdBcg%24fqdKQgdm9pxUOEFNK3LPw0"+"&opts=7");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})();
// --></script>
</p>
<!-- end htmlcommentbox.com --> <!--   Please DO NOT edit the credits of this shop code!!! -->
<p style="background-color: #ffffff; text-align: center;"><strong><span style="font-size: xx-small; color: #000000;"><span style="text-decoration: underline;"><span>Copyright Nintendo Community 2008 - 2009 http://x.smfforfree.com/index.php</span></span></span></strong></p>
Andrew, you didn't follow instructions.
ANd also i put USEERNAME not USERID, so use your username.
Now if you want to pm yourself, make the subject AND the body of the message the same.

SSo pretend the subject is "pirates"
The body HAS to be "pirates"

you can replace the word pirates to anything you want.Just make sure they are BOTH the same.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 04, 2009, 02:40:53 pm
WHOAH THERE!
It doesn't work in internet explorer ANYMORE!
Thats odd.....It worked when i was testing it and was about to release it on rx.This is super strange.I guess you guys gotta go by using firefox then.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 04, 2009, 02:45:38 pm
Alright I got it to work, I didnt know I was supposed to use the body part :P

You did so great :) , but a few suggestions for future versions:
-In the subject part. make it a post warning, saying I want to but ITEM for the price of PRICE, and then perhaps saying something right below it, saying "Change ITEM to the name of the item, and PRICE to the price of it.

EDIT:
it works fine in Opera, firefox, and chrome, just not explorer.



Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 04, 2009, 02:52:15 pm
you tried netscape?


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 04, 2009, 02:54:49 pm
you tried netscape?

haha, I dont have netscape :P


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 04, 2009, 02:59:43 pm
Well internet explorer is pretty much the one that doesn't work...
Andrew can you post this on support?Include all instructions as well as which browsers it works in and which doesn't.Thanks!


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Andrew on June 04, 2009, 03:19:00 pm
Well internet explorer is pretty much the one that doesn't work...
Andrew can you post this on support?Include all instructions as well as which browsers it works in and which doesn't.Thanks!

Sure, ill post it in Codes and Support, no problem :)
Hopefully we can get this up and working soon, 80% of my members use IE, and want to see this.

EDIT:
Topic posted:
http://www.smfsupport.com/support/smf_for_free_codes_and_support/code_not_working_in_internet_explorer-t27230.0.html


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 04, 2009, 03:25:33 pm
Your members want to use project shop that much?Just tell them to switch over every time they want to use the shop


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: Celebrus on June 05, 2009, 03:36:54 am
Or show them that thing from Daring Fireball.


Title: Re: [code]PROJECT Shop v2.0 Beta 6.8
Post by: xboi209 on June 07, 2009, 12:38:59 pm
Hey i am using internet explorer right now, and daring fireball is just regular letters but bold.So people would think internet explorer works but it doesn't.So daring fireball doesn't help