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)

obmob 10-04-2007 03:10 PM

Quote:

Originally Posted by AndrewD (Post 1352279)
This is possible but requires changes to the code. It is something that I have intended to make easily available via the LDM/admin pages at some stage, but never quite finished.

Basically, you do the following:

- create a new template within your vbulletin/admincp, for example called links_mylinkbit
- edit includes/local_links_admininclude.php
- find a group of lines (around line 550) which look like this:

PHP Code:

require_admin_row($seq++, 'links_linkbit'serialize(array("name"=>"Modern""collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>1"altbit"=>0)), 'define_linkbit'1); 

- add a new line with slightly changed values, e.g.

PHP Code:

require_admin_row($seq++, 'links_mylinkbit'serialize(array("name"=>"My Linkbit""collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>1"altbit"=>0)), 'define_linkbit'1); 

- if you take a look at the comments in the code, you can probably work out what the other parameters do.

- re-install the LDM product installer.
- the new template will then be available in the same way as other LDM linkbits

OK?

Good, good, thanks, i will try it with the latest 2.2.8 :D

Thanks IrPR, not a bad idea, but i think it's easier to edit some files :p

fredang85 10-04-2007 04:53 PM

When i activate one of the blocks for vbadvanced, this is what I get.

http://www.motorolafans.com/index.php?pageid=downloads

How do I solve this problem?

AndrewD 10-04-2007 06:17 PM

Quote:

Originally Posted by fredang85 (Post 1352932)
When i activate one of the blocks for vbadvanced, this is what I get.

http://www.motorolafans.com/index.php?pageid=downloads

How do I solve this problem?

well, i think that error message says that you've created a link pointing to a module on a vbadvanced page called downloads, and the page no longer exists. I think this is probably an error on your vbadvanced setup.

Alfa1 10-04-2007 09:32 PM

Since I have changed tabs some time ago, I am not using the tabbars hack, but have just put the conditionals in my navbar and have added the following to my additional CSS definitions:
Code:

td.tab a:link,td.tab a:visited,td.tab a:active,a.tab,
td.tab2 a:link,td.tab2 a:visited,td.tab2 a:active,a.tab2,a:link.tab2,a:active.tab2,a:visited.tab2{
background:transparent url(http://www.mysite.com/test/images/tabc.gif) top right no-repeat;
font:12px tahoma,sans-serif;
width:71px;
height:24px;
text-align:center;
padding:3px 0 0;
margin:0 1px;
text-decoration:none;
float:right;
position:relative;
top:3px
}
td.tab a:hover,img.tab a:hover,.tab a:hover,a:hover.tab,
td.tab2 a:link,td.tab2 a:visited,td.tab2 a:active,a.tab2,a:link.tab2,a:active.tab2,a:visited.tab2{
background:transparent url(http://www.mysite.com/test/images/tab2c.gif) top right no-repeat;
}

Quote:

Originally Posted by AndrewD (Post 1350607)
Yes, there's a small problem with this approach, because the standard coding for the tabs hack sets up its display *before* LDM gets started. Consequently, standard LDM variables have not yet been set.

The following approach works:

1) Instead of putting $tabbars in the navbar template, put it in the links_header template, immediately after $navbar.
2) Create a new plugin tied to the *ldm_maindisplay_end* hook, and make its code identical to the code which the tabs hack ties to the *parse_templates* hook
3) You can code your in_array() check using the $viewcatid variable.

This will work for the main LDM displays. You will have to work out how to get this to work in other parts of vBulletin, i.e. which templates you can patch with $tabbars, etc.

- How would this translate to my current set up?

- Am I correct to use the $viewcatid variable like this? This is how I currently have conditionals in my navbar:
PHP Code:

<if condition="$show['member']">
 <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width:0px;color:white;">
  <
tr>
    <
td class="nowrap" align="right" valign="center" style="padding:0px 20px 0;color:white">

<if 
condition="in_array($viewcatid[catid], array(126,39, 43))"><a href="http://www.mysite.com/test/local_links.php?catid=126" title="Watch video's" id="mytab" class="tab2">Video</a><else /><a href="http://www.mysite.com/test/local_links.php?catid=126" title="Watch video's" id="mytab" class="tab">Video</a></if>
<if 
condition="in_array($viewcatid[catid], array(127,42, 61))"><a href="http://www.mysite.com/test/local_links.php?catid=127" title="Listen to podcasts, music" id="mytab" class="tab2">Audio</a><else /><a href="http://www.mysite.com/test/local_links.php?catid=127" title="Listen to podcasts, music " id="mytab" class="tab">Audio</a></if>
<if 
condition="in_array($viewcatid[catid], array(1 , 2, 3, 4 ,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150))"><a href="http://www.mysite.com/test/local_links.php" title="Read research & information" id="mytab" class="tab2">Documents</a><else /><a href="http://www.mysite.com/test/local_links.php" title="Read research & information" id="mytab" class="tab">Documents</a></if>

  </
tr></table>
</if> 


fredang85 10-04-2007 11:02 PM

Quote:

Originally Posted by AndrewD (Post 1352981)
well, i think that error message says that you've created a link pointing to a module on a vbadvanced page called downloads, and the page no longer exists. I think this is probably an error on your vbadvanced setup.

When I disactivate the block, "Whats new", the page displays correctly, but when I activate it, this shows up.

I've tried with other blocks that came with the LDM and all's the same.

AndrewD 10-05-2007 03:49 AM

Quote:

Originally Posted by fredang85 (Post 1353162)
When I disactivate the block, "Whats new", the page displays correctly, but when I activate it, this shows up.

I've tried with other blocks that came with the LDM and all's the same.

I've not seen this problem before, so I don't know what to suggest, but I'm happy to take a look at your site and try to fix it. If you want this, send me a PM with site details and an account/password with vb admin privs.

AndrewD 10-05-2007 03:55 AM

Quote:

Originally Posted by Alfa1 (Post 1353106)
Since I have changed tabs some time ago, I am not using the tabbars hack, but have just put the conditionals in my navbar and have added the following to my additional CSS definitions:
Code:

td.tab a:link,td.tab a:visited,td.tab a:active,a.tab,
td.tab2 a:link,td.tab2 a:visited,td.tab2 a:active,a.tab2,a:link.tab2,a:active.tab2,a:visited.tab2{
background:transparent url(http://www.mysite.com/test/images/tabc.gif) top right no-repeat;
font:12px tahoma,sans-serif;
width:71px;
height:24px;
text-align:center;
padding:3px 0 0;
margin:0 1px;
text-decoration:none;
float:right;
position:relative;
top:3px
}
td.tab a:hover,img.tab a:hover,.tab a:hover,a:hover.tab,
td.tab2 a:link,td.tab2 a:visited,td.tab2 a:active,a.tab2,a:link.tab2,a:active.tab2,a:visited.tab2{
background:transparent url(http://www.mysite.com/test/images/tab2c.gif) top right no-repeat;
}



- How would this translate to my current set up?

- Am I correct to use the $viewcatid variable like this? This is how I currently have conditionals in my navbar:
PHP Code:

<if condition="$show['member']">
 <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width:0px;color:white;">
  <
tr>
    <
td class="nowrap" align="right" valign="center" style="padding:0px 20px 0;color:white">

<if 
condition="in_array($viewcatid[catid], array(126,39, 43))"><a href="http://www.mysite.com/test/local_links.php?catid=126" title="Watch video's" id="mytab" class="tab2">Video</a><else /><a href="http://www.mysite.com/test/local_links.php?catid=126" title="Watch video's" id="mytab" class="tab">Video</a></if>
<if 
condition="in_array($viewcatid[catid], array(127,42, 61))"><a href="http://www.mysite.com/test/local_links.php?catid=127" title="Listen to podcasts, music" id="mytab" class="tab2">Audio</a><else /><a href="http://www.mysite.com/test/local_links.php?catid=127" title="Listen to podcasts, music " id="mytab" class="tab">Audio</a></if>
<if 
condition="in_array($viewcatid[catid], array(1 , 2, 3, 4 ,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150))"><a href="http://www.mysite.com/test/local_links.php" title="Read research & information" id="mytab" class="tab2">Documents</a><else /><a href="http://www.mysite.com/test/local_links.php" title="Read research & information" id="mytab" class="tab">Documents</a></if>

  </
tr></table>
</if> 


It's a bit difficult to help at a distance. $viewcatid is a variable, not an array, so you should make the test something like in_array($viewcatid, array (1,2,3,4,5)). If you've put this into the navbar template rather as plugins a la tabbar hack, this should work correctly within LDM. $viewcatid will be undefined outside LDM, so the test would give the answer 'false' in other parts of the board and not cause an error.

Willygsm 10-05-2007 09:38 AM

hi AndrewD, i have try to set the limit for a user and bytes but the user still can download as many as he can.. please let me know any setting need to set?

here is the screenshot,

AndrewD 10-05-2007 09:41 AM

Quote:

Originally Posted by Willygsm (Post 1353357)
hi AndrewD, i have try to set the limit for a user and bytes but the user still can download as many as he can.. please let me know any setting need to set?

here is the screenshot,

Up to version 2.2.7, LDM will only apply limits for entries that it recognises as downloads, and this requires that you have a valid mimetype entry for the filetype in the vbulletin/admn/attachments table. You should check this first. For .exe files, mimtype of "Content-type: application/download" should do the job.

Willygsm 10-05-2007 10:15 AM

Quote:

Originally Posted by AndrewD (Post 1353359)
Up to version 2.2.7, LDM will only apply limits for entries that it recognises as downloads, and this requires that you have a valid mimetype entry for the filetype in the vbulletin/admn/attachments table. You should check this first. For .exe files, mimtype of "Content-type: application/download" should do the job.

hi andrew thanks for reply, after set exe on attachment table. now when i try download, it show me , please look at the attachment.

AndrewD 10-05-2007 12:21 PM

Quote:

Originally Posted by Willygsm (Post 1353369)
hi andrew thanks for reply, after set exe on attachment table. now when i try download, it show me , please look at the attachment.

That's a setting on the LDM admin page - you've probably disabled allow_remote_downloads

Willygsm 10-05-2007 03:49 PM

Quote:

Originally Posted by AndrewD (Post 1353440)
That's a setting on the LDM admin page - you've probably disabled allow_remote_downloads

thanks problem is solve :)

having new problem again. currently i have near 400gb files on same server but not inside the vb forum, how can i sync it to forum? coz add 1 link by 1 link will kill me :)

here i attach the screenshot


P.s - Sorry for poor english :)

AndrewD 10-05-2007 05:48 PM

Quote:

Originally Posted by Willygsm (Post 1353528)
thanks problem is solve :)

having new problem again. currently i have near 400gb files on same server but not inside the vb forum, how can i sync it to forum? coz add 1 link by 1 link will kill me :)

here i attach the screenshot


P.s - Sorry for poor english :)

Use the LDM category sync feature :) LDM/admin/settings - > sync section, then LDM/add category/sync

You say, not inside the vb forum - do you mean the files are held outside the web site file space? If so, then you have to modify the LDM file_root and file_root_prefix settings. All explained in the online wiki.

Alfa1 10-05-2007 07:30 PM

Quote:

Originally Posted by AndrewD (Post 1353265)
It's a bit difficult to help at a distance. $viewcatid is a variable, not an array, so you should make the test something like in_array($viewcatid, array (1,2,3,4,5)). If you've put this into the navbar template rather as plugins a la tabbar hack, this should work correctly within LDM. $viewcatid will be undefined outside LDM, so the test would give the answer 'false' in other parts of the board and not cause an error.

This works!!!

The only three things that I need to adjust, is to include the LDM main page & LDM's search page and prevent my forum tab to be active when the visiting LDM.

This is the code I have used for my forum tab:
PHP Code:

<if condition="THIS_SCRIPT=='index' OR in_array($foruminfo['forumid'], array(1 , 2, 3, 4 ,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190))"><a href="index.php" title="Forum" id="mytab" class="tab2">Forum</a><else /><a href="http://www.mysite.com/test/index.php" title="Forum"  id="mytab" class="tab">Forum</a></if> 


itsblack 10-05-2007 07:47 PM

I want to move the statistic section to the right side, as this site did:
http://www.musicadigitale.net/forum/local_links.php

Can anyone help me? I guess I should edit the link_main template, but I don't know how. If possible, give me the complete code. Thanks a lot.

Willygsm 10-06-2007 05:21 AM

Quote:

Originally Posted by AndrewD (Post 1353576)
Use the LDM category sync feature :) LDM/admin/settings - > sync section, then LDM/add category/sync

You say, not inside the vb forum - do you mean the files are held outside the web site file space? If so, then you have to modify the LDM file_root and file_root_prefix settings. All explained in the online wiki.

hi andrew, i mean the files then i wan to sync is in the same server, it only held outside the forum folder. what should i do?

AndrewD 10-06-2007 05:39 AM

Quote:

Originally Posted by itsblack (Post 1353650)
I want to move the statistic section to the right side, as this site did:
http://www.musicadigitale.net/forum/local_links.php

Can anyone help me? I guess I should edit the link_main template, but I don't know how. If possible, give me the complete code. Thanks a lot.

This should get you started. As you say, its the links_main template. If just added an extra table with two columns when the statistics are to be displayed

AndrewD 10-06-2007 05:46 AM

Quote:

Originally Posted by Willygsm (Post 1353896)
hi andrew, i mean the files then i wan to sync is in the same server, it only held outside the forum folder. what should i do?

A) Go to the ldm/admin/settings, controls on synchronisation. switch it on and switch on sync_populate_categories and sync_populate_entries
B) Go to LDM main page. Create a new category. In the field 'synchronise with', enter the name of the top directory containing files you want to sync. For example, if you've got your downloads stored in http://yoursite/thisdir/thatdir, then enter /thisdir/thatdir in the field
C) that's it

When you now visit the category, it will spend a little time checking and syncing the directory and any subdirectories

Note that it will oly find filetypes that are in the vb attachments table, and you can further restrict these types using the ldm/admin/settings controls

AndrewD 10-06-2007 05:59 AM

Quote:

Originally Posted by Alfa1 (Post 1353636)
This works!!!

The only three things that I need to adjust, is to include the LDM main page & LDM's search page and prevent my forum tab to be active when the visiting LDM.

This is the code I have used for my forum tab:

When you are on the LDM main page, $viewcatid will be equal to -1
When you are viewing the results of a search, the variable $this_action will be equal to "show"
When you are inside LDM, $this_action is always set, and I imagine it's not set when you are in a forum

So I suggest you modify your forum tab code to say something like
PHP Code:

if condition="!$this_action and (THIS_SCRIPT=='index'  or in_array(..))">...</if> 

Your LDM search check could be

PHP Code:

if condition="$this_action=='show')">...</if> 

Your LDM main page check could be

PHP Code:

if condition="$this_action=='links') and $viewcatid<0">...</if> 


and so on

itsblack 10-06-2007 06:49 PM

Quote:

Originally Posted by AndrewD (Post 1353899)
This should get you started. As you say, its the links_main template. If just added an extra table with two columns when the statistics are to be displayed

I replace the links_main template with the attached code, unfortunately it doesn't work.

With the new template, the width of the main section was extended to 100%, that's OK, I can fix it. But the statistic still stayed under the main section. Just don't know what happened.

Nam 10-06-2007 07:03 PM

Hi Andrew, excuse me if this question has been asked before.

Do LDM support other video site such as google video, Veoh, etc. besides youtube? Or youtube flash player works with them as well? I haven't tried it yet.

AndrewD 10-07-2007 04:37 AM

Quote:

Originally Posted by itsblack (Post 1354295)
I replace the links_main template with the attached code, unfortunately it doesn't work.

With the new template, the width of the main section was extended to 100%, that's OK, I can fix it. But the statistic still stayed under the main section. Just don't know what happened.

I'm also at a bit of a loss. I pulled down the template I'd posted yesterday and tried it again, and it still works for me, see image.

These are the changes in the form of the unix 'diff' command:

Left file: Y:\Users\Andrew\Desktop\links_main-original.txt
Right file: Y:\Users\Andrew\Desktop\links_main-modified.txt
0a1,5
> <if condition="$includeinmain[prestats] or $viewcatstats or $viewcathits or $includeinmain[poststats]">
> <table width="100%">
> <tr>
> <td width="70%" valign="top">
> </if>
158a164,167
> <if condition="$includeinmain[prestats] or $viewcatstats or $viewcathits or $includeinmain[poststats]">
> </td><td valign="top">
> </if>
>
164,167d172
< <table cellpadding="0" cellspacing="0" border="0" width="100%">
< <tr><td width="70%">&nbsp;</td>
< <td>
<
189,190d193
< </td></tr>
< </table>
197a201,206
> <if condition="$includeinmain[prestats] or $viewcatstats or $viewcathits or $includeinmain[poststats]">
> </td>
> </tr>
> </table>
> </if>
>

AndrewD 10-07-2007 04:39 AM

Quote:

Originally Posted by Nam (Post 1354304)
Hi Andrew, excuse me if this question has been asked before.

Do LDM support other video site such as google video, Veoh, etc. besides youtube? Or youtube flash player works with them as well? I haven't tried it yet.

the flash-sites add in in release/extras should work with all the sites you mention. Take a look at the readme.txt for details.

itsblack 10-07-2007 07:18 PM

Quote:

Originally Posted by AndrewD (Post 1354583)
I'm also at a bit of a loss. I pulled down the template I'd posted yesterday and tried it again, and it still works for me, see image.

These are the changes in the form of the unix 'diff' command:

Left file: Y:\Users\Andrew\Desktop\links_main-original.txt
Right file: Y:\Users\Andrew\Desktop\links_main-modified.txt
0a1,5
> <if condition="$includeinmain[prestats] or $viewcatstats or $viewcathits or $includeinmain[poststats]">
> <table width="100%">
> <tr>
> <td width="70%" valign="top">
> </if>
158a164,167
> <if condition="$includeinmain[prestats] or $viewcatstats or $viewcathits or $includeinmain[poststats]">
> </td><td valign="top">
> </if>
>
164,167d172
< <table cellpadding="0" cellspacing="0" border="0" width="100%">
< <tr><td width="70%">&nbsp;</td>
< <td>
<
189,190d193
< </td></tr>
< </table>
197a201,206
> <if condition="$includeinmain[prestats] or $viewcatstats or $viewcathits or $includeinmain[poststats]">
> </td>
> </tr>
> </table>
> </if>
>

I found it has something to to with the extra "add page info". Because I changed the template links_pageinfo_bit before. Now I make a little change, and it works.

Phalynx 10-08-2007 07:52 AM

How can I edit the text that appears in in "links_main" below <if condition="$viewcattext or $viewcatextra">? As the mainpage is not a cat I cannot find the description for that.

AndrewD 10-08-2007 06:36 PM

Quote:

Originally Posted by Phalynx (Post 1355349)
How can I edit the text that appears in in "links_main" below <if condition="$viewcattext or $viewcatextra">? As the mainpage is not a cat I cannot find the description for that.

You mean this section of the template?

PHP Code:

<if condition="$viewcattext or $viewcatextra">
<
tr>
    <
td class="alt1">
    
$viewcattext
    $viewcatextra
    
</td>
</
tr>
</if> 

$viewcattext contains the parsed version of the extended category description (i.e. with bbcodes filled in, etc.)

$viewcatextra contains the contents of the links_catbit_extras template, and is used to hold information on synchronisation, user allowances, etc.

If you want to modify either of these, you could write a plugin that is hooked on ldm_maindisplay_end, e.g. you can append to $viewcatextra

Phalynx 10-08-2007 06:43 PM

Ah, ok, thanks. Will try this.

This field is empty on my site: On the main page only the name of the DB is printed out, followed by an empty row.

pspcrazy 10-09-2007 10:59 AM

Andrew, I was wondering if there is a way to have related videos/files shown horizontally below the listing when you click on a link for a video stream.

Like something like this: http://psp3d.com/jukebox.php?do=view&type=media&mid=23, but with a horizontal bar with related or reccomeded videos from the same category.

GrendelKhan{TSU 10-10-2007 04:11 AM

request:

if possible, any chance of adding

www.imeem.com
www.megavideo.com
http://stage6.divx.com

to the flash site list?


if you could provide a brief tutorial on how to add more sites, I'd be willing to try my hand at it for others as well.

IrPr 10-10-2007 07:57 AM

Quote:

Originally Posted by GrendelKhan{TSU (Post 1356650)
request:

if possible, any chance of adding

www.imeem.com
www.megavideo.com
http://stage6.divx.com

to the flash site list?


if you could provide a brief tutorial on how to add more sites, I'd be willing to try my hand at it for others as well.

Andrew, another suggestion
You can integare this mod to vB AnyMedia and use anymedia class to parse all of media types to stream
Im using class_anymedia.php parsing Youtube, Megavideo and stage6 in my LDM and it rocks!

Again my special thanks goes to Andrew, your LDM in fully modifable due to huge hook locations :)

vrom 10-11-2007 06:23 PM

Is it possible to use to show wimpy wasp (player for flv) directly in link layout?
(soe user do not need to open pop-up widnow to see video)
Thank you!

GrendelKhan{TSU 10-12-2007 02:04 AM

argh..sorry to be a pain..but www.viddler.com as well (flash sites).

again, be happy to try to add myself with instruction. :)

AndrewD 10-12-2007 03:55 AM

Quote:

Originally Posted by IrPr (Post 1356729)
Andrew, another suggestion
You can integare this mod to vB AnyMedia and use anymedia class to parse all of media types to stream
Im using class_anymedia.php parsing Youtube, Megavideo and stage6 in my LDM and it rocks!

Quote:

Originally Posted by GrendelKhan{TSU (Post 1357937)
argh..sorry to be a pain..but www.viddler.com as well (flash sites).

I'll work out what is the best way to do this for these sites and in the long term. I imagine that the anymedia class is similar in concept to the the LDM player parser, so I'll check if it better/simpler to replace one with the other or to keep things distinct.

AndrewD 10-12-2007 03:59 AM

Quote:

Originally Posted by vrom (Post 1357706)
Is it possible to use to show wimpy wasp (player for flv) directly in link layout?
(soe user do not need to open pop-up widnow to see video)
Thank you!

Not currently, but I have been thinking about this for a while, either with wasp or Jeroen Wijering's mp3/flash/swf player (which is free). One question - what would you want to happen if the media dimensions are bigger than the linkbit? Should the linkbit enlarge, or should the player overlay the screen (the way the ldm lightbox extra works for images)?

GrendelKhan{TSU 10-12-2007 05:33 AM

Quote:

Originally Posted by AndrewD (Post 1357991)
I'll work out what is the best way to do this for these sites and in the long term. I imagine that the anymedia class is similar in concept to the the LDM player parser, so I'll check if it better/simpler to replace one with the other or to keep things distinct.

* second that. anymedia is quite good. these would do well to work together. :D
also, I suggestedt this long time ago, but i still think LDM would be INCREDIBLE jump up if it could:

1. convert to flash (ala all those flash sites. and thus be a way for everyone to have their own flash video hosting site). There are common license web site flash players (like you see on youtube et al) that I've seen around if that means anything.
2. directory/listings page could be set up like youtube layout.
* Overlay (but only if its moveable/draggable, so it doesn't block stuff anything underneath that may be needed)

Quote:

Originally Posted by AndrewD (Post 1357994)
Not currently, but I have been thinking about this for a while, either with wasp or Jeroen Wijering's mp3/flash/swf player (which is free). One question - what would you want to happen if the media dimensions are bigger than the linkbit? Should the linkbit enlarge, or should the player overlay the screen (the way the ldm lightbox extra works for images)?

awesome! thank you! :D

also, maybe good to check out AME embedding which I use (in conjunction with anymedia actually) is great as its saves on serverover head and has it set up to allow for users to add xml for flash sites (which is good as there are MANY MANY of em +_+). dunno if that's helpful but just an FYI. :)

and um.. can you add www.divshare.com in the meantime too? ((I know I know *gk runs* ) ^^
eg: http://www.divshare.com/download/2314312-f48

as always, great work and incredible add-on. :D

AndrewD 10-13-2007 05:29 AM

This is now the officially supported version. Thanks to everyone for all the testing.

I have made no changes since the release candidate two weeks ago, except for updating the Chinese translation.

Rouzbeh1 10-13-2007 01:41 PM

cool
thanks for the update.
installed without any problems :D

pspcrazy 10-13-2007 07:22 PM

Andrew I was wondering is it normal for the upload directory to not work like it should :| For instance:

The forums are located here: http://forums.pspcrazy.com/forums/

Now the root prefix is a yes, and for it's directory i used: ./downloads

upload_dir : /files
Cannot access/create directory /files [/var/www/vhosts/pspcrazy.com/subdomains/forums/httpdocs/forums/downloads/files]

That's the directory i'm getting :| CHmod is 777 as well so that's not the issue.

also for thumbs they are in /downloads/thumbs but that doesn't work either :|

I need help to get this working , thanks in advance i do love this mod.

Nam 10-14-2007 03:18 AM

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

Quote:

Database error in vBulletin

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User nam_nam has already more than 'max_user_connections' active connections
/home/nam/public_html/forums/includes/class_core.php on line 274

MySQL Error :
Error Number :
Date : Saturday, October 13th 2007 @ 10:21:56 PM
Script : http://www.domaincom/forums/local_li...N&pp=10&page=2
Referrer : http://www.domain.com/forums/local_links.php?catid=28
IP Address : 74.245.64.9
Username :
Classname : vb_database

AndrewD 10-14-2007 08:24 AM

Quote:

Originally Posted by pspcrazy (Post 1359179)
Andrew I was wondering is it normal for the upload directory to not work like it should :| For instance:

The forums are located here: http://forums.pspcrazy.com/forums/

Now the root prefix is a yes, and for it's directory i used: ./downloads

upload_dir : /files
Cannot access/create directory /files [/var/www/vhosts/pspcrazy.com/subdomains/forums/httpdocs/forums/downloads/files]

That's the directory i'm getting :| CHmod is 777 as well so that's not the issue.

also for thumbs they are in /downloads/thumbs but that doesn't work either :|

I need help to get this working , thanks in advance i do love this mod.

It is some time since I checked use of local_file_root = yes and a relative directory name, so I must recheck this.

It looks to me from your error message that the setting of local_file_root and the concatenation of local_file_root_prefix + upload dir is getting to the wrong place in the directory structure.

Remember that if you have set local_file_root to yes, then everything is based on directories relative to the server itself, rather than your web site root. If you are storing everything within directories that are actually part of the web site, then it's better and easier to set local_file_root to no.

So you have to discover the full path to the directories you want to use for uploads and thumbs, and make sure that the combination of local_file_root_prefix and upload_dir/thumbs_dir point to these directories. You can work this out by taking a look at the phpinfo output (e.g. vb/admin/maintenance) document_root.

Am happy to take a look at your site and get this working if you want - send me a PM if so.


All times are GMT. The time now is 04:26 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.05523 seconds
  • Memory Usage 1,973KB
  • 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
  • (2)bbcode_code_printable
  • (9)bbcode_php_printable
  • (29)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