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)

darkmage 08-16-2004 03:13 PM

Quote:

Originally Posted by AndrewD
Look for the following (about 150+ lines in to local_links.php depending on version)
PHP Code:

function get_linkscat() {
    global 
$DB_site$linkscat$linkscat_set;

    if (!
$linkscat_set) {
        
$asb $DB_site->query("SELECT * FROM ".THIS_TABLE."linkscat ORDER BY catname"); 

Change catname to catid or catdate as you will.

Should this be a configuration option?

Thank you soo much! I would say that this would be a nice little configuration option. :)

kingady 08-17-2004 01:43 PM

<a href="http://www.hl2insider.net/forums/local_links.php" target="_blank">http://www.hl2insider.net/forums/local_links.php</a>

ive set it up, im in admin area, now how do i add categories? ive tried everything to add categories/files, help ;p

AndrewD 08-17-2004 01:49 PM

Quote:

Originally Posted by kingady
http://www.hl2insider.net/forums/local_links.php

ive set it up, im in admin area, now how do i add categories? ive tried everything to add categories/files, help ;p

You use the left hand item on the Links toolbar (Links). The drop down will have an item "Add Category".

kingady 08-17-2004 01:52 PM

thanks alot mate, also this is members only access right?

AndrewD 08-17-2004 01:53 PM

Quote:

Originally Posted by kingady
thanks alot mate, also this is members only access right?

You set the permissions in the admin panel - Each action (view, add, edit, delete/link, category) has its own set of permissions

kingady 08-17-2004 01:55 PM

ooops, sorry i meant for downloading the files.

also is it possible to mask the download link for example:

download link: www.sitename.com/video/file.rar

to http://www.sitename.com/forums/local....php?getfile=3

if u understand what i mean =)

AndrewD 08-17-2004 04:27 PM

Quote:

Originally Posted by kingady
ooops, sorry i meant for downloading the files.

also is it possible to mask the download link for example:

download link: www.sitename.com/video/file.rar

to http://www.sitename.com/forums/local....php?getfile=3

if u understand what i mean =)

Access to individual links and categories is controlled by assigning them to a forum on your board. Create a standard VBulletin forum which is only visible to your members. Then, go into the links admin panel, and set the default_forumid setting to the forumid of that forum. Then, by default all your new links will be protected from non-members.

kingady 08-17-2004 09:36 PM

so the forum id is for example: http://www.hl2insider.net/forums/forumdisplay.php?f=17

17?

because i added a members only section that members can only see (forum) and i entered the forum id 27 because the ending was 27 am i correct?

becausei tried it , still didnt work

AndrewD 08-18-2004 04:00 AM

Quote:

Originally Posted by kingady
so the forum id is for example: http://www.hl2insider.net/forums/forumdisplay.php?f=17

17?

because i added a members only section that members can only see (forum) and i entered the forum id 27 because the ending was 27 am i correct?

becausei tried it , still didnt work

That's right and it should work - but you need to apply the setting also to any links/categories that you created *before* setting forumid 27 as your default. If you PM details of an admin account on your board, I'll take a quick look.

kingady 08-18-2004 01:05 PM

aye i pmed u details and minutes later i knew what u meant, im kinda slow.. lol thanks!!!!!!!!!!!!


All times are GMT. The time now is 06: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.02307 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)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