Author |
Topic |
puzo
Junior Member
Israel
417 Posts |
Posted - 20 September 2003 : 12:49:19
|
It's been made for phpbb, dcforum, vbb, webwiz, about time snitz has it, i present you Puzo's Pic by forum mod. Here's a sample:
Instructions on how to install ---------------------------------- Difficulty on a scale of 1/10 - 2
1) Create a directory called "show" (w/o the quotes) in your forum's directory, that means if you forum's directory is /snitz then it should come out as /snitz/show
2) Find out the the forum's (the one you're assigning the picture to) FORUM_ID, that is done by moving your mouse over the forum's title and looking at your browser's status bar, every forum has a different ID, screenshot attached bellow:
3) After finding out each and every ID of the forums you have you have to find images to suit the forum you're applying the picture to, i will leave that to you ;) . Note: The images must be in *.JPG format After finding the images you assign them in the following way: You change the image's name to your Forum_ID's number and upload it to the show folder you created in step 1, sounds complicated? i dont think so, let me rephrase that for you: A) Get an (*.JPG) image B) Change it's name according the forum you want to assign it to (the name is the same as the forum's ID; FORUM_ID=?) C) Upload your image(s) to the show directory you've created in step 1.
4) Open the file called inc_header.asp, on approx line 41 after the following text:
<!--#INCLUDE FILE="inc_func_common.asp" -->
Add this code:
<style type="text/css">
.brdr { border: solid black; border-width: 1px;
}
.brdrylw { border: solid #E79D1D; border-width: 1px;
}
</style>
5) Open the file called default.asp and on approx. line 685 find the following code:
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
and replace it with this code:
if dt > Session(strCookieURL & "last_here_date") and (ForumCount > 0 or ForumTopics > 0) then
'############PuZo's Pic Mod
Response.Write "<img src=""show/" & ForumID & ".jpg"" class=""brdr"" border=""0"" alt=""" & chkString(ForumSubject,"display") & """></a>"
else
Response.Write "<img src=""show/" & ForumID & ".jpg"" class=""brdrylw"" 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)"">Forum Locked</a>"
else
if CatStatus = 0 then
strAltText = "Category Locked"
else
strAltText = "Forum Locked"
end if
Response.Write "<acronym title=""" & chkString(ForumSubject,"display") & " (Locked)"">Forum Locked</a>"
end if
end sub
That's it, you're all done, enjoy your mod.
Mike.
P.S ---- In case you dont have any pictures here's an image pack for you: http://download.server3.come2store.com/puzo/pictures.zip |
|
Edited by - puzo on 25 September 2003 06:17:42 |
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 20 September 2003 : 16:24:58
|
Nice idea but you've removed the folder icon which indicates new topics etc to the user |
The UK MkIVs Forum |
|
|
richfed
Average Member
United States
999 Posts |
|
puzo
Junior Member
Israel
417 Posts |
Posted - 21 September 2003 : 01:45:18
|
i tried it, it looked kinda bad with that picture along with the icon, cant the member just look at the last post date? i know thats what i do. |
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 21 September 2003 : 20:57:08
|
Puzo,
Looked at your code, and could not get it work as described. Is there a step missing? I know how to over come the new post thing, but I would like to get it running first. Can you post all the sub for this so I can test it, please?
|
Cheers, David Greening |
|
|
puzo
Junior Member
Israel
417 Posts |
Posted - 22 September 2003 : 07:56:51
|
what exactly is your problem? |
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 22 September 2003 : 19:59:09
|
Puzo,
The images did not change to the newly created images from the standard icons, and that was after I cleared all my cached files.quote: Originally posted by puzo
what exactly is your problem?
That was also logged in, and as a visitor. Really stange as going on the code you supplied, and a little editing to suit new posts, it should of worked. Even with out the editing and just using your code, it was the same.
The reason I ask if something is missing, is there is nothing in your code that points to the show directory at all. This is why I ask if there is a step missing.
|
Cheers, David Greening |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 22 September 2003 : 20:29:56
|
Puzo, but looking at step 5, it seems as if the start of the sub is missing. I can only find the ending of it. Perhaps that is related to the problem that David has? |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
seven
Senior Member
USA
1037 Posts |
Posted - 22 September 2003 : 21:54:47
|
what made you think of posting a mod screenshot with warez, cracks and serials in it? |
|
|
|
puzo
Junior Member
Israel
417 Posts |
Posted - 23 September 2003 : 12:03:29
|
@Classicmotorcycling Are you images in JPG format? @masterao The sub starts earlier, it's just a point of the code, if there was a prob with the sub the wouldnt load at all. @seven it's my forum, i had to try it somewhere, it's not like there are links here. |
|
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 23 September 2003 : 16:58:27
|
Now I understand . I thought you had created a new sub, not that you were editing an already existing sub. Goes to show that I should look up the changes instead for only reading it here. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
|
puzo
Junior Member
Israel
417 Posts |
Posted - 24 September 2003 : 07:11:57
|
Im really sorry for this, i could swear i added it when i forst posted this topic, the code is now fixed. |
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 24 September 2003 : 10:10:54
|
Wouldn't it be possible to add, say a yellow border around the images if there are new posts in the forum? |
/Tribaliztic - www.gotlandrace.se -
|
|
|
puzo
Junior Member
Israel
417 Posts |
Posted - 25 September 2003 : 06:18:04
|
that's a good idea, code + instructions remodified, thanks.
P.S ---- Change the color of brdrylw to whichever color you want |
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 25 September 2003 : 06:46:50
|
Cool! I've implemented this on my forum and it's working fine! Now I just have to find some suiting pics, any hints? ;) |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Topic |
|