View Full Version : Opt-Out Forums from Get New/Get Daily
Andreas
06-24-2005, 10:00 PM
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
Christine
06-25-2005, 03:14 AM
Interesting. :D
Will load and test tomorrow.
Thanks!!
shiva
06-25-2005, 07:47 AM
Thank you! Much needed feature.
Nice one, won't use it though but still a nice hack!
Intex
06-25-2005, 01:37 PM
Nice work KirbyDE. Might this work with 3.0.x ?
Andreas
06-25-2005, 07:38 PM
No. This Hack is only compatible with vBulletin 3.5
Chris M
06-26-2005, 02:36 PM
Nice hack Kirby :)
A much needed feature for vB3.5 ;)
Satan
Chris M
06-26-2005, 11:28 PM
I have detected a vital flaw ;)
If you select a forum, and no longer wish to ignore it, and do not wish to ignore any other forums, you cannot deselect the forum - You can merely select another forum to ignore, but this is of no use if you want to be able to see all forums ;)
We need a "None" option which is the default option :)
Satan
Andreas
06-27-2005, 03:00 AM
Hmm, might be a browser issue, but I can deselect every entry in the list - even if it is just one:
Hold down Ctrl and click the Forum.
I am using Mozilla Firefox.
Chris M
06-27-2005, 07:25 AM
Strange - It wouldn't work for me until I re-started my machine - Must be IE being buggy again...
Worked in Firefox though :)
Still - A "None" option would be useful as most users probably won't know how to Ctrl + Click to remove the selection ;)
Remember - Over 70% of web-browsing people are "dumb" :p
Satan
Andreas
06-27-2005, 09:30 AM
:)
OK, gonna add a None-Entry, even though it is not really necessary ;)
Andreas
06-27-2005, 07:52 PM
Update
None added
Congratulation for this *excellent* hack !
I'm very impressed, this should be native in vB !
Best regards.
Christine
07-09-2005, 11:20 PM
Just readded this to the new box. Working great. :)
Should this be classified as an extension or a plugin as there are no external file additions?
Andreas
07-09-2005, 11:27 PM
Extension as it comes with a Bitfield XML.
Christine
07-09-2005, 11:39 PM
[brief derail]
Plugin: plugin xml, template changes and/or dB changes
Extension: could include plugin, dB, template, but adds bitfields and/or new files
Coding mods: php mods (plus any of the above)
???
Andreas
07-09-2005, 11:44 PM
What do you not understand in regards of this classification?
Biker_GA
07-09-2005, 11:45 PM
Very nice Kirby! Definitely one my users will appreciate, especially when they're goofing off from work. :D
Christine
07-10-2005, 12:52 AM
I am not 'not' understanding -- it was o/t asking for clarification. :p
akanevsky
07-11-2005, 12:15 AM
Hmm... This is kind of a port of my hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=79883), isn't it? In that case, you should have made a whole port, rather than porting just a part of the hack.
Andreas
07-11-2005, 02:05 AM
Didn't even know of your Hack when I made this one :)
Sorry.
akanevsky
07-11-2005, 11:04 AM
Nah, as long as your hack works and does something that is somewhat close to mine, it's ok. Still, why don't you add forum filter to this hack? :P Because if not, I'll have to port my own version ://
Will be installing after upgrade. Thanks for providing this!
This will help make members visits more enjoyable by giving them the option removing uneccessary `clutter'.
Is each forum selected individually or is it a check list?
I see hide New Posts per forum as a separate issue to Dark Visors - Hide forums.
Our members already have the ability to expand/contract selected Forum/subforums. They may wish to spend more time at `the board' at other times when they have time, but KirbyDe's mod is especially helpful for busy members on the go.
Mark
ConqSoft
07-19-2005, 01:57 PM
GREAT JOB!
I've been asking for this feature in vBulletin for a LONG time. Glad someone did it!
Thanks!
ConqSoft
07-19-2005, 02:06 PM
One suggestion: A way to remove a forum(s) from the list. Example: I don't want users to be able to opt out of my News/Announcements forum.
Andreas
07-19-2005, 05:19 PM
ACP / Forums & Moderators / Forum Permissions / Edit / Forum Searching Permissions / Can exclude Forums from "Get New Posts" = No
:)
ConqSoft
07-19-2005, 05:45 PM
Duh. Thanks. :)
xxskullxx
07-19-2005, 07:53 PM
Nice. Thank Kirby :)
Christine
07-19-2005, 10:44 PM
So, when is this going to be installed here? :D
Andreas
07-26-2005, 06:09 PM
Updated for RC1
ConqSoft
07-26-2005, 06:11 PM
What changed? ie, What do we need to do if we had this installed, then upgraded to RC1?
Andreas
07-26-2005, 06:18 PM
Nothing changed, just the Installer :)
ConqSoft
07-26-2005, 06:24 PM
Yes, I found out. :D I went ahead and removed the old hooks/etc, and reinstalled it so it would be grouped with the Product correctly. Nice job! Thanks!
Boofo
07-26-2005, 06:55 PM
I just installed this and it didn't seem to install the phrases. There are no words showing up for the options.
Andreas
07-26-2005, 06:58 PM
Hmm, it should.
How exactly did you install it?
Boofo
07-26-2005, 07:09 PM
Hmm, it should.
How exactly did you install it?
Exactly like you said to in the instructions. The option doesn't show up in the user cp at all. But maybe I need to enable forums first? Also, when I import the xml, the listing shows a blank spot with no words at the top. Do the bitfields need to be cached again for this to work?
Andreas
07-26-2005, 07:11 PM
I have to repeat my question:
How exactly did you install this, though ACP / Plugin System / Manage Products / Import Product?
Boofo
07-26-2005, 07:21 PM
I have to repeat my question:
How exactly did you install this, though ACP / Plugin System / Manage Products / Import Product?
Ok, I did upload Plug-in. I didn't quite understand the import part of it. It is working now. Maybe you should put the above in the text file for those of us that are still new to the ways on import/uploading plug-ins? ;)
Thank you, sir. ;)
Andreas
07-26-2005, 07:27 PM
Well, the file is clearly labled as product, therefor it should be obvious that it must be imported as a Product :)
Boofo
07-26-2005, 07:33 PM
Well, the file is clearly labled as product, therefor it should be obvious that it must be imported as a Product :)
True, but until you told me that, I had no idea I could do it that way, or should do it that way. I thought Upload Plug-ins was the only way to do it. Since the plug-ins system is still new to alot of vber's, I'm sure someone else will be making the same mistake I did. ;)
Biker_GA
08-02-2005, 02:03 PM
Kirby, I've run into a little issue with this one. Not all forums are showing up.
I have a forum that's not visible to all users and you have to be assigned to a specific group in order to view it. The users in that group cannot see the forum in the opt out list.
It's in my list, however, it isn't showing for the users in the group that has access to it.
Andreas
08-02-2005, 02:14 PM
Hmm ... it should show all Forums where you have canview AND cansearch AND canoptout Permission AND have Password (if there is any) AND are active AND have displayorder set.
Do all these conditions apply?
Neal-UK
08-02-2005, 02:38 PM
Hmm ... it should show all Forums where you have canview AND cansearch AND canoptout Permission AND have Password (if there is any) AND are active AND have displayorder set.
Do all these conditions apply?
i can't find the settings in admin cp and when i click new posts, it just brings me all new posts, no options
Boofo
08-02-2005, 02:40 PM
i can't find the settings in admin cp and when i click new posts, it just brings me all new posts, no options
Check your user cp options. ;)
Neal-UK
08-02-2005, 02:43 PM
Check your user cp options. ;)
ah har, thanks for that, nice hack.
Boofo
08-02-2005, 02:45 PM
ah har, thanks for that, nice hack.
Duh? LOL
Biker_GA
08-02-2005, 02:45 PM
Hmm ... it should show all Forums where you have canview AND cansearch AND canoptout Permission AND have Password (if there is any) AND are active AND have displayorder set.
Do all these conditions apply?
Found the problem..
I went into the forum permissions and found that it was automatically set to "No." Turned it on and the users can now see it in their list.
Since this is a "special" forum, and not all users can see it, is that why it didn't show up for those that have access to it?
Neal-UK
08-02-2005, 02:53 PM
Duh? LOL
Yes, I do feel silly https://vborg.vbsupport.ru/external/2005/08/16.gif
Boofo
08-02-2005, 02:54 PM
Yes, I do feel silly http://www.burnleyweb.com/forum/images/smilies/animated/caked.gif
I was just razzing you. I have been there and done that. ;)
Andreas
08-02-2005, 02:54 PM
@Biker_GA
Yes, the Permissions/Options must be set properly otherwise it will not show up.
As the Forum used to have customized Permissions before this Hack was added, the Bit was set to Zero.
Biker_GA
08-02-2005, 03:01 PM
Gotcha. Good thing to know. :)
mvigod
08-03-2005, 07:57 PM
Does anyone think this interface to select forums is better/worse than the methodology used by Dark Visor's hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=79883)?
**INSTALLED**
Boofo
08-03-2005, 09:03 PM
Definately better. ;)
akanevsky
08-03-2005, 09:38 PM
Yes, this is definitely better. And was easier to make than my hack... :)
The only thing, though, this won't exclude forums from forum view, like my hack does. Fix it please?
ConqSoft
08-03-2005, 09:39 PM
I actually like that the forums are still visible in the Forums View, and in normal searches. It just blocks them from Today's Posts/New Posts.
Andreas
08-03-2005, 09:53 PM
The only thing, though, this won't exclude forums from forum view, like my hack does. Fix it please?
Why should I fix smth. that ain't broken ;)
Hiding Forums from Forumdisplay was never intended for this Hack.
Or in other words: It's working as designed.
Biker_GA
08-03-2005, 09:55 PM
LMAO! It's not a bug.. It's a feature!
Christine
08-03-2005, 10:12 PM
Definitely better -- and just what I was looking for. Users like familiarity and this works just like the search feature.
:)
Neal-UK
08-05-2005, 02:39 PM
Definitely better -- and just what I was looking for. Users like familiarity and this works just like the search feature.
:)
I've just upgraded the forum to rc2 not I get this, I sorted it before but I can't find the solution today, my head is up my ****
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*****/*********/forum/profile.php(2623) : eval()'d code on line 54
Neal-UK
08-05-2005, 02:43 PM
I've just upgraded the forum to rc2 not I get this, I sorted it before but I can't find the solution today, my head is up my ****
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*****/*********/forum/profile.php(2623) : eval()'d code on line 54
sorted, just reverted the modifyoptions template and added the code back in, wonder why it didnt work though...??
Andreas
08-05-2005, 02:50 PM
Don't know, should survive the Upgrade without Problems, but I didn't test this yet.
Biker_GA
08-06-2005, 05:21 AM
Kirby, after the upgrade, users are getting this when clicking on "Edit Options" in the UserCP. Error goes away when I uninstall the plugin. (And yes, I've totally removed it and attempted to reinstall. Same error.)
Fatal error: Cannot redeclare fetch_optout_forumids_array() (previously declared in /home/xxxxxx/public_html/forum/profile.php(873) : eval()'d code:1) in /home/xxxxxx/public_html/forum/profile.php(873) : eval()'d code on line 67
Nevermind. Got it fixed.
When I uninstalled the product, the plugin was still listed in the plugin manager. I removed those, reinstalled, and it appears to be working now.
Andreas
08-06-2005, 11:44 AM
You must have had the Plugin installed twice ...
Biker_GA
08-06-2005, 02:48 PM
At 1am in the morning? That's entirely possible! LOL
akanevsky
08-06-2005, 03:04 PM
Why should I fix smth. that ain't broken
Hiding Forums from Forumdisplay was never intended for this Hack.
Or in other words: It's working as designed.
Well can you add it as a feature please thanks?
Andreas
08-06-2005, 03:06 PM
As said: It's working as designed and I don't plan on adding a feature to hide Forums from Forumdisplay/Forumhome :)
hobbes747
08-12-2005, 05:57 PM
Is the $bulletin a typo or on purpose? :nervous:
$vbulletin->GPC['exclude'] .= ((!$bulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']);
Looks like no matter what it adds the comma. :nervous:
Marco van Herwaarden
08-12-2005, 07:45 PM
My guess it si a typo.
Andreas
08-12-2005, 07:53 PM
It's a Typo. Gonna update the ZIP soon :)
edschaum
08-18-2005, 03:55 PM
Hi,
The latest vb adds support for a title field in forum names. In the past, when using html in forum names, the forum name did not appear in the forum jump menu (and some other places).
Now, by adding a title field to the forum name, the forum name text appears in places that it did not appear in the past (like the forum jump menu).
The title field text is not appearing in the Forum Exclude list for this extension in the user cp. Is it possible to add support for the title field to this excellent extension?
Thanks,
Ed
Andreas
08-18-2005, 08:24 PM
I am not sure If I understood you correctly, but there was a possible Problem with Forums that had HTML in Title.
Should be fixed now.
edschaum
08-18-2005, 08:47 PM
My forum names are images, not text, therefore the forum jump menus are blank. However, with v3.5, there is now support for adding a title tag:
<img src=graphicalforumname.image><title>Text Name of Forum</title>
In v3.5, vbulletin picks up the text between the title tags and inserts it in places where the textual forum name is needed, like in the forum jump menu.
Currently, the Exclude Forums box is blank for me because my forum names are images. I've inserted title tags with the textual forum names in between, and now my forum jump menus work, but the Exclude Forums box is still blank.
I'm hoping that this mod will also pick up the text in the title tags and insert it into the Exclude box.
Sorry for the cumbersome explanation.
Ed
Andreas
08-18-2005, 08:51 PM
Did you try Version 1.0.3 already?
Btw: Your Forum Names will generate invalid HTML, as <title> is only allowed in <head>
edschaum
08-18-2005, 11:11 PM
Did you try Version 1.0.3 already?
It works fine with 1.03, problem solved.
Btw: Your Forum Names will generate invalid HTML, as <title> is only allowed in <head>
It appears that vbulletin is using those tags as internal markers only. They are being stripped out before the page is rendered, so it doesn't cause a problem.
Thanks,
Ed
Andreas
08-19-2005, 10:22 PM
Are you sure?
<!-- BEGIN TEMPLATE: forumhome_forumbit_level2_post -->
<tr align="center">
<td class="alt2"><img src="http://localhost/vb35/images/statusicon/forum_old.gif" alt="" border="0" /></td>
<td class="alt1Active" align="left" id="f41">
<div>
<a href="forumdisplay.php?f=41"><strong><s><u>Testforum</u></s><title>Just testing</title></strong></a>
</div>
</td>
<td class="alt2" nowrap="nowrap"><!-- BEGIN TEMPLATE: forumhome_lastpostby -->
<div class="smallfont" align="left">
<div style="clear:both">
<a href="showthread.php?goto=newpost&t=2" title="Go to first unread post in thread 'Thread A'"><strong>Thread A</strong></a>
</div>
<div>
by <a href="member.php?find=lastposter&f=41" rel="nofollow">newuser</a>
</div>
<div align="right">
Yesterday <span class="time">09:18 PM</span>
<a href="showthread.php?goto=lastpost&t=2"><img class="inlineimg" src="http://localhost/vb35/images/buttons/lastpost.gif" alt="Go to last post" border="0" /></a>
</div>
</div>
<!-- END TEMPLATE: forumhome_lastpostby --></td>
<td class="alt1">11</td>
<td class="alt2">49</td>
</tr>
<!-- END TEMPLATE: forumhome_forumbit_level2_post -->
That obiously isn't valid HTML (see <title> Tag being used) ...
Pitman
09-10-2005, 10:51 PM
Any chance of adding a per forum permission that are overridden by the forum permissions by usergroup if they are set?
Andreas
09-10-2005, 10:53 PM
I've read that sentence 4 times, and still don't get what you want?
Pitman
09-10-2005, 11:40 PM
An option in AdminCP -> Forums & Moderators -> Forum Manager -> Edit Forum -> Can be Excluded from Get New / Get Daily
It would make it a lot easier to set a global per forum option and if you want specific usergroups to have a different permission than is set on the forum, you can set an access mask-like permission such as the one currently being used.
Pitman
09-14-2005, 02:04 PM
I've read that sentence 4 times, and still don't get what you want?Just checking to see if you understood the last post :p
FleaBag
09-15-2005, 08:53 PM
I'm getting the issue reported with phrases not showing upwhen editing a Usergroup... Tried editing a phrase, and re-installing the product - to no avail.
peterska2
09-15-2005, 11:40 PM
/me hits the install button!
Just what I needed. You've saved me a job again there Kirby!
Andreas
09-16-2005, 03:49 AM
@Pitman
I see. So actually you want a Forum setting "Can be excluded from Get new Posts" and a Usergroup Setting "Follow Forum Settings for excluding from Get New Posts", right?
@FleaBag
Which Phrase is missing where?
Pitman
09-16-2005, 12:53 PM
Basically, yes :)
FleaBag
09-16-2005, 07:56 PM
@FleaBag
Which Phrase is missing where?
The phrases in the Usergroup Manager for the options. I am using RC3; could that be an issue?
Andreas
09-17-2005, 04:46 AM
Hmm ... it's there for me.
Can you make a screenshot of where it is missing?
hardgainer
09-27-2005, 12:13 PM
Is there any way to force certain forums to be excluded in all User CP's?
ConqSoft
09-27-2005, 01:46 PM
When I upgraded to RC3, the option under each Forum in Forum Manager no longer shows. Do I need to re-run something?
Andreas
09-27-2005, 01:51 PM
@hardgainer
You mean excluded from get new posts, or excluded from being excluded (:D) from get new posts?
@ConqSoft
Should not be necessary.
Check that the Bitfield XML is in place and that all Plugins are active.
Furthermore, this Hack does not add any Option to Forum Manager at all.
ConqSoft
09-27-2005, 01:55 PM
Yeah, re-uploaded the bitfield XML over the old one just to make sure. The option shows for Usergroups, but not for Forums. Strange.
Andreas
09-27-2005, 02:07 PM
Not strange, it's working as designed :)
This is a Usergroup Permission, not a Forum Setting.
ConqSoft
09-27-2005, 02:08 PM
I thought it had an option to determine if a forum could be opted-out of or not?
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.
Andreas
09-27-2005, 02:17 PM
Yes - Forum Permissions.
ConqSoft
09-27-2005, 02:20 PM
Duh. I knew I had seen it somewhere, and thought it was a forum option. :D Thanks
Boofo
09-27-2005, 02:28 PM
Then you need to delete this in your instructions.
You can also go Forum Permissions to specify which Forums "can't be excluded".
Forum settings, right?
Andreas
09-27-2005, 02:32 PM
Yes, it need's an Update: to is missing.
You can also go to Forum Permissions to specify which Forums "can't be excluded".
Boofo
09-27-2005, 02:34 PM
Yes, it need's an Update: to is missing.
Well, I don't see the option in there now after upgrading to RC 3.
Andreas
09-27-2005, 02:36 PM
Should I take a Screenshot for you? ;)
Hint: Forum Permissions != Forum Manager
Boofo
09-27-2005, 02:36 PM
Should I take a Screenshot for you? ;)
Yes, do that and I will take one for you. ;)
ConqSoft
09-27-2005, 02:36 PM
AdminCP->Forums & Moderators->Forum Permissions. Edit a Usergroup. You can pick which forums that usergroup can/can't opt out of.
It's not under Forum Settings (where I was thinking it was). It's under Forum Permissions, where it has always been. I just had a brainfart.
Boofo
09-27-2005, 02:38 PM
AdminCP->Forums & Moderators->Forum Permissions. Edit a Usergroup. You can pick which forums that usergroup can/can't opt out of.
It's not under Forum Settings (where I was thinking it was). It's under Forum Permissions, where it has always been. I just had a brainfart.
Ahhh, cancel the screenshot, Kirby. I was thinking as ConqSoft was. My mistake. Sorry. :(
Andreas
09-27-2005, 02:39 PM
Hehe.
But it was always in the documentation so at least you can't blame me (except for the missing to) ;)
Boofo
09-27-2005, 03:01 PM
Hehe.
But it was always in the documentation so at least you can't blame me (except for the missing to) ;)
True, and that's why I ate my words. ;)
I don't use forum permissions enough, I guess. So, I'm not used to checking there. I will do so more often in the future now that I know you use them for a few of your hacks. Again, sorry for the misunderstanding. ;)
* Boofo goes to gargle after choking on those words he had to eat. ;)
NuclioN
09-29-2005, 06:05 AM
Installed! Just what we needed. ;)
dieselpowered
10-04-2005, 09:16 PM
Is this running alright on 3.5 Gold??
Thanks!
Andreas
10-04-2005, 09:26 PM
Why shouldn't it?
dieselpowered
10-04-2005, 09:43 PM
Why shouldn't it?
Well due to changes in the code...just like the PM hack:
https://vborg.vbsupport.ru/showthread.php?t=91729&page=1&pp=15
I just want to be sure before I go hacking it up :)
Andreas
10-04-2005, 10:20 PM
There were no changes in the Code that caused these problems - it wouldn't have worked properly on any Beta/RC Version as well.
So answer is (as always): I expect it to be working, but I don't know if it really is.
dieselpowered
10-05-2005, 01:22 AM
There were no changes in the Code that caused these problems - it wouldn't have worked properly on any Beta/RC Version as well.
So answer is (as always): I expect it to be working, but I don't know if it really is.
Well my friend, it works just fine.
I do have a question though...
I have a link on the homepage to the specific forum, however, I have the forum indicated as not active so that it does not show on the forum index.
Now the problem is that it has to be active in order to be shown on the Excluded Forums list.
Is there anyway around this? Also, would it be possible to get this to work with CMPS so that when it shows say 19 new post, and all of those new post are in forums that were excluded by your hack, that it does not show the number? 'Cause right now, it shows 19 new posts, however, when you click it shows no new post (because it is excluded)
Thanks man!
Andreas
10-05-2005, 01:27 AM
1) Edit the Plugin Code (Hook profile_editoptions_start) and remove
AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['active'])
2) Link to the CMPS Module you are refering to?
dieselpowered
10-05-2005, 01:41 AM
1) Edit the Plugin Code (Hook profile_editoptions_start) and remove
AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['active'])
Nevermind, found it :)
2) Link to the CMPS Module you are refering to?
Ummm well it is built into CMPS, I guess just visit my site and look on the side where it shows new posts:
http://www.weapondepot.com
dieselpowered
10-05-2005, 01:46 AM
Awesome man, that code change did the trick!!!
Now for the CMPS :)
Andreas
10-05-2005, 01:46 AM
It does not show "new posts" anywhere for me (or I am just blind, that could quite possibly be the case).
dieselpowered
10-05-2005, 01:50 AM
It does not show "new posts" anywhere for me (or I am just blind, that could quite possibly be the case).
Darnit, I always forget that sometimes things I see guests will not.
Not that this will help, however, you can login as:
user: test-acct
pass: password
I have attached a screenshot as well :)
dsotmoon
10-05-2005, 01:59 AM
can the admin pick forums to not show in new posts or just the users, example, if I dont want any threads from a "test" forum, can I select that as an admin?
csidlernet
10-05-2005, 02:05 AM
coolies thanks!
/me hits install
KidneyBoy
10-05-2005, 02:19 AM
Thanks! This is a great feature! I do agree this should be built into vBulletin, but at least you created it, and I for one really appreciate it. Thanks again!
KidneyBoy
dieselpowered
10-05-2005, 07:42 PM
So Kirby, is it safe to assume that there is no way to fix the CMPS module so that it does not display posts that people have opt out of?
Andreas
10-05-2005, 07:58 PM
I think it is possible, but I didn't have a look at it yet.
Will do so now (after precessing all new posts on vBorg)
dieselpowered
10-05-2005, 08:03 PM
I think it is possible, but I didn't have a look at it yet.
Will do so now (after precessing all new posts on vBorg)
Sure man no problem, I appreciate your time!
offline
10-05-2005, 08:33 PM
Nice work, works great on 3.50 gold. One quick question... Is there a way to set a new user to automatically have a specific forum turned off from the new posts search?
Andreas
10-05-2005, 08:38 PM
Yes.
register_addmember_process
$userdata->set('excludeforumsgnp', 'X');
dieselpowered
10-05-2005, 09:56 PM
Yes.
register_addmember_process
$userdata->set('excludeforumsgnp', 'X');
Oh crap, I thought that was the answer to my question...glad I checked the other page ;)
dsotmoon
10-05-2005, 10:12 PM
Yes.
register_addmember_process
$userdata->set('excludeforumsgnp', 'X');
was this the answer to my question or offline?, just want to make sure :nervous: i just want to have one specific forum thats will not show up at all in new posts
dsotmoon
10-05-2005, 10:28 PM
Yes.
register_addmember_process
$userdata->set('excludeforumsgnp', 'X');
also, is that a template or in the product or xml? i couldnt find a template with that name
Andreas
10-05-2005, 10:31 PM
That was the answer for
Nice work, works great on 3.50 gold. One quick question... Is there a way to set a new user to automatically have a specific forum turned off from the new posts search?
dsotmoon
10-05-2005, 10:36 PM
That was the answer for
oh, ok, anyway to set this so one specific forum will not show up for any user/usergroup, ie: test forum doesnt show up in new posts for anyone?
Andreas
10-05-2005, 10:39 PM
Edit the Plugin and add the Forumid to the list.
dsotmoon
10-05-2005, 10:52 PM
Edit the Plugin and add the Forumid to the list.
i dont see a forum id list? which exact file? is there a string i can search for to find it? sorry to be a pain :ermm:
Andreas
10-05-2005, 10:58 PM
*** Untested ***
To make this work with the welcome module of CMPS:
In welcomeblock.php
FIND
$getnewposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= " . $vbulletin->userinfo['lastvisit']);
REPLACE that with
$getnewposts = $db->query_first("
SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post AS post
" . iif($vbulletin->userinfo['excludeforumsgnp'], "LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid=post.threadid)") . "
WHERE post.dateline >= " . $vbulletin->userinfo['lastvisit'] . "
" . iif($vbulletin->userinfo['excludeforumsgnp'], "AND thread.forumid NOT IN (0," . $vbulletin->userinfo['excludeforumsgnp'] . ")") . "
");
(The query might need some optimization though)
Andreas
10-05-2005, 11:00 PM
i dont see a forum id list? which exact file? is there a string i can search for to find it? sorry to be a pain :ermm:
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']);
That's the line which (re)defines the comma-separated list of excluded forums - add your ID to it.
dsotmoon
10-05-2005, 11:06 PM
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?
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : '8,' . $vbulletin->userinfo['excludeforumsgnp']);
with the forum id being 8
Andreas
10-05-2005, 11:19 PM
Not quite ;)
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']) . ',8';
dsotmoon
10-05-2005, 11:38 PM
Not quite ;)
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']) . ',8';
haha, i was almost close, thanks Kirby
dsotmoon
10-05-2005, 11:57 PM
Not quite ;)
$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
// 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 = '')
{
Andreas
10-06-2005, 12:00 AM
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
$vbulletin->GPC['exclude'] .= ',8';
below the }
dsotmoon
10-06-2005, 12:03 AM
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
$vbulletin->GPC['exclude'] .= ',8';
below the }
like this
{
$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 = '')
{
dsotmoon
10-06-2005, 12:05 AM
or this
{
$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 = '')
{
Andreas
10-06-2005, 12:05 AM
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)
dsotmoon
10-06-2005, 12:16 AM
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?
Andreas
10-06-2005, 12:18 AM
ACP / Plugin System / Plugin Manager
Locate the Plugin on Hook search_getnew_start for this Hack, click edit.
dsotmoon
10-06-2005, 12:25 AM
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
Yes.
register_addmember_process
$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
Yes.
register_addmember_process
$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
*** Untested ***
To make this work with the welcome module of CMPS:
In welcomeblock.php
FIND
$getnewposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= " . $vbulletin->userinfo['lastvisit']);
REPLACE that with
$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:
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
Andreas
10-10-2005, 09:02 PM
Do you have any Forums excluded?
dieselpowered
10-10-2005, 09:27 PM
Do you have any Forums excluded?
No at this time I do not.
I was just about to go in and test it, however, I received that error...so I had to revert the file.
Andreas
10-10-2005, 09:27 PM
That's the problem then - it only works if you have Forums excluded :)
dieselpowered
10-10-2005, 09:31 PM
That's the problem then - it only works if you have Forums excluded :)
So you are saying that any of my visitors who do not have any forums excluded will be unable to visit my site as they will receive that error.
Hmmm well that will not work.
See some people may want to see everything versus some may want to opt out...therefore, sounds like I will not be able to change the welcome module to only show the new posts from the forums they want to see.
Andreas
10-10-2005, 09:36 PM
I've edited my post with the Code; the revised version should work no matter if Forums are excluded or not.
JulianD
10-10-2005, 09:59 PM
GREEEEEEEEAT EXTENSION!!!!! My users were requesting this one a long time ago! Thank you so muuuuuuuuch!
dieselpowered
10-11-2005, 03:52 PM
I've edited my post with the Code; the revised version should work no matter if Forums are excluded or not.
Worked just fine my friend.
Now you indicated the code needed to be optimized, is that still the case?
Thank you sir!
Andreas
10-11-2005, 04:01 PM
Still could need an optimization, but not sure - havn't looked at that.
dieselpowered
10-11-2005, 04:02 PM
Still could need an optimization, but not sure - havn't looked at that.
Not even sure what you mean by optimization, however, if you say it needs something I believe you. So is that something you were going to do, or do I need to find someone to do it?
Thanks again for all your help, that was very cool of you!
Andreas
10-11-2005, 04:05 PM
i'll take a look at it ... when I am very bored :D
Anyway, even if it could be optimized it's not a big issue.
dieselpowered
10-11-2005, 04:12 PM
i'll take a look at it ... when I am very bored :D
LOL cause you are not already busy enough right?? ;)
Well if you come up with something, let me know.
Thanks :)
Brandon Sheley
10-14-2005, 06:13 AM
will this affect the welcome module for vBadvanced cms ?
Andreas
10-14-2005, 10:19 AM
No, it will not.
GrendelKhan{TSU
10-31-2005, 04:41 PM
great stuff!
* GrendelKhan{TSU clicks install. ^^
Question:
***
Is it possible to set certain forums to DEFAULT as opted-out (excluded), but have it so enabled usergroup still has option to opt-IN that forum/s??
***
I want my RSS news forums opted-out/excluded BY DEFAULT... but be ABLE to have users still be able to ADD/OPT-IN if they want to.
(Right now, as far as I can tell, its only possible to do the reverse, is that correct?)
otherwise, relatively few users will ever opt-out even though they were probably prefer to....simply cause most people are lazy or don't realize they can (or just don't bother to customize), imo.
(I like to my default settings play to majority and let "customizers" do their thing. Not have news feeds in the New Posts is much better for most, imo :))
GrendelKhan{TSU
11-01-2005, 08:41 AM
great stuff!
* GrendelKhan{TSU clicks install. ^^
Question:
***
Is it possible to set certain forums to DEFAULT as opted-out (excluded), but have it so enabled usergroup still has option to opt-IN that forum/s??
***
I want my RSS news forums opted-out/excluded BY DEFAULT... but be ABLE to have users still be able to ADD/OPT-IN if they want to.
(Right now, as far as I can tell, its only possible to do the reverse, is that correct?)
otherwise, relatively few users will ever opt-out even though they were probably prefer to....simply cause most people are lazy or don't realize they can (or just don't bother to customize), imo.
(I like to my default settings play to majority and let "customizers" do their thing. Not have news feeds in the New Posts is much better for most, imo :))
bump? :) :nervous:
akanevsky
11-01-2005, 05:50 PM
I want my RSS news forums opted-out/excluded BY DEFAULT... but be ABLE to have users still be able to ADD/OPT-IN if they want to.
(Right now, as far as I can tell, its only possible to do the reverse, is that correct?)
otherwise, relatively few users will ever opt-out even though they were probably prefer to....simply cause most people are lazy or don't realize they can (or just don't bother to customize), imo.
(I like to my default settings play to majority and let "customizers" do their thing. Not have news feeds in the New Posts is much better for most, imo )
This is not too usable for end users, so I don't think anyone will do that.
JohnBee
12-11-2005, 05:20 PM
The permission system doesnt propagate down the forum permissions, ex: if you set do not exclude forums at the top of a forum section, all forums will receive "do not exclude" even if you change individual forums under that section to "allow exclude"
is there a way to fix this, as it is, if you have a very large forum setting each individual subforum under that section is extremely time consuming and imo. not worth the efforts.
Additionally when you add this feature it clashes with the new post reporting option in such a way that you see "no. of new posts" but when you click on it the search returns nothing.
This hack is not very useful in its current form (uninstall)
ConqSoft
12-11-2005, 05:32 PM
Additionally when you add this feature it clashes with the new post reporting option in such a way that you see "no. of new posts" but when you click on it the search returns nothing.
That must be a hack? Because I don't have anywhere on my site that shows a number of new posts. If that's the case, then your hack will need to be modified to take into account opt'ed out forums.
Tulsa
12-11-2005, 07:42 PM
It is a hack and probably this one.
https://vborg.vbsupport.ru/showthread.php?t=96522
Andreas
12-12-2005, 02:58 AM
The permission system doesnt propagate down the forum permissions, ex: if you set do not exclude forums at the top of a forum section, all forums will receive "do not exclude" even if you change individual forums under that section to "allow exclude"
The permission is Can exclude Forums from "Get New Posts".
If you set this to No for a Category, but Yes for subforums of this category, the category will not show up in the listbox - that's correct and actaully working as designed.
vBulletin search behaves the same way - set "Can search Forum" for a category to No, but Yes for subforums - it will not be shown on the search form.
Or set "Can View"=No for a category but Yes for subforums - the category will not be shown on Forumhome, etc.
SmEdD
12-12-2005, 04:53 AM
You might want to put in the desc so your average joe knows that if you hold ctrl you can highlight multiple forums.
Andreas
12-12-2005, 08:24 AM
The "average joe" should know that, as every listbox which allows selecting multiple itemas works this way - also the forum selection listboc on search.
And there too is no explanation :)
SmEdD
12-12-2005, 04:15 PM
Yes it would be nice for the average joe to know. but you have to remember about 10-20% of the people who use the net will know that maybe even less. And there should be a thing for the search area too. But I have never needed to do that for the search.
Does this mod enable you to lock X forum out of new post and daily from within the adminpanel, so that no one can turn it on?
utw-Mephisto
12-20-2005, 08:03 PM
It is a hack and probably this one.
https://vborg.vbsupport.ru/showthread.php?t=96522
Kirby, any way to make it working with that one ?
vBSEO
12-23-2005, 02:00 AM
Very useful when having multilanguage forums. Installed ;)
firstrebel
12-24-2005, 07:57 AM
I have a few members that this does not work for, one is on AOL but he has tried it in a non AOL browser and still does not work. Any ideas please?
Bob
dcpaq2xx
01-06-2006, 07:56 AM
Andreas,
When going to the user groups permissions, All that is in the search column is the ability to turn on or off the "Can Search Forums".
I dont see the "Can Exclude Forums From "Get New Posts" as shown in your png files.
Doug
Andreas
01-10-2006, 12:14 AM
Install it correctly and you'll see.
we_scooter
01-10-2006, 12:20 AM
GREAAAAAAT
What i like about your hacks, that they are mostly useful and bettercan be added as landmark features. That's why i look for -(Andreas)- HACKS
thank you
we_scooter
dcpaq2xx
01-10-2006, 12:29 AM
Install it correctly and you'll see.
LOL, As far as I know I am installing it correctly.
If Im not installing it correctly then I dont know what the heck I would be doing wrong as the install seems pretty straight forward and selfexplanatory to me.
Doug
Andreas
01-10-2006, 12:31 AM
I don't know either what you are doing wrong. Only thing I can say is: If the permissions does not show up, then you did smth. wrong.
Most likely it's a problem with the bitfield XML.
dcpaq2xx
01-10-2006, 12:33 AM
I don't know either what you are doing wrong. Only thing I can say is: If the permissions does not show up, then you did smth. wrong.
Most likely it's a problem with the bitfield XML.
I can see im getting far with this.
Ill figure it out on my own then and If i cant get it to work then its one less mod on my board. :)
Thanks anyway
Doug
Fuzzy Orange
01-10-2006, 03:26 PM
Is there a way to make a forum ignored for ALL users?
Streicher
01-22-2006, 06:53 AM
Thanks for this very nice modification. My users love it.
bada_bing
01-25-2006, 07:11 PM
Will this work on vb 3.5.3 ?
teyron
01-27-2006, 10:50 AM
i added it, but i cant find $customfields[other] in modifyprofile template, only $customfields[required]
ChurchMedia
01-31-2006, 03:35 PM
great stuff!
Question:
***
Is it possible to set certain forums to DEFAULT as opted-out (excluded), but have it so enabled usergroup still has option to opt-IN that forum/s??
***
I want my RSS news forums opted-out/excluded BY DEFAULT... but be ABLE to have users still be able to ADD/OPT-IN if they want to.
(Right now, as far as I can tell, its only possible to do the reverse, is that correct?)
I'm interested in the same thing -- or even to exlude forums WITHOUT the user option of turning them back on.
teyron
01-31-2006, 04:26 PM
i added it, but i cant find $customfields[other] in modifyprofile template, only $customfields[required]
-------
bah, answer me :(
Tralala
02-06-2006, 03:36 AM
Is it possible to set certain forums to DEFAULT as opted-out (excluded), but have it so enabled usergroup still has option to opt-IN that forum/s??
***
I want my RSS news forums opted-out/excluded BY DEFAULT... but be ABLE to have users still be able to ADD/OPT-IN if they want to.
This was answered already; start at post #120 and read down. You can set certain forums to "default" in the opted-out state, and users can toggle them back on at their discretion.
SaN-DeeP
02-19-2006, 02:58 PM
interesting addon worth a try :)
GlitterKill
02-23-2006, 02:38 PM
Works with VB 3.54?
firstrebel
02-23-2006, 04:07 PM
Works with VB 3.54?
Seems to be OK on my dev board. Doing my live board over the weekend.
Bob
Domenico
03-14-2006, 01:23 PM
Doesn't work here on vB3.5.4
The extra ucp fields doesn't show up.
ConqSoft
03-14-2006, 01:26 PM
Did you add the code to the UserCP template?
Domenico
03-14-2006, 01:57 PM
Did you add the code to the UserCP template?
You mean this one ->
3) In Template modifyoptions
FIND
----------------------------------------------------------------------------------------------------
$customfields[other]
----------------------------------------------------------------------------------------------------
BELOW that ADD
----------------------------------------------------------------------------------------------------
<if condition="$show['optoutgnp']">
<fieldset class="fieldset">
<legend>$vbphrase[exclude_forums_from_gnp]</legend>
<div><phrase 1="$session[sessionurl]">$vbphrase[exclude_forums_from_gnp_desc]</phrase></div>
<label for="sel_optoutgnp">$vbphrase[exclude_forums]:</label>
<select style="width: 100%" size="13" name="optoutgnp[]" id="sel_optoutgnp" multiple="multiple">
<option value="">$vbphrase[none]</option>
$optoutforumbits
</select>
</fieldset>
</if>
yes, I did.
Domenico
03-15-2006, 09:18 AM
So does it work for vB3.5.4 yes or no?
Andreas
03-17-2006, 03:06 AM
It does.
Greebo
04-03-2006, 03:50 PM
An excellent mod!
*clicks install*
SaN-DeeP
04-03-2006, 09:29 PM
before installation of hack, is it possible to add couple of forums to all usergroups to get excluded from search results via a sql query ?
croportal
05-16-2006, 02:37 PM
wo great, this i have loking for
JohnBee
05-21-2006, 07:12 AM
Is it possible to search a forum what is opted out?
The reason I ask is my forum has specific news releases. The releases cover various areas and my memberships are not interested in the areas they are no associated with so they asked to turn off new posts for those areas.
However, some of them want to catch up with new posts when the time is right, so I was wondering if there was a way to create a link or button which would allow them to get the new posts for that forum discretely when the time is right.
?
GlitterKill
06-20-2006, 05:10 PM
I have run into an interesting problem. I had been getting reports from one of my members that this hack was not working correctly for him. I have been running it for months with only this one guy stating he was having a problem. I assumed it was just user error. After some troubleshooting with the guy I finally logged in under his account and went to check the options page. I then saw why he was having problems. For some reason, a handfull of some of the sub-forums in one forum area are not listed in the selection list. They appear in mine just fine but his UserCP Options are missing some of them. What in the world could cause this and how might I correct the issue?
ConqSoft
06-20-2006, 05:11 PM
Check the Forum Permissions section for every forum. You can define which usergroups have the ability to ignore which forums.
GlitterKill
06-20-2006, 09:06 PM
Thanks! That certainly was it... it was user error after all! HAHAH
Carl Anderson
06-29-2006, 11:31 PM
Will this work on vB 3.6 beta 3
peterska2
06-29-2006, 11:36 PM
Yes, I have it working on 3.6.0b3 :)
Carl Anderson
06-30-2006, 03:10 AM
Yes, I have it working on 3.6.0b3 :)
Thanks for the reply....:cool:
xlguy
07-31-2006, 10:36 PM
Great mod - thank you author :D
cheesegrits
08-07-2006, 02:57 AM
Remember - Over 70% of web-browsing people are "dumb" :p
I've heard that over 82% of people will make up statistics to support their point of view. :D
-- hugh
mvigod
08-07-2006, 11:23 AM
Anyone test with VB 3.6 Gold?
louis_chypher
08-07-2006, 05:27 PM
Anyone test with VB 3.6 Gold?
This modification is working on My site running vb 3.6 Gold
TheBlackPoet
08-08-2006, 04:20 AM
i appreciate this hack.. and i installed it... i have a question though that i thought about when i first saw this hack...
is there a hack available where members could select to have postings sent to their emails?? sorta like yahoo groups do...
i think this would be pretty cool for those members who cant get online at work, but still have email access.. or passive members who just want to be kept abreast of whats going on on the site..
Hadiyaa
08-17-2006, 09:22 PM
Thanks A Lot.
I'm Searching Plug-In like This for a long time
thedvs
08-30-2006, 12:08 PM
working great in vb3.6.0, thanks again kirby
xlguy
09-08-2006, 01:23 PM
Any idea if you can flip this on it's head and make it "include" rather than exlcude?
yj_enquirer
09-12-2006, 07:03 PM
Nice1..cheers for this..
But a good add-on would be to "allow certain forums" from NOT being able to be opted out..
but otherwise a gr8 one to have.. many thanks..
ConqSoft
09-12-2006, 07:07 PM
Nice1..cheers for this..
But a good add-on would be to "allow certain forums" from NOT being able to be opted out..
but otherwise a gr8 one to have.. many thanks..
It has that feature already. Check Forum Permissions.
netzrate
09-17-2006, 09:57 AM
Hey, great Hack, but my Problem:
The SQL-Query dosent work??
The hack work greatfull, but if i select the Forum i cant save it. :(
Please help :)
Thank you!
aciurczak
09-21-2006, 04:53 PM
I wanted to by default exclude a forum from the the new posts search, so I went to Post #120 and implemented that mini-plug-in (and saved it as a product so I can save it/enable it/disable it over forum upgrades).
But this didn't fix my existing users. I then used this SQL query:
UPDATE usertextfield SET excludeforumsgnp = 17 WHERE excludeforumsgnp = "";
to have forum #17 opted-out by default for all existing users, unless they had taken the time to already choose their own excluded forums, then the query leaves their profile alone.
Great! Installed!!! Users like it :-)
Any chance to guide me how to implement this also for latest (10) threads on forumhome page? I wish if they set up excluded forums they do not wish to see them there either...
Thank you!
DinarMet
10-02-2006, 12:38 PM
This looks like a great hack.
Can it be used with v 3.6?
Thanks!
aciurczak
10-02-2006, 02:56 PM
Works fine with 3.6.1 on my board.
DinarMet
10-02-2006, 05:08 PM
Works fine with 3.6.1 on my board.
Thanks! I'll give it a shot.
pcoskat
10-20-2006, 01:18 PM
Works fine with 3.6.1 on my board.
Thank goodness!
This hack should be standard with vB. It's essential on large boards.
JohnBee
11-10-2006, 06:08 PM
I use another HACK on my forum which our community highly relies on "Unread Posts" this mode simply put places the number of unread threads and posts on the forum home when a user visits the forum.
The opt out forum mod is great, however the Unread posts hack does not register that these forums are opted out, is there a way to get the two to work together?
JohnBee
11-21-2006, 01:53 PM
I just added the custom code to opt out forums by default (great!)
Is it possible to apply this based on usergroups?
For example, usergroup id 7 exclude forum id 17 by default
snikle
12-14-2006, 05:46 PM
Ok, I installed this, made the appropriate changes in my AdminCP to allow groups to use this feature, but for the life of me, I cannot see where the user notates which forums to ignore. What am I missing?
flynnibus
03-21-2007, 03:35 PM
So sites are running this in 3.6.x without issues? Was trying to find some explict support for v3.6 but don't see it mentioned, or references to a v3.6 equivalent? Closest I found was this one https://vborg.vbsupport.ru/showthread.php?t=132279 but that excludes the forums from views, not just new posts
thx
kontrabass
03-21-2007, 04:14 PM
I'm using this under 3.6 with no problems.
GrendelKhan{TSU
04-24-2007, 11:41 AM
WAS working with 3.6 no problem...
just noticed that now seems to be a bug "all of a suddent" in IE (7) where I can't pick multiple forums with ctrl key.
-choose one forum works
-choose a bunch of forums with shift+control works.
-but chosing selected ones with just ctrl doesn't. no response to click when choosing multiple forums. :(
any ideas? only in IE. works in FF.
I even reinstalled it just to see if that would do it. :/
(I know this isn't supported...but it does say for bugs. < fingers crossed > :))
styleforum
05-03-2007, 08:24 PM
Ok, I installed this, made the appropriate changes in my AdminCP to allow groups to use this feature, but for the life of me, I cannot see where the user notates which forums to ignore. What am I missing?
It should be in their User CP under options at the bottom.
styleforum
05-03-2007, 08:27 PM
I have a question on this - I know it's not supported but hopefully someone can tell me if this is happening to them or if they fixed it, etc.
I set this up hoping people could exclude from New Posts, because that's what it says. However, when I tested it it excludes selected forums not only from New Posts but from ANY SEARCH. This is not what I want. For example, people might want to exclude the Buying/Selling forum for New Posts because it clutters up their search, but if they do a regular search for a specific item, they might want to see search results from the Buying/selling forum. As it is, they can't seem to do a global search that includes the forums they've checked off.
If I go into Buying/selling and run a 'search this forum' it works just fine.
Is there a way around this? Was it always like this or is this a 3.6.x thing?
Hoping for some help. Thanks.
SBlueman
08-22-2007, 03:15 PM
Just wanted to say thank you to the author for such a great mod!
I tried to run the SQL query to pre-exclude forums for new members and got this error:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 '$userdata->set('excludeforumsgnp', '137')' at line 1
Now....did I do this right? Is the "137" supposed to be the forum ID I want excluded?
SBlueman
08-23-2007, 05:14 AM
Yes.
register_addmember_process
$userdata->set('excludeforumsgnp', 'X');
So is this right:
if ($vbulletin->userinfo['excludeforumsgnp'])
{
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']);
}
$vbulletin->GPC['exclude'] .= '137,95,152,8';
https://vborg.vbsupport.ru/
dutchbb
09-28-2007, 03:42 PM
Why isnt this a standard vb feature yet?
Itworx4me
10-06-2007, 04:41 PM
With the template hook ($template_hook[usercp_options_other]) is it possible to make this a plugin hack?
Thanks,
Itworx4me
jeremyalyea
11-13-2007, 02:47 AM
Perfect. I have been looking for a hack like this for months!!!!!!
pcoskat
12-31-2007, 04:06 PM
Why isnt this a standard vb feature yet?
Tell me about it!
Alfa1
01-01-2008, 12:28 PM
Please update this for 3.7!
This is THE solution for boards with multilingual forums.
KW802
01-01-2008, 11:05 PM
So is this right:SBlueman, is that working as expected on your sight? With 3.6.8 PL2 I get errors when trying to set $vbulletin->userinfo['excludeforumsgnp'] at the plugin location.
RaceJunkie
01-05-2008, 01:41 PM
I would like to know if this will be upgraded to the next version of vB as well. I need this mod but I also need to upgrade my forums to 3.7 too
abrecher
01-16-2008, 11:35 PM
Please update this for 3.7!
This is THE solution for boards with multilingual forums.
Ditto!!
I will soon want to upgrade to vb 3.7 and I am multitopic board which means this is very handy add-on :)
Please upgrade :)
Thank you!!!
Aquestor
02-09-2008, 06:32 PM
Hi,
I want to install these two Add-ons:
https://vborg.vbsupport.ru/showt...elective+forum
https://vborg.vbsupport.ru/showthread.php?t=91025
But these two didn`t work together, has someone an idea what i can do to get this work?
Or has someone seen this as a normal Add-on:
https://vborg.vbsupport.ru/showthread.php?t=80864
I am serching an Add-on which works with https://vborg.vbsupport.ru/showthread.php?t=91025
together and makes it possibel to change the forum display.
Thanks for Help!!!!
Greetz Kai
RedGTiVR6
02-27-2008, 05:49 PM
I'll add my name to the list of wanting this for 3.7.
Anyone?
mikexxx
05-03-2008, 05:44 AM
It works fine on 3.7 for me.
I hope it does :)
Next week I plan to test 3.7. with my long list of great add-ons like this one.
StarFire
05-26-2008, 04:02 PM
Tried this with 3.7 but failed. I need this hack desparately ...
Please Andreas! please ... please ... please ...
Andreas
05-26-2008, 06:11 PM
Please update this for 3.7!
This is THE solution for boards with multilingual forums.
No update necessary, this works just fine with 3.7
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.