The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Well, because I can't get my hands on Crash's Member Award MOD, I decided to attempt to write my own [IMG]http://i607.photobucket.com/albums/tt158/The_Zim/Emoticons/rollseyes.gif[/IMG]. But, I really don't know much about asp, [IMG]http://i607.photobucket.com/albums/tt158/The_Zim/Emoticons/Loudedt.gif[/IMG], 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
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
Sist redigert av
Postet den
Easy enough.
Code:
' 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
Postet den
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
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
Postet den
Huw's fixed the pop_mail.asp here so he should be able to e-mail you via the normal process.
Postet den
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?
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?
Sist redigert av
Postet den
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.
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.
Postet den
Postet den
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?
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?
Postet den
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.
Postet den
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.
Sist redigert av
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...

