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
 Points Mod Compatibility
 New Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 December 2013 :  14:02:02  Show Profile

Carefree, I am wanting to do your "Poll Mod Addon" and just thought I might need to ask if I need to wait for you to finish this before I do that addon?



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 08 December 2013 :  16:53:16  Show Profile
No need to wait, go ahead.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 December 2013 :  20:02:12  Show Profile

Okay. Thank you!


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 December 2013 :  20:53:25  Show Profile
quote:
Originally posted by MaGraham



I'll probably have about fifty name tags for them to choose from so it might be best to have about ten name tag graphics on each page so it won't take each page so long to load.





I wasn't thinking when I wrote that, Carefree!

I will probably have about 100 name tag graphics when finished. I was just thinking about "Christmas" and "Everyday" graphics when I wrote that and completely forgetting about all of the other holidays, patriotic, etc.!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 09 December 2013 :  08:33:06  Show Profile
No problem, no programming difference between 5-10 pages.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 09 December 2013 :  13:09:58  Show Profile

Great! Thank you!!

Would it be much trouble to add another option just like this one, Carefree?

This would be an option for members to purchase a set of "Alphabet Letters" with their points in the same way as with the "Name Tags" but probably only 50 of these sets (5 pages of 10).

If it's much trouble, that's okay! The "Name Tags" are what's most important.


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Edited by - MaGraham on 09 December 2013 13:10:51
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 09 December 2013 :  21:37:36  Show Profile
quote:
Originally posted by Carefree

quote:
Originally posted by MaGraham

The forum number is 10, and I chose 10 points.

If forum_id=10 Then GetPoints=GetPoints+10

It works fine, but it's giving 15 points.




It's giving 15 because you selected 5 as the default. Ergo, 5 (GetPoints) + 10 = 15..... Change the + value to 5 if you want to award 10.




Oh, I just now saw this! Gonna do it now. Thank you!!



I have another question.

What would I need to do if I wanted to add another forum for the members to receive extra points when they post to it?

"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 10 December 2013 :  02:53:26  Show Profile
Change the routine in "inc_func_common.asp"


Look for this routine:

'	##	Points Below
Function GetPoints(ActionCode)
	If strPointsEnabled = "0" Then
		GetPoints = 0
	Else
		strSql = "select P_POINTS from " & strTablePrefix & "POINT_ACTIONS WHERE P_ENABLED = 1 AND P_ACTION = '" & ActionCode & "'"
		Set rsPoints = Server.CreateObject("ADODB.RECORDSET")
		rsPoints.open strSql, my_Conn
		pVal=0
		If not rsPoints.EOF Then
			pVal =  rsPoints("P_POINTS")
			rsPoints.Close
		End If
		Set rsPoints = Nothing
		GetPoints = pVal

Now, change the following line to says this:

		If forum_id=??? or forum_id=??? Then GetPoints=GetPoints+??

Replace the first two sets of  ? marks in red with the forum numbers where you want the additional points awarded, then replace the third set of ? marks with the amount of points:

Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 10 December 2013 :  03:31:54  Show Profile

That did it! Wonderful!

Thank you so much, Carefree!



Uhhh, did you see my post above (about the third one up from here, not counting this one)?


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 10 December 2013 :  12:17:13  Show Profile
Hadn't noticed it, no.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 10 December 2013 :  14:20:03  Show Profile




"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic
 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