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)
 Sponsoring Members Mod
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 14 March 2004 :  04:12:07  Show Profile  Visit MarcelG's Homepage
This is the first release of the mod discussed here: MOD Add-On Forum (W/O Code) - sponsoring members mod.

This mod has been developed, to provide some means of defining that a member is a sponsor.
A sponsor can be someone who has financially supported the forum/website, or for example someone who has sponsored the forum/website in terms of efforts (helping with the coding, providing hosting, moderating etc).
In my case at www.oxle.com, I’ve decided to build this mod because I wanted my members to have the option to sponsor oxle, and get rid of the ads.
Next to that it gives the sponsoring members the option to change their own title.
However, it’s up to your sole discretion which consequences you attach to the so-called Sponsorlevel.

Download it here: www.oxle.com/uploaded/marcelg/SponsoringMembersMod.zip" target="_blank">http://www.oxle.com/uploaded/marcelg/SponsoringMembersMod.zip

portfolio - linkshrinker - oxle - twitter

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 14 March 2004 :  22:48:10  Show Profile
Looks like an interesting MOD there.. The only issue it only has a Word document in the zip file. Do you have the dbs file somewhere?

Cheers,

David Greening
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 15 March 2004 :  01:08:10  Show Profile
Just copy/paste the following code using a text editor (not FrontPage) and save as dbs.sponsormod.asp - run in normal way.


SponsorMOD v1.0 Beta
[ALTER]
MEMBERS
ADD#M_SPONSORLEVEL#int#NULL#0
[END]
[ALTER]
MEMBERS_PENDING
ADD#M_SPONSORLEVEL#int#NULL#0
[END]
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 15 March 2004 :  04:02:49  Show Profile  Visit MarcelG's Homepage
Woeps, forgot the dbs file...sorry.
Indeed, Carefree's post sais it perfectly.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 15 March 2004 :  14:32:48  Show Profile  Visit MarcelG's Homepage
Bugfix number 1 ; a little bug in the title-mod (pop_profile.asp).
Fixed in the new release.
Updated the zip file. new version is 1.1

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

spudly
Starting Member

8 Posts

Posted - 22 April 2004 :  14:11:10  Show Profile
I've run into a problem. Everytime I try to click on a member's profile, this is the message I am getting.

Microsoft VBScript compilation error '800a03f6'

Expected 'End'

/bberretta/forum/pop_profile.asp, line 1706

else 'Not logged on or no member
^


I'm running Serverhacker's Modded forum.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 23 April 2004 :  03:21:44  Show Profile  Visit MarcelG's Homepage
Spudly, I suspect that you've modified pop_profile.asp incorrectly.
Check your code again, or post a link to a downloadable version here, so I can have a look.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

spudly
Starting Member

8 Posts

Posted - 23 April 2004 :  06:05:57  Show Profile
I fixed it, it was a small error on my end. Is there a way to include some sort of graphic with the sponsor mod to show who has sponsored?
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 23 April 2004 :  06:35:46  Show Profile  Visit MarcelG's Homepage
you can do ANYTHING you want with the slev value!
For instance
IF Slev <> 0 THEN
' SHow this beautifull sponsor-logo in each post below the membername
END IF

It's all up to you

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

spudly
Starting Member

8 Posts

Posted - 29 April 2004 :  13:04:47  Show Profile
If I set the slev=1 and the slev=2 can I then show separate graphics for each? How do I do this and where do I need to put the code in order for it to show up underneath the member's username/ avatar?
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 29 April 2004 :  13:46:26  Show Profile  Visit MarcelG's Homepage
spudly, the syntax would be something like this
IF Slev = 1 THEN
In topic.asp you will have to get the SLEV for the member posting/reply-ing! So that's a different value than the normal slev.
So, you will have to add the SLEV value to the query in topic.asp.
Let's define it as member_slev and replymember_slev (just as with the other values).
The code then could be something like this
In the sub GetFirst:

IF member_Slev = 1 THEN
' SHow another sponsor-logo in the first post below the membername
ELSEIF member_Slev = 2 THEN
' SHow another sponsor-logo in each post below the membername
END IF

For the other posts it would be something like this:
IF replymember_Slev = 1 THEN
' SHow another sponsor-logo in the first post below the membername
ELSEIF replymember_Slev = 2 THEN
' SHow another sponsor-logo in each post below the membername
END IF

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

spudly
Starting Member

8 Posts

Posted - 29 April 2004 :  15:35:28  Show Profile
I hate to sound so illiterate, but I am real new to this. Is this how it should look?

IF member_Slev = 1 THEN
' SHow support_silver.gif
ELSEIF member_Slev = 2 THEN
' SHow support_gold.gif
END IF

IF replymember_Slev = 1 THEN
' SHow support_silver.gif
ELSEIF replymember_Slev = 2 THEN
' SHow support_gold.gif
END IF

This doesn't look right at all, but I'm not sure what to do. When I have it in this way it doesn't do anything. But, if I change even the slightest thing it will give me an error. If I remove the ' from the SHow lines it still does nothing.
Here's the link to my topic.asp page if you have time to look at it (if not, don't worry.) I inserted the code on lines 1035-1045. I posted it as a text file.

http://www.cbhs.org/bberretta/forum/topicasp.txt

Thank you for all your help!

Edited by - spudly on 29 April 2004 16:46:47
Go to Top of Page

dpmcalister
Junior Member

United Kingdom
161 Posts

Posted - 29 April 2004 :  17:18:00  Show Profile  Visit dpmcalister's Homepage
Something like this shold cover it...


if member_Slev = 1 then
     Response.Write  "<img src=""support_silver.gif"">" & vbNewLine 'Show support_silver.gif
elseif member_Slev = 2 then
     Response.Write  "<img src=""support_gold.gif"">" & vbNewLine 'Show support_gold.gif
end if

if replymember_Slev = 1 then
     Response.Write  "<img src=""support_silver.gif"">" & vbNewLine 'Show support_silver.gif
elseif replymember_Slev = 2 then
     Response.Write  "<img src=""support_gold.gif"">" & vbNewLine 'Show support_gold.gif
end if
Go to Top of Page

spudly
Starting Member

8 Posts

Posted - 03 May 2004 :  12:20:21  Show Profile
Maybe I'm putting it in the wrong place because nothing is showing up. There are no script errors, but it's like it just doesn't exist. There's not even any "missing graphic" under the avatar.
Go to Top of Page

MotoX
Junior Member

201 Posts

Posted - 26 August 2004 :  09:21:43  Show Profile
Does anyone have an active download for this?
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 26 August 2004 :  09:25:13  Show Profile  Visit MarcelG's Homepage
http://www.oxle.com/uploaded/18/SponsoringMembersMod.zip

portfolio - linkshrinker - oxle - twitter
Go to Top of Page
Page: of 2 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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07