Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Opt-Out Forums from Get New/Get Daily Details »»
Opt-Out Forums from Get New/Get Daily
Version: 1.0.3, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-24-2005 Last Update: 09-26-2005 Installs: 254
DB Changes Uses Plugins Template Edits
 
No support by the author.

Description
This Hack allows the Users to select certain Forums they do not want to appear on Get New/Get Daily.
It includes a new Permission, so you can specify which Usergroups can use this feature, which Forums
can't be excluded, etc.

Details
1 Product XML with 3 Plugins, 4 Phrases and 1 SQL Query
1 Bitfield XML
1 Template Edit

History
1.0.0 Initial Version
1.0.1 Added Option "None" for users who don't know about their CTRL Key
1.0.2 Updated for RC1
Note: This Hack does only work for vBulletin 3.5.0 RC1 and up!
1.0.3 Fixed a small Typo and a possible Problem with Forums that contain HTML in Title

Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!

This Hack is unsupported! All support requests except proven bugs will be ignored

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
CynamiteCMAG

Comments
  #132  
Old 10-05-2005, 11:06 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE

That's the line which (re)defines the comma-separated list of excluded forums - add your ID to it.
so it would look like this?

PHP Code:
 $vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : '8,' $vbulletin->userinfo['excludeforumsgnp']); 
with the forum id being 8
Reply With Quote
  #133  
Old 10-05-2005, 11:19 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not quite

PHP Code:
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']) . ',8'
Reply With Quote
  #134  
Old 10-05-2005, 11:38 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Not quite

PHP Code:
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']) . ',8'

haha, i was almost close, thanks Kirby
Reply With Quote
  #135  
Old 10-05-2005, 11:57 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Not quite

PHP Code:
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']) . ',8'
actually i changed that code and it doesnt work, users can still see forumid8 ???

here is what it looks like to be sure

PHP Code:
// Rebuild Bitfields
require_once(DIR '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions();]]></uninstallcode>
        </
code>
    </
codes>
    <
templates>
    </
templates>
    <
plugins>
        <
plugin active="1">
            <
title><![CDATA[Opt-Out Forums from "Get New Posts"]]></title>
            <
hookname>search_getnew_start</hookname>
            <
phpcode><![CDATA[if ($vbulletin->userinfo['excludeforumsgnp'])
{
    
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']) . ',8';  
}]]></
phpcode>
        </
plugin>
        <
plugin active="1">
            <
title><![CDATA[Opt-Out Forums from "Get New Posts"]]></title>
            <
hookname>profile_editoptions_start</hookname>
            <
phpcode><![CDATA[function fetch_optout_forumids_array($parentid = -1$depthmark '')

Reply With Quote
  #136  
Old 10-06-2005, 12:00 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, it only kicks in if the user has defined custom excludes as well.
If you want it to be always active, undo the edit and place

PHP Code:
$vbulletin->GPC['exclude'] .= ',8'
below the }
Reply With Quote
  #137  
Old 10-06-2005, 12:03 AM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Yeah, it only kicks in if the user has defined custom excludes as well.
If you want it to be always active, undo the edit and place

PHP Code:
$vbulletin->GPC['exclude'] .= ',8'
below the }
like this

PHP Code:
{
    
$vbulletin->GPC['exclude'] .= ',8';
    
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']);  
}]]></
phpcode>
        </
plugin>
        <
plugin active="1">
            <
title><![CDATA[Opt-Out Forums from "Get New Posts"]]></title>
            <
hookname>profile_editoptions_start</hookname>
            <
phpcode><![CDATA[function fetch_optout_forumids_array($parentid = -1$depthmark '')

Reply With Quote
  #138  
Old 10-06-2005, 12:05 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I said below the }, not below the {
Furthermore, why are you editing the XML?
This won't have any effect (at least as long as you don't reimport it)
Reply With Quote
  #139  
Old 10-06-2005, 12:05 AM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or this

PHP Code:
{
    
$vbulletin->GPC['exclude'] .= ',8'; ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' $vbulletin->userinfo['excludeforumsgnp']);  
}]]></
phpcode>
        </
plugin>
        <
plugin active="1">
            <
title><![CDATA[Opt-Out Forums from "Get New Posts"]]></title>
            <
hookname>profile_editoptions_start</hookname>
            <
phpcode><![CDATA[function fetch_optout_forumids_array($parentid = -1$depthmark '')

Reply With Quote
  #140  
Old 10-06-2005, 12:16 AM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
I said below the }, not below the {
Furthermore, why are you editing the XML?
This won't have any effect (at least as long as you don't reimport it)
because i am still learning plugins/products and I dont know where you want me to change this :nervous:

i am confused at which " } " to put it under? the XML?, edit product?
Reply With Quote
  #141  
Old 10-06-2005, 12:18 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ACP / Plugin System / Plugin Manager
Locate the Plugin on Hook search_getnew_start for this Hack, click edit.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08064 seconds
  • Memory Usage 2,359KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete