vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

Zowners 11-26-2006 05:16 PM

Thanks Andrew works great mate.

imranbaig 11-26-2006 05:40 PM

sorry I miss spelled my question I was mean this can DownloadsII and Links and downloads co-exists together?

AndrewD 11-26-2006 06:44 PM

Quote:

Originally Posted by imranbaig (Post 1125710)
sorry I miss spelled my question I was mean this can DownloadsII and Links and downloads co-exists together?

I don't think there's any reason why not - I haven't tried it, but no-one has said otherwise.

Zowners 11-26-2006 07:02 PM

Sorry for being a pain but how can I change messages users get when they cant access downloads etc so I can make the error message more user friendly.

Cheers

AndrewD 11-27-2006 04:04 AM

Quote:

Originally Posted by Zowners (Post 1125772)
Sorry for being a pain but how can I change messages users get when they cant access downloads etc so I can make the error message more user friendly.

Cheers

Most things in LDM - apart from a few 'mission critical failures' - use phrases that are manage inside the VBulletin phrasing system. Do a search in your vb/admincp/languages and phrases/search for the text you want to modify, then edit it as you wish.

If that doesn't give you the results you want, get back to me.

|oR|Greg 11-27-2006 04:08 PM

Permissions, Andrew... is there a better way to control who see's what content?

Currently if I choose not to allow a usergroup to be able to view the content of a link, they get prompted with a Registration window. But I really only wanted that for users that aren't logged in. I would like those that can click on a link, but are logged in, yet are not allowed to view the contents to get a custome per category message.

Also, a category password option would rock.

kompakt 11-28-2006 01:54 AM

As you mentioned, this is the way the links are parsed in the final 2.2.6 release.
Quote:

Originally Posted by AndrewD (Post 1113228)
Code:

        if (HEADER_BEHAVIOUR == "inline") {
                @header("Content-disposition: inline; filename=".str_replace(" ", "_", $dfname)."");
        } else {
                @header("Content-type: application/x-download");
                @header("Content-disposition: attachment; filename=".str_replace(" ", "_", $dfname)."");
        }


This is still giving me problems in Firefox and users end up getting an html page if I have the hit-parade set to 0. My host does not add custom mime types, they are not known by the server and are defined on my .htaccess file. I have to keep the hit parade set to 1 for this to work since the location of the files is revealed, the browser picks up the correct mime-type from my .htacess file.

Is it possible to add them somehow into the mime-types in the local_links.php?

AndrewD 11-28-2006 04:06 AM

Quote:

Originally Posted by kompakt (Post 1126919)
As you mentioned, this is the way the links are parsed in the final 2.2.6 release.

This is still giving me problems in Firefox and users end up getting an html page if I have the hit-parade set to 0. My host does not add custom mime types, they are not known by the server and are defined on my .htaccess file. I have to keep the hit parade set to 1 for this to work since the location of the files is revealed, the browser picks up the correct mime-type from my .htacess file.

Is it possible to add them somehow into the mime-types in the local_links.php?

I'm a little confused - sorry. First, I assume you mean the setting "force_redirect", not "hit_parade".

When force_redirect is set to 0, LDM behaves as follows:

- if the file type exists in the VBulletin attachment table, then the mimetype data set up in that table is used.
- otherwise, LDM issues a simple browser redirect.

So you should create new entries in VBulletin attachments table for each of the filetypes you want to deal with. The .htaccess mimetype data only comes into play when this is not available.

Now, there is a another problem with Firefox: When you do a "right click/save link as", Firefox does not 'pre-fetch' any information before processing the 'save as' command. As a result, you end up downloading a "scriptname.php" file containing html, rather than (e.g.) the correctly named mp3 file. This has been long discussed on the Firefox development forum - it's a deliberate design choice on their part to speed up processing. It's one area where IE does (in my opinion) a better job.

Am I missing something?

AndrewD 11-28-2006 04:08 AM

Quote:

Originally Posted by |oR|Greg (Post 1126482)
Permissions, Andrew... is there a better way to control who see's what content?

Currently if I choose not to allow a usergroup to be able to view the content of a link, they get prompted with a Registration window. But I really only wanted that for users that aren't logged in. I would like those that can click on a link, but are logged in, yet are not allowed to view the contents to get a custome per category message.

Also, a category password option would rock.

I really wish that I had not decided to use forum permissions in the first place. Untangling the consequences has been a real nuisance.

I'll have to think about these suggestions - I agree with you, but need to see how to make this work without breaking something else.

|oR|Greg 11-28-2006 12:25 PM

Ok, thanks for responding. I'm going to post up instructions a little later on how to do the whole YouTube links integration.

|oR|Greg 11-28-2006 01:58 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=132702" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=132702</a>

AndrewD 11-28-2006 02:55 PM

Quote:

Originally Posted by |oR|Greg (Post 1127266)

Great - well done.
I'll post a video on youtube showing my attempts to code LDM, then we maybe can watch each other watching each other?

Slave 11-28-2006 03:17 PM

Now that's something I'd like to see :)

imranbaig 11-28-2006 05:40 PM

I installed Cool really cool I have few questions might sound dumb to you:P.
I have installed it now i want to change / rename local_links, how to go about it? Should I just update table names and remove prefix from files and add something what I'm looking for??

Juke box does not play mid files?? I have added Content-type: audio/mid mimetype for it.

While playing in jukes box, is there a button to download the currently playing file??
Thank you great hack.

obmob 11-28-2006 05:47 PM

Read wiki:

http://www.eirma.org/wikis/index.php...nd_PHP_Scripts

imranbaig 11-28-2006 05:57 PM

Yep, I renamed files. need to find solution for other ? :) Thanks

Zowners 11-28-2006 10:43 PM

Hey is there a way to get the new links showing in vbadvanced? With a restriction on how many new links show?

Also with the extras I added the show new links and hot links in forumhome is there a way to limit how many files are shown?

Thanks awesome hack, just seen the youtube addon looks great this hack just keeps getting better and better.

AndrewD 11-29-2006 04:51 AM

Quote:

Originally Posted by imranbaig (Post 1127413)
Juke box does not play mid files?? I have added Content-type: audio/mid mimetype for it.

a) Add mid to VB/admincp/attachments table with Content-type:audio/mid
b) Go to LDM/admin/settings/media file settings and add mid to the list of filetypes to be played by your preferred player.

Quote:

Originally Posted by imranbaig (Post 1127413)
While playing in jukes box, is there a button to download the currently playing file??

Not in the Jukebox window itself. (I think this would be an easy template change.) The 'save' link is next to the 'play' link in the main display.

AndrewD 11-29-2006 04:56 AM

Quote:

Originally Posted by Zowners (Post 1127638)
Hey is there a way to get the new links showing in vbadvanced? With a restriction on how many new links show?

In the forum/modules directory, you'll find several vba modules, including one to show 'whats new'. Installation instructions are in the wiki, tke a look at http://www.eirma.org/wikis/index.php/Hacking_LDM. General param controlling number of entries displayed is links_seen_on_portal on ldm/admin/settings


Quote:

Originally Posted by Zowners (Post 1127638)
Also with the extras I added the show new links and hot links in forumhome is there a way to limit how many files are shown?

ditto, links_seen_on_portal

imranbaig 11-29-2006 07:04 AM

Its not fixed I wanted to use some other template apart from modren? which has a save link? is it possible?
and which template jukebox uses??
How do I modify this??
Quote:

trawled during scan of /downloads

Zowners 11-29-2006 07:43 AM

Quote:

Originally Posted by AndrewD (Post 1127849)
In the forum/modules directory, you'll find several vba modules, including one to show 'whats new'. Installation instructions are in the wiki, tke a look at http://www.eirma.org/wikis/index.php/Hacking_LDM. General param controlling number of entries displayed is links_seen_on_portal on ldm/admin/settings




ditto, links_seen_on_portal

I tried the vbadvanced install using the link you gave but the module went off the page and broke the layout. Did I do something wrong?

Slave 11-29-2006 08:35 AM

I think that depends on the length of your name for the link/download .. if it's a really long word/filename then it will break the formatting of your column ..

Hard to know without looking at your site .. :)

AndrewD 11-29-2006 10:44 AM

Quote:

Originally Posted by Zowners (Post 1127903)
I tried the vbadvanced install using the link you gave but the module went off the page and broke the layout. Did I do something wrong?

As Slave says, difficult to tell without taking a look at your site.

If you want to see what someone else has achieved with a vba/LDM integration, take a look at www.versionist.com

Six of the vba modules are pointing to LDM. These are all in release/forums/modules and release/extras/versionist

AndrewD 11-29-2006 10:50 AM

Quote:

Originally Posted by imranbaig (Post 1127895)
Its not fixed

What's not fixed?

Quote:

Originally Posted by imranbaig (Post 1127895)
I wanted to use some other template apart from modren? which has a save link? is it possible?

Anything possible - pls can you be a bit more specific?

Quote:

Originally Posted by imranbaig (Post 1127895)
and which template jukebox uses??

The main template is links_playbit which gets embedded in either links_player_standalone or links_player_embedded.

Quote:

Originally Posted by imranbaig (Post 1127895)
How do I modify this??

The layout is defined in the links_scantext template.

chorton 11-29-2006 02:31 PM

Quote:

Originally Posted by AndrewD (Post 1128002)
As Slave says, difficult to tell without taking a look at your site.

If you want to see what someone else has achieved with a vba/LDM integration, take a look at www.versionist.com

Six of the vba modules are pointing to LDM. These are all in release/forums/modules and release/extras/versionist

Thanks for the plug :)

imranbaig 11-29-2006 07:32 PM

Quote:

What's not fixed?
Wanted to Have a Standalone player, which opens as a popup, and along with links such as send to friend, close, a option to save/download would be nice.


Quote:

Anything possible - pls can you be a bit more specific?
There are templates like photo_album, modren, etc I liked the one which is photo album but it does not have save option.


Quote:

The main template is links_playbit which gets embedded in either links_player_standalone or links_player_embedded.
Thanks for info.

Quote:

The layout is defined in the links_scantext template.
Yes changed that text :).

Also Is there a option to have sis files? i.e mobile phone themes? I have this in attachment table as Content-type: application/vnd.symbian.install, and add a screen shot for the themes?
Thanks for the great Addon :)

Zowners 11-29-2006 10:19 PM

<a href="http://img362.imageshack.us/img362/4146/errortj8.jpg" target="_blank">http://img362.imageshack.us/img362/4146/errortj8.jpg</a>

Ok this is what happens when I use the followign module

Main Options:
Module Title: New Downloads
Column: left
Display Order: 1
Active: Yes
Update All Pages: Yes

PHP File Module Options:
File to Include: ldm_new.php
Identifier: ldm_new
Templates Used:adv_portal_custom_ldm_new, links_vbalinks

Module Shell Template Options:
Use Module Shell Template: No

Zowners 11-29-2006 10:29 PM

Looks like ive fixed it you need to have Use Module Shell Template set to yes. Not no as it says in the link.

Thanks

paypal 11-30-2006 01:00 AM

Forgive me for being very dumbfounded from this add-on ...Ive installed > i see it in Admin panel > but where do i see it in the forum? what is the main page link? maybe i missed something. Kindly awaiting replies.

Slave 11-30-2006 04:44 AM

Quote:

Originally Posted by paypal (Post 1128419)
Forgive me for being very dumbfounded from this add-on ...Ive installed > i see it in Admin panel > but where do i see it in the forum? what is the main page link? maybe i missed something. Kindly awaiting replies.

You need to add the link to the hack yourself. Normally this would be in the navbar template.

www.yoursite.com/local_links.php

or

www.yoursite.com/forums/local_links.php

.. depending on your setup ..

Zowners 11-30-2006 05:15 AM

Ok I have the module working beautifully. At the moment the module is showing newest links. Is there a way to make it so that certain usergroups cant see links that are in restricted categories? As I have retricted access to 18+ category but the links show in the module to anyone.

Also Is it possible to show the latest links for a specified category?

I want to make several newest link modules example: Latest Manga, Latest Music, Latest AMV

Thanks

AndrewD 11-30-2006 05:15 AM

Quote:

Originally Posted by Zowners (Post 1128351)
Looks like ive fixed it you need to have Use Module Shell Template set to yes. Not no as it says in the link.

Thanks

Thanks - I'll take a look at the documentation. I don't use vba myself, so the instructions may be a bit approximate, although I thought the suggested settings were correct - anyone else care to comment?

AndrewD 11-30-2006 05:27 AM

Quote:

Originally Posted by Zowners (Post 1128511)
Ok I have the module working beautifully. At the moment the module is showing newest links. Is there a way to make it so that certain usergroups cant see links that are in restricted categories? As I have retricted access to 18+ category but the links show in the module to anyone.

This is handled automatically if you are using the forum-based protection for your categories. Do the following:
- select one of your forums which has the viewing permissions that you want to apply to the category and its entries
- edit the category, and find the box 'Parent Forum'. select the chosen forum and tick the box "Also make this the parent of..."

You can also set this up in two ways:
- If the LDM/admin/setting can_see_protected_links_on_portal is 'on', unauthorised people can see protected entries, but cannot visit them.
- If off, then unauthorised people never get to see the protected entries.


Quote:

Originally Posted by Zowners (Post 1128511)
Also Is it possible to show the latest links for a specified category?

I want to make several newest link modules example: Latest Manga, Latest Music, Latest AMV

Thanks

Needs a slight edit to the new module. Find the line

$filter = array("link.linkmoderate = 0");

and change it, e.g., as follows:

$filter = array("link.linkmoderate = 0", "ltoc.catid = 5");

to restrict the module to new entries in category with catid 5.

or

$filter = array("link.linkmoderate = 0", "ltoc.catid IN (5,6,7)");

to restrict to category ids 5,6,7

AndrewD 11-30-2006 05:30 AM

Quote:

Originally Posted by imranbaig (Post 1128245)
Wanted to Have a Standalone player, which opens as a popup, and along with links such as send to friend, close, a option to save/download would be nice.

There are templates like photo_album, modren, etc I liked the one which is photo album but it does not have save option.

Also Is there a option to have sis files? i.e mobile phone themes? I have this in attachment table as Content-type: application/vnd.symbian.install, and add a screen shot for the themes?

I'll try to post answers this weekend.

Zowners 11-30-2006 07:50 AM

Hey Andrew it does work but not in the way I want.

I want it so can create a module called Latest Manga which will show all the latest links for category id 1, Then also create a module called Latest AMV that will show all the latest links for category id 112.

What the code youve given me is doing is putting it all in one module.

|oR|Greg 11-30-2006 09:43 AM

Probably because you're using the array version, make another plugin, but use the single version for each and set one for cat 1 and one for cat 112.

Slave 11-30-2006 11:50 AM

Quote:

Originally Posted by AndrewD (Post 1128512)
Thanks - I'll take a look at the documentation. I don't use vba myself, so the instructions may be a bit approximate, although I thought the suggested settings were correct - anyone else care to comment?

I have it set to "No" and it works fine ..

Saying that, I started using the module a few versions back so while I've updated the .php file I've not touched the module within the CMPS admin area .. which might make a difference?

Zowners - do you have "adv_portal_custom_ldm_new, links_vbalinks" within the "Templates Used" box within the module edit screen?

kompakt 11-30-2006 03:52 PM

Quote:

Originally Posted by AndrewD (Post 1126965)
I'm a little confused - sorry. First, I assume you mean the setting "force_redirect", not "hit_parade".

When force_redirect is set to 0, LDM behaves as follows:

- if the file type exists in the VBulletin attachment table, then the mimetype data set up in that table is used.
- otherwise, LDM issues a simple browser redirect.

So you should create new entries in VBulletin attachments table for each of the filetypes you want to deal with. The .htaccess mimetype data only comes into play when this is not available.

Now, there is a another problem with Firefox: When you do a "right click/save link as", Firefox does not 'pre-fetch' any information before processing the 'save as' command. As a result, you end up downloading a "scriptname.php" file containing html, rather than (e.g.) the correctly named mp3 file. This has been long discussed on the Firefox development forum - it's a deliberate design choice on their part to speed up processing. It's one area where IE does (in my opinion) a better job.

Am I missing something?

My MIME types are defined correctly in the vbulletin attachments table, that never fixed it. I had to add the mimetypes into my .htaccess file and have force_redirect set to 1 for the mp3s to download correctly. Some times audio files work. But video files never work...

Now if the files were renamed in a way that they do not have any spaces, nor in their parent directories, will that fix it?

Zowners 11-30-2006 07:16 PM

Quote:

Originally Posted by |oR|Greg (Post 1128618)
Probably because you're using the array version, make another plugin, but use the single version for each and set one for cat 1 and one for cat 112.

You lost me.

Zowners 11-30-2006 07:19 PM

Quote:

Originally Posted by Slave (Post 1128672)
I have it set to "No" and it works fine ..

Saying that, I started using the module a few versions back so while I've updated the .php file I've not touched the module within the CMPS admin area .. which might make a difference?

Zowners - do you have "adv_portal_custom_ldm_new, links_vbalinks" within the "Templates Used" box within the module edit screen?

I do indeed, I think I gave a full description of what I had in a previous post. But it works fine with module set to yes and doesnt when set to no.


All times are GMT. The time now is 11:39 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.03288 seconds
  • Memory Usage 1,866KB
  • 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_code_printable
  • (31)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
  • (40)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