|
Post by tunescool on Oct 2, 2011 11:14:08 GMT -8
i got easy 2 codes i need that i know other people will want too that you could add to your database
i do this all the time, im uploading like 5 or whatever threads at a time and after i just did 1 i forget to go into the rite forum before i post and i have to move the topic. and after you move a topic it just takes you to the forum you moved it from. i need it because i either need to recopy the url that i just posted on the internet somewhere that was wrong or i need the rite one anyway
a code that would take you to the post after youve just moved it from the admin functions
|
|
|
Post by Wormopolis on Oct 2, 2011 19:23:32 GMT -8
I dont think this is going to be possible, but I need to test a couple things.
|
|
|
Post by Wormopolis on Oct 8, 2011 23:14:30 GMT -8
the best I can do is have it take you to the board you moved it to, not the thread. There is no way to determine what the threadID is going to be after its moved (it gets a brand new id).
so I can have it take you to the board, but to be TOS compliant, it will have to popup an alert that says its about to take you to that board. I cant do an auto redirect.
I DO have another code, though, that will let you choose WHICH board a new thread gets posted to. that way you can change your mind about where it is going before you hit the submit button.
|
|
|
Post by tunescool on Oct 9, 2011 12:50:27 GMT -8
thats fine if it just goes to the board if it cant go to the thread, pop ups fine too
|
|
|
Post by tunescool on Oct 31, 2011 9:22:35 GMT -8
so could you do this
|
|
|
Post by Wormopolis on Oct 31, 2011 20:17:47 GMT -8
yep. I can do this.
|
|
|
Post by tunescool on Nov 6, 2011 5:41:04 GMT -8
if youre just taking wormer ill wait
|
|
|
Post by Wormopolis on Nov 7, 2011 22:35:58 GMT -8
I still need to get the cookie to save correctly. it isnt saving for me for some reason.
|
|
|
Post by tunescool on Nov 8, 2011 4:18:17 GMT -8
alrite
|
|
|
Post by Wormopolis on Nov 8, 2011 23:02:07 GMT -8
global footer
<script type="text/javascript"> <!-- // move topic teleport // popup when moving a topic for destination or source relocation // by wormopolis - www.wormocodes.com // do not repost - keep header intact
if (location.href.match(/action=movetopic/)) {
function rememberDest() { var mtdest=document.getElementsByName('moveto')[0].value; if (mtdest && mtdest!='') { var dt=new Date(); dt.setFullYear(dt.getFullYear()+1); document.cookie="teleport="+mtdest +'; expires='+dt; } } for (inp=document.getElementsByTagName('input'), ii=0; ii<inp.length; ii++) { if (inp[ii].type=='submit' && inp[ii].value=='Move Thread') { if (inp[ii].addEventListener) { inp[ii].addEventListener('click',rememberDest,true); } else { inp[ii].attachEvent('onclick',rememberDest); } break; } } } if (document.cookie.match(/teleport=(.*?)(;|$)/)) { var bname=RegExp.$1; var bTitle=''; var fj=document.getElementById('forumjump'); for (ff=0; ff<fj.options.length; ff++) { if (fj.options[ff].value.match(new RegExp('board='+bname+'($|&)',''))) { bTitle=fj.options[ff].innerHTML; break;} } bTitle=bTitle.replace(/^\s?-*?\s/,''); var dt=new Date(); dt.setMinutes(dt.getMinutes()-5); document.cookie='teleport=null; expires='+dt; if (confirm('Topic moved successfully. go to board "'+bTitle+'", or cancel to stay here?')) {location.href='/index.cgi?board='+bname;} }
// --> </script>
|
|
|
Post by tunescool on Nov 9, 2011 4:48:33 GMT -8
i moved a thread, it didnt have a pop up or go anywhere. it did the same thing it always does, it just stayed in the same board. did it work for you
|
|
|
Post by Wormopolis on Nov 9, 2011 20:16:30 GMT -8
Im guessing you used Safari... it worked for me on WC with firefox. I will try IE and chromw real quick
|
|
|
Post by Wormopolis on Nov 9, 2011 20:34:27 GMT -8
didnt work in chrome.. so probably didnt work in safari.
made a small adjustment. recopy and try again.
|
|
|
Post by tunescool on Nov 10, 2011 4:23:39 GMT -8
i never use safari im using firefox, i just check to see if stuff works on my forum in safari. it still doesnt do anything in firefox or safari, could it be a mac issue? id think it has to be. if you cant get it to work for me then oh well. if you wanna still try thats cool. i can always ask someone else someday
i put it on a testsite with no codes in the footers and it worked, it was really cool too cause i screw them up all the time and it was nice to go rite to the forum.
i moved it to the very top of my footers on my site and it works
but, in safari the popup comes up everytime i hit a link or a button, anything. whatever im doing anywhere on the site
|
|
|
Post by Wormopolis on Nov 10, 2011 13:32:14 GMT -8
those were all clumped together responses...
so it works for you except in Safari? and in safari its acting like its not deleting the cookie?
|
|