vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

rmorley 06-04-2005 01:26 AM

Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.

I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.

Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.

Thanks for your help, and sorry about being a pest.

Quote:

Originally Posted by AndrewD
If a link is created by a user who is authorised to moderate links, then the link is immediately accepted. Moderation only applies to links created by users who are not authorised to moderate. I suspect that is what you are seeing.

The separate question is how to create links that can only be viewed by certain users. You do this by associating the link with a VB forum which has the required viewing permissions.


AndrewD 06-04-2005 11:50 AM

Quote:

Originally Posted by rmorley
Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.

I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.

Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.

Thanks for your help, and sorry about being a pest.


I understand the problem ;)

When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.

However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link

Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?

What do you think is best?

rmorley 06-04-2005 01:42 PM

Good, I'm glad I'm not going crazy. It does make sense now. Although it would be a bit more difficult, I think Option 1 (Links added by unregistered users can only be view by moderators) would probably be the best option.

Option two, I believe, could probably be implemented using the Default_Forumid parameter, if you wanted to restrict to only registered members.

Do you think this is a quick modification? If you can make the change, I would be willing to test it out for you.

Rob Morley

Quote:

Originally Posted by AndrewD
I understand the problem ;)

When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.

However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link

Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?

What do you think is best?


AndrewD 06-04-2005 02:05 PM

Quote:

Originally Posted by rmorley
Good, I'm glad I'm not going crazy. It does make sense now. Although it would be a bit more difficult, I think Option 1 (Links added by unregistered users can only be view by moderators) would probably be the best option.

Option two, I believe, could probably be implemented using the Default_Forumid parameter, if you wanted to restrict to only registered members.

Do you think this is a quick modification? If you can make the change, I would be willing to test it out for you.

Rob Morley

Assuming that you are running v1.60, try the attached local_links.php. It's almost complete - the change also requires a mod to the 'whats new' count, but this should be enough for now. Let me know.

rmorley 06-04-2005 02:38 PM

Preliminary tests look good. I will continue to test it, and let you know what I find out. Thanks agian for responding so quickly, and putting together a quick fix for the problem!


Quote:

Originally Posted by AndrewD
Assuming that you are running v1.60, try the attached local_links.php. It's almost complete - the change also requires a mod to the 'whats new' count, but this should be enough for now. Let me know.


rmorley 06-05-2005 01:35 AM

Andrew,

I am not sure if this is already in the works, or I just missed it on the admin page. When moderation is turned on, is it possible to have Vbulletin email a moderator so that they can review the added link and accept or reject it.

Is this option possible by using the default_forumid parameter?

Thanks

Rob

AndrewD 06-05-2005 06:49 AM

Quote:

Originally Posted by rmorley
Andrew,

I am not sure if this is already in the works, or I just missed it on the admin page. When moderation is turned on, is it possible to have Vbulletin email a moderator so that they can review the added link and accept or reject it.

Is this option possible by using the default_forumid parameter?

Thanks

Rob

This is not in the system at present and no-one had asked for it, but I'll give it some thought. I'm wary about the consequences - do different moderators receive different emails, do standard users receive emails when there is something new, should this be a 'cron' job - i.e. regular emails announcing status, etc.

The forum assignment does not have any connection with this - it is basically a mechanism for providing security and association.

rmorley 06-05-2005 11:34 AM

I had not thought of the new post notification for users. You could probably use some of the same code used in the subscription notification in VBulletin, but I am not sure how important this would be. I just looked at Vbulletin, and it looks like there is a cron job setup to handle thread subscriptions on an hourly basis. Rather than trying to re-create this, would it be possible to tap into the thread/post subscription process? I am not very familiar with the VBulletin coding, so I have no idea of the complexity of this enhancement.

Regarding emailing moderators, I was thinking about the possibility of creating a Moderator_Email_Address parameter. Then, when a new link is added, and being held for moderation, an Email could be sent to the moderator(s). Since this would probably only email a few folks, I was thinking that this could be run when the submit button is clicked.

Thanks agian for the enhancement that handles moderation of unregistered users.

-Rob

Quote:

Originally Posted by AndrewD
This is not in the system at present and no-one had asked for it, but I'll give it some thought. I'm wary about the consequences - do different moderators receive different emails, do standard users receive emails when there is something new, should this be a 'cron' job - i.e. regular emails announcing status, etc.

The forum assignment does not have any connection with this - it is basically a mechanism for providing security and association.


Goodspeed 06-05-2005 01:39 PM

Quote:

Originally Posted by AndrewD
I'm sure it's possible - but I've never used pafiledb.

a) Can you code in php? If so, you could use the source code in the subdirectory upgrade_vblinks (see the release zip file) as a template
b) can pafiledb export its contents in some readable format? If so, we could probably tweak that format to be imported here.

Andrew unfortunately I got really low skill in coding.

There is only database backup available in pafile db, is it possible to move data from sql dump to csv?

Forgot to ask you: is it possible to setup links category view in the same way as forum category view, I mean dept of forums? Something like here, at vbulletin.org?

Thank you for your help!

AndrewD 06-05-2005 02:11 PM

Quote:

Originally Posted by Goodspeed
Andrew unfortunately I got really low skill in coding.

There is only database backup available in pafile db, is it possible to move data from sql dump to csv?

Forgot to ask you: is it possible to setup links category view in the same way as forum category view, I mean dept of forums? Something like here, at vbulletin.org?

Thank you for your help!

I took a quick look at pafiledb. It's quite easy to translate the database format, however it would take me several hours to write and text the code. How many entries and categories do you have in your pafile database?

Concerning the second question, you can set up the category view to include subcategories to any depth.


All times are GMT. The time now is 03:59 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.01935 seconds
  • Memory Usage 1,766KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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