PDA

View Full Version : Miscellaneous Hacks - Thread Subscription Title


Michael Biddle
08-24-2008, 10:00 PM
Thread Subscription Title
by: Michael Biddle
White-Projects (http://www.white-projects.com)

What does this do?
One one of my forums that I am at, I subscribe to quite a bit of threads for bug fixes. When I subscribe, it will only use the thread title, which does not help me out if it is not specific to the issue. So I made a little modification that will allow you to define what you want the title to be for the thread subscriptions. If you choose not to enter anything inside of the title box, then it will just use the thread title.

How do I install it?
1. Upload the product to your vBulletin Product Manager

2. Download and open your subscription.php

Find:

REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview

Replace with:

REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview, subscriptionname

Find:

VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], " . $vbulletin->GPC['emailupdate'] . ", " . $vbulletin->GPC['folderid'] . ", 1

Replace with:

VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], " . $vbulletin->GPC['emailupdate'] . ", " . $vbulletin->GPC['folderid'] . ", 1, '" . $db->escape_string($vbulletin->GPC['subscriptionname']) . "'

Please Click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=189031) if you use.

Michael Biddle
08-25-2008, 01:52 AM
Reserved for later use!

GaiLoan
08-25-2008, 04:39 AM
Reserved for later use too ! this was nice, thanks

zglows
08-26-2008, 02:48 PM
great modification!

Doug Nelson
08-28-2008, 10:02 PM
Can you have it insert the title name as the default title in the edit box? Or at least put some text indicating that the name won't change if you leave it blank?

Michael Biddle
08-29-2008, 05:44 AM
Note: The title will not change if you leave field blank

:D

Doug Nelson
08-29-2008, 06:47 AM
Yes, I know that since I read your details, but my users won't know that.

Triky
10-26-2008, 11:01 AM
I think the best way would be to use this just a description.. and not as a thread title replacement.