php forum
php mysql forum
php mysql smarty
 
Topic Options
#312289 - 12/18/06 07:55 PM [7.x] [Beta] Purge Welcome Messages
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
For those of you who've imported from another product and want to purge welcome messages, heres a quick addon for you.

Simply drop this file on your webserver and update your sql data, and edit the $welcome section, load the script in your browser, and any messages matching $welcome% will be purged.

$welcome is the string you want to match, and the script automatically links "like" topics (such as welcome to our forums, welcome to our site, etc. with the default match of "welcome".

This addon will purge from all pm tables, and not just the topics and posts table like prior mysql matches did, this will provide a CLEAN purge of welcome messages, versus only purging data from 2 of the 3 tables.

I will be working on a way to repair the users table for "botched" welcome message purges using the "alternate" means of just deleteing items from the database, not sure on an eta.

This should work anywhere UBB7 would work. If you have problems, let me know!


Attachments
2310-purgewelcomes.zip (68 downloads)

_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312290 - 12/18/06 11:02 PM Re: [7.x] Purge Welcome Messages [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25554
Loc: Texas
Cool, thanks laugh
_________________________
- Allen wavey
- What Drives You?

Top
#312292 - 12/19/06 02:18 AM Re: [7.x] Purge Welcome Messages [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
You're welcome hehe... I was meaning to get it out for the initial 7.0 beta but time didn't permit frown... But I've got it now for everyone hehe...

I'm doing the one to fix the botched purges because I feel semi responsible since I was passing out the query lol... I haven't decided how to go about it yet though.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312397 - 12/28/06 02:09 AM Re: [7.x] Purge Welcome Messages [Re: Gizmo]
smallufo Offline
Journeyman

Registered: 05/11/99
Posts: 110
Loc: Taiwan
Wow , thank you very much.....
It helps me a lot....

Top
#312398 - 12/28/06 03:05 AM Re: [7.x] Purge Welcome Messages [Re: smallufo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
I'm glad to hear it helped (and worked as intended); was it easy to follow/understand? I tried to make it fairly painless...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#315300 - 08/20/07 12:37 AM Re: [7.x] Purge Welcome Messages [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
:bump: for AA wink...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#315877 - 09/27/07 05:52 AM Re: [7.x] Purge Welcome Messages [Re: Gizmo]
MattUK Offline
Journeyman

Registered: 11/23/01
Posts: 137
I get this error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''welcome%' USING latin1 )' at line 1

Top
#315891 - 09/29/07 01:35 AM Re: [7.x] Purge Welcome Messages [Re: MattUK]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25554
Loc: Texas
when do you get that error?
_________________________
- Allen wavey
- What Drives You?

Top
#315892 - 09/29/07 04:35 AM Re: [7.x] Purge Welcome Messages [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
Have you edited the file at all, after adding your db information? I'm unsure as to why you'd get the error, it's a simple query...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316812 - 03/26/08 01:01 PM Re: [7.x] Purge Welcome Messages [Re: Gizmo]
Thelockman Offline
Lurker

Registered: 02/28/08
Posts: 9
I can't open the zip file. Not a valid archive!!

Can you help me out Gizmo?

Top
#316818 - 03/26/08 07:04 PM Re: [7.x] Purge Welcome Messages [Re: Thelockman]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
It unzips without issues for me; what are you using to open the archive?
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#317440 - 07/23/08 11:17 AM Re: [7.x] Purge Welcome Messages [Re: Gizmo]
Iann128 Offline
Newbie

Registered: 05/31/08
Posts: 16
Gizmo I am getting the same error, I edited the file and added my DB info.. frown

Ian

Top
#317441 - 07/23/08 11:28 AM Re: [7.x] Purge Welcome Messages [Re: Iann128]
Iann128 Offline
Newbie

Registered: 05/31/08
Posts: 16
btw way I changed CONVERT( _utf8 '$subject%' USING latin1 ) to just '$subject%' and it ran, and cleared them all out. I verified it in phpadmin in my control panel.

Ian

Top
#317446 - 07/23/08 06:58 PM Re: [7.x] Purge Welcome Messages [Re: Iann128]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5287
Loc: Portland, OR, USA
Likely the cause may have een a syntax error with a version of mysql i was using vs what you're using... The change ofcoarse would be to do away with the convert line like you did.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top


Moderator:  sirdude 
Who's Online
0 registered (), 27 Guests and 22 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Ubb - Buy It!
best forum software
Latest Posts
I want to create a Self Search mod [Question]
by lightningrod
03/10/10 09:04 PM
If I create a new script, can I just upload it?
by lightningrod
03/10/10 05:35 PM
Notepad Creates Errors when working with PHP
by lightningrod
03/10/10 05:01 PM
Question on Adding a New Script ?
by lightningrod
03/10/10 06:39 AM
Disable Watch List option
by Mike_Tabat
03/09/10 01:27 PM
[7.x] [Pre-7.3] [Final] pJIRC Addon v0.5
by Gizmo
02/27/10 05:07 PM
How to Be a Great Host
by pinku
02/19/10 02:47 AM
New Mods
Disable Watch List option
by Mike_Tabat
02/18/10 09:14 AM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
[7.x] [Pre-7.3] [Final] pJIRC Addon v0.5
by
07/30/06 10:42 PM
Newest Members
joshuasm02, Chosen, Vick, Bartman, Infinity Master
13496 Registered Users
Top Posters
AllenAyres 25554
JoshPet 11330
Rick 8373
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438
(Views)Popular Topics
Known public proxy servers 1028046
Finished-[6.5.2] Games Arcade Deluxe v1.9 327222
Integrated Index Page (IIP) 5.3.1 279924
Integrated Index Page (IIP) 5.1.1 279403
TLD Bv2.1 Released - Threads Links Directory 270427
[6.0x] Who's Online 4.0.0 [Finished] 230365
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 217518
[6.3.x] [beta] Hit Hack 2.0 179339
FlashChat & UBB.threads 161010
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 154650
Forum Stats
13496 Members
59 Forums
37114 Topics
290378 Posts

Max Online: 686 @ 06/28/07 07:04 AM
Featured Member
Registered: 02/02/10
Posts: 2

 

 

 
fusionbb message board php hacks