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)

MrD 02-19-2005 05:31 PM

Hi,
how can i disalowed unregistered User to download a File.

AndrewD 02-19-2005 06:35 PM

Quote:

Originally Posted by MrD
Hi,
how can i disalowed unregistered User to download a File.

You create (or choose) a forum on your board, and give that forum the permissions you want to use for the file (for example, only registered users can view posts in the forum). Then you associate the file with the forum. You do this within the form for adding or editing the link. You can do the same for categories.

If you want to apply this condition to every new file you make available, then on the links admin page, you set that forum to be the default forum for new links/categories.

LeeWicKeD 02-19-2005 10:33 PM

so..i just came home..and now i'm not going to work any more on the translation...tomorrow i think ;)
and tomorrow i will try again with version 1.55
and yes i'm using the forum-permission-system.

ok, have a good night
lee

Imperial Fritz 02-19-2005 10:36 PM

Yay! When I have time later tonight I'll upgrade.

Slave 02-20-2005 08:35 AM

1.55a now installed ..

Thanks for adding the suggestions .. Brill .. This hack just keeps on giving :)

I think I've found something .. on the new cat page you can give a custom name to the linked cat, but on the edit cat page you can't edit it .. is this as planned?

Apart from that .. perfect! :)

Slave 02-20-2005 08:54 AM

Oh .. and one more suggestion if you have time/it can be done ..

I used to use a cgi script called Links 2.0 as my links page (I think it's been mentioned before in the thread) ..

No! I'm not asking for an importer! ;)

But .. one thing, it was able to do, was very handy indeed .. If you went to a web page and wanted to add it to your links page you could highlight some text as your description and then click on an IE favourite and it would take you to the "add link" page, auto-fill the URL, Title and Description in the entry boxes. Then, all that was left to do was, pick which cat you wanted the link to be in and click the entry button.

It made adding links to the back-end very easy .. and quick!

Here's the code that was used for the favourite:

Code:

javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('http://www.domain.com/links2.cgi?db=links&add_form=1&URL='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'AddToLinks','menubar=1,location=1,resizable=1,scrollbars=1,status=1,toolbar=1'));btw.focus();
I think this would be easy to do for this hack .. as long as the .php file, for adding links, is built to expect the text from the URL in the above code to be placed in the entry boxes ..

I've had a go at changing the code to be compatible with the hack ..

Code:

javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('http://www.domain.com/local_links.php?action=addlink&url='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'addlink','menubar=1,location=1,resizable=1,scrollbars=1,status=1,toolbar=1'));btw.focus();
But of course it doesn't work as, like I said, I think the .php needs to be built expecting the text .. (and I've probably got the .php extensions wrong anyway ;) )

What do you think?

AndrewD 02-20-2005 09:06 AM

Quote:

Originally Posted by Slave
1.55a now installed ..

Thanks for adding the suggestions .. Brill .. This hack just keeps on giving :)

I think I've found something .. on the new cat page you can give a custom name to the linked cat, but on the edit cat page you can't edit it .. is this as planned?

Apart from that .. perfect! :)

Yup, that's planned. Basically, I try to keep this hack as separate as possible from the main VB code. It turned out to be easy enough to create/delete a VB forum, but I'm wary about trying to do too much before I really understand what's going on in the rest of the VB code. So if you want to rename the sub-forum, you'll have to go to the main VB admin page.

AndrewD 02-20-2005 09:09 AM

Quote:

Originally Posted by Slave
Oh .. and one more suggestion if you have time/it can be done ..

I used to use a cgi script called Links 2.0 as my links page (I think it's been mentioned before in the thread) ..

No! I'm not asking for an importer! ;)

But .. one thing, it was able to do, was very handy indeed .. If you went to a web page and wanted to add it to your links page you could highlight some text as your description and then click on an IE favourite and it would take you to the "add link" page, auto-fill the URL, Title and Description in the entry boxes. Then, all that was left to do was, pick which cat you wanted the link to be in and click the entry button.

It made adding links to the back-end very easy .. and quick!

Here's the code that was used for the favourite:

Code:

javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('http://www.domain.com/links2.cgi?db=links&add_form=1&URL='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'AddToLinks','menubar=1,location=1,resizable=1,scrollbars=1,status=1,toolbar=1'));btw.focus();
I think this would be easy to do for this hack .. as long as the .php file, for adding links, is built to expect the text from the URL in the above code to be placed in the entry boxes ..

I've had a go at changing the code to be compatible with the hack ..

Code:

javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('http://www.domain.com/local_links.php?action=addlink&url='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'addlink','menubar=1,location=1,resizable=1,scrollbars=1,status=1,toolbar=1'));btw.focus();
But of course it doesn't work as, like I said, I think the .php needs to be built expecting the text .. (and I've probably got the .php extensions wrong anyway ;) )

What do you think?


This looks a great idea, and I'll give it some thought. When I have the time.....

I also plan to provide a new interface for mass checking/editing/adjusting viewing/dowload permissions, as this seems to be the most frequently asked question.

Slave 02-20-2005 09:27 AM

Nps about the linked cat thing .. just didn't know if it was planned ..

Glad you like the favourites idea .. :)

LeeWicKeD 02-20-2005 06:58 PM

andrew here are my translated .xml files...


just noticed some little phrases that are still english...will fix it maybe tomorrow ;) but about 99% of the important things are translated :)


All times are GMT. The time now is 08:44 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.02028 seconds
  • Memory Usage 1,754KB
  • 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_code_printable
  • (3)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