vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Ross Affiliate Posting Form To Be Converted - View Topic (Page 1 of 2)Page: 1 2
Topic Rating: *****
Printable View
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* affiliate posting form - ross - http://101support.proboards43.com
  4. NOT to be used or reposted without permission */
  5.  
  6. function requestIt() {
  7. for(r=0; r<td.length; r++) {
  8. if(td[r].width=='30%' && td[r].innerHTML.match(/(Add|Disable|Message)/)) {
  9. td[r].parentNode.style.display = 'none';
  10. }
  11. else if(td[r].width=='30%' && td[r].innerHTML.match(/>Subject:</)) {
  12. td[r].firstChild.innerHTML = 'Forum Name:'
  13. td[r].className = 'windowbg2'; td[r+1].className = 'windowbg2';
  14. }
  15. }
  16. }
  17. function checkAff() {
  18. if(document.getElementsByName('confirm')[0].checked == true) {
  19. url = document.getElementsByName('url')[0];
  20. image = document.getElementsByName('image')[0]
  21. 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]';
  22. document.postForm.submit(true);
  23. }
  24. else
  25. alert('Please check the confirmation box to continue');
  26. }
  27. if(location.href.match(/ion=post$/)) {
  28. obj = document.postForm.message.parentNode.parentNode.parentNode;
  29. for(z=0; z<7; z++){
  30. document.postForm.nextaction.parentNode.removeChild(document.postForm.nextaction.nextSibling); }
  31. button = document.createElement('div');
  32. button.innerHTML = '<input type=button value=Affiliate onClick=checkAff(); />'
  33. document.postForm.nextaction.parentNode.appendChild(button);
  34.  
  35. requestIt()
  36. obj.parentNode.insertBefore(document.createElement('tr'), obj);
  37. obj.previousSibling.className = 'windowbg';
  38. obj.previousSibling.insertCell(0).innerHTML = '<font size=2>Forum URL:</font>';
  39. obj.previousSibling.insertCell(1).innerHTML = '<font size=1><input name=url size=35> The URL of your forum</font>';
  40. obj.parentNode.insertBefore(document.createElement('tr'), obj);
  41. obj.previousSibling.className = 'windowbg2';
  42. obj.previousSibling.insertCell(0).innerHTML = '<font size=2>Image URL:</font>';
  43. 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>';
  44. obj.parentNode.insertBefore(document.createElement('tr'), obj);
  45. obj.previousSibling.className = 'windowbg';
  46. obj.previousSibling.insertCell(0).innerHTML = '<font size=2>Confirmation:</font>';
  47. 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>';
  48. }
  49. //-->
  50. </script>
 

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:29pm UTC)
http://bepcanadamaster.proboards105.com/index.cgi?board=aff&action=post



Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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? {Unsure}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:38pm UTC)
well it'll make the post etc... {Unsure}

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! {Smile}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:41pm UTC)
Ok i'll give it a shot {Smile} , but it'll have to be abit later on and i'll let you know Wrighty . When i try it .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 8:56pm UTC)
That's fine! {Smile}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 {Sad} .


Image
click here We have 15 Different Skins/Templates for your vForum
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
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 {Sad} .



Can you post the exact code you're trying to use? {Smile}

Image
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Ross Affiliate Posting Form To Be Converted (18th Feb 08 at 11:44pm UTC)
Its this one that i tried http://support.virtualforums.co.uk/board/database/topic/25/action/view_topic/predefined-posting-template-form//page/1/

well that's the one i think Wrighty was talking about.

But it didn't work at all, i really would like the one i posted if possible {Smile} .

Image
click here We have 15 Different Skins/Templates for your vForum
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Ross Affiliate Posting Form To Be Converted (19th Feb 08 at 12:58am UTC)
 
Its this one that i tried http://support.virtualforums.co.uk/board/database/topic/25/action/view_topic/predefined-posting-template-form//page/1/

well that's the one i think Wrighty was talking about.

But it didn't work at all, i really would like the one i posted if possible {Smile} .


Ross means post the edited code, so we can see if you made any editing mistakes. {Wink}

rroll.to— Shorten a link, rickroll your friends.
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 .

Image
click here We have 15 Different Skins/Templates for your vForum
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Ross Affiliate Posting Form To Be Converted (20th Feb 08 at 4:06am UTC)
Bump

Image
click here We have 15 Different Skins/Templates for your vForum
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Ross Affiliate Posting Form To Be Converted (22nd Feb 08 at 3:34am UTC)
Bump

Image
click here We have 15 Different Skins/Templates for your vForum
 Printable View
Page: 1 2

All times are GMT+0 :: The current time is 11:07pm
Page generated in 0.5351 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums