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/O Code)
 MOD help-Banner Image Reward
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

The Zim
Junior Member

107 Posts

Posted - 07 April 2009 :  20:03:28  Show Profile  Visit The Zim's Homepage  Reply with Quote
Well, because I can't get my hands on Crash's Member Award MOD, I decided to attempt to write my own . But, I really don't know much about asp, , so I will probably end up blowing something up before I'm done, . But anyways...

I'm going to base this new MOD off of the Avatars MOD (I'll give credit!) with some minor/major changes. (minor as in it doesn't change a whole lot, major as in it will change a lot of the overall functioning).

To the point, lol. For now, all I need is a basic line of code that only allows admins to change something. I would like the banners to be chosen by the admins and selected to be displayed by them as well, via the user's profile who earned them. I would like it to work like the Member Level field that is already there, but I can't find the right code. I've been searching in pop_profile.asp. Please help if you can


Edited by - The Zim on 07 April 2009 20:05:05

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 07 April 2009 :  20:18:33  Show Profile  Reply with Quote
Easy enough.


'	This restricts function to administrators only ...
if mLev > 2 then	'	Excludes moderators, regular members, guests
	'	Take whatever action you want restricted, put all of your code here
else
	'	Do nothing
end if
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 08 April 2009 :  02:46:04  Show Profile  Visit Etymon's Homepage  Reply with Quote
Hey Zim,

I have some of Crash's older stuff. Contact me via my signature (if the pop_mail.asp here at Snitz is still under repairs).

Cheers,

Etymon
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 08 April 2009 :  05:59:53  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Huw's fixed the pop_mail.asp here so he should be able to e-mail you via the normal process.
Go to Top of Page

The Zim
Junior Member

107 Posts

Posted - 08 April 2009 :  08:55:45  Show Profile  Visit The Zim's Homepage  Reply with Quote
I sent the email, thx! I'll probably still try and make the MOD just to give something back, lol, and because I want to see if I can actually do it, lol. So, we'll see what blows up first

With that code. If I want it to literally do nothing, can I just leave it like it is? (change the code for admins only, of course, but make it so nothing happens if they are not an admin) Can I just delete the 'Do Nothing in there and put that in? Or even leave that part be?


Edited by - The Zim on 08 April 2009 09:01:14
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 08 April 2009 :  09:21:03  Show Profile  Visit Etymon's Homepage  Reply with Quote
Hey Zim,

I'm sending you all of the Crash MODs I have. If I remember correctly, Crash extracted these MODs from his own modified forum, so you will have to pay close attention to some of the variables especially the colors. There should be about 10 MODs in the e-mail I am sending, and the .zip file is just over 1MB. If your e-mail provider won't allow that large of a file, let me know, and I'll post a link or perhaps just upload them to SnitzBitz as a package for others to have as well.
Go to Top of Page

The Zim
Junior Member

107 Posts

Posted - 08 April 2009 :  12:01:58  Show Profile  Visit The Zim's Homepage  Reply with Quote
Ok, my email provider allows up to 20 mb, so that shouldn't be a problem, you ought to upload any of those that aren't already on Snitzbitz on there, that way if anyone else needs them, the MODs are there for them.

Go to Top of Page

The Zim
Junior Member

107 Posts

Posted - 08 April 2009 :  12:09:44  Show Profile  Visit The Zim's Homepage  Reply with Quote
Ok, just to make sure. Most code that starts with strsql = strsql & ", " or anything similar, is just more of "server information" where the script tells the browser to retrieve such and such information from the server right? I need to know whether or not they would appear on the page to a normal user if I do not enclose them with that admin only code you gave me earlier.

Anything that has Response.write with it is what is going to appear to normal users, right? Unless it is enclosed with the admin only script?

Unfortunately, I can't learn new things with asp like I could with HTML, just playing around with different script and seeing what happens in a preview, lol. Does anyone know of a program that would let me preview an asp page without having to upload it to my host first?

Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 08 April 2009 :  14:59:16  Show Profile  Visit Etymon's Homepage  Reply with Quote
You'd probably find quicker help on how to code at some other web sites. The forums here at Snitz references this link: http://www.4guysfromrolla.com/webtech/faq/ under URLs and Other Resources.
Go to Top of Page

The Zim
Junior Member

107 Posts

Posted - 09 April 2009 :  11:36:36  Show Profile  Visit The Zim's Homepage  Reply with Quote
I got that email, thx Etymon! As for those sites, for some unknown reason, they have that 4 guys from rolla site blocked here at my school. I don't know why, but they do. They have a lot of sites blocked for no reason . It makes my web surfing a pain the rear but I manage somehow, lol. I do most of my coding and stuff here at school, but I'll have to check into that site when I'm at home.


Edited by - The Zim on 09 April 2009 11:43:12
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 April 2009 :  11:49:30  Show Profile  Reply with Quote
Try W3Schools.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07