Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 An error on the Inc common asp page?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

akewlfish
Starting Member

USA
8 Posts

Posted - 09 January 2010 :  10:55:26  Show Profile
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>

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 January 2010 :  14:16:42  Show Profile  Visit HuwR's Homepage
make sure you put your changes in the correct place. The javascript function you put in your post is supposed to be outside the ending %>
Go to Top of Page

akewlfish
Starting Member

USA
8 Posts

Posted - 09 January 2010 :  17:19:04  Show Profile
Thanks that is all I needed to is the javascript funtcion is supposed to be outside the tags. It just seemed weird that was the only page I have seen it done that way.

Keep up all the great work.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07