vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Thread Subscription Title (https://vborg.vbsupport.ru/showthread.php?t=189031)

Michael Biddle 08-24-2008 10:00 PM

Thread Subscription Title
 
Thread Subscription Title
by: Michael Biddle
White-Projects

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:

PHP Code:

REPLACE INTO " . TABLE_PREFIX . "subscribethread (useridthreadidemailupdatefolderidcanview 

Replace with:

PHP Code:

REPLACE INTO " . TABLE_PREFIX . "subscribethread (useridthreadidemailupdatefolderidcanviewsubscriptionname 

Find:

PHP Code:

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

Replace with:

PHP Code:

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

Please Click Install 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.


All times are GMT. The time now is 06:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01061 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete