vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Opt-Out Forums from Get New/Get Daily (https://vborg.vbsupport.ru/showthread.php?t=91025)

dsotmoon 10-06-2005 12:25 AM

Quote:

Originally Posted by KirbyDE
ACP / Plugin System / Plugin Manager
Locate the Plugin on Hook search_getnew_start for this Hack, click edit.

sometimes i need a picture :D thanks again Kirby , got it now, worked perfect

offline 10-06-2005 03:03 AM

Quote:

Originally Posted by KirbyDE
Yes.
register_addmember_process
PHP Code:

$userdata->set('excludeforumsgnp''X'); 


Thanks! One more quick question, can the user turn the forum back on themselves?

Andreas 10-06-2005 08:35 AM

Yes they can.

offline 10-06-2005 12:53 PM

you are awesome! Thanks!

scottct1 10-07-2005 05:24 PM

Any chance you can update this hack so that when users turn off the forums they dont want from the new posts search the forums are also no longer displayed in forumhome and the quick jumps?

Andreas 10-07-2005 09:03 PM

No. This is not a feature I find useful therefore it will not make it into this Hack which is only meant for Get New Posts/Get Daily.
Sorry :)

Karri 10-07-2005 11:23 PM

Is it possible to add a check box next to the forum names instead of just highlighting the ones you do not want to appear? I have a ton of boards on my site and a few users are having trouble selecting the ones they want on and off with just highlight them. If they had a check box they wouldn't have to hold down shift or ctrl and could easily scroll through the list.

Thanks!!!

Andreas 10-07-2005 11:28 PM

The listbox works the same way the listbox for Search does, therefore i'll keep it this way.
Standardized Controls = more usability.

weaver 10-07-2005 11:40 PM

Quote:

Originally Posted by KirbyDE
Yes.
register_addmember_process
PHP Code:

$userdata->set('excludeforumsgnp''X'); 


Is that a template name? I don't see this.

ETA: I've tried choosing "None" but it's still excluding me from my RSS feed forum. There are new threads within that forum that should be showing up for me now.

dieselpowered 10-10-2005 08:47 PM

Quote:

Originally Posted by KirbyDE
*** Untested ***

To make this work with the welcome module of CMPS:

In welcomeblock.php
FIND
PHP Code:

$getnewposts $db->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "post WHERE dateline >= " $vbulletin->userinfo['lastvisit']); 

REPLACE that with
PHP Code:

$getnewposts $db->query_first("
    SELECT COUNT(*) AS count FROM " 
TABLE_PREFIX "post
    LEFT JOIN " 
TABLE_PREFIX "thread AS thread ON (thread.threadid=post.threadid)
    WHERE post.dateline >= " 
$vbulletin->userinfo['lastvisit'] . "
        AND thread.forumid NOT IN (0," 
$vbulletin->userinfo['excludeforumsgnp'] . ")
"
); 

(The query might need some optimization though)

Ya that did not work my friend:

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT COUNT(*) AS count FROM vb3_post
LEFT JOIN vb3_thread AS thread ON (thread.threadid=post.threadid)
WHERE post.dateline >= 1128974249
AND thread.forumid NOT IN (0,);

MySQL 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 ')' at line 4
Error Number : 1064
Date : Monday, October 10th 2005 @ 04:44:28 PM
Script : http://www.weapondepot.com/
Referrer :
IP Address : XXX.XX.XX.XX
Username : XXXXXXXX
Classname : vb_database


All times are GMT. The time now is 01:33 PM.

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.02281 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete