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-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 08:11 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.03056 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
  • (8)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