| akewlfishStarting Member
 
 
 
                USA8 Posts
 | 
                    
                      |  Posted - 09 January 2010 :  10:55:26   
 |  
                      | H! all 
 Great job with the new version, the spammers have been stopped now.
 
 I have a question about the inc_func_common.asp page.
 
 First let me state that this is on a clean install and the only thing I carried over was the access database on 1/6/2010.
 
 While trying to install a video mod at the bottom of the inc_func_common.asp page starting around line 1565 there is this code below.  That code is outside the %> for the page. It doesn't have a response.write and it is not faded out like if the code was before the %>. Is this an error or is this actually supposed to be this way?
 
 I could not get Marcell's Mod to work because of a JavaScript error on this page. Now whether the error is his code or because of an error with the tags already on the page not matching up, I cannot tell you at this time and that is not the question.. It is weird to me that the " is not ""
 
 
 <script language="javascript1.2" runat="server">
 function edit_hrefs(sURL, iType) {
 sOutput = new String(sURL);
 
 if (iType == 1) {
 sOutput = sOutput.replace(/\b(http\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
 "<a href=\"$1\" target=\"_blank\">$1<\/a>");
 } else if (iType == 2) {
 sOutput = sOutput.replace(/\b(https\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
 "<a href=\"$1\" target=\"_blank\">$1<\/a>");
 } else if (iType == 3) {
 sOutput = sOutput.replace(/\b(www\.[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
 "<a href=\"http://$1\" target=\"_blank\">$1<\/a>");
 } else if (iType == 4) {
 sOutput = sOutput.replace(/\b([\w+\-\'\#\%\.\_\,\$\!\+\*]+@[\w+\.?\-\'\#\%\~\_\.\;\,\$\!\+\*]+\.[\w+\.?\-\'\#\%\~\_\.\;\,\$\!\+\*]+)/gi,
 "<a href=\"mailto\:$1\">$1<\/a>");
 } else if (iType == 5) {
 sOutput = sOutput.replace(/\b(ftp\:\/\/[\w+\.]+[\w+\.\:\/\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
 "<a href=\"$1\" target=\"_blank\">$1<\/a>");
 } else if (iType == 6) {
 sOutput = sOutput.replace(/\b(file\:\/\/\/[\w+\:\/\\]+[\w+\/\w+\.\:\/\\\@\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
 "<a href=\"$1\" target=\"_blank\">$1<\/a>");
 }
 
 return sOutput;
 }
 </script>
 
 |  |