var quickFindCodes; var j; var quickFindCode; var forumLink; // //Locals end. // try { //Get all posted quickfind codes. quickFindCodes = postMessage .match(/\d{1,3}-\d{1,3}-\d{1,3}-\d{7,8}/g); //Loop through quick find codes. for (j = 0; j < quickFindCodes.length; j++) { //Get one quick find code, and replace -'s with ,'s. quickFindCode = quickFindCodes[j] .replace(/-/g, ","); //Generate forum link string. forumLink = "" + quickFindCodes[j] + ""; //Replace quick find code in post string, //with forum link. //Fixed by Pah Psi, thanks! postMessage = postMessage .replace(RegExp(quickFindCodes[j],"g" ), forumLink); } } catch (e) {} }
Welcome Guest [Log In] [Register]
Add Reply
hi
Topic Started: Feb 6 2011, 03:42 PM (81 Views)
Trevor
Administrator
test
Edited by Trevor, Feb 6 2011, 05:15 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Announcements & News · Next Topic »
Add Reply