CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | [F] Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:21pm UTC) | | Can i get this code converted for vforum (board footer) please. http://tropolis.virtualforums.co.uk/
Code: - <script type="text/javascript">
- <!--
- /* affiliate posting form - ross - http://101support.proboards43.com
- NOT to be used or reposted without permission */
-
- function requestIt() {
- for(r=0; r<td.length; r++) {
- if(td[r].width=='30%' && td[r].innerHTML.match(/(Add|Disable|Message)/)) {
- td[r].parentNode.style.display = 'none';
- }
- else if(td[r].width=='30%' && td[r].innerHTML.match(/>Subject:</)) {
- td[r].firstChild.innerHTML = 'Forum Name:'
- td[r].className = 'windowbg2'; td[r+1].className = 'windowbg2';
- }
- }
- }
- function checkAff() {
- if(document.getElementsByName('confirm')[0].checked == true) {
- url = document.getElementsByName('url')[0];
- image = document.getElementsByName('image')[0]
- document.postForm.message.value = '[b]Forum Name[/b]: '+ document.postForm.subject.value +'\n\n[b]Forum URL[/b]: '+ url.value +'\n\n[b]Image URL[/b]: '+ image.value +'\n\n\n[b]Code:[/b]\n[size=1]Affiliate("'+url.value +'", "'+image.value+'");[/size]';
- document.postForm.submit(true);
- }
- else
- alert('Please check the confirmation box to continue');
- }
- if(location.href.match(/ion=post$/)) {
- obj = document.postForm.message.parentNode.parentNode.parentNode;
- for(z=0; z<7; z++){
- document.postForm.nextaction.parentNode.removeChild(document.postForm.nextaction.nextSibling); }
- button = document.createElement('div');
- button.innerHTML = '<input type=button value=Affiliate onClick=checkAff(); />'
- document.postForm.nextaction.parentNode.appendChild(button);
-
- requestIt()
- obj.parentNode.insertBefore(document.createElement('tr'), obj);
- obj.previousSibling.className = 'windowbg';
- obj.previousSibling.insertCell(0).innerHTML = '<font size=2>Forum URL:</font>';
- obj.previousSibling.insertCell(1).innerHTML = '<font size=1><input name=url size=35> The URL of your forum</font>';
- obj.parentNode.insertBefore(document.createElement('tr'), obj);
- obj.previousSibling.className = 'windowbg2';
- obj.previousSibling.insertCell(0).innerHTML = '<font size=2>Image URL:</font>';
- obj.previousSibling.insertCell(1).innerHTML = '<table width=100%><tr><td><input name=image size=35></td><td align=left><font size=1>The URL of your mini-banner.<br/>This banner must be 31*88px.</font></td></tr></table>';
- obj.parentNode.insertBefore(document.createElement('tr'), obj);
- obj.previousSibling.className = 'windowbg';
- obj.previousSibling.insertCell(0).innerHTML = '<font size=2>Confirmation:</font>';
- obj.previousSibling.insertCell(1).innerHTML = '<font size=1><input type=checkbox name=confirm> Check this box to confirm that our mini-banner has been added to your forum.</font>';
- }
- //-->
- </script>
| |
click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:23pm UTC) | | Can you link me to the PB thread please? I want to see what it does. | |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:30pm UTC) | | Can't you use the post template code in the index? | |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:37pm UTC) | | If i can have it work the same way as this code sure . | |
click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:38pm UTC) | | well it'll make the post etc...
try it and let me know if it doesn't work like you want it to, if that's the case, I'll recode this! | |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:41pm UTC) | | Ok i'll give it a shot , but it'll have to be abit later on and i'll let you know Wrighty . When i try it . | |
click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:56pm UTC) | | That's fine! | |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 10:54pm UTC) | | I'm sorry to say that the post template code in the index isn't working at all Wrighty .
| |
click here We have 15 Different Skins/Templates for your vForum |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 11:11pm UTC) | | I'm sorry to say that the post template code in the index isn't working at all Wrighty .
Can you post the exact code you're trying to use? | |
|
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | |
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Ross Affiliate Posting Form To Be Converted (19th Feb 08 at 12:58am UTC) | |
Ross means post the edited code, so we can see if you made any editing mistakes. | |
rroll.to— Shorten a link, rickroll your friends. |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Ross Affiliate Posting Form To Be Converted (19th Feb 08 at 3:14am UTC) | | To be honest i didn't edit the code because when i looked at it, i wasn't sure where to start. I did however put the code in the board footer to see how it works and nothing happened it only showed the thread page . | |
click here We have 15 Different Skins/Templates for your vForum |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Ross Affiliate Posting Form To Be Converted (20th Feb 08 at 4:06am UTC) | | Bump | |
click here We have 15 Different Skins/Templates for your vForum |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Ross Affiliate Posting Form To Be Converted (22nd Feb 08 at 3:34am UTC) | | Bump | |
click here We have 15 Different Skins/Templates for your vForum |
|