Code:
- <script language="JavaScript">
- if(location.href.match(/action=post$/gi))
- {
- var a = window.prompt("What is your board URL?","http://");
- if (a != 'http://') {
- if (a.indexOf('http://http://') != -1){
- a = 'ht'+ a.split('//ht')[1];
- }
- document.postForm.message.value+="Board URL: "+a+"nnProblem:nn";
- }
- }
- </script>
I made this code (Though I do not know how I did it, just followed a few steps.), it kinda works though it will not put the link into the post, and I want to put .virtualforums.co.uk in the non-url area, so you can only put your forums link, instead of putting http://Forums_link.virtualforums.co.uk.
Thanks,
Darkmage
to do that I would suggest some form of post request form... instead of a prompt...
What you could do I guess is check if it contains .virtualforums.co.uk
and if it doesn't add it... and if it does then don't add it.
(should be in code support!)
I guess I can fix up Ross' Posting form, but I was thinking of having it, just like PBS form.
PBS' is a form isn't it? It isn't a prompt box..
You can use a prompt box no problem...it's just the code to do it would be stupidly long when you could just code a post modification box...
I'm happy to help ya!![]()
I know PBS has a form, Awhile ago it used to be Prompt box, but all well. I guess no Biggie, thanks.
Gimme 10 mins and I'll make you a prompt box one that automatically checks if it has virtual forums in it!![]()
Code:
- <script>
- //Darkmage's Request
- //Created By Wrighty
- 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>
should do it!![]()
Even threw in a lil' special something for ya!![]()
ok thanks ^_^
No worries!![]()
(it updates the characters left automatically!)
it dont work:Just click on new thread
http://magedesigns.virtualforums.co.uk/board/Support/
The box comes up I put in ffnation, then I click ok, and the link does not get added to the posting field.
Edit: on your forum why do you have "DarkMage's requests?" and BTW I don't capitalize my M on mage, So I keep it Darkmage.
guest can't make a post..
put it in the footer... as I'm guessing you put it in the header?![]()
^_^ yes I did put it in the header. and guests should be able to post.
it works now, and I made guests enabled.
so they can!![]()