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
 Removing a Mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 05 October 2003 :  02:52:32  Show Profile  Visit tomasalsbro's Homepage
Hi,

I would like to remove the Avatar Mod from my forum.

Reversing the the files changing is no problem, but how do I reverse/delete the database changings?

This is the dbs file for the Avata Mod I hade implemented before and need to delete:
-----------
Avatar Mod for 3.4
[CREATE]
AVATAR
A_ID
A_URL#varchar (255)#NULL#
A_NAME#varchar (50)#NULL#
A_MEMBER_ID#int#NULL#0
[END]
[ALTER]
MEMBERS
ADD#M_AVATAR_URL#varchar (255)#NULL#
[END]
[ALTER]
MEMBERS_PENDING
ADD#M_AVATAR_URL#varchar (255)#NULL#
[END]
[INSERT]
CONFIG_NEW
(C_VARIABLE,C_VALUE)#('intShowAvatar','1')
(C_VARIABLE,C_VALUE)#('strAvatarFolder','avatars/')
(C_VARIABLE,C_VALUE)#('intAvatarWidth','64')
(C_VARIABLE,C_VALUE)#('intAvatarHeight','64')
(C_VARIABLE,C_VALUE)#('intAvatarBorder','1')
[END]

-----------------
My guess is that this might be correct?
-----------------
Avatar Mod for 3.4
[DELETE]
AVATAR
A_ID
A_URL#varchar (255)#NULL#
A_NAME#varchar (50)#NULL#
A_MEMBER_ID#int#NULL#0
[END]
[ALTER]
MEMBERS
DEL#M_AVATAR_URL#varchar (255)#NULL#
[END]
[ALTER]
MEMBERS_PENDING
DEL#M_AVATAR_URL#varchar (255)#NULL#
[END]
[DELETE]
CONFIG_NEW
(C_VARIABLE,C_VALUE)#('intShowAvatar','1')
(C_VARIABLE,C_VALUE)#('strAvatarFolder','avatars/')
(C_VARIABLE,C_VALUE)#('intAvatarWidth','64')
(C_VARIABLE,C_VALUE)#('intAvatarHeight','64')
(C_VARIABLE,C_VALUE)#('intAvatarBorder','1')
[END]
------------

Is this correct?

Cheers / Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se

masterao
Senior Member

Sweden
1678 Posts

Posted - 05 October 2003 :  08:13:33  Show Profile  Visit masterao's Homepage
No, that isn't right, even though it is a logical assumption. To drop a table, the code is:

[DROP]
AVATAR
[END]

To drop a field in a table, the code is:

[ALTER]
MEMBERS
DROP#M_AVATAR_URL###
[END]

There is a full description on how to create a dbs-file in this topic, so that you can check it out yourself.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

EvilRick
Starting Member

37 Posts

Posted - 12 October 2003 :  18:32:07  Show Profile  Visit EvilRick's Homepage
[ALTER]
CONFIG_NEW
DROP#(C_VARIABLE,C_VALUE)#('strCMSLeftNavWidth','150')
DROP#(C_VARIABLE,C_VALUE)#('strCMSLeftNavDisplay','5')
DROP#(C_VARIABLE,C_VALUE)#('strCMSLeftNavItems','1')
DROP#(C_VARIABLE,C_VALUE)#('strCMSRightNavWidth','150')
DROP#(C_VARIABLE,C_VALUE)#('strCMSRightNavDisplay','5')
DROP#(C_VARIABLE,C_VALUE)#('strCMSRightNavItems','1')
DROP#(C_VARIABLE,C_VALUE)#('strCMSEnableSearch','1')
DROP#(C_VARIABLE,C_VALUE)#('strCMSDefaultCID','0')
DROP#(C_VARIABLE,C_VALUE)#('strCMSPageTitle','Portal')
DROP#(C_VARIABLE,C_VALUE)#('strCMSTitleDisplay','1')
[END]


I'm trying to remove these values from the CONFIG_NEW table, but it's not working. What do I have to change, and where to get rid of those string values?

TIA
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 12 October 2003 :  19:09:15  Show Profile  Visit masterao's Homepage
Im not sure if it is possible to remove specific records with a dbs-file, only columns. I think you need to use sql-queries to accomplish that.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

EvilRick
Starting Member

37 Posts

Posted - 12 October 2003 :  19:40:48  Show Profile  Visit EvilRick's Homepage
I will give that a try then.

Thanks!
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 12 October 2003 :  20:17:20  Show Profile  Visit masterao's Homepage
You're welcome .

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07