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)

AndrewD 05-08-2004 03:08 PM

Quote:

Originally Posted by offlead
Andrew, got the upgrade run, and the secondary usergroup permissions appears to work just great. I'm logged in as my regular self, and can access the admin stuff, even though admin is my secondary ug. Thanks!! Just what we needed!

Having trouble with the moderation however. Perhaps I'm missing something. I have a regular user who has submitted a test link for me. But the link becomes immediately available and viewable, even to someone not logged in at all.

Great work though. Thanks!

Have you turned on moderation? By default it's turned off - have a look in the admin page - set the moderation value to 1.

offlead 05-08-2004 04:08 PM

Quote:

Originally Posted by AndrewD
Have you turned on moderation? By default it's turned off - have a look in the admin page - set the moderation value to 1.

*smacks self in head* Thanks Andrew. That was indeed the trouble, and I think I just need more sleep or more coffee. I musta looked at that 30 times without actually SEEING it. :)

We tested out a non-admin member adding both a link and a category. The link test ran perfectly, no issues that I could see. Adding a category however had one glitch that I could see. In a level 2 subcat, there was an existing level 3 subcat when the member added another. While the new subcat was held in moderation, NO subcats showed up when viewing that level 2 page. The existing links in that section showed up fine, just not the existing subcat.

AndrewD 05-08-2004 05:49 PM

Quote:

Originally Posted by offlead
*smacks self in head* Thanks Andrew. That was indeed the trouble, and I think I just need more sleep or more coffee. I musta looked at that 30 times without actually SEEING it. :)

We tested out a non-admin member adding both a link and a category. The link test ran perfectly, no issues that I could see. Adding a category however had one glitch that I could see. In a level 2 subcat, there was an existing level 3 subcat when the member added another. While the new subcat was held in moderation, NO subcats showed up when viewing that level 2 page. The existing links in that section showed up fine, just not the existing subcat.

Sorry, line 610 in local_links.php reads
PHP Code:

if ($thiscat['catmoderate'] and $bbuserinfo['userid'] != $thiscat['catuserid']) break; 

The "break" should read "continue".

Will fix in the morning.

offlead 05-08-2004 06:37 PM

Thanks again, Andrew! Works now.

offlead 05-08-2004 11:41 PM

Andrew, thought you might like to see what I did with this. I did some tweaking of the layouts, and also added some instructions for our users, with the Categories and with the Links. There are also submission instructions/guidelines on the addlink and addcat sections, which of course you can't see without being a member. It's integrated into our forum index using forum set up as a forwarding link (under the Around the Corner section of the index).

http://www.sunshineband.org/forums/f...splay.php?f=16

Lovely hack!

Skyline_GT 05-09-2004 02:01 AM

hm.. darn didn't fix the status bar?
for downloading file..

also I don't know why the permission stuff doesn't work..
Even I set the default_forumid to a forum that guest can't download files, but they still can...

AndrewD 05-09-2004 03:55 AM

Quote:

Originally Posted by Skyline_GT
hm.. darn didn't fix the status bar?
for downloading file.....

Not "didnt fix" but apparantly can't fix. IE, Mozilla, Opera + Acrobat + etc + etc are seriously inconsistent and I need to live my real life too. This hack works the way that VBulletin works. You can switch it to an alternative (force the open/save as dialogue) - look at line 93 of local_links.php and follow the instructions. I make no guarantee that this will work in all situations - it messed up for us with certain combinations of IE + Adobe Acrobat.

Quote:

also I don't know why the permission stuff doesn't work..
Even I set the default_forumid to a forum that guest can't download files, but they still can...
Works fine for me - how are you setting this up? If a user can see a forum in VB, then this hack will let her see links associated with that forum.

AndrewD 05-09-2004 10:38 AM

Quote:

Originally Posted by bitg
Sweet!! Please consider the following suggestions.

Add something that displays the username of the person you submitted the link.
Give a count of how many links that user has submitted.
Have these two options editable by any usergroup that has permission to edit a link.
If a link owner (the person who submitted it) changes, have it change the count of total links that user has submitted.

1. Add something that displays the username of the person you submitted the link.

this is easy - just edit the links_linkbit template and include the variable $linkusername somewhere sensible.

2. Give a count of how many links that user has submitted.

added to version 1.21, directly accessible via admin page and with a new search (see instructions.txt, local_links.php&action=show&user=nn)

3. Have these two options editable by any usergroup that has permission to edit a link.

not yet done

4. If a link owner (the person who submitted it) changes, have it change the count of total links that user has submitted]

not yet done

chrisvonc 05-09-2004 08:26 PM

I used the vb Link Directory 2.0 hack on my 2.3 forums however, I am going to be upgrading my production forum to vB3.0.1 soon and wanted to know if there is a way to retain all the exisiting links in my DB and have them show up under this version? I really dont want to re-enter all the links and descriptions again but this portion is holding up the production side's upgrade and really would like to go live with the new version.

Thanks in advance! :)

Chris

Pitman 05-09-2004 10:35 PM

What about an A-Z search kinda like the member list where it shows A, B, C... at the top of the catagories?


All times are GMT. The time now is 05:57 AM.

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.01947 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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