vb.org Archive

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

AndrewD 08-21-2008 03:45 PM

Quote:

Originally Posted by blackwolfcds (Post 1603645)
Good morning,

First, a big thank you for this wonderful module.

I have a problem with the "filter".
I have a category which includes many files (more than 20000 for some).
If you choose a filter, for example the letter "B", only the first page complies.
If you click on page 2, for example, the filter cancels ...

I tried with versions post1 and post2, and invariably the same problem.

If someone can help me, it would be very nice.

Thank you in advance.

You are right, this is a bug. I will fix in the upload when possible.

Edited: In the meantime, if you want to fix it yourself, edit local_links.php in your forum directory. Find the following code (around line 675):

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&sort=$sort", "&pp=$thispage");
and replace with

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&sort=$sort".(strlen($viewfilter) ? "&filter=$viewfilter" : ""), "&pp=$thispage");

Stilgar 08-21-2008 04:19 PM

How can I limit a usergroup to only being able to add one Link to the list?

Also, Where can I change $linkimgjump ? I would like to change the image's link to go to:

Code:

<a href="member.php?u=$linkuserid">$linkusername</a>

Thanks!

p.s. Andrew, I was able to allow images to be displayed on the directory. I just used the File Upload instead of the Image upload. Then I just limited the files available for upload to only image file types. It adds the Thumbnails just as I wanted. Now all I have to do is edit out the file links so members are not trying to download the thumbs. Thanks for all your help!

James

blackwolfcds 08-22-2008 08:46 AM

Quote:

Originally Posted by AndrewD (Post 1603862)
You are right, this is a bug. I will fix in the upload when possible.

Edited: In the meantime, if you want to fix it yourself, edit local_links.php in your forum directory. Find the following code (around line 675):

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&amp;sort=$sort", "&amp;pp=$thispage");
and replace with

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&amp;sort=$sort".(strlen($viewfilter) ? "&amp;filter=$viewfilter" : ""), "&amp;pp=$thispage");

Thank you very much :)

I edited the file local_links.php as you said and now it works correctly :up:

AndrewD 08-22-2008 09:37 AM

Quote:

Originally Posted by Stilgar (Post 1603877)
How can I limit a usergroup to only being able to add one Link to the list?

not currently an option - would require writing some extra code or a plugin

Quote:

Originally Posted by Stilgar (Post 1603877)
Also, Where can I change $linkimgjump ? I would like to change the image's link to go to:

Code:

<a href="member.php?u=$linkuserid">$linkusername</a>

linkimgjump is set up in includes/local_links_include.php, function ldm_get_entrybits. The clean way to modify it as you want is to create a small plugin tied to the ldm_linkbit_create hook.

Stilgar 08-22-2008 04:47 PM

Ok, sounds good. Thank you.

How can I change the Link Title displayed in links_linkbit ($linkurljump) to be linked to the member's forum profile?

Added: Nevermind, I found it!

Code:

<a href="member.php?$session[sessionurl]u=$linkuserid">$linkname</a>

Thanks! :)

exportforce 08-22-2008 07:45 PM

Hello,

just wanted to try this one, but every time I try to do something, it comes up, that some securitytoken would be wrong or missing...
I am running 3.7.2. pl2

any tips ?

edit:
Also when I try to uninstall it, it just gives me a blank site.
Could you please post an uninstaller, so I can clean it up and reinstall it ?

sparklywater 08-23-2008 02:15 AM

Why can we not enter percentage values for the 'link_imagemagsize' setting? For example 100% would mean cover full screen of user. Also, why is there only one dimension setting in 'link_imagemagsize', why not both width and height?

AndrewD 08-23-2008 03:54 AM

Quote:

Originally Posted by exportforce (Post 1604715)
Hello,

just wanted to try this one, but every time I try to do something, it comes up, that some securitytoken would be wrong or missing...
I am running 3.7.2. pl2

any tips ?

edit:
Also when I try to uninstall it, it just gives me a blank site.
Could you please post an uninstaller, so I can clean it up and reinstall it ?

For the security token, check that you did not patch any of the templates before vbulletin introduced this mechanism. This could leave you with obsolete forms.

There should be no problem uninstalling via the standard vbulletin/admincp/products section. The uninstaller leaves the database tables intact, but this would not create a blank screen.

Blank screens are often a sign of a php bug somewhere. Have you tried vb/admincp/settings/ turn off gzip compression

AndrewD 08-23-2008 04:12 AM

Quote:

Originally Posted by sparklywater (Post 1604892)
Why can we not enter percentage values for the 'link_imagemagsize' setting? For example 100% would mean cover full screen of user. Also, why is there only one dimension setting in 'link_imagemagsize', why not both width and height?

I did wonder about allowing percentages for the image size. However, there's a problem - when you use a percentage in html, you are (afaik) refering to a percentage of the container size in which the item sits, not a percentage of screen size. A size of something specified as "100%" would depend on the specifications for other features on the board and would not mean "full page width". It could also vary with choice of template. It seems less confusing to stick with pixel sizes.

Again, I wondered about having both width and height parameters, but this would end up distorting pictures - by using only one value, the code can maintain the aspect ratio of the picture.

Am open to discussion

sparklywater 08-23-2008 10:35 AM

Quote:

Originally Posted by AndrewD (Post 1604933)
Again, I wondered about having both width and height parameters, but this would end up distorting pictures - by using only one value, the code can maintain the aspect ratio of the picture.

Am open to discussion


I can understand the importance of maintaining aspect-ratio, but I found one problem with the LDM imagemagsize setting. This setting sets the size of the image 'along larger dimension', and this becomes problematic if the image has a larger width than height (which is usually the case). This is because having a fixed width means that the height of the image varies according to the original size of the image, and this sometimes results in images having heights too large for the screen. What would be more useful is to have the 'imagemagsize' set the HEIGHT of the image rather than the width, which would then allow the width of the image to vary according to the aspect-ratio of the original picture. This would cause less problems because obviously the screen of the user is wider than the screen's height, so it can allow for more variability in the horizontal direction.


All times are GMT. The time now is 01:19 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.03055 seconds
  • Memory Usage 1,757KB
  • 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
  • (7)bbcode_code_printable
  • (7)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