vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - External Data Provider Usergroup/Cookie Setting (https://vborg.vbsupport.ru/showthread.php?t=127062)

Abe1 09-18-2006 10:00 PM

External Data Provider Usergroup/Cookie Setting
 
External Data Provider Usergroup/Cookie Setting 2.2


About this hack:
This hack allows you to set what usergroup external.php gets permissions from. This is a great hack for administrators who don't allow guests to view their forum. Using this hack you can set what usergroup it should get permissions from. I'm sure your users want RSS feeds!

There is now an option to have the browser look for cookies to get permissions from.

Administrators who allow guests to view their forum but with barley any permissions, this hack will also help you.
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 1 (via ACP)
  • Time to install: 5 seconds

Updates:

Version 2.0 (9/19/06):
  • Release of this hack for vb 3.6.
  • Option to use Cookies to get permissions.

Version 2.1 (9/22/06):
  • Fixed bug with cookie prefixes

Version 2.2 (10/14/07):
  • If using cookies to get usergroupid to get posts, it will now verify passwords to avoid users who edit cookies.

[CENTER]Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

aveon 09-20-2006 12:29 AM

thanx man great one

Snake 09-20-2006 09:04 AM

Thanks.

MrNase 09-20-2006 11:34 AM

This means guests can access pages without having the permission to?
See: https://vborg.vbsupport.ru/showthread.php?t=127101

Abe1 09-20-2006 01:19 PM

Quote:

Originally Posted by MrNase
This means guests can access pages without having the permission to?
See: https://vborg.vbsupport.ru/showthread.php?t=127101

Correct.

I just read your request. You can use the plug-in code for your custom page.

Kanustep 09-21-2006 03:09 AM

Sounds interesting!

But please answer. I have some forums that I don't want to guests view them, but want to be access to RSS.

This happens since I have to many users using RSS to access to my forum, but when click to see the thread, they will need to register to see the all content of message. Is this possible to do with this hack?

Abe1 09-21-2006 01:26 PM

Quote:

Originally Posted by Kanustep
Sounds interesting!

But please answer. I have some forums that I don't want to guests view them, but want to be access to RSS.

This happens since I have to many users using RSS to access to my forum, but when click to see the thread, they will need to register to see the all content of message. Is this possible to do with this hack?

That is how this hack works.

If you let RSS see the title, when a user clicks on it, they will have to log-in to see it.

Kanustep 09-21-2006 01:36 PM

Great this should be include by default on vBulletin

Abe1 09-22-2006 04:38 PM

Version 2.1 (9/22/06):
  • Fixed bug with cookie prefixes

warnmar10 09-23-2006 05:18 AM

It seems to work great with user group permission but ignores cookie based permission.

Abe1 09-24-2006 11:25 PM

Quote:

Originally Posted by warnmar10
It seems to work great with user group permission but ignores cookie based permission.

1) Do you hsve the latest version?
2) Do you log-in with 'remember me'?

ibuddy 10-18-2006 11:33 PM

Doesnt work I set it to a usergroup and its still not working...

ibuddy 10-18-2006 11:53 PM

I would really like to get this working this is exactly what Im trying to do.

I have my forum only viewable to members. So I set the usergroup in External Data Provider to a usergroup # that could view all the forums. I went to my rss page and it didnt work, it was blank. I logged in as admin and went to the same rss page, and could see it. So this is not working unless I am not doing something??

Could this because Im using FPS_External Version: 2.00 to generate the RSS feeds and not external.php?

Abe1 10-19-2006 05:46 PM

Quote:

Originally Posted by ibuddy
I would really like to get this working this is exactly what Im trying to do.

I have my forum only viewable to members. So I set the usergroup in External Data Provider to a usergroup # that could view all the forums. I went to my rss page and it didnt work, it was blank. I logged in as admin and went to the same rss page, and could see it. So this is not working unless I am not doing something??


Could this because Im using FPS_External Version: 2.00 to generate the RSS feeds and not external.php?

Any way I can test on your forum?

ibuddy 10-19-2006 05:50 PM

I am using this mod:
https://vborg.vbsupport.ru/showthread.php?t=105008

for some reason when I use it, I get a blank screen.

Abe1 10-19-2006 10:01 PM

Quote:

Originally Posted by ibuddy
I am using this mod:
https://vborg.vbsupport.ru/showthread.php?t=105008

for some reason when I use it, I get a blank screen.

Try changing the order in which the plug-in run.

Dexter_kcd 10-25-2006 05:39 AM

This is great! I was just getting ready to implement RSS feeds on my site, but we have one forum, that is restricted to members only, and a couple private forums for various groups. This solves the problem of being able to use those forums in an RSS viewer quite nicely. Thanks!

Dexter...

GoNz00 10-25-2006 07:11 AM

thanks :)

/installs

this is better than opening unregisterd usergroups up :D

ODiUM78 10-29-2006 10:32 AM

Thank you very much! This is exactly what i was looking for!

w1z4rd 11-08-2006 07:36 PM

Does this allow you to add multiple groups? I have several groups that need access.

Abe1 11-08-2006 11:32 PM

Quote:

Originally Posted by w1z4rd
Does this allow you to add multiple groups? I have several groups that need access.

How would the browser differentiate between them?

w1z4rd 11-09-2006 12:35 AM

Wish I knew. not a great coder. Cookies perhaps? Or, maybe I could use secondary groups.

Abe1 11-09-2006 02:40 AM

Quote:

Originally Posted by w1z4rd
Wish I knew. not a great coder. Cookies perhaps? Or, maybe I could use secondary groups.

It uses cookies now to see if it can get a userid so it can get the users usergroup. If it does not find the cookie then it uses a default usergroup that you set.

Aylwin 02-22-2007 10:19 AM

How does the RSS feed check for cookies? Does this mean you need to use a browser for reading the feeds? Or can all RSS readers store cookies? Please pardon my ignorance.

Also, a bit off topic here but is there any way to set the RSS feed to send all new posts instead of just new threads?

Abe1 02-22-2007 12:15 PM

Quote:

Originally Posted by Aylwin (Post 1188195)
How does the RSS feed check for cookies? Does this mean you need to use a browser for reading the feeds? Or can all RSS readers store cookies? Please pardon my ignorance.

Also, a bit off topic here but is there any way to set the RSS feed to send all new posts instead of just new threads?

Dont know about the 2nd question.

As for your first, it will only work if you use a browser I guess like in FF or IE. If it can't get a cookie then it will use the default usergroup you set.

jyajay 03-19-2007 06:17 PM

I don't want to show any rss feed for guests or regular members but only for a special usergroup.

Is that possible?

Abe1 03-20-2007 10:15 PM

Quote:

Originally Posted by jyajay (Post 1207510)
I don't want to show any rss feed for guests or regular members but only for a special usergroup.

Is that possible?

Yes. Set it to look at cookies. Also, set the usergroup setting to usergroup 1 which is guests.

jyajay 03-20-2007 10:23 PM

The thing is that I want only one usergroup to get the feed, not any other logged in user or guest.

Abe1 03-21-2007 12:55 AM

Quote:

Originally Posted by jyajay (Post 1208389)
The thing is that I want only one usergroup to get the feed, not any other logged in user or guest.

Then you have to play with the hack your self.

make an IF around the hack

jyajay 03-21-2007 12:59 PM

Could you give me a small advice about how to do that? I am not quite sure what you are talking about.

I already tried to edit the postbit_external though but the usergroup conditional seems not to work there as saving is not possible without producing syntax errors.

Abe1 03-21-2007 04:53 PM

Quote:

Originally Posted by jyajay (Post 1208769)
Could you give me a small advice about how to do that? I am not quite sure what you are talking about.

I already tried to edit the postbit_external though but the usergroup conditional seems not to work there as saving is not possible without producing syntax errors.

Try editing the plug-in for this hack.

jyajay 03-21-2007 05:14 PM

Abe, if I could do it myself I wouldn't ask. I was assuming because you wrote this add-on you can tell what I have to change.


I'd very much appreciate your help with this. :)

Abe1 03-22-2007 01:47 AM

Try to change in the plug-in:

cache_permissions($vbulletin->userinfo);

to:

if ($vbulletin->userinfo['usergroupid'] == XXXXXX)
{
cache_permissions($vbulletin->userinfo);
}

jyajay 03-23-2007 10:43 AM

Ok, thank you for the information.

Now I discovered another problem that denies access to the attachments inside of the news feed because of some cookie setting i guess. When I disable your plugin the attachments are shown without any trouble.

On my forum I got the cookie settings set to .domain.com if thats any help to you.

marshill 05-14-2007 10:52 PM

when I go to my RSS: www.mysite.com/forums/external.php?type=rss2 it shows my latest threads and the full text of those threads, but the permissions on those forums are for viewing topics *only*. My permissions are set so that guests are unable to view thread content, and can only see thread titles. I installed your product and assigned usergroup 1 in the settings, but its the same problem. I can see full post content and should only be able to see titles. Even when I log out completely, I can still see the full content of private threads on my RSS.

Abe1 05-14-2007 11:28 PM

Quote:

Originally Posted by marshill (Post 1247679)
when I go to my RSS: www.mysite.com/forums/external.php?type=rss2 it shows my latest threads and the full text of those threads, but the permissions on those forums are for viewing topics *only*. My permissions are set so that guests are unable to view thread content, and can only see thread titles. I installed your product and assigned usergroup 1 in the settings, but its the same problem. I can see full post content and should only be able to see titles. Even when I log out completely, I can still see the full content of private threads on my RSS.

What happens when you actually click on something?

Abe1 10-15-2007 02:36 AM

Version 2.2 (10/14/07):
  • If using cookies to get usergroupid to get posts, it will now verify passwords to avoid users who edit cookies.

ninjamaster 10-15-2007 10:00 AM

thanks nice work

bchertov 11-01-2007 06:14 AM

Does this hack allow for a user group to just see the first part of a post's body with a link for more? If not, it would make a nice enhancement! I'd like to restrict full text RSS to paid members. Thanks!

YLP1 03-05-2008 10:36 PM

I am a bit confused and need some help. I want to use this modification to only allow admins and premium member group to use the RSS feeds on our other sites and not allow all other member groups and guests to use the RSS feeds.

How do I do that?

Thanks in advance.


All times are GMT. The time now is 03:27 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.01276 seconds
  • Memory Usage 1,819KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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