vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

Langly 05-15-2006 09:43 PM

Is LDM using "Delayed Inserts" for SQL? I'm getting several of them according to my host and was trying to narrow down where these are coming from. I'm using v2.2.0 since I have not had to time to upgrade.

AndrewD 05-16-2006 04:53 AM

Quote:

Originally Posted by Langly
Is LDM using "Delayed Inserts" for SQL? I'm getting several of them according to my host and was trying to narrow down where these are coming from. I'm using v2.2.0 since I have not had to time to upgrade.

Not within my code. I've no idea if the underlying vb code ever uses delayed inserts

GrendelKhan{TSU 05-17-2006 08:55 AM

quick question or suggestion before I forget:


is there a way to make a PERMALINK? or have it show a copiable link so people can use this like Online Image Storage or FILE HOST source?

all the elements are there...just need a copiable link to the download.
(eg: this would be VERY useful for people who want to upload say... a signature image and link it into their signature).

again, doing so would in effect covers thses hacks and more..
https://vborg.vbsupport.ru/showthread.php?t=113583
https://vborg.vbsupport.ru/showthread.php?t=106127

|oR|Greg 05-18-2006 02:07 PM

You mean like, upload something, and have it show the link they're to copy for their signature?

Benj 05-18-2006 09:58 PM

woooo ive been away for a bit ..... hows it going andrew benj here...... installs once again :D

obmob 05-19-2006 03:36 PM

AWW, can't make this to work... ok, here is what i've done so far.

Uploaded files as indicated :p -was planning to rename, but i'll do that later-

Now i scanned a folder and was able to add a couple of files, just to test.

It says file is ok... but when i try to download link appears this way and a 404 error is displayed.

http://www. site. com/local_links/jump/2/1 <-- that location doesn't exist, files are stored in a different folder, i thought i enabled some sort of protection in LDM settings to avoid hotlinkin in my files. :(

No broken links shown in admin... so i tried a different way and uploaded directly a different file... no luck, the same result.

Also, if i go to LDM home page i see new category, if i try to browse i see this when clicking category, also 404 error:

http://www. site .com/local_links/links/1

Have i done something wrong? Did i missed something? Files are placed correctly :(

Hope spmeone can help me, thanks.

Ian Emu-UK 05-19-2006 07:28 PM

Quote:

Originally Posted by AndrewD
See the attached.

Thanks Andrew, but it doesn't seem to be working, here is my settings from the file

PHP Code:

$expireusergroups = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);  // use this array to specify which usergroups' entries trigger an autodeletion
$expirecategories = array(18);  // use this array to specify which categories can be pruned, default all categories
$expiredays 3// number of days after which an entry is removed from the database 

I want it to delete everything uploaded by all usergroups in cat 18, but after 5 days the file has still not been deleted.

I have setup the sheduled task and uploaded the file into the cron directory (I can see those questions popping into your head ;) )

Holidazed 05-19-2006 10:18 PM

Is there a way to deny access to particular categories and sub-categories based on the usergroup? It would be nice if I can choose to show the category title to a usergroup and then deny them access when they click on it (maybe with a link to purchasing a subscription) or just not showing the category to them.

So far, I have set my forum permissions to now allow unlogged in people to see the forum that links to a particular category, but if they go directly to the link, it lets them in.

Ideas?

pumarjr 05-20-2006 04:55 AM

i installed this mod, everything works flawlessly, thank you, you should have a donate button!

PS: is there a way when viewing Music/Videos to force the media player local, instead of opening in a new window, so that when the file is played it is played in the vb page?

AndrewD 05-20-2006 06:31 AM

Quote:

Originally Posted by pumarjr
i installed this mod, everything works flawlessly, thank you, you should have a donate button!

PS: is there a way when viewing Music/Videos to force the media player local, instead of opening in a new window, so that when the file is played it is played in the vb page?

This is possible in principle, but I think it will need more work so that things behave sensibly (i.e. that you can get back to your forums, etc).

The trivial change is to edit includes/local_links_include.php. Find function get_linkslistbit, about 140 lines later, you will find these lines:

PHP Code:

            if (isset($icon_cache[$urlType])) {
                if (
$is_musicbox and $links_permissions["can_play_musicbox"]) {
                    
$linktypebit .= '<a href="'.$LINKS_SCRIPT.'.php?action=play&amp;id='.$linkid.'" target="player" onclick="ldmpopup(this.href);return false;">'

and kill the sequence
PHP Code:

target="player" onclick="ldmpopup(this.href);return false;" 

I'll give this some thought to see if there is a better approach.


All times are GMT. The time now is 11:49 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.02378 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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