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)

AndrewD 06-05-2006 04:36 AM

Quote:

Originally Posted by testing2
Hi, I have installed this mod and it's really useful. I have a problem though - it takes about 20 seconds to load the front page. All the rest of the pages load without any reduction in speed (1-3 seconds). I have about 150 links added so far and no file uploads.

Does anyone know of a way to speed up the page loading speed of the main page? I tried changing settings for number of most popular links and depth of categories shown but that didn't help.

Thank you.

This surprises me, as the front page uses the same code as the rest. Couple of suggestions
- try setting LDM/admin *show_hit_parade* to zero
- try loading one of the inner pages in LDM directly from a clean browser launch (e.g. point your browser at http://yoursite/local_links.php?catid=1). Is this slow - in other words, is it the first page that is slow or the home page?
- edit your VB includes/config.php and add the following line:
Code:

$config['Misc']['debug'] = true;
at the bottom. This adds debugging code to VB, and you will get a timer/database hit record at the bottom of each page, with an 'Explain' link. On your LDM home page, click on 'Explain', and it will tell you where the time is being spent. (On my test board, the home page requires 15 database lookups and 0.1 seconds.)

Send me a PM with your findings and we can try to get to the bottom of this.

GrendelKhan{TSU 06-05-2006 09:17 AM

Quote:

Originally Posted by EasyTarget
you can use ftp to upload and make an excel sheet to add all the info to the database.It already acts as a photo gallery and has a template already built in for displaying photos (links_linkbit_photos). It works really well imo.

I know it already does ... superficially. but andrew mentioned further development to this end so that's why I got pumped. ;)


also, I know you can use the links_linksbit_photos as well.. .but as far as I can tell... you can't use different linkbits for different categories. I don't want to use that for my links category or say, my files categories... only for the section dedicated to photos....

can I request that as a future feature Andrew? (or is it there and I just missed it?)

AndrewD 06-05-2006 09:42 AM

Quote:

Originally Posted by GrendelKhan{TSU
but as far as I can tell... you can't use different linkbits for different categories. I don't want to use that for my links category or say, my files categories... only for the section dedicated to photos....

Yes you can.

Edit the category (LDM/category/drop down menu)

Three tabs across the top: Category Details, Display Settings, User Group Permissions.

Display Settings and User Group Permissions allow you to override the main admin settings for the current category and by default its children.

So for the category you want to use for photos, go to the Display Settings tab and change template_linkbit

obmob 06-05-2006 02:45 PM

Quote:

Originally Posted by AndrewD
Am also knocked out! - I've taken part in eight conferences and several other workshops in eight countries in the last six weeks, so there hasn't been too much time for coding. Things should quieten down reasonably soon.

oh... very busy, well... i can wait :bunny:
Thanks

EasyTarget 06-05-2006 03:10 PM

Quote:

Originally Posted by AndrewD
Yes you can.

Edit the category (LDM/category/drop down menu)

Three tabs across the top: Category Details, Display Settings, User Group Permissions.

Display Settings and User Group Permissions allow you to override the main admin settings for the current category and by default its children.

So for the category you want to use for photos, go to the Display Settings tab and change template_linkbit

yeah, I must say the flexibility of this hack is awesome. I love that I can display the content in category in many different ways. This allows me to have one style for just links, another for downloads/programs which require more detailed information and a whole other style for showing images.

and I must again personally thank andrew for the cURL support, as I appear to be one of the few, if not the only user, that cannot use the fopen php functions (webhost company www.dreamhost.com has it globally disabled for security purposes).

Quote:

Originally Posted by obmob
how... can you post an example?

if you open up one of the excel examples/csv files provided in the download (provided in the main folder, 2.2.1) you'll see an example of how to set up the information. Then I think you go to administration, then import/export and choose to import a csv file. (someone correct me if I'm wrong)
You can also set up LDM to automatically scan certain folders/directories for new files and it will add the new files to a category of your choosing.

obmob 06-05-2006 04:01 PM

OO awesome... very useful!!!

BTW... is there any way to rename uploaded files to some sort of chain values... like rename a image from :

imagename.jpg to

sitename.category.imagetitle.by.username.jpg

Where sitename is the site's name :p
category where it will be uploaded
image title, the title of the image
by... lol the word by
username, the username who uploaded the image :)

I mean gathering the info included while it's uploaded and show it this way to be well recognized by those who download the file? OO

boduzapho 06-05-2006 11:02 PM

Just installed, looks great, 1 issue thoe, the thumbnail i uploaded to my test item does not show.. anyone know why?

AndrewD 06-06-2006 04:10 AM

Quote:

Originally Posted by boduzapho
Just installed, looks great, 1 issue thoe, the thumbnail i uploaded to my test item does not show.. anyone know why?

This is usually because of a mismatch/error between some parameter settings, e.g. the LDM thumbs_dir and your VB homepage url. Which browser are you using? With Firefox, images don't apper at all when there is a problem, but with IE, you get a red cross.

Couple of things to try in order to pin down the problem

- using IE, go to the page where the thumb has been replaced by a red cross, and use a mouse right click then properties to find out what url the browser is trying to load. Relate this to your settings of thumbs_dir and homepage url.

- try clearing the thumbs_dir setting on the LDM admincp. See if the thumbnail appears

sezmar 06-06-2006 02:13 PM

This is a great hack I just love it.

I have a strange problem, yesterday I installed it and it worked fine. Just uploaded some images and a file. So today I go to upload mp3 and it went to a blank screen. Now it goes to blank screens with every file I try to upload. The files will not show up in the LDM system, but when I check the ftp folder they are there. The oly thing I did today was to add the media files in the admincp for attachments.

Any suggestions?

obmob 06-06-2006 03:00 PM

:( Andrew will hate me soon... is it possible to have a thumbnail size to show in linkbit_short, a medium image to show in linkbit and the original file to be downloaded?

Thanks :D


All times are GMT. The time now is 05:00 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.05762 seconds
  • Memory Usage 1,756KB
  • 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
  • (7)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