Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - [MOD] Member of the Month
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[MOD] Member of the Month

 Post Reply Post Reply
Author
mbd2 View Drop Down
Groupie
Groupie


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbd2 Quote  Post ReplyReply Direct Link To This Post Topic: [MOD] Member of the Month
    Posted: 14 July 2006 at 4:48pm
I have create a Member of the Month or Awards Mod based on MadDog Birthday Mod with modifications. Works in 8.X

This is designed for Access DB.


1) Modify the table tblAuthor and add a text field call Awards

2) Create a table called tblAwards


  • Author_id Number key field
  • Award_Id Text field
  • Award-Month Text field
  • Award_Year Text field
  • Description Text field
  • Award_Date Date/Time field

Here are the three programs need.




Check_Permissions.asp is a program created for version 6.x which I updated to work with 7 and 8.


Member_of_Month.asp is a program that I use on my default page using an incude statement. I will show the members Avator, link to there profile, and a link to a list of last month winners (Member_of_Month_a.asp).



Member_of_Month_a.asp show a listing of the members, plus it uses the style sheet from the default page. The listing show, avatar, user name/real name, status, registration date, and award date. All sorted by award date.



To use.


Create table information, upload files, go to tblAuthor and in the Awards row, enter 1 for the person winning the award - Save (remember Author ID number). Go to tblAwards and make a new entry. Enter the Author_Id, 1 for Award_Id, followed by dates and description.


Descriptions is more for admin purposes.


IF done right you should have a listing. - Next month/award change the person who is 1 to 2 and make the new person 1.



PROBLEM - you need to edit the table every month. I have been working on make the registration forum input this date so the Admin can make changes but have not been successful. This is where I need help to make this a really cool mod.


I hope this make sense.





Edited by Demon - 14 July 2006 at 10:08pm
Balloon Entertainment at it's best! www.mbd2.com -- Trade Show Presenter - video
Back to Top
Demon View Drop Down
Mod Builder Group
Mod Builder Group
Avatar
Mod-n-Skin Moderator

Joined: 26 July 2003
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Demon Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2006 at 6:34pm
Well, to make database changes from a webpage or form, use the following examples.

Adding a Row to a Table:
strSQL = "INSERT INTO table_name VALUES (value1, value2,....)"

adoCon.execute(strSQL)


Updating a Row in a Table:
strSQL = "UPDATE table_name SET column_name = new_value WHERE indexColumn_name = some_value"

adoCon.execute(strSQL)


Deleting a Row from a Table:
strSQL = "DELETE FROM table_name WHERE indexColumn_name = some_value"

adoCon.execute(strSQL)


These should all work fine if used correctly.
So Sayith the Demon.
Back to Top
mbd2 View Drop Down
Groupie
Groupie


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbd2 Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2006 at 7:16pm
Thanks Demon for the help.
 
I haven't had much time to reconfigure the registration.asp page to reflect these changes.  I'm thinking that would be the best place to do it.  If anybody want to jump in and give me a hand completing this... I would not object.
Balloon Entertainment at it's best! www.mbd2.com -- Trade Show Presenter - video
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.