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)

Artificial_Alex 02-02-2007 10:43 AM

Does this work with 3.6.4 too?

butty 02-02-2007 12:41 PM

Quote:

Originally Posted by Slave (Post 1171955)
Unfortuantly I don't use that module .. so I don't think I can help ..

Saying that .. I take it butty that the sizes for the left and right hand columns have been set up correctly in vBa .. therefore it's the LDM module that causing the right hand column to shrink in size?

If so .. Andrew is there a way of giving the LDM module a fixed width?


i have wrapped vba around the ldm php page mate but yeah as you can see its squishing in the left and right columns because of its width, it doesnt do this on other pages that i have the 3 columns

so i jus need to find out how to change the width of the ldm tables etc

Deathspank 02-04-2007 04:13 PM

Andrew,
On my site currently, I have it setup so a user can choose to either stream the video on the site via YouTube integration, or to download the file off of websites such as FileFront for each file. I'm not using LDM to do this. My question was, would it be possible to do something like this in LDM, where in the entry clicking "Play Me" would lead to an embedded video in the jukebox, and "Visit Link" would lead to an offsite download area such as FileFront. Essentially, basically two linkouts in one entry. Is this possible?

obmob 02-04-2007 05:34 PM

Quote:

Originally Posted by Artificial_Alex (Post 1172875)
Does this work with 3.6.4 too?

Yup, 2.2.6 works awesome.... 2.2.7, well, it's beta :D

T_Richardson 02-06-2007 06:48 PM

I must add my 2 cents also.

:up: Fantastic! Did a test run on my test site and went live with no problems whatsoever.

Using vBulletin version 3.6.4

josiespencer 02-07-2007 12:14 AM

Can you not create a csv file with this format:

link,"Netweaver.bmp","http://www.abc.com/Files/Wallpapers/Netweaver.bmp","Netweaver.bmp",156

and use it as an import file for the initial load of my LDM entries? All the categories already exist, so why won't this work?

amnesia623 02-07-2007 07:59 AM

Just curious - is there a way to get an upload status indicator? like bytes or percentage uploaded?

Thanks

Gwendolin 02-08-2007 07:49 PM

Hi, very good modification, I like it very much :)

But I miss one or I just don't see it.

At the setting of a download limit under local_links_admin.php?set=bandwidth I can just add a limit by usergroup.

It is possible to set a limit on categories, I don't want add a limit for usergroups, just a download limit for 2 categories, all other categories should be unlimited.

Is that anywhere possible or could add?

zajako 02-09-2007 01:56 AM

I have set up my forums to include this but I get this error:
here

Alfa1 02-13-2007 12:34 AM

I want my entire LDM as a module in vbadvanced. So that even as you click on a category, there will still be vba blocks around LDM. Is there a module for this?

I have tried to apply vba to LDM, but that does only work for the main page of LDM. (Unless I apply it to every possible page of LDM, which is not feasable) And on top of that, this gets lost with LDM upgrades, so I gather it needs to be done the other way around: a vbadvanced module for the entire LDM.

Regenerate 02-13-2007 09:57 PM

Hi,

I have a (imho bizarre) problem with the downloads:

On http://forum.dutchjoomla.org/local_links.php?catid=3 you can see 5 different downloads. Administrators can download all files, but registered users can only download 'Taalbestanden backend' but are restricted to the download of all other files (while the should be able to download them all).
When I try to download the files directly (putting the adress of the files in the browser instead of trying it through the above page), there's no problem en the download goes as usual. I checked the permissions on the files and tried to find any difference between the file that c?n be downloaded by users and the others, but I cannot find any difference. The "can_access_link" option is enabled for all registered users, for all files (I use the same permission settings for the whole download section).

All files on the server are CHMOD 0644

I tried deleting te files and adding the same ones again, but that has failed as well...

I then searched the database table 'local_linkslink' and in the column 'linkforum' I found that all files have the number -999, except for the 4 files that cannot be downloaded bij normal users. To me, this seems to be causing the problem. Can anyone explain to me how to fix this (exept for just changing it in the database which is just a fix, no solution).

Thanks in advance!

AndrewD 02-14-2007 10:54 AM

Quote:

Originally Posted by Regenerate (Post 1181870)
Hi,

I have a (imho bizarre) problem with the downloads:

On http://forum.dutchjoomla.org/local_links.php?catid=3 you can see 5 different downloads. Administrators can download all files, but registered users can only download 'Taalbestanden backend' but are restricted to the download of all other files (while the should be able to download them all).
When I try to download the files directly (putting the adress of the files in the browser instead of trying it through the above page), there's no problem en the download goes as usual. I checked the permissions on the files and tried to find any difference between the file that c?n be downloaded by users and the others, but I cannot find any difference. The "can_access_link" option is enabled for all registered users, for all files (I use the same permission settings for the whole download section).

All files on the server are CHMOD 0644

I tried deleting te files and adding the same ones again, but that has failed as well...

I then searched the database table 'local_linkslink' and in the column 'linkforum' I found that all files have the number -999, except for the 4 files that cannot be downloaded bij normal users. To me, this seems to be causing the problem. Can anyone explain to me how to fix this (exept for just changing it in the database which is just a fix, no solution).

Thanks in advance!

LDM has a VB forum-based permissions system built into it, and your problem is related to this.

Every entry and category has an 'associated forum' held in linkforum column (and catforum columns in the linkscat table). Users are only allowed access to an LDM entry/category when they have *both* can view forum and can view other's threads permission to the corresponding forum.

Values of -999 tell LDM that these entries are 'open', i.e. only LDM's own permissions are used, not the forum-based method.

When there is another value, LDM checks the access permissions for your corresponding VB forum.

The forum association is set explicitly on the 'add/edit entry/category' form by users who have LDM's *can_set_permissions* permission. These users see a drop-down list of your VB forums, and can accept the default associated forum, select another forum of choice, or assign the 'open access' value. New entries from other users always take the default value. The default value for categories is set on the main LDM admin settings page (default_forumid); the default value for entries is the value for the category in which they are being placed.

So, I think you have created four entries which are associated with a forum that has restricted user access. You can correct it by editing these entries and changing the associated forum to 'Open Access'.

Let me know if this does not solve the problem.

AndrewD 02-14-2007 10:55 AM

Quote:

Originally Posted by Alfa1 (Post 1181137)
I want my entire LDM as a module in vbadvanced. So that even as you click on a category, there will still be vba blocks around LDM. Is there a module for this?

I have tried to apply vba to LDM, but that does only work for the main page of LDM. (Unless I apply it to every possible page of LDM, which is not feasable) And on top of that, this gets lost with LDM upgrades, so I gather it needs to be done the other way around: a vbadvanced module for the entire LDM.

This is not a small task...

mauro1947 02-14-2007 10:56 AM

Hi!
@AndrewD: Any news about release 2.2.7?
Thanks
PD: Did you read my PM? Thanks!

AndrewD 02-14-2007 11:03 AM

Quote:

Originally Posted by Gwendolin (Post 1177849)
Hi, very good modification, I like it very much :)

But I miss one or I just don't see it.

At the setting of a download limit under local_links_admin.php?set=bandwidth I can just add a limit by usergroup.

It is possible to set a limit on categories, I don't want add a limit for usergroups, just a download limit for 2 categories, all other categories should be unlimited.

Is that anywhere possible or could add?

Thanks for the suggestion - this was not possible before, but it is easy to add, and will be available in the next upload of version 2.2.7 (the release candidate).

Basically, there will be a new per-usergroup, per-category permission, called *can_bypass_bandwidth_limits*. So you will be able to set overall limits on bandwidth use, and then turn it off for all but your two categories of interest.

Note that the calculation will be based on the *total* consumption from those two categories. It is not straightforward to change the code to allow different bandwidth usage per category.

AndrewD 02-14-2007 11:10 AM

Quote:

Originally Posted by amnesia623 (Post 1176635)
Just curious - is there a way to get an upload status indicator? like bytes or percentage uploaded?

Thanks

I've looked into this several times.

It is not possible to provide an upload status indicator with php versions earlier than 5.2.0. You can do this with a mixed php/perl approach, but I'm not sure I want to start learning all the consequences.

Php 5.2.0, released late in 2006, has hooks built in to enable monitoring of uploads. I've tested this using a stand-alone program, and it works. However, the hooks are only accessible if you also install and use the APC (advanced cache) system for php on your server. I've found that this works fine on production boards but creates problems if any code is unstable.

So my advice for the time being is 'lets not rush this'. When the basic php software becomes more robust, I'll be happy to add an upload meter.

AndrewD 02-14-2007 11:13 AM

Quote:

Originally Posted by mauro1947 (Post 1182257)
Hi!
@AndrewD: Any news about release 2.2.7?
Thanks
PD: Did you read my PM? Thanks!

The 2.2.7 RC will be uploaded in a day or so - I've just got back home. New in that code will be a 'suggest other entries I might like', which uses the downloads/favourites/keywords tables - it will need testing, but I hope it might work like Amazon's 'other users bought this' recommendation system.

Just read your PM and will reply soon.

Regenerate 02-14-2007 02:05 PM

Quote:

Originally Posted by AndrewD (Post 1182255)
...
Let me know if this does not solve the problem.

Thanks, that clears up some things, I do think that was the problem, thx!

AndrewD 02-14-2007 02:27 PM

Quote:

Originally Posted by josiespencer (Post 1176461)
Can you not create a csv file with this format:

link,"Netweaver.bmp","http://www.abc.com/Files/Wallpapers/Netweaver.bmp","Netweaver.bmp",156

and use it as an import file for the initial load of my LDM entries? All the categories already exist, so why won't this work?

That looks ok to me. Are you sure that you've got the correct category ids (the 156)?

obmob 02-14-2007 07:55 PM

Welcome back Andrew! :)

Did u have a nice vacation? :D

Alfa1 02-14-2007 10:55 PM

Quote:

Originally Posted by AndrewD (Post 1182256)
This is not a small task...

I was afraid so. I hope someone can find the time for it, as I am sure many would use this. Sorry for asking, as you have already done so much. :up:

Dr.NoTime 02-15-2007 02:10 AM

HI, I have everything loaded and working except the jukebox. The window opens but there is no way to play the file. I can download the file fine. I am running 2.2.7 on a Linux server.

Thanks in advance for any help.

AndrewD 02-15-2007 05:48 AM

Quote:

Originally Posted by obmob (Post 1182680)
Welcome back Andrew! :)

Did u have a nice vacation? :D

It was wonderful, thanks. I want to go straight back...

AndrewD 02-15-2007 05:51 AM

Quote:

Originally Posted by Dr.NoTime (Post 1182933)
HI, I have everything loaded and working except the jukebox. The window opens but there is no way to play the file. I can download the file fine. I am running 2.2.7 on a Linux server.

Thanks in advance for any help.

Are you running your web browser on a Windows PC, a Linux box or a Mac? The Jukebox should now work on all three. Am happy to take a look if you send me a PM with your site details.

butty 02-15-2007 05:10 PM

i have a request for help and a offer of help! :D

firstly my request. andrew. as you can see from my first screen grab i have vba wrapped around ldm

what im trying to do is remove the navbar as i dont have it on other cms pages ya see.

so what im doing is removing '$navbar' out of my adv_portal template.

as seen in the second screen capture this gets rid of the navbar but i get a error (as you can see)

if i remove the $navbar out of my link_header template it still stays there

can you tell me how i can get rid of the navbar pls on ldm pages?

many thanks for your time


also onto my offer of help Alfa 1 if you look at my first screengrab i can show you how to wrap vba around ldm like that. when i click on a category it opens that category with my vba site nav to the left etc is that what your after?

AndrewD 02-15-2007 05:32 PM

Quote:

Originally Posted by butty (Post 1183355)
i have a request for help and a offer of help! :D

firstly my request. andrew. as you can see from my first screen grab i have vba wrapped around ldm

what im trying to do is remove the navbar as i dont have it on other cms pages ya see.

so what im doing is removing '$navbar' out of my adv_portal template.

as seen in the second screen capture this gets rid of the navbar but i get a error (as you can see)

if i remove the $navbar out of my link_header template it still stays there

can you tell me how i can get rid of the navbar pls on ldm pages?

many thanks for your time

I just took a look at your site, but I'm not getting the error you've posted - it's a Javascript error, by the way, and from the look of the line number, it's probably in the Javascript you've added at at the bottom of the page. So I wonder if the navbar removal is a bit of a red herring - the problem may be somewhere else.

butty 02-15-2007 06:58 PM

cheers for the reply andrew. when i remove the following code out of my footer then it works with no errors but im not sure what this code is what it does or if its needed or not lol any ideas?

PHP Code:


<if condition="$show['dst_correction']">
<!-- 
auto DST correction code -->
<
form action="profile.php?do=dst" method="post" name="dstform">
    <
input type="hidden" name="s" value="$session[sessionhash]/>
    <
input type="hidden" name="do" value="dst" />
</
form>
<
script type="text/javascript">
<!--
    var 
tzOffset $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
    var 
utcOffset = new Date().getTimezoneOffset() / 60;
    if (
Math.abs(tzOffset utcOffset) == 1)
    {    
// Dst offset is 1 so its changed
        
document.forms.dstform.submit();
    }
//-->
</script>
<!-- / 
auto DST correction code -->

</if>
<
script type="text/javascript">
<!--
    
// Main vBulletin Javascript Initialization
    
vBulletin_init();
//-->
</script


AndrewD 02-15-2007 07:12 PM

Quote:

Originally Posted by butty (Post 1183437)
cheers for the reply andrew. when i remove the following code out of my footer then it works with no errors but im not sure what this code is what it does or if its needed or not lol any ideas?

Yes, this is the standard VB page initialisation.

The first bit is used by VB to auto-reset your users' times when daylight saving time/summer time begins.

PHP Code:

<if condition="$show['dst_correction']">
<!-- 
auto DST correction code -->
<
form action="profile.php?do=dst" method="post" name="dstform">
    <
input type="hidden" name="s" value="$session[sessionhash]/>
    <
input type="hidden" name="do" value="dst" />
</
form>
<
script type="text/javascript">
<!--
    var 
tzOffset $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
    var 
utcOffset = new Date().getTimezoneOffset() / 60;
    if (
Math.abs(tzOffset utcOffset) == 1)
    {    
// Dst offset is 1 so its changed
        
document.forms.dstform.submit();
    }
//-->
</script>
<!-- / 
auto DST correction code -->

</if> 

The next bit carries out a whole load of vb initialisation, to make sure that your pop-up menus, etc, work properly. I'll bet that the error is coming from here - you might try just removing these lines. Am not sure how this is interacting with vbadvanced/LDM, though.

PHP Code:

<script type="text/javascript">
<!--
    
// Main vBulletin Javascript Initialization
    
vBulletin_init();
//-->
</script


bold 02-15-2007 07:17 PM

For those of you having the vBSEO/rewrite 'Page Not Found' error put this in your custom rewrite rules in your vbseocp.

Code:

// Links and Downloads Manager
'local_links\.php\?catid=(\d+)&linkid=(\d+)' => 'local_links/links/$1/$2'
'local_links\.php\?catid=(\d+)' => 'local_links/links/$1'
'local_links\.php\?action=jump&id=(\d+)&catid=(\d+)' => 'local_links/jump/$1/$2'
'local_links\.php\?action=jump&id=(\d+)' => 'local_links/jump/$1'


zajako 02-15-2007 07:28 PM

I'm not sure if you saw my problem so I'll repost it here.
When trying to access the page via IE I get this error:
https://vborg.vbsupport.ru/

butty 02-15-2007 08:01 PM

tried that mate and your right. but now the drop down boxes on ldm. category, show searc etc dont work. any ideas?





Quote:

Originally Posted by AndrewD (Post 1183447)
Yes, this is the standard VB page initialisation.

The first bit is used by VB to auto-reset your users' times when daylight saving time/summer time begins.

PHP Code:

<if condition="$show['dst_correction']">
<!-- 
auto DST correction code -->
<
form action="profile.php?do=dst" method="post" name="dstform">
    <
input type="hidden" name="s" value="$session[sessionhash]/>
    <
input type="hidden" name="do" value="dst" />
</
form>
<
script type="text/javascript">
<!--
    var 
tzOffset $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
    var 
utcOffset = new Date().getTimezoneOffset() / 60;
    if (
Math.abs(tzOffset utcOffset) == 1)
    {    
// Dst offset is 1 so its changed
        
document.forms.dstform.submit();
    }
//-->
</script>
<!-- / 
auto DST correction code -->

</if> 

The next bit carries out a whole load of vb initialisation, to make sure that your pop-up menus, etc, work properly. I'll bet that the error is coming from here - you might try just removing these lines. Am not sure how this is interacting with vbadvanced/LDM, though.

PHP Code:

<script type="text/javascript">
<!--
    
// Main vBulletin Javascript Initialization
    
vBulletin_init();
//-->
</script



AndrewD 02-16-2007 04:39 AM

Quote:

Originally Posted by zajako (Post 1183456)
I'm not sure if you saw my problem so I'll repost it here.
When trying to access the page via IE I get this error:
http://www.synergames.com/screenshot...itzjummfxj.png

Sorry, I missed this one.

I tried to access your site, as per your screenshot, and everything seems to work ok - see my screenshot. You may have a problem with the cache in your browser - try clearing it (IE: Tools/Internet Options/Delete, or Mozilla: Tools/Clear Private Data)

civil78 02-16-2007 08:17 AM

I was searching the extras and I see that.

If i put this on the URL of my browser.

Code:

http://www.yoursite.com/local_links.php?action=addlink&url=URLINK&name=NAMETEXT&description=DESCRIPTIONTEXT
It will fill all the fields. I am wondering if you have a guide or a list of all the supported URL actions somewhere.

And finaly if I can create and submit a new link from URL (not from button in the form)

Thank's

AndrewD 02-16-2007 08:55 AM

To keep everyone up to date.

I plan to upload the release candidate of version 2.2.7 sometime this weekend. In the meantime, thanks to everyone who has tested out the beta. As far as I can tell, the main significant bug is that the Jukebox media player does not work correctly with Firefox for filetypes handled via Windows Media Player. (This worked fine with 2.2.6, and I know why the problem exists.)

The main new element in the 2.2.7 RC will be a "suggest other entries like this one" feature.

If there are any further bug reports, please can you let me know as soon as possible, so that we can finalise 2.2.7.

PitchouneN64ngc 02-16-2007 08:59 AM

Quote:

Originally Posted by AndrewD (Post 1183742)
I plan to upload the release candidate of version 2.2.7 sometime this weekend.

I'm ready to translate it in french when it will be finalized ;)

Mupetz 02-16-2007 09:05 AM

Hello,

First of all, thank You for this hack.

Second, i have a rewrite problem.
I made a text file with the rewrite commands :
Code:

RewriteEngine on
RewriteRule local_links/links/(.+)/(.+) local_links.php?catid=$1&linkid=$2 [R]
RewriteRule local_links/links/(.+) local_links.php?catid=$1 [R]
RewriteRule local_links/jump/(.+)/(.+) local_links.php?action=jump&id=$1&catid=$2 [R]
RewriteRule local_links/jump/(.+) local_links.php?action=jump&id=$1 [R]

Added /htlinks.txt path to mod_rewrite administration field.
seo_friendly to YES.
All this getting "No input file specified." when surfing the local_links categories.
What i'm doing wrong ? I have read and re-read the wiki.

I have also tried to add the rewrite commands to the .htaccess file , got the same error.

I'm using vbSEO

Thank you very much

Dr.NoTime 02-16-2007 11:16 AM

Thanks for the work and the support. Top notch all the way!

butty 02-16-2007 08:26 PM

Quote:

Originally Posted by butty (Post 1183484)
tried that mate and your right. but now the drop down boxes on ldm. category, show searc etc dont work. any ideas?

i sussed it out i think andrew. what i did was copied all of my navbar template and put that in the adv_portal template in place of $navbar

what i did then was remove all the code apart from the bit below (out of the adv_portal template) and it now seems to work. no errors and i can click the menus fine. lol. from a quick glance does it look like this fix will do good for me or can you forsee errors along my path lol

you can see it working here

http://www.oldskoolanthemz.com/forum...s.php?catid=10

note the navbar is gone but im errorless and all menus seem to be working fine


PHP Code:




<!-- PAGENAV POPUP -->

    <
div class="vbmenu_popup" id="pagenav_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
            <
form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                <
input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                <
input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]/>
            </
form>
            </
td>
        </
tr>
        </
table>
    </
div>

<!-- / 
PAGENAV POPUP --> 


AndrewD 02-17-2007 02:55 PM

I've uploaded the release candidate of 2.2.7 in the first post in this thread.

Reports please.

I'd very much appeciate it if the translators can now start work - there are some new phrases that need attention. Thanks.

AndrewD 02-17-2007 02:58 PM

Quote:

Originally Posted by Mupetz (Post 1183746)
Hello,

First of all, thank You for this hack.

Second, i have a rewrite problem.
I made a text file with the rewrite commands :
Code:

RewriteEngine on
RewriteRule local_links/links/(.+)/(.+) local_links.php?catid=$1&linkid=$2 [R]
RewriteRule local_links/links/(.+) local_links.php?catid=$1 [R]
RewriteRule local_links/jump/(.+)/(.+) local_links.php?action=jump&id=$1&catid=$2 [R]
RewriteRule local_links/jump/(.+) local_links.php?action=jump&id=$1 [R]

Added /htlinks.txt path to mod_rewrite administration field.
seo_friendly to YES.
All this getting "No input file specified." when surfing the local_links categories.
What i'm doing wrong ? I have read and re-read the wiki.

I have also tried to add the rewrite commands to the .htaccess file , got the same error.

I'm using vbSEO

Thank you very much


I don't use VBSEO, but I imagine that this is interfering with the LDM mod_rewrites? See a few posts up - message by Bold refers to this situation.


All times are GMT. The time now is 11: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.03627 seconds
  • Memory Usage 1,934KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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