PDA

View Full Version : Installed hack, now getting duplicate threads


memdy
10-31-2002, 12:16 AM
I installed some hacks on 2.2.8 and now when I create a new thread, it works fine but it creates a duplicate thread. Posting is fine in the thread, just when the thread is created, it creates two.

I installed hacks:

Quick Reply - per fireflys install
Refer a Friend
User level stars
Forum/thread title above posts
Numbered Posts in Threads
Default avatar if none selected

Can anyone wind me up and point me in the right direction, I think i broke my keyboard banging my head on it. What file/files could be hosed? Defeat is not an option!

Cheers!

Xenon
10-31-2002, 10:09 AM
you should take a look at you're newthread.php

perhaps there are two $DB_site->query("INSERT INTO thread.. lines.

there should be just one

memdy
10-31-2002, 11:40 AM
That was it! I found that vBPortal had two query statements, the only difference between them was that one added a topic field. I commented out the one w/o the topic field. I found to DBQuery Inserts that appeared to be related so I took them both out as they seem to be duplicates that were overlooked by either myself during install or by vBPortal.

Thanks,

MTE

Xenon
10-31-2002, 03:12 PM
:)

you're welcome

Erwin
10-31-2002, 05:58 PM
If you have vBPortal, you should comment out the one WITHOUT the topic field, and keep the one WITH the topic field. When you installed vBPortal, the original line without the topic field is automatically commented out - you may have uncommented it by accident (eg. when you upgraded). vBPortal needs that field for it's topic feature.