Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Forum URL Prompt (30th Dec 07 at 1:55am UTC) | | This will prompt you for your forum's URL when you're posting in a certain board (or all boards)
Place in footer
 Code: - <script>
- /*Darkmage's Request
- Created By Wrighty
- Don't Repost, or Rip
- Support.virtualforums.co.uk*/
-
- function prompt_do(){
- var a = window.prompt("What is your board URL?","http://");
- url = '';
- if(a=="http://"||a==''){
- url='[i]Not Entered[/i]';
- }else if(!a.match(/.virtualforums.co.uk/i) && !a.match(/http:\/\//i)){
- url='http://'+a+'.viritualforums.co.uk';
- }else if(!a.match(/.virtualforums.co.uk/i)){
- url=a+'.viritualforums.co.uk';
- }
- document.post_form.message.value="Board URL: "+url+"\n\nProblem:\n\n";
- }
-
- if(location.href.match(/\/post\//i) && !location.href.match(/\/topic\//i)){
- prompt_do();
- check_message_length();
- }
- </script>
-
| |
|