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-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.


All times are GMT. The time now is 12:12 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.03984 seconds
  • Memory Usage 1,766KB
  • 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
  • (5)bbcode_php_printable
  • (12)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