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)

AndrewD 10-14-2007 09:10 AM

Quote:

Originally Posted by Nam (Post 1359473)
Andrew, I got the new error with 2.2.7, it seems like it has something to do with max connections, how to increase it? I got about 400 emails like this in a single hours

I've not encountered this before. From a quick search on google, it seems that it can be triggered by applications that use persistent connections to the sql database. As this is an option in the vbulletin config.php file, I wonder if you've enabled that setting?

AndrewD 10-14-2007 12:50 PM

There's a bug in 2.2.8 which will hit you in the following situation:

a) you're running LDM on a Linux server
b) the php setting open_basedir is set and has more than one value
c) you try to set/change the setting of the upload directory

In these circumstances, it won't let you make the change.

The bug does not affect other sites.

I'll upload a new main release just as soon as it's thoroughly tested.

obmob 10-14-2007 03:55 PM

Thanks for he update :D

Correadde 10-14-2007 09:52 PM

I get this error when im trying to upload a Picture "Upload error - unable to create a user subdirectory on server."

And i get this error in Admin-cp
Possible inconsistencies between LDM and its environment

- Parameter upload_enabled is enabled but parameter upload_dir is not set

- Parameter upload_dir points to a non-existent or inaccessible directory (maybe check open_basedir?)

- Parameter file_icons_dir is currently unset

- upload_max_filesize 100M > post_max_size 20M in php.ini file - Large uploads may fail without warning

PLZ Help me:confused: ;)

AndrewD 10-15-2007 03:50 AM

Quote:

Originally Posted by Correadde (Post 1360115)
I get this error when im trying to upload a Picture "Upload error - unable to create a user subdirectory on server."

And i get this error in Admin-cp
Possible inconsistencies between LDM and its environment

- Parameter upload_enabled is enabled but parameter upload_dir is not set

- Parameter upload_dir points to a non-existent or inaccessible directory (maybe check open_basedir?)

These error messages probably mean that you have enabled the LDM/admin/setting/upload_enabled but have not set the next parameter, upload_dir. You have to tell LDM where to store the uploads.

Quote:

Originally Posted by Correadde (Post 1360115)
- Parameter file_icons_dir is currently unset

This is warning you that you have not given the setting "file_icons_dir" a value. This is not essential, but without it, LDM does not know where to find the icons it uses to bring the displays to life. You find it on LDM/admin/settings/Controls on Images and Icons. You must have uploaded the icons in the LDM release zip onto your server, and you must point this setting at that directory

Quote:

Originally Posted by Correadde (Post 1360115)
- upload_max_filesize 100M > post_max_size 20M in php.ini file - Large uploads may fail without warning

This is warning you of a conflict in the main site configuration file for php on your server. When upload_max_filesize is bigger than post_max_size and a user uploads a file which is between the smaller and larger value in size, some (?all) versions of PHP do nothing but give no error message. Ideally, your site admin should change the settings in the configuration file php.ini so that they have the same value or upload_max_filesize is smaller than post_max_size

Correadde 10-15-2007 09:14 AM

Quote:

Originally Posted by AndrewD (Post 1360390)
These error messages probably mean that you have enabled the LDM/admin/setting/upload_enabled but have not set the next parameter, upload_dir. You have to tell LDM where to store the uploads.

hi! when i try to do that in settings, point to /uploads and press Update, i get blankscreen that the page cant be shown?:( Sorry for my english?:)

AndrewD 10-15-2007 02:30 PM

Quote:

Originally Posted by Correadde (Post 1360567)
hi! when i try to do that in settings, point to /uploads and press Update, i get blankscreen that the page cant be shown?:( Sorry for my english?:)

Blank screens usually happen when your web server is not giving your site enough memory. To find out the correct error message, go to your main vbulletin/admin/options/cookies and http headers, and turn off the setting 'gzip html output'. Then try again with LDM. This time you should get a proper message.

You can also check how much memory your site is being allowed with vbulletin/admin/maintenance/phpinfo and look for the value of the setting memory_limit. I find that site running vbulletin with one or more addons usually need at least 12M - ideally more.

Nam 10-15-2007 04:11 PM

Andrew, I insert the adsense to link_play template to show adsense on all media files. The thing is, now I have some media files that have no need of showing adsense. Is there anyway to remove the adsense in certain pages.

In other world, is there a way to insert/remove a code into/from LDM template with flexibility such as specific category and not others. This is more like a template thing, but problem with LDM, but it doesn't hurt to ask. Sorry and thanks in advance.

AndrewD 10-15-2007 07:26 PM

Quote:

Originally Posted by Nam (Post 1360838)
Andrew, I insert the adsense to link_play template to show adsense on all media files. The thing is, now I have some media files that have no need of showing adsense. Is there anyway to remove the adsense in certain pages.

In other world, is there a way to insert/remove a code into/from LDM template with flexibility such as specific category and not others. This is more like a template thing, but problem with LDM, but it doesn't hurt to ask. Sorry and thanks in advance.

In the links_play_standalone template, you can do a category test with the $catid variable. So you could include something like the following:
PHP Code:

<if condition="$catid==XXX">
do 
add sense code
</if> 

or

PHP Code:

<if condition="in_array($catid, array(x1,x2,x3...))">
do 
add sense code
</if> 


CP, 10-17-2007 04:46 PM

Looks like a very well thoughtout hack.

Now i have only one concern. I would like my users to be able to add images and upload their own files under whichever catergory they choose..

Now i am planning to obtain another host where i will only be hosting files and images, could i possibly link all the "uploads and hosting" -"managed by this hack" to be hosted on another server "whilst this hack remainds on my forums server"

Is and will this be possible?

Cheers

AndrewD 10-17-2007 05:32 PM

Quote:

Originally Posted by CP, (Post 1362450)
Looks like a very well thoughtout hack.

Now i have only one concern. I would like my users to be able to add images and upload their own files under whichever catergory they choose..

This is certainly possible.

Quote:

Originally Posted by CP, (Post 1362450)
Now i am planning to obtain another host where i will only be hosting files and images, could i possibly link all the "uploads and hosting" -"managed by this hack" to be hosted on another server "whilst this hack remainds on my forums server"

Is and will this be possible?

Cheers

I'm not entirely sure I understand this question.

- If you mean, can this hack be used to store the uploads on a different server than the one on which it is running, the answer is no. This would not be possible without implementing some sort of ftp processor.

- But if you mean, can one server be used to provide managed access to files held on another server, the answer is yes. There is one warning about setting up that configuration - if the files are large/with lots of access (e.g. video, mass access to mp3s, etc) and you want to maintain security (i.e. not disclose where the files are coming from), then there is a heavy overhead in transferring everything securely between the two servers.

CP, 10-17-2007 05:54 PM

Quote:

Originally Posted by AndrewD (Post 1362495)
This is certainly possible.

I'm not entirely sure I understand this question.

- If you mean, can this hack be used to store the uploads on a different server than the one on which it is running, the answer is no. This would not be possible without implementing some sort of ftp processor.

I see, my question answered. But do you think you could possibly consider this? There is a vbhack which does this exactly onto an external server, maybe you could grab his codes and with his permission just implement the two together which i think would be an added bonus.. here it is: https://vborg.vbsupport.ru/showthrea...hlight=hosting

Quote:

Originally Posted by AndrewD (Post 1362495)
- But if you mean, can one server be used to provide managed access to files held on another server, the answer is yes. There is one warning about setting up that configuration - if the files are large/with lots of access (e.g. video, mass access to mp3s, etc) and you want to maintain security (i.e. not disclose where the files are coming from), then there is a heavy overhead in transferring everything securely between the two servers.

I see. Could i not just host a script or link the script back to my server so when the upload process takes place its going to the second server anyway? or maybe not as its still being hosted on my first server and in order for it to upload it has to go through the current server onto the second..?

Nam 10-18-2007 02:17 AM

Quote:

Originally Posted by AndrewD (Post 1362495)
- But if you mean, can one server be used to provide managed access to files held on another server, the answer is yes. There is one warning about setting up that configuration - if the files are large/with lots of access (e.g. video, mass access to mp3s, etc) and you want to maintain security (i.e. not disclose where the files are coming from), then there is a heavy overhead in transferring everything securely between the two servers.

Andrew, if another server also has PHP installed and act as media point, is it possible to overcome the overhead problem? Sorry if I already asked this question :).

Nam 10-18-2007 02:26 AM

Quote:

Originally Posted by AndrewD (Post 1360986)
In the links_play_standalone template, you can do a category test with the $catid variable. So you could include something like the following:
PHP Code:

<if condition="$catid==XXX">
do 
add sense code
</if> 

or

PHP Code:

<if condition="in_array($catid, array(x1,x2,x3...))">
do 
add sense code
</if> 


Could I do the other way around? Something like using "if" but disable the adsense code on 1 category. Does it automatically apply to child categories?

Also, the wimpy player in extra folder, assuming the way to install it on LDM, the files are protected from hotlink, just like LDM itself right?

AndrewD 10-18-2007 02:39 AM

Quote:

Originally Posted by Nam (Post 1362796)
Could I do the other way around? Something like using "if" but disable the adsense code on 1 category.

yes, you put the test in the form condition="$catid <=NN" or condition=("!in_array($catid,array(z1,z2,zx3...))"

Quote:

Originally Posted by Nam (Post 1362796)
Does it automatically apply to child categories?

No, this approach works with precisely those categories you specify

Quote:

Originally Posted by Nam (Post 1362796)
Also, the wimpy player in extra folder, assuming the way to install it on LDM, the files are protected from hotlink, just like LDM itself right?

the wimpy mp3 players have the same protection as the inbuilt players. The wimpy flash media player will reveal the location of the source.

AndrewD 10-18-2007 02:40 AM

Quote:

Originally Posted by Nam (Post 1362789)
Andrew, if another server also has PHP installed and act as media point, is it possible to overcome the overhead problem? Sorry if I already asked this question :).

It's certainly possible to consider a hack that will do this, but it's not called LDM :) I really don't want to start writing scripts to coordinate vbulletin amd other hosts.

Nam 10-18-2007 02:57 AM

Could you give me the full php code, as it's a little confused to me. For example if I want adsense to show on all category, except 3 categories 13, 15, 17. What's the exact code I should put on top of <!-- adsense --> ?

PHP Code:

<if condition="in_array($catid, array(13,15,17))">

<!-- 
adsense starts -->

<!-- 
adsense ends -->

</if> 


CamJM 10-18-2007 03:50 AM

Hi Andrew,

Was wondering, what template I would put code in to have a message above every entry. Or just below the entries header.

Thanks. Looking forward to testing out the update!

AndrewD 10-18-2007 02:36 PM

Quote:

Originally Posted by Nam (Post 1362808)
Could you give me the full php code, as it's a little confused to me. For example if I want adsense to show on all category, except 3 categories 13, 15, 17. What's the exact code I should put on top of <!-- adsense --> ?

this should do it...
PHP Code:

<if condition="!in_array($catid, array(13,15,17))">

<!-- 
adsense starts -->

<!-- 
adsense ends -->

</if> 


AndrewD 10-18-2007 02:46 PM

Quote:

Originally Posted by CamJM (Post 1362833)
Hi Andrew,

Was wondering, what template I would put code in to have a message above every entry. Or just below the entries header.

Thanks. Looking forward to testing out the update!

If you want to put something in each entry, then you have to edit one/several of the links_linkbit templates. There are several of these, depending on which layout you are using. Each of them takes the form of a table row definition, looking like this:
PHP Code:

<tr id="linkid$linkid">
<
td colspan="2">
...
</
td>
</
tr


For patching the main layout, above/below the list of entries, it's the links_main template. In fact that template already has some placeholder variables, via an array variable, $includeinmain. Set one of these array elements: precat, postcat, prefeat, postfeat, prelink, postlink, prestats, poststats, e.g. using the ldm_maindisplay_end hook.

Dr.NoTime 10-18-2007 04:39 PM

Thanks again for a great program! Updated flawlessly.
:)

Nam 10-18-2007 04:39 PM

I forgot how to mass adding media files on local sever on the same folder. I remember I could do this back to 2.1.1, could you remind me Andrew?

Quote:

Originally Posted by AndrewD (Post 1362799)
It's certainly possible to consider a hack that will do this, but it's not called LDM :) I really don't want to start writing scripts to coordinate vbulletin amd other hosts.

I thought you don't have to do anything with LDM except programing a few php files to put on the remote server that allow main server to read it directly. You don't have to modify anything in current LDM, do you? :)

Thanks for all the help so far.

Smooth Adam 10-18-2007 05:19 PM

I'm trying to edit my settings and I get the following:

The resource cannot be displayed

The resource you are looking for cannot be opened by your browser.



I'm mainly wanting to use this for the Downloads area. Please help! :eek:

AndrewD 10-18-2007 07:08 PM

Quote:

Originally Posted by Smooth Adam (Post 1363213)
I'm trying to edit my settings and I get the following:

The resource cannot be displayed

The resource you are looking for cannot be opened by your browser.



I'm mainly wanting to use this for the Downloads area. Please help! :eek:

From a quick Google search, this seems to be a problem linked to DNS settings and service providers. I've never seen this before with LDM.

Smooth Adam 10-18-2007 07:31 PM

Quote:

Originally Posted by AndrewD (Post 1363277)
From a quick Google search, this seems to be a problem linked to DNS settings and service providers. I've never seen this before with LDM.

Alrighty... is there a way I can edit the settings manually?

nanaimobar 10-18-2007 11:54 PM

Just updated to 2.2.8. Thanks Andrew. No problems. Great work.

AndrewD 10-19-2007 03:54 AM

Quote:

Originally Posted by Smooth Adam (Post 1363293)
Alrighty... is there a way I can edit the settings manually?

I'm sorry - I've no idea - these messages are not being generated within LDM. I'm quite willing to take a look at your site to see if there is anything obvious I can spot. If you want, send me a PM with details of a vb admin account.

AndrewD 10-19-2007 03:58 AM

Quote:

Originally Posted by Nam (Post 1363192)
I forgot how to mass adding media files on local sever on the same folder. I remember I could do this back to 2.1.1, could you remind me Andrew?

By now, there are two ways - manual and automatic.

Manual is ldm/admin/categories/scan

Automatic is to set up a category (category tree) to synchronise with the directory/directories. This is explained in the wiki, http://www.eirma.org/wikis/index.php/LDM_Quick_Tutorial

Ezswo 10-19-2007 10:53 AM

Well, I must say that this is one hell of a add-on! I recently switched from using Integramod to VBulletin, and I missed a downloadsection in it, untill I found this add-on. And it's even more than I hoped for....very flexible!

So far I encountered just one 'problem' and that has to do with the hit-counter of my downloads or links. It doesn't show how many people downloaded a file of clicked on a link. It stays on "0" hits. I searched this topic to see if I could find a solution myself, but with no luck. What could this be?

Thanks!
Ezra

AndrewD 10-19-2007 04:14 PM

Quote:

Originally Posted by Ezswo (Post 1363663)
Well, I must say that this is one hell of a add-on! I recently switched from using Integramod to VBulletin, and I missed a downloadsection in it, untill I found this add-on. And it's even more than I hoped for....very flexible!

So far I encountered just one 'problem' and that has to do with the hit-counter of my downloads or links. It doesn't show how many people downloaded a file of clicked on a link. It stays on "0" hits. I searched this topic to see if I could find a solution myself, but with no luck. What could this be?

Thanks!
Ezra

Two points to check. On the LDM/admin/permissions, check that you have *not* enabled *can_bypass_hit_recording*. On LDM/admin/settings, check that you have *not* set *force_redirect* to 2. These settings instruct LDM to bypass the whole hit recording process.

If you're ok on both of these, I'm happy to take a look at your site to investigate.

Nam 10-19-2007 09:07 PM

Andrew, I'm pretty sure LDM have this. Basically I want to create 2 categories: First for sub category and 2nd for alphabetically, but 2nd category is nothing but the same to the 1st. How could I link 2 different files to 1 link?

AndrewD 10-20-2007 03:42 AM

Quote:

Originally Posted by Nam (Post 1363950)
Andrew, I'm pretty sure LDM have this. Basically I want to create 2 categories: First for sub category and 2nd for alphabetically, but 2nd category is nothing but the same to the 1st. How could I link 2 different files to 1 link?

I'm somehow misunderstanding your question. You want to set up exactly the same entries in two categories, but have them sorted differently? (That's straightforward - you just choose the two categories together when adding the entry, and you change the default sort order for one of the categories using edit category/control settings) Or you want to connect more than one file to each entry?

obmob 10-20-2007 03:45 AM

Hmm... thought there were no new phrases in the last version, but it seems there are some.

Here is updated files for spanish translation. :D

Good night :p

efil 10-20-2007 05:44 AM

Hi,
I upgraded to 2.28 and i have this problem in Explorer only.

i can't see All the video files (just flv) that i uploaded to my server (i can see files from youtube).
also i can't see the the next 5 video.

It's happened just with explorer, in firefox it's fine.

See pics.

AndrewD 10-20-2007 06:36 AM

Quote:

Originally Posted by efil (Post 1364186)
Hi,
I upgraded to 2.28 and i have this problem in Explorer only.

i can't see All the video files (just flv) that i uploaded to my server (i can see files from youtube).
also i can't see the the next 5 video.

It's happened just with explorer, in firefox it's fine.

See pics.

Hi, I visited your site and tried to play the Persuaders flash with both IE and Firefox (http://www.televizia.net/vb/local_li...d=467&catid=25). It works fine for me with both browsers. Maybe you could try clearing the cache with IE?

AndrewD 10-20-2007 06:50 AM

Quote:

Originally Posted by obmob (Post 1364119)
Hmm... thought there were no new phrases in the last version, but it seems there are some.

Here is updated files for spanish translation. :D

Good night :p

Thanks - this is a tedious job, isn't it.

efil 10-20-2007 06:56 AM

Hi,
still not working.
I hear just the sound with no pic.

Maybe it was before i did the upgrade.
I use always firefox and i did not notice.

another member in my site has this problem also.

neopet001 10-20-2007 08:04 AM

I turn arround the wiki but still can't find out how to use the Media Player.
->I setup in normal way (upload and import xml).
->In Media Player section in Admin , windows media player is enabled, Delivery: checked stream.

->Then I add new Entry, with the url to a wmv file. But when I browse that file, clicking on the entry's name, it only bring me to the download link, not the player !

I think there is an other configuration needed but I still haven't found yet. and I need it to be done quickly as my work needs it!

Thank you for your help, I'd appreciate it!

Ezswo 10-20-2007 11:15 AM

Quote:

Originally Posted by AndrewD (Post 1363820)
Two points to check. On the LDM/admin/permissions, check that you have *not* enabled *can_bypass_hit_recording*. On LDM/admin/settings, check that you have *not* set *force_redirect* to 2. These settings instruct LDM to bypass the whole hit recording process.

If you're ok on both of these, I'm happy to take a look at your site to investigate.

Thanks man! It was the first option that was enabled. I have installed the dutch language, but the translation of the phrase is not very good in my opinion, so I thought this option was meant to do something else.

I don't know who's working on the dutch translation, but maybe I will check the full translation (or do it myself completely, because there are a lot of mistakes in it...nevertheless kudos to the person who made the translation available, I know it's a lot of work to do).

Thanks again.
Ezra

PS: I just realized I have another question. I have set up a categorie for photo's, turned thumbnails on and they're showing up fine. Then I use the magnifier and get to see one of the picture fullsize. When I go back to the thumbnailview (categorie of the pictures), I don't see a thumbnail but the fullsize picture of the image that I just magnified. When I go back to the categorie-view I would expect to only see thumbnails again.

So in short: The pictures I magnified show up fullsize in the categorie-view. The pictures I didn't magnify show up as thumbnails (as they should). But, I want the thumbnail to show up again after magnifying. What could this be?

AndrewD 10-20-2007 04:04 PM

Quote:

Originally Posted by neopet001 (Post 1364227)
I turn arround the wiki but still can't find out how to use the Media Player.
->I setup in normal way (upload and import xml).
->In Media Player section in Admin , windows media player is enabled, Delivery: checked stream.

->Then I add new Entry, with the url to a wmv file. But when I browse that file, clicking on the entry's name, it only bring me to the download link, not the player !

I think there is an other configuration needed but I still haven't found yet. and I need it to be done quickly as my work needs it!

Thank you for your help, I'd appreciate it!

Have you added the required information on media filetypes to the vbulletin / admin / attachments / filetypes table? See http://www.eirma.org/wikis/index.php...s_in_vBulletin for information


All times are GMT. The time now is 03:42 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.04373 seconds
  • Memory Usage 1,891KB
  • 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_php_printable
  • (30)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