Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/63446?pagenum=1
05 November 2025, 07:06
Topic
JJenson
Announcment Scroller Mod
02 December 2006, 01:36
Ok I am not sure who all will want something like this or not. I did not write the original code I modified it so that it would work with the base snitz code.
I hope people will like this and any improvements would be greatful I am not sure all the inhancements I can make but would appreciate it if someone would like to step in and make some.
Let me know if you want this or not if so I will see about uploading it over at snitzbitz.
Download File HereUpdated 12/3/06 9:50 AM MST<
Replies ...
JJenson
02 December 2006, 09:23
I forgot to say you can see this at this site.
www.thebragboard.com/other/forum1
You do not need to log in to see this.
* Sorry edited its the right link now. I apologize about that.<
MarkJH
02 December 2006, 14:27
Originally posted by JJenson I forgot to say you can see this at this site.
www.thebragboard.com/forum1
You do not need to log in to see this.
Getting a 404 on that one, Jeff.<
JJenson
02 December 2006, 14:53
edited both links above should work now sorry about that I should really check for typos when I do that <
modifichicci
02 December 2006, 16:50
Not working with firefox...<
JJenson
02 December 2006, 18:29
Ok I only tested this with IE so I will have to see what I need to do to get it working with firefox. Any ideas on where to point me?
I will go ahead and take a look at this after dinner tonight.<
modifichicci
02 December 2006, 18:34
Why in inc_announce3 there is a testing string on IE or Netscape?
Try deleting the if then checking for browser and see what happens, i haben't installed the mod , so i cannot try it..<
JJenson
02 December 2006, 18:55
Ok I will get on and try that as soon as dinner is finished <
Jezmeister
02 December 2006, 19:15
Originally posted by modifichicci Why in inc_announce3 there is a testing string on IE or Netscape?
Try deleting the if then checking for browser and see what happens, i haben't installed the mod , so i cannot try it..
That's a check for compatibility, don't remove it but edit it if neccesary, simply add Mozilla to the list of accepted browsers otherwise it'll play up on browsers that don't support the code, the list of which i suspect is substantial given that such a check was incorporated in the first place.<
JJenson
02 December 2006, 19:45
Ok I tried it both ways. I am not sure if I take it out I get this error
Active Server Pages error 'ASP 0113'
Script timed out
/other/forum1/default.asp
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
If i put in the code and maybe I am putting in the improper names for Firefox it gives me the same code. here is what I put in for the code on that line I am sure I did it wronge
Code:
if instr(strUserAgent, "MSIE") or instr(strUserAgent, "MSIE 6.") or instr(ua, "MSIE 5.") or instr(strUserAgent, "Netscape") or instr(strUserAgent, "Netscape7.") or instr(strUserAgent, "Firefox") or instr(strUserAgent, "firefox 1.5") or instr(strUserAgent, "MF") or instr(strUserAgent, "MF1.5") then
Let me know where I should change the code I am trying to search and figure out why it won't show with Firefox but this seems like firefox has issues with the <marquee> tag but not totally sure
thank<
JJenson
02 December 2006, 21:08
Ok I added the code that Jez suggested and got it to work.
Couple things now in IE it scrolls slower than in Firefox I am not sure exactly how to get the speeds to match up or maybe classify different speed just for the Firefox? Ok this is fixed and the zip file in the first post has all the fixes You can change speeds of the scroller in Mozilla Firefox and you can change the speed in IE & Netscape seperately.
For IE search in inc_announce3.asp for IE & Netscape For Firefox search in inc_announce3.asp for Mozilla Firefox
Thanks
<
Jezmeister
03 December 2006, 07:17
You can remove all the mf's and firefox's, FireFox is recognised as Mozilla 1.7.x for version 1 and Mozilla 1.8.x for version 2.<
JJenson
03 December 2006, 10:01
OK great will take those out and place those two in them and make sure they work. Any other problems that you could see?<
JJenson
03 December 2006, 10:13
Ok I change the MF's and it still worked but when I changed the Firefox and Firefox 1.5 it did not work on my firefox not sure why. I changed just the mf's and everything looks good on my end now.
thanks<
Jezmeister
03 December 2006, 10:40
Ok just tested it, a few errors with your db update file (i'm using MySql) - I corrected it to the following:
Code:
Forum Announcements Mod v3.3 [CREATE]
ANNOUNCE A_ID A_AUTHOR#varchar (150)#NULL# A_SUBJECT#varchar (50)#NULL# A_MESSAGE#text#NULL# A_FORUM_ID#smallint## A_START_DATE#varchar (50)#NULL# A_END_DATE#varchar (50)#NULL# [END]
I think the main issue was you'd specified NULL for smallint rather than a numerical value or blank, probably only MySql that's so pedantic about that but still, does no harm to be right for all db's.
other than that nothing specific, you can use Mozilla or firefox as the browser ID by the looks of it, i've always used Mozilla for it but as long as it works thats what matters.<
JJenson
03 December 2006, 11:37
Ok I have switch the DBS file for the Mysql database. It is now working within all browsers. Thanks Jez for the help I had never done something like this before and it has been really fun I think I will keep taking stabs at things like this.
Let me know if anything else needs to be done. I have updated the zip folder in the first post with the current updated files.
Thanks<
JJenson
03 December 2006, 14:52
About how long should I wait before trying to have this uploaded on snitzbitz? I am not sure what the standard is to wait without seeing problems?
Thanks<
JJenson
06 December 2006, 18:16
Jez I tried using the new dbs structure that you gava me and it brought up problems in access. I will provide a dbs for Sql and one for Access but I am not at my home computer so I will do it tonight if anyone cares.<
JJenson
21 December 2006, 11:30
No problem I hope you can find some use for it.<
OBmoderator
06 January 2007, 00:30
I just installed the mod.
I get the following error when I try to add an announcement:
Microsoft JET Database Engine error '80004005'
The field 'FORUM_ANNOUNCE.A_FORUM_ID' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.
/sxmforum2006/admin_add_announce.asp, line 165 <
JJenson
06 January 2007, 09:26
Are you using MySQL or are you using Acess?<
OBmoderator
06 January 2007, 09:28
Access<
JJenson
06 January 2007, 10:57
OB I will have the new database download for Access in about 1 1/2 hours I need to run a quick errend then I will get it to you.<
JJenson
06 January 2007, 12:05
Ok it is included in the origianl zip file now. This will be available for a couple hours maybe a little longer I am switching hosts today so if its not send me an e-mail through here and I will send you the file that way.
Sorry I forgot to fix this a while back.
Jeff<
OBmoderator
06 January 2007, 12:16
Jeff, Empty or corrupt zip file.
I sent you an email.
Mike<
JJenson
06 January 2007, 12:21
Sorry link fixed will check the e-mail.<
ghs215
01 February 2007, 15:04
DO I need the sitenews mod prior to using this mod?<
JJenson
01 February 2007, 15:21
No this is a standalone mod. I have to go abck and look but seems like it is not showing up in IE7 but haven't had a chance to look into that yet.<