Author |
Topic |
puzo
Junior Member
Israel
417 Posts |
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 25 September 2003 : 08:48:04
|
Cool! Will check this! Thanks! |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 26 September 2003 : 01:55:32
|
I now have this working at Classic Motorcycling Australia and have modded it a little to suit new messages, locked forums & locked forums with new messages.
If puzo is OK with me posting the code, then I shall. Thanks for the work in getting the original running there puzo, great work.
|
Cheers, David Greening |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 26 September 2003 : 03:47:57
|
Nice, that's what I'm looking for =) |
/Tribaliztic - www.gotlandrace.se -
|
|
|
puzo
Junior Member
Israel
417 Posts |
Posted - 26 September 2003 : 06:39:10
|
sure, go ahead. |
|
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 26 September 2003 : 17:54:33
|
OK, this is just an update to Puzo's great mod. All credit goes to Puzo. I am also using .gif as I seem to get them smaller than the .jpg and they look just as good. If you prefer to use .jpg, just change the code to suit.
1. Create a directory called "show" (with-out the quotes) in your fourm directory 2. Create 4 images for each of the FORUM_ID's (normal = <FORUM_ID>.gif), (new post = <FORUM_ID>_np.gif), (locked forum = <FORUM_ID>_fl.gif) and (locked forum new post = <FORUM_ID>_fnl.gif) and place them in to the newley created show directory. See the original post from Puzo.
3. In inc_header.asp just below:
<!--#INCLUDE FILE="inc_func_common.asp" --> Insert the following after changing the colors to suit your needs:
<style type="text/css">
.brdr { border: solid #DDDDDD; border-width: 1px;
}
.brdrlock { border: solid #006CB3; border-width: 1px;
}
.brdrnew { border: solid #E00DFF; border-width: 1px;
}
.brdrnewlock { border: solid #FE010D; border-width: 1px;
}
</style> The in default.asp find and replace the following sub (no line given as each users forum is different):
sub ChkIsNew(dt)
Response.Write "<a href=""forum.asp?FORUM_ID=" & ForumID & """>"
if CatStatus <> 0 and ForumStatus <> 0 then
if dt > Session(strCookieURL & "last_here_date") and (ForumCount > 0 or ForumTopics > 0) then
Response.Write getCurrentIcon(strIconFolderNew,"New Posts","hspace=""0""") & "</a>"
else
Response.Write getCurrentIcon(strIconFolder,"Old Posts","hspace=""0""") & "</a>"
end if
elseif ForumLastPost > Session(strCookieURL & "last_here_date") then
if CatStatus = 0 then
strAltText = "Category Locked"
else
strAltText = "Forum Locked"
end if
Response.Write getCurrentIcon(strIconFolderNewLocked,strAltText,"hspace=""0""") & "</a>"
else
if CatStatus = 0 then
strAltText = "Category Locked"
else
strAltText = "Forum Locked"
end if
Response.Write getCurrentIcon(strIconFolderLocked,strAltText,"hspace=""0""") & "</a>"
end if
end sub with the following:
sub ChkIsNew(dt)
Response.Write "<a href=""forum.asp?FORUM_ID=" & ForumID & """>"
if CatStatus <> 0 and ForumStatus <> 0 then
if dt > Session(strCookieURL & "last_here_date") and (ForumCount > 0 or ForumTopics > 0) then
Response.Write "<img src=""show/" & ForumID & "_np.gif"" class=""brdrnew"" border=""0"" alt=""" & chkString(ForumSubject,"display") & """></a>"
else
Response.Write "<img src=""show/" & ForumID & ".gif"" class=""brdr"" border=""0"" alt=""" & chkString(ForumSubject,"display") & """></a>"
end if
elseif ForumLastPost > Session(strCookieURL & "last_here_date") then
if CatStatus = 0 then
strAltText = "Category Locked"
else
strAltText = "Forum Locked"
end if
Response.Write "<acronym title=""" & chkString(ForumSubject,"display") & " (Locked)""><img src=""show/" & ForumID & "_fnl.gif"" class=""brdrnewlock"" border=""0"" alt=""" & chkString(ForumSubject,"display") & """></a>"
else
if CatStatus = 0 then
strAltText = "Category Locked"
else
strAltText = "Forum Locked"
end if
Response.Write "<acronym title=""" & chkString(ForumSubject,"display") & " (Locked)""><img src=""show/" & ForumID & "_fl.gif"" class=""brdrlock"" border=""0"" alt=""" & chkString(ForumSubject,"display") & """></a>"
end if
end sub You are now done.
I rank ease of install 2 out of 10 with 1 being the easiest. This would of got a 1, but the need to create the images.. |
Cheers, David Greening |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 26 September 2003 : 17:56:33
|
Thanks OWM..quote: Originally posted by OneWayMule
Nicely done, David. Looks sweet
Coming from you is quite pleasing after seeing the fantastic work you do. Thanks... |
Cheers, David Greening |
|
|
Helterskelter
Junior Member
United Kingdom
331 Posts |
Posted - 06 October 2003 : 16:30:16
|
Thanks
Got this working with the image changer's as well Must say it took 2 hours to find all the images I wanted and to figer out the name setting but all is working fine now
you can view it at the link below http://www.livingfish.co.uk/forum/default.asp |
|
|
|
puzo
Junior Member
Israel
417 Posts |
Posted - 08 October 2003 : 10:55:31
|
@Helterskelter It looks very nice on your forum, for me too it was hard finding those images but it was worth it, a nice cosmetic addition. |
|
|
|
Helterskelter
Junior Member
United Kingdom
331 Posts |
Posted - 08 October 2003 : 15:10:56
|
Puzo, Thanks for this mod Classicmotorcycling Thanks for your input as well.
This rearly dose chage the looks of the forum, anf i have to say it far better then the standed folder's
Just need to find a good lock image to copy over the images for locked forums, but have not had the time to do so yet.
I've also added this link to SHN's forum at http://www.shnforum.com/forum/topic.asp?TOPIC_ID=2753
for SHN moders like my self.
Thanks both of u again
Helter
|
|
|
|
CrueDawg
Starting Member
Canada
11 Posts |
Posted - 09 October 2003 : 00:17:20
|
Puzo and Classicmotorcycling,
Thanks, very Awesome!! Set it up, works like a charm! Wanna see? http://www.cruedawg.com/forum There ya go
Thanks again! |
Edited by - CrueDawg on 09 October 2003 00:17:44 |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 09 October 2003 : 05:05:51
|
Like I said, this is Puzo's mod, so all the congrats goes to him..
What I did, was just make you increase your use of a graphics editor to make another 3 images for your forums on top of the one you would of anyway... |
Cheers, David Greening |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 18 October 2003 : 22:19:21
|
Thanks all, great ideas for a very useful MOD!
Thank you Puzo ... Classic.
Etymon
|
|
|
xx ENIGMA xx
Junior Member
166 Posts |
Posted - 14 November 2003 : 10:25:57
|
this is just what my forum needs, great mod puzo and I'll try installing it today
have you thought of possibly setting a pic into the category as well and have settings to where admin's can choose to have just pics in the catagory or both catagory and topics?
just a thought
again, good job!
btw, is it possible to have a flashing border color if new posts are in a topic using <style> instead of making an animated gif?
|
my little forum playground
|
Edited by - xx ENIGMA xx on 14 November 2003 14:03:23 |
|
|
Topic |
|