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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Pic by forum
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

puzo
Junior Member

Israel
417 Posts

Posted - 20 September 2003 :  12:49:19  Show Profile  Visit puzo's Homepage
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  Show Profile
Nice idea but you've removed the folder icon which indicates new topics etc to the user

The UK MkIVs Forum
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 20 September 2003 :  16:51:19  Show Profile  Visit richfed's Homepage
I think you can do this already - or something very similar - simply by adding the forum code tag for images while editing a forum's properties.

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 21 September 2003 :  01:45:18  Show Profile  Visit puzo's Homepage
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.


Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 21 September 2003 :  20:57:08  Show Profile
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
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 22 September 2003 :  07:56:51  Show Profile  Visit puzo's Homepage
what exactly is your problem?


Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 22 September 2003 :  19:59:09  Show Profile
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
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 22 September 2003 :  20:29:56  Show Profile  Visit masterao's Homepage
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
Go to Top of Page

seven
Senior Member

USA
1037 Posts

Posted - 22 September 2003 :  21:54:47  Show Profile  Visit seven's Homepage
what made you think of posting a mod screenshot with warez, cracks and serials in it?

Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 23 September 2003 :  12:03:29  Show Profile  Visit puzo's Homepage
@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.


Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 23 September 2003 :  16:58:27  Show Profile  Visit masterao's Homepage
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
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 23 September 2003 :  20:51:25  Show Profile
Puzo,

Yes the are.
quote:
Originally posted by puzo

@Classicmotorcycling
Are you images in JPG format?
As an example, here is what I have to work on for standard, new, locked and New in a locked forum:
http://www.classicmotorcycling.com.au/Forums/show/4.jpg
http://www.classicmotorcycling.com.au/Forums/show/4_np.jpg
http://www.classicmotorcycling.com.au/Forums/show/4_fl.jpg
http://www.classicmotorcycling.com.au/Forums/show/4_fnl.jpg

But it doesn't make a difference. Like I said, there is no reference for your code to go to the show directory to look for images. I was giving them all the same images until I work on replacing them with individual images.

Is there something that needs to be done?

Cheers,

David Greening
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 24 September 2003 :  07:11:57  Show Profile  Visit puzo's Homepage
Im really sorry for this, i could swear i added it when i forst posted this topic, the code is now fixed.


Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 24 September 2003 :  10:10:54  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
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 -
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 25 September 2003 :  06:18:04  Show Profile  Visit puzo's Homepage
that's a good idea, code + instructions remodified, thanks.

P.S
----
Change the color of brdrylw to whichever color you want


Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 25 September 2003 :  06:46:50  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
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 -
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07