PDA

View Full Version : Major Additions - Links and Downloads Manager


Pages : 1 2 3 4 5 6 7 8 9 [10] 11 12 13

IrPr
08-16-2007, 05:58 AM
Hi Andrew, im just tryin Hack/Modify LDM
and i've one question
why u seprated the catid and keywordid from _linkslink table into _linksltok and linksltoc instead of a field inside _linkslink table? whats this kind of relationship? is that standard?

im creating my own artist and track tables but donno how to make its relationship into _linkslink table
i can add fields called artistid and trackid into _linkslinks structure, and also can use ur method, creating another tables named _linksltoa and _linksltot

but which one is better? im newbie in MySQL database designin

Special thanks for this AWESOME Mod, LDM, even u dont reply this post

PS: sorry if my grammar sux:P
PS2: sorry misspelling, its 10:36 AM here and im still awake:D

AndrewD
08-16-2007, 06:22 AM
Hi Andrew, im just tryin Hack/Modify LDM
just a Q, why u seprated the catid and keywordid from _linkslink table into _linksltok and linksltoc instead if a field inside _linkslink table? whats this kind of relationship? is that standard?

im creating my own artist and track tables but donno how to make its relationship into _linkslink table
i can add fields called artistid and trackid into _linkslinks structure, and also can use ur method, creating another tables named _linksltoa and _linksltot

but which one is better? im newbie in MySQL database designin

Special thanks for this AWESOME Mode, LDM, even u dont reply this post

PS: sorry if my grammar sux:P

The basic question in designing database tables is whether the relationship between an entry and its data is 'one-to-one' or 'one-to-many'. If it's one-to-one (e.g. a category has only one name and always has one name), then you can keep the category name as a column in the same table as the categoryid. However, if it's one-to-many (an entry can be in one or several categories), you can't. Also, ideally, *everything* in a table row should be logically connected and required - a classic example is that a table of professors should not include the courses they teach, because you would lose the ability to deal with new professors and emerti or to efficiently find courses with no professor assigned. (See http://en.wikipedia.org/wiki/Database_normalization if you want the background :))

So in LDM the table structure reflects the fundamental data types - a category, an entry, a keyword, a hit, etc, and the 'XtoY' tables allow you join these together - find all the keywords associated with an entry and vice-versa, all the entries associated with a category, etc.

What you are trying to do is add a feature to LDM that people have suggested for some time (and I haven't had time to deal with), i.e. add extra data to the system. There are pros and cons to doing it in different ways:

- If you add one new column to the 'entries' table (links), then the logic is easy to implement but very inflexible. There are ways of forcing several different data items into the one columns (use the php serialize function, for example), but it becomes a mess.
- If you add a new column for each new datatype, it become a mess very quickly.
- If you handle it in a different table, then the logic is much cleaner, but it can become quite tricky to construct efficient SQL queries.

In LDM, the hairiest piece of code are the routine that build the linkbits (the individual rows which show each entry) [get_linklistbit] and the routine that works out the required SQL query [get_mainsql]. get_mainsql constructs the required 'joins' on tables to pull in the required information. Unfortunately, joins can easily get very expensive, and you can end up killing your server if you are not careful.

For your purposes, I think it would be easiest to create new tables which have this form:

1) artistid, artistname, etc

and 2) linkid, artistid

or

1) trackid, trackname, etc

and 2) linkid

Hope that helps!

IrPr
08-16-2007, 06:31 AM
The basic question in designing database tables is whether the relationship between an entry and its data is 'one-to-one' or 'one-to-many'. If it's one-to-one (e.g. a category has only one name and always has one name), then you can keep the category name as a column in the same table as the categoryid. However, if it's one-to-many (an entry can be in one or several categories), you can't. Also, ideally, *everything* in a table row should be logically connected and required - a classic example is that a table of professors should not include the courses they teach, because you would lose the ability to deal with new professors and emerti or to efficiently find courses with no professor assigned. (See http://en.wikipedia.org/wiki/Database_normalization if you want the background :))

So in LDM the table structure reflects the fundamental data types - a category, an entry, a keyword, a hit, etc, and the 'XtoY' tables allow you join these together - find all the keywords associated with an entry and vice-versa, all the entries associated with a category, etc.

What you are trying to do is add a feature to LDM that people have suggested for some time (and I haven't had time to deal with), i.e. add extra data to the system. There are pros and cons to doing it in different ways:

- If you add one new column to the 'entries' table (links), then the logic is easy to implement but very inflexible. There are ways of forcing several different data items into the one columns (use the php serialize function, for example), but it becomes a mess.
- If you add a new column for each new datatype, it become a mess very quickly.
- If you handle it in a different table, then the logic is much cleaner, but it can become quite tricky to construct efficient SQL queries.

In LDM, the hairiest piece of code are the routine that build the linkbits (the individual rows which show each entry) [get_linklistbit] and the routine that works out the required SQL query [get_mainsql]. get_mainsql constructs the required 'joins' on tables to pull in the required information. Unfortunately, joins can easily get very expensive, and you can end up killing your server if you are not careful.

For your purposes, I think it would be easiest to create new tables which have this form:

1) artistid, artistname, etc

and 2) linkid, artistid

or

1) trackid, trackname, etc

and 2) linkid

Hope that helps!

You rock Andrew
Yeah, got ya:)
Special Thanks to you Andrew,

itsblack
08-16-2007, 09:19 AM
Andrew, I have a question about vba_moudule ldm_tot.module.
It seems that the "served" option only display with a integer number. But think about that when we have number end with Gbytes, it will probably not so suitable. I hope it can display the resulat like this: "served 2.xx Gbytes". Is it thinkable?

AndrewD
08-16-2007, 11:00 AM
Andrew, I have a question about vba_moudule ldm_tot.module.
It seems that the "served" option only display with a integer number. But think about that when we have number end with Gbytes, it will probably not so suitable. I hope it can display the resulat like this: "served 2.xx Gbytes". Is it thinkable?

Quite thinkable, and even quite do-able, I'm sure. This evening...

Myra
08-16-2007, 11:51 AM
I don't know if this question has already been answered and I'm sorry if it is, but can you also set permissions based on user's post count and title/ranks?

AndrewD
08-16-2007, 12:23 PM
I don't know if this question has already been answered and I'm sorry if it is, but can you also set permissions based on user's post count and title/ranks?

The 'extras' directory in the release zipfile contains plugins that can block user access and/or limit their download rights according to post count, reputation and some other parameters.

Alfa1
08-16-2007, 03:08 PM
I imagine you uploaded the code, but did not rerun the installer. Go to VB/admincp/products and plugins and upload the 2.2.8 LDM product installer.
Thanks, that did it. I edited the init file to correct my DB prefix, while I didn't upload the 2.2.8 product installer again after that.

obmob
08-16-2007, 03:43 PM
Was busy thinking and replacing a busted graphics card.

I'll add a new plugin in the next 2.2.8 upload which does this job.Thanks! :D

I'm always complaining. :p

Installing RC2 and testing, did i say thanks? ;)

AndrewD
08-16-2007, 05:42 PM
Andrew, I have a question about vba_moudule ldm_tot.module.
It seems that the "served" option only display with a integer number. But think about that when we have number end with Gbytes, it will probably not so suitable. I hope it can display the resulat like this: "served 2.xx Gbytes". Is it thinkable?

Replace the ldm_tot.php file in your forum/modules directory with the attached and let me know if this is ok. I've tried to make it a bit smarter.

Underlab
08-16-2007, 07:09 PM
:confused:I uploaded the files. When I go to the admin and click on

links and downloads>settings>
or
links and downloads>permissions>

I get -

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 737280 bytes) in /../forums/local_links_admin.php(1693) : eval()'d code on line 386

what do I do? Where do i even begin to check out the problem?

AndrewD
08-16-2007, 07:23 PM
:confused:I uploaded the files. When I go to the admin and click on

links and downloads>settings>
or
links and downloads>permissions>

I get -

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 737280 bytes) in /../forums/local_links_admin.php(1693) : eval()'d code on line 386

what do I do? Where do i even begin to check out the problem?

Looks like your web server is allowing php to use up to 8Mbytes. Depending on how many hacks you install into VBulletin, it is easy to exceed this.

Go to vbulletin->admincp->maintenance->phpinfo. Look for the memory_limit and safe_mode settings. I imagine you'll find that memory_limit is 8M. You should ideally get your site admin to increase that to (e.g.) 12M - it's set in the server's php.ini file.

If you can't do that, and provided safe_mode is off, I can probably give you a patch that will get round the problem.

dilbert
08-16-2007, 08:53 PM
I tried upgrading to php 5, and vBulletin itself was giving this type of error. I needed to move back to php4. My host is currently set at 8MB, and will be updating that soon so I can move back to php5.

itsblack
08-16-2007, 11:57 PM
Replace the ldm_tot.php file in your forum/modules directory with the attached and let me know if this is ok. I've tried to make it a bit smarter.
Yes, it works great. :up:

itsblack
08-17-2007, 09:56 AM
Hi Andrew, is that possible to let the keyword have more than 1 word? I mean, key phrases, like amazon did. For some phrases, such as "fairy tales", I don't know how to appoint the keyword with only one word.

AndrewD
08-17-2007, 10:00 AM
Hi Andrew, is that possible to let the keyword have more than 1 word? I mean, key phrases, like amazon did. For some phrases, such as "fairy tales", I don't know how to appoint the keyword with only one word.

I think that would require some careful checking through the code, to avoid unexpected consequences. Why not use something like an underscore to replace spaces?

Alfa1
08-17-2007, 12:00 PM
Members often put keyphrases in anyway. This now causes a mass of unwanted keywords, as every word in the phrase is handled as a keyword. These need to be cleaned up regularly. I have about 600 keywords I need to delete per month.
I did add keywords with dashes, like 'fairy-tales', but members will enter 'fairy tales' non the less and leave 'fairy-tailes' untouched.

AndrewD
08-17-2007, 12:07 PM
Members often put keyphrases in anyway. This now causes a mass of unwanted keywords, as every word in the phrase is handled as a keyword. These need to be cleaned up regularly. I have about 600 keywords I need to delete per month.
I did add keywords with dashes, like 'fairy-tales', but members will enter 'fairy tales' non the less and leave 'fairy-tailes' untouched.

OK, it clearly needs a rethink. Not sure that this can be done for 2.2.8 - I keep telling myself that we've reached the end...

Alfa1
08-17-2007, 11:15 PM
You've created a monster Andrew. It's so good that the end is near the end of the rainbow. I mean this. You can expand this to be an advanced photo / image gallery, a advanced multimedia player( wimpy only plays a few formats), reciprocal links manager, expand vb integration, add design options, etc. etc.

I do believe that your software is no less valuable than vbulletin itself and therefor to fully develop it to full potential, you'll need either a lot of time or a team of coders.

Tulsa
08-17-2007, 11:38 PM
How has this escaped being mod of the month? It should be mod of the year!!

StarFire
08-19-2007, 09:33 AM
Hi,

I encouter a problem, if I try to download a file via LDM.

Warnung: preg_replace() [function.preg-replace]: Unknown modifier 't' in /includes/local_links_misc.php (Zeile 1354)
What does that mean and how can I get this to work?

TIA
SF

AndrewD
08-19-2007, 10:17 AM
Hi,

I encouter a problem, if I try to download a file via LDM.


What does that mean and how can I get this to work?

TIA
SF

If you are running version 2.2.7, looks as if you've enabled LDM's mod_rewrite function and there's a bug in your rewrite rules. At least, that's what line 1354 in local_links_misc is dealing with.

utw-Mephisto
08-20-2007, 09:54 AM
Is there any way to upload the files on another server (different IP etc.) ?

AndrewD
08-20-2007, 10:11 AM
Is there any way to upload the files on another server (different IP etc.) ?

Not within LDM. You can use it to manage files that have been uploaded onto another server, but it won't do the uploading part.

General_
08-21-2007, 08:03 AM
Hi AndrewD,

Currently only admins get an email when a link is reported. is there a possibility to change this, so that admins and member of another group ("ldm-mods") get an email?

thank you!

AndrewD
08-21-2007, 08:06 AM
Hi AndrewD,

Currently only admins get an email when a link is reported. is there a possibility to change this, so that admins and member of another group ("ldm-mods") get an email?

thank you!

Certainly a possibility. I don't think that this will make the official release of 2.2.8, but I'll see what can be done.

General_
08-21-2007, 11:21 AM
Certainly a possibility. I don't think that this will make the official release of 2.2.8, but I'll see what can be done.
so actual there is no option to contrive that?

AndrewD
08-21-2007, 12:41 PM
so actual there is no option to contrive that?

From checking the code, I stand corrected. The email should already be sent to anyone who is listed as a moderator for the category in which the report was triggered.

The moderators are anyone who has LDM's *can_moderate_link* permission in the category in question, and anyone who is a vbulletin moderator for the forum that is associated with that category (if any).

AndrewD
08-21-2007, 03:37 PM
DarkRyda asked for help with this new 'extra', which patches the VB similar threads feature to display similar entries from LDM.

It works (I hope) with version 2.2.8, and will not work with 2.2.7. It's installed in the normal way (VB/admin/products and plugins/upload plugins).

Will appreciate reports. If ok, it will be included with the final release of 2.2.8 next month.

obmob
08-21-2007, 04:32 PM
DarkRyda asked for help with this new 'extra', which patches the VB similar threads feature to display similar entries from LDM.

It works (I hope) with version 2.2.8, and will not work with 2.2.7. It's installed in the normal way (VB/admin/products and plugins/upload plugins).

Will appreciate reports. If ok, it will be included with the final release of 2.2.8 next month.
Hmm... interesting, thanks!

namely
08-23-2007, 09:11 PM
I use force_redirect = 0 because its hide source link 100% and much secure
but when I try to download any rar files , its will not show the file size "unknown"

and I add the extension rar in attachment manager

I tried to make admin > statistic > validate
and its give me this
/file1.rar (next, quit): size 0
-- 2 file2.rar (next, quit): size 0
-- 3 file3.rar (next, quit): size 0

and make them as broken link , but its already working ,but can't see the file size while download

what can I do to use force_redirect = 0 and show file size

AndrewD
08-24-2007, 04:55 AM
I use force_redirect = 0 because its hide source link 100% and much secure
but when I try to download any rar files , its will not show the file size "unknown"

and I add the extension rar in attachment manager

I tried to make admin > statistic > validate
and its give me this
/file1.rar (next, quit): size 0
-- 2 file2.rar (next, quit): size 0
-- 3 file3.rar (next, quit): size 0

and make them as broken link , but its already working ,but can't see the file size while download

what can I do to use force_redirect = 0 and show file size

I'm sorry, I have tried your sequence
- add a .rar file
- add rar and mimetype data to vb/admincp
- revalidate

and the filesize shows up correctly. I'm not sure what to suggest.

AndrewD
08-24-2007, 04:56 AM
Normal service is being suspended for the next 3 weeks....

There have been no reports of problems with the 2.2.8 RC2 version of LDM, so I'm hoping to make this the official release shortly after I return.

obmob
08-24-2007, 04:32 PM
Normal service is being suspended for the next 3 weeks....

There have been no reports of problems with the 2.2.8 RC2 version of LDM, so I'm hoping to make this the official release shortly after I return.WOW! big vacation :eek:

Read you soon, have lot of fun! :D

MobileBros
08-25-2007, 12:53 AM
i have installed this move but its not making any thumbnails any help?

obmob
08-25-2007, 03:04 AM
i have installed this move but its not making any thumbnails any help?
Did u set up the thumbs' folder? o.o

General_
08-25-2007, 07:13 PM
Hi Andrew and the others,

I have a new problem concerning the search-engine in the LDM.
In every entry of my linklist is an email adress. when normal browsing the entries it's correct. but when using search engine, its a big mistake concerning the email adresses.

see the screen for more details. is this a bug, and how can i solve this?

btw. it's not just this entry, every entry with an email adress in it is affected.

obmob
08-27-2007, 02:58 PM
Hmm... that seems to be a code bug... i've never used an email address inside LDM, let me see if i can search for something, though, i'm more a designer rather than a coder. :p

Andrew will return in 3 week! :eek:

TheWhite
08-29-2007, 01:44 AM
Low value for MySQL wait_timeout= what is a good value to set?

Regards

Chadi
08-30-2007, 12:39 AM
A few questions as I'm new to this and configuring it now

1. How do I change the font style / color under category description? Also, color of "*new*" font before new entry title.

2. By default all media players are enabled. If I'm not mistaken, is there an embedded way to play these media within LD instead of opening a new window or software?

maroceve
08-30-2007, 09:49 AM
local_links_actions.php on line 584


Fatal error: Call to undefined function: delete_ldm_entry() ? :(

obmob
08-30-2007, 03:45 PM
A few questions as I'm new to this and configuring it now

1. How do I change the font style / color under category description? Also, color of "*new*" font before new entry title.You an add more CSS classes to the "main" template.

that one controls how eveything is displayed, take a look at one of my sites, i've changed some classes there.

Chadi
08-30-2007, 03:50 PM
Where do you see any css in links_main template?

nanaimobar
08-31-2007, 07:16 PM
Is anyone using LDM for a classified ads system or for a craigslist style of classifieds?

bdude
09-02-2007, 01:42 AM
When I add the vBAdvanced 'What's new' module, it crashes the CMPS page.

obmob
09-02-2007, 03:40 PM
Where do you see any css in links_main template?
Well... you must add the css classes to modify it. :p

When I add the vBAdvanced 'What's new' module, it crashes the CMPS page.Hmm... depending on the version you have, i thin you must have "Clean File Output" set to no in the module's settings.

jasonpeinko
09-02-2007, 09:06 PM
I made it so that users can upload swfs, how can i make it so that when other users want to play these swfs that they will open in a browser windows, or even better how could they open in a page skinned like the forum?

Chadi
09-03-2007, 05:58 PM
Why is it opening a youtube video directly to youtube.com instead of the embedded player? All the embedded players included with LDM are enabled and the usergroup "member" also enabled to allow uploads. I'm guessing its because youtube.com uses .flv extension not swf.

Is there a workaround for this by any chance?

I placed this link in the link field

http://youtube.com/watch?v=72FkCoJfhgU


Also, it seems that the submissions from regular member group is not being put into moderation queue as it should considering I enabled moderation on links.

obmob
09-04-2007, 09:10 PM
Sorry, have never used swf with LDM... guess you will have to wait a little more. :p

D_S
09-06-2007, 07:38 PM
First that alot for the LDM , it really helps me a lot

Second can anyone tell me how to add LDM modules to VBA?!?!

I couldnt do it although I tried everything...

chickadee
09-07-2007, 04:00 AM
I think you need to select 'no' for the Process PHP File Modules Within A Function setting in vba default settings page.

itsblack
09-07-2007, 07:36 AM
First that alot for the LDM , it really helps me a lot

Second can anyone tell me how to add LDM modules to VBA?!?!

I couldnt do it although I tried everything...
You should look at this manual:
http://www.eirma.org/wikis/index.php/VbAdvanced

mauro1947
09-07-2007, 12:11 PM
Hi!
Suggestion for next release:

Admin should be able to delete certain entries of a user downloaded list.
And will be helpfully add a textbox where you can enter username and see download history.

Thanks
Regards!

PitchouneN64ngc
09-08-2007, 02:10 PM
Hey Andrew, can you explain this? (attachments)

If this can't work, I can't translate it in French.

local_file_root = No
local_file_root_prefix = '' (empty)

D_S
09-08-2007, 03:26 PM
You should look at this manual:
http://www.eirma.org/wikis/index.php/VbAdvanced


I looked at this but I couldnt do anything

I'm using 3.6.8 abd LDM 2.2.8...

1 - When I enter vBa ACP which one should I choose to add module?

[BB Code] , [Template] , [PHP File]

2 - When I choose [Template] or [PHP File], I am not sure what to write or what to do...

https://vborg.vbsupport.ru/ http://img250.imageshack.us/my.php?image=phpyq6.jpg

https://vborg.vbsupport.ru/ http://img49.imageshack.us/my.php?image=templategz7.jpg

Can anyone tell me how to make them work?!

For example how can I do ldm_cats.module?!

Can you give an example?

AndrewD
09-08-2007, 04:59 PM
I looked at this but I couldnt do anything

I'm using 3.6.8 abd LDM 2.2.8...

1 - When I enter vBa ACP which one should I choose to add module?

[BB Code] , [Template] , [PHP File]

2 - When I choose [Template] or [PHP File], I am not sure what to write or what to do...

http://img250.imageshack.us/img250/3591/phpyq6.th.jpg http://img250.imageshack.us/my.php?image=phpyq6.jpg

http://img49.imageshack.us/img49/1964/templategz7.th.jpg http://img49.imageshack.us/my.php?image=templategz7.jpg

Can anyone tell me how to make them work?!

For example how can I do ldm_cats.module?!

Can you give an example?

Quick break from my vacation.....

Are you using vba 2.x or 3.x? In 3.x, you install the .module file using the vba admin Download/Upload module page. I think it was the same with vba 2.x, but can't remember and don't have the software with me.

apokphp
09-08-2007, 11:50 PM
the vba module for newly added links, doesn't appear to work on my just updated board, now using vb 3.6.8 and vbacmps 3.0. I'm thinking it was vba 3.0 compatibility that is the issue. Can anyone verify?

When the module is enabled, the whole front page results in a vb error page, but with no displayed message where the text usually appears in the box (it's blank).

D_S
09-09-2007, 01:34 PM
Quick break from my vacation.....

Are you using vba 2.x or 3.x? In 3.x, you install the .module file using the vba admin Download/Upload module page. I think it was the same with vba 2.x, but can't remember and don't have the software with me.
Im using vba 3.x and its diffrent from vba 2.x (I think)

Eccentricity
09-09-2007, 01:34 PM
I still can't fast forward through movies.

obmob
09-09-2007, 03:54 PM
Im using vba 3.x and its diffrent from vba 2.x (I think)As he says, upload with the vba importer, then put this to NO. That way it works on my vb sites. Using 3.6.8 and vbA 3.0

Clean File Output
If your are trying to include a PHP file that was not written specifically for vBulletin or vBadvanced, it may be necessary to "clean" the output of this file. If you add a module and the content prints out as the first thing on the top your page, this is a good indication that it needs to be cleaned.

chickadee
09-10-2007, 07:30 AM
Is there a way to create a link to each member's uploaded links/download to put in their profile? Some sort of link that would automatically generate a search by username?
Thanks in advance!

Kingster
09-10-2007, 05:27 PM
Any possibility of creating a method to throttle download speeds?

I have several groups that can download files, but I want to throttle their speeds according to their level, ie, platinum members get as-fast-as-possible speeds, gold members get 7mbps speed, silver 4mbps, unregistered 1.5mbps (or something along those lines).

AndrewD or anyone else have any thoughts?

itsblack
09-10-2007, 06:11 PM
Is there a way to create a link to each member's uploaded links/download to put in their profile? Some sort of link that would automatically generate a search by username?
Thanks in advance!
Just turn this option on: profile_ldmactivity
and you will see the download and upload history (which depends on how long the hit records will be kept) by this user at the userprofile page.

mauro1947
09-10-2007, 06:32 PM
I have profile_ldmactivity in "On" but is not shown in users profile.
What template edits must i do?
Thanks
Regards!

itsblack
09-11-2007, 09:22 AM
I have profile_ldmactivity in "On" but is not shown in users profile.
What template edits must i do?
Thanks
Regards!
see below, it's from the LDM online manual http://www.eirma.org/wikis/index.php/Links_and_Downloads_Manager

profile_searchfield

Defines whether LDM searches are actively integrated within the VBulletin User Profile system and which user profile fields are used to establish profile searches. Default: disabled.

Enabling profile_ldmactivity adds a new field "My Recent LDM Hits" to the VBulletin profilefield table. When someone views the user's profile, they will see a record of the user's recent LDM activity, provided this field is empty in his profile. In other words, a user can keep his LDM activities private by entering anything in this field.

The "My Recent LDM Hits" record in the profilefield table and the corresponding fields in the userfield table are not deleted if profile_ldmactivity is turned off, but its "editable" flag is switched off so that the field becomes invisible to users.

Alfa1
09-11-2007, 06:50 PM
I'd like to request Highslide integration (https://vborg.vbsupport.ru/showthread.php?t=139167) for images in LDM.

blue6995
09-12-2007, 11:48 AM
I have installed 2.7.7 and the extras - flash-sites but whenever I create an entry for a youtube vid I am taken to the youtube site for it to play. All the embedded players included with LDM are enabled

Is there a way of resolving this?

Thanks

DoB Rhapsody
09-12-2007, 06:53 PM
I have installed 2.7.7 and the extras - flash-sites but whenever I create an entry for a youtube vid I am taken to the youtube site for it to play. All the embedded players included with LDM are enabled

Is there a way of resolving this?

Thanks

Same problem here. where exactly to i upload the getid3 folder to?

obmob
09-13-2007, 03:11 PM
Hmm... Andrew, would you take a look at this points system, maybe this one can be integrated into LDM! :D

https://vborg.vbsupport.ru/showthread.php?t=151924

Thanks!

shrapnelgames
09-15-2007, 03:03 PM
As he says, upload with the vba importer, then put this to NO. That way it works on my vb sites. Using 3.6.8 and vbA 3.0

Clean File Output
If your are trying to include a PHP file that was not written specifically for vBulletin or vBadvanced, it may be necessary to "clean" the output of this file. If you add a module and the content prints out as the first thing on the top your page, this is a good indication that it needs to be cleaned.


I have this exact same problems ince I upgraded. Works fine in the forums but all of the modules do what happenned to this guy. Also I set Clean File Output to NO, same problem.

shrapnelgames
09-15-2007, 03:50 PM
Nevermind upgrading to 2.2.8 fixed this..

IrPr
09-15-2007, 09:02 PM
I coded a Mirorrsites based mirrors ( such as megaupload, rapidshare, sendspace, etc ) for remote downloads integrated to LDM without any file modification! just coded some plugins and template modifications using my own mirrors table
i would suggest to add more hook locations, such as get_mainsql to LDM
( i can do it myself, but i want you to add hooks to LDM originally )

Again my special thanks to you Andrew!
sorry if any misspelling/missgrammaring

ChessMess
09-16-2007, 03:07 PM
Ran into this problem during the import. I looked at the wiki site for hacks but its not really clear what the problem is or what the fix is. Anyone else run into this problem? I searched the thread but didn't run across anything. Thanks in advance! Oh.. this was the current stable release.



Warning open_basedir is set to /hsphere2/shared/php/:/hsphere/shared/php/:/hsphere/local/home/:/hsphere/shared/apache/htdocs/:/tmp/ in your PHP installation
Please refer to the hack instructions for information on this setting
============================================
Environment checked
Creating LDM database tables
Step 1 - Verifying database tables
--- Creating THIS_TABLElinksadmin
--- Creating THIS_TABLElinkscat if it does not exist
--- Creating THIS_TABLElinksdownloads
--- Creating THIS_TABLElinksfavs
--- Creating THIS_TABLElinkslink
--- Creating THIS_TABLElinksltoc
--- Creating THIS_TABLElinksrate
Patching (1) LDM database tables
Fatal error: Call to undefined function patch_links_dbtables_stage1() in /hsphere/local/home/chessme0/stgu.com/startrekforum/admincp/plugin.php(1970) : eval()'d code on line 21

UPDATE: Ok I tried 2.2.8 RC2 and it seemed to install fine, though it gave the same BASEDIR error as above. I found the basedir article on the wiki ( http://www.eirma.org/wikis/index.php/Site_Configuration#Accessing_Local_Files_-_The_open_basedir_Setting ) but its not fully clear, I'm going to guess that once I go into the admin section I can repoint things.

obmob
09-17-2007, 04:44 PM
That seems to be a webhost problem, i think that happened to me with my previous webhoster. O_o is that a word?

X-Ocean
09-17-2007, 04:53 PM
My LDM does not work, is there anybody who can tell me what went wrong? Im not so good in understanding the code so if you please can help me im greatful.

Take a look at the problem... http://www.x-ocean.eu/forum/local_links.php

I have made two test categories and the LDM creates a url to the folders http://www.x-ocean.eu/forum/local_links/links/3

... but when i want to enter the i get " the page cannot be found " :(

I dont know what to do...

regards,
Jonas

AndrewD
09-17-2007, 05:05 PM
My LDM does not work, is there anybody who can tell me what went wrong? Im not so good in understanding the code so if you please can help me im greatful.

Take a look at the problem... http://www.x-ocean.eu/forum/local_links.php

I have made two test categories and the LDM creates a url to the folders http://www.x-ocean.eu/forum/local_links/links/3

... but when i want to enter the i get " the page cannot be found " :(

I dont know what to do...

regards,
Jonas

I think you have turned on the 'SEO friendly' option on the LDM admin settings page, without also setting up your web server to handle this option. If so, you should turn off 'SEO friendly' in LDM or patch Apache...

AndrewD
09-17-2007, 05:10 PM
Ran into this problem during the import. I looked at the wiki site for hacks but its not really clear what the problem is or what the fix is. Anyone else run into this problem? I searched the thread but didn't run across anything. Thanks in advance! Oh.. this was the current stable release.



UPDATE: Ok I tried 2.2.8 RC2 and it seemed to install fine, though it gave the same BASEDIR error as above. I found the basedir article on the wiki ( http://www.eirma.org/wikis/index.php/Site_Configuration#Accessing_Local_Files_-_The_open_basedir_Setting ) but its not fully clear, I'm going to guess that once I go into the admin section I can repoint things.


The first error (patch_links_dbtables_stage1 not found) meant that the file includes/local_links_admininclude.php was not found - i.e. it had not been uploaded correctly.

The open_basedir message is just a warning. open_basedir is a web server/php security mechanism to stop scripts gaining access to the whole of the file system on your server. Provided it has been set up reasonably (i.e. so that your site has access to itself), you should not have problems with LDM in normal use. You could have problems if you try to use some of the more fancy LDM features which allow you to store files outside the website.

X-Ocean
09-17-2007, 05:25 PM
I think you have turned on the 'SEO friendly' option on the LDM admin settings page, without also setting up your web server to handle this option. If so, you should turn off 'SEO friendly' in LDM or patch Apache...

Now when i made this change i get this error

The following setting(s) are invalid
upload_dir : /upload
Directory /upload (/upload) doesn't exist and I can't create it

I have created a folder called upload and try's to save but it will not work anyway.

/J

AndrewD
09-17-2007, 05:59 PM
Now when i made this change i get this error

The following setting(s) are invalid
upload_dir : /upload
Directory /upload (/upload) doesn't exist and I can't create it

I have created a folder called upload and try's to save but it will not work anyway.

/J

What are your LDM settings for local_file_root and local_file_root_prefix, and whereabouts in the file system have you created the /upload directory? There's probably a mismatch between these settings.

Am happy to take a look at your site if you wish - if so, send me a PM with site details and details of an account with admin privs.

AndrewD
09-17-2007, 06:23 PM
As you can see, I'm back in circulation. Am not sure if there are any unresolved questions/problems other than today's. Please let me know if so. I note the suggestions for further enhancements, to be put on the list for the release after 2.2.8.

Before I make version 2.2.8 the new release, please can anyone who has used it confirm that there have been no problems. Thanks.

itsblack
09-17-2007, 07:14 PM
Hi Andrew, glad to see you back again, hope you had a good holiday. :)

I found a little bug in 2.2.8 RC2.

By profile_ldmactivity, "My Recent LDM Entries" displays the same item x times, if this item belongs to more than 1 categories.

Another question with autocreate thread. Now the autocreated thread use the ldm item link like this:
http://forumpath/local_links.php?linkid=xxx&catid=xx
here I got problem with this "catid=xx": if I edit the item and change it to other category, then this link (in thread) has difficult to locate the correct item.
So I suggest just leaving "catid=" blank to avoid this problem. How do you thin?

Alfa1
09-17-2007, 11:25 PM
I've attached the Dutch phrases file for LDM.
You will soon have a complete and revised Dutch translation.

Ksb2050
09-18-2007, 03:37 AM
My LDM is having problems with restrictions.

I have it set so users can only download 3 files a day. However I logged in and downloaded 5 with no problem. Is there any way to fix? Leechers are killing me.

AndrewD
09-18-2007, 05:56 PM
My LDM is having problems with restrictions.

I have it set so users can only download 3 files a day. However I logged in and downloaded 5 with no problem. Is there any way to fix? Leechers are killing me.

Happy to try to help but you've not given me enough information to go on. Would you like me to take a look at your site? If so, PM me details plus an account with admin privs.

AndrewD
09-18-2007, 06:19 PM
Hi Andrew, glad to see you back again, hope you had a good holiday. :)

Excellent, thanks. I don't want to be home ;)

I found a little bug in 2.2.8 RC2.

By profile_ldmactivity, "My Recent LDM Entries" displays the same item x times, if this item belongs to more than 1 categories.

I think this has been there forever, but it seems easy to fix. I propose that when an entry is in more than one category, the profile listing will include one title linked to the first category, with one or more "+" on the same line linked to the other category/ies.

Another question with autocreate thread. Now the autocreated thread use the ldm item link like this:
http://forumpath/local_links.php?linkid=xxx&catid=xx
here I got problem with this "catid=xx": if I edit the item and change it to other category, then this link (in thread) has difficult to locate the correct item.
So I suggest just leaving "catid=" blank to avoid this problem. How do you thin?

This is perfectly workable. An alternative, perhaps better in the long run, is that I handle this properly as an HTTP 301, permanently moved, status, and automatically redirect the browser. Which do you prefer?

DoB Rhapsody
09-18-2007, 07:42 PM
I have installed 2.7.7 and the extras - flash-sites but whenever I create an entry for a youtube vid I am taken to the youtube site for it to play. All the embedded players included with LDM are enabled

Is there a way of resolving this?

Thanks

Same problem. Stilling awaiting a response :)

itsblack
09-18-2007, 07:59 PM
This is perfectly workable. An alternative, perhaps better in the long run, is that I handle this properly as an HTTP 301, permanently moved, status, and automatically redirect the browser. Which do you prefer?
I prefer to the simple one, namely the one I suggested.

Or maybe you can change something else. Now when the item link is not correct, then the browser will be redirected to the category which catid=xx, instead of that, I prefer to redirect it to the item link which linkid=xxx. If this linkid has been deleted, then LDM will automatically display the error message, as now LDM does.

namely
09-18-2007, 09:30 PM
I'm using force_redirect 1
because when I used 0 its take much process and make the server load high

I want to use force_redirect 1 and active hotlink protect
when I active hotlink protect the counter of allownece doesn't work

I want to use hotlink protect afraid from leech coz force_redirect 1 show the directlinks

how to use hotlink protect with force_redirect 1 and make the counter of allownece works?

Any help appreciated.

AndrewD
09-19-2007, 04:15 AM
My LDM is having problems with restrictions.

I have it set so users can only download 3 files a day. However I logged in and downloaded 5 with no problem. Is there any way to fix? Leechers are killing me.

I took a quick look at your site, and have a couple of questions/suggestions.

a) At least for the account you gave me, the file download allowances are not switched on. If they were, I would see a message telling me my allowances in the category title box, see image.

b) With version 2.2.7 of LDM, allowances only apply to files that LDM itself manages as downloads. This means that the filetype has to appear in the main vbulletin attachments table (vb/admin/attachments/attachments manager). Your site offers .rar files, which are not by default in this table. I don't have sufficient access to check - have you added rar as a known vb filetype, with correct mimetype information?

(In LDM 2.2.8, allowances will apply to all local files regardless of whether they appear in the vb filetype table or not.)

AndrewD
09-19-2007, 04:18 AM
Or maybe you can change something else. Now when the item link is not correct, then the browser will be redirected to the category which catid=xx, instead of that, I prefer to redirect it to the item link which linkid=xxx. If this linkid has been deleted, then LDM will automatically display the error message, as now LDM does.

That was what I meant by the obscure mention of http 301. I'll see what we can do.

itsblack
09-19-2007, 04:33 AM
That was what I meant by the obscure mention of http 301. I'll see what we can do.
OK, I got it. Thank you. :)

Rouzbeh1
09-19-2007, 06:31 PM
hi Andrew,
welcome back.
could you please tell me how to change the autocreate thread template or php file?
i want to add a Download Button instead of text. the text link can't be seen easily

next question:
i have moved my server. is there any option to change ALL entries in a category at once?
this category has more than 500 sub cats....

thanks in advance

AndrewD
09-19-2007, 06:44 PM
Same problem. Stilling awaiting a response :)

I just tried a Youtube video, and it works fine for me.

I installed the LDM flash addon, then created an entry pointing to a random video, http://www.youtube.com/watch?v=1F5RnaJkIeA

What url are you using?

AndrewD
09-19-2007, 06:50 PM
hi Andrew,
welcome back.
could you please tell me how to change the autocreate thread template or php file?
i want to add a Download Button instead of text. the text link can't be seen easily

The autothread and post creation code uses phrases to construct the messages - take a look, e.g., at the ldm_thread_create_body phrase.

next question:
i have moved my server. is there any option to change ALL entries in a category at once?
this category has more than 500 sub cats....

thanks in advance

Take a look at the LDM/admin/categories page. With the mass edit feature, you can do a great deal.

AndrewD
09-19-2007, 06:55 PM
I'm using force_redirect 1
because when I used 0 its take much process and make the server load high

I want to use force_redirect 1 and active hotlink protect
when I active hotlink protect the counter of allownece doesn't work

I want to use hotlink protect afraid from leech coz force_redirect 1 show the directlinks

how to use hotlink protect with force_redirect 1 and make the counter of allownece works?

Any help appreciated.

The allowances should apply correctly provided the entries have filetypes which are included in the vb attachments table. It doesn't matter if force_redirect is 0 or 1.

AndrewD
09-19-2007, 06:56 PM
I coded a Mirorrsites based mirrors ( such as megaupload, rapidshare, sendspace, etc ) for remote downloads integrated to LDM without any file modification! just coded some plugins and template modifications using my own mirrors table
i would suggest to add more hook locations, such as get_mainsql to LDM
( i can do it myself, but i want you to add hooks to LDM originally )

Again my special thanks to you Andrew!
sorry if any misspelling/missgrammaring

OK, will do.

DoB Rhapsody
09-19-2007, 07:13 PM
I just tried a Youtube video, and it works fine for me.

I installed the LDM flash addon, then created an entry pointing to a random video, http://www.youtube.com/watch?v=1F5RnaJkIeA

What url are you using?

Same link format. Also tried other video site urls, nothing.

The one thing that i am kind of confused about is where to upload the "getid3" folder. You explain in the install as if i'm already supposed to have it but i can't find that folder so i just uploaded it the the root. Is that ok?

Rouzbeh1
09-20-2007, 12:03 AM
Take a look at the LDM/admin/categories page. With the mass edit feature, you can do a great deal.
it didn't do it. i fixed it with help of permissions things.... lol

one more thing.
i found a bug in mirroring section. it doesn't count the bandwidth usage.
when i disable mirrors, it counts again

thanks ;)

AndrewD
09-20-2007, 04:42 AM
Same link format. Also tried other video site urls, nothing.

The one thing that i am kind of confused about is where to upload the "getid3" folder. You explain in the install as if i'm already supposed to have it but i can't find that folder so i just uploaded it the the root. Is that ok?

Sorry if that is confusing. You upload the getid3 directory so that it becomes a subdirectory of your forum directory. However, that should not matter for youtube - it's only to provide a general player for flash.

I don't know what's going wrong - it sounds as if the entire extra is not functioning. Would you like me to take a look at your site?

AndrewD
09-20-2007, 04:43 AM
it didn't do it. i fixed it with help of permissions things.... lol

one more thing.
i found a bug in mirroring section. it doesn't count the bandwidth usage.
when i disable mirrors, it counts again

thanks ;)

Noted - will try to find the bug and fix it.

Phalynx
09-20-2007, 11:49 AM
I get a blank page if I want to inform users of updated downloads. It takes some time, the mails are also send. Using 2.2.8 RC2

Darat
09-20-2007, 12:17 PM
Running 2.2.7 and I've just upgraded to vbadvanced 3 RC2 (vBulletin 3.6.8) and if I attempt to display any of the modules I get a blank error screen. I've checked and I've got "Process PHP File Modules Within A Function" set to "no".

Any ideas (I have re-uploaded all the Links modules)?

Metal-R-US
09-20-2007, 12:40 PM
Had that too, I installed 2.2.8 rc2 and the problem was gone...

AndrewD
09-20-2007, 05:22 PM
Running 2.2.7 and I've just upgraded to vbadvanced 3 RC2 (vBulletin 3.6.8) and if I attempt to display any of the modules I get a blank error screen. I've checked and I've got "Process PHP File Modules Within A Function" set to "no".

Any ideas (I have re-uploaded all the Links modules)?

Unfortunately, vbAdvanced has been developing alongside LDM, and its coding interfaces have changed. I hope that the 2.2.8 code works correctly with vbA 3RC2 - I think it does but will be testing this thoroughly before making LDM 2.2.8 official.

Darat
09-20-2007, 08:05 PM
Thanks - I'll risk upgrading to to 2.2.8, these are two addons I can't do without!

Darat
09-20-2007, 08:22 PM
Just upgraded to 2.2.8 RC 2 and it is working fine on my vba 3 RC2 pages.

yahoooh
09-21-2007, 12:03 AM
this is the great addon , i used since it was in 1.7 version

now i updated to 2.2.8 rc2

there is 2 bugs i found :
1.when i click the Media Players in admin. i lose what i choose on it for the encoding choice
-> just click to use encoding choice for all players then save , it will not save your choice in displaying

2. i add mid extension to be played with mediaplayer but it always ask me to dwonload when i visit the mid entries , i need it to be played in the player that included in page like other extensions

i suggest these features if it will be there , the product will be more than perfect :
1. uploading feature that can upload media vedio files and convert them to .flv to be seen by flash player of the site . like youtube service
2.when i have for example themes for mobiles and i have for any file of these themes one jif or jpg so
i need to ask the fcript to search in folder and collect all data entries for the files
and
the description for thes files will be also the omage related for them and this should be done automaticly
for example :file1.zip file2.zip file3.zip with file1.jpg file2.jpg file3.jpg
it will show :file1.zip with description file1.jpg ,ofcourse the image should be in the [img] to be shown and this should be done automaticly

i did it in 1.7 bu with manual edet every time i need to add like this manner

thank u for this product and it is very very professioanl with your support which is amazing

AndrewD
09-22-2007, 07:02 AM
this is the great addon , i used since it was in 1.7 version

now i updated to 2.2.8 rc2

there is 2 bugs i found :
1.when i click the Media Players in admin. i lose what i choose on it for the encoding choice
-> just click to use encoding choice for all players then save , it will not save your choice in displaying


2. i add mid extension to be played with mediaplayer but it always ask me to dwonload when i visit the mid entries , i need it to be played in the player that included in page like other extensions

i suggest these features if it will be there , the product will be more than perfect :
1. uploading feature that can upload media vedio files and convert them to .flv to be seen by flash player of the site . like youtube service
2.when i have for example themes for mobiles and i have for any file of these themes one jif or jpg so
i need to ask the fcript to search in folder and collect all data entries for the files
and
the description for thes files will be also the omage related for them and this should be done automaticly
for example :file1.zip file2.zip file3.zip with file1.jpg file2.jpg file3.jpg
it will show :file1.zip with description file1.jpg ,ofcourse the image should be in the [img] to be shown and this should be done automaticly

i did it in 1.7 bu with manual edet every time i need to add like this manner

thank u for this product and it is very very professioanl with your support which is amazing

Thanks for the report and comments.

I've confirmed the bug report with the media players admin page. Will fix.

For the midi files, have you remembered to add .mid to the VB attachments table. Without this, LDM will always treat the file as a link, not as a download/media file.

AndrewD
09-22-2007, 12:29 PM
Now when the item link is not correct, then the browser will be redirected to the category which catid=xx, instead of that, I prefer to redirect it to the item link which linkid=xxx. If this linkid has been deleted, then LDM will automatically display the error message, as now LDM does.

On checking the code, I found that I had already coded this to happen, but there was a slight glitch. The final 2.2.8 will automatically redirect the browser to the entry in the correct category.

itsblack
09-22-2007, 12:34 PM
Great!
Thank you, Andrew! :)

AndrewD
09-22-2007, 01:31 PM
I get a blank page if I want to inform users of updated downloads. It takes some time, the mails are also send. Using 2.2.8 RC2

I can't reproduce this problem - it seems to work ok for me. Any further information you can give me?

IrPr
09-22-2007, 07:36 PM
Hi Andrew,
want to report a little bug and its fix
Timezone offsets aren't integeral at all, they're decimal and casting their type into integeral will broke some submition dates during add/edit Entries
if your forum/user timezone is +/-x:30, all of submitions will differ +/- 30 minutes to original submition time

Here is bugfix:
File: includes/local_links_misc.php, function: get_datetimebit, about line: 1456

Find:

$tzoffset = intval($vbulletin->userinfo['tzoffset'])-$vbulletin->userinfo['dstonoff'];

Replace with:

$tzoffset = $vbulletin->userinfo['tzoffset']-$vbulletin->userinfo['dstonoff'];


also i would suggest add default check to Update to current date and time option during Add entries, but edit

Thanks;

Phalynx
09-22-2007, 09:02 PM
I can't reproduce this problem - it seems to work ok for me. Any further information you can give me?
Only that this happens with downloads that were downloaded a few thousend times (some hundred from registered) - maybe a performance problem?

IrPr
09-22-2007, 09:32 PM
Only that this happens with downloads that were downloaded a few thousend times (some hundred from registered) - maybe a performance problem?
its seems to be execution timeout or malloc() exhaustion
whats your error_reporting value ? did u change that?

Phalynx
09-22-2007, 09:34 PM
That's the value:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

IrPr
09-22-2007, 09:46 PM
That's the value:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Hmmm is that your master values?
refer to your PHP error logs and look for FATAL ERRORS

BTW, if it works and suddenly stops seems memory allocation or maybe timeout to me
I would suggest you to increase your memory_limit and max_execution_time valuse in php.ini

GTRyan
09-22-2007, 09:53 PM
I have a folder on my server /videos and in it has months of the year as subfolders with videos for races from my local race track. Would this addon be good for adding all those to a page or threads as a download link with counters? Anybody knows of an addon that can either?

Phalynx
09-22-2007, 10:38 PM
Hmmm is that your master values?
refer to your PHP error logs and look for FATAL ERRORS

BTW, if it works and suddenly stops seems memory allocation or maybe timeout to me
I would suggest you to increase your memory_limit and max_execution_time valuse in php.ini

memory_limit is set to 128M - more than enough. I will check for fatal errors.

Edit:
No errors belonging to the site I run LDM.

AndrewD
09-23-2007, 05:41 AM
Hi Andrew,
want to report a little bug and its fix
Timezone offsets aren't integeral at all, they're decimal and casting their type into integeral will broke some submition dates during add/edit Entries
if your forum/user timezone is +/-x:30, all of submitions will differ +/- 30 minutes to original submition time

Here is bugfix:
File: includes/local_links_misc.php, function: get_datetimebit, about line: 1456

Find:

$tzoffset = intval($vbulletin->userinfo['tzoffset'])-$vbulletin->userinfo['dstonoff'];

Replace with:

$tzoffset = $vbulletin->userinfo['tzoffset']-$vbulletin->userinfo['dstonoff'];


also i would suggest add default check to Update to current date and time option during Add entries, but edit

Thanks;

Thanks - will implement the timezone fix.

For the time being, I will not change the behaviour of the 'update to now' checkbox, but leave it as a suggestion. There's a major site which routinely sets new entries to appear at sometime in the future. Having this box checked by default would be confusing to them. It will need a bit of Javascript to ensure that this box gets unchecked if the user modifies the date/time.

AndrewD
09-23-2007, 05:46 AM
That's the value:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

The blank screen and the large number of downloads are clues. I guess that your server is running out of some form of resource - memory or more likely cpu.

By default, vbulletin is not very user friendly with system errors, because of its default 'gzipping' of messages to the user. Have you tried turning off this option? vb/admin/options/cookies and http header options/ set gzip html output to 'no' and save. Then repeat the test and see if you get a message instead of a blank screen.

I'll take a look at the code to see if I can improve efficiency.

Edited: I'm pretty certain that your problem will be that the script is running out of its allowed cpu time. This is because separate email messages are being sent to each person who has accessed the entry. Grouping these messages (i.e. having multiple email addresses as 'bcc' recipients) may be a solution, but this isn't a trivial change to the code and the php documentation is not very clear on what is allowed and what is not allowed.

AndrewD
09-23-2007, 05:48 AM
I have a folder on my server /videos and in it has months of the year as subfolders with videos for races from my local race track. Would this addon be good for adding all those to a page or threads as a download link with counters? Anybody knows of an addon that can either?

LDM can automatically create and organise downloads to mirror the directory structure on your server, and will keep track of changes in your directories/subdirectories. I think it can probably do exactly what you want.

GTRyan
09-23-2007, 07:30 AM
LDM can automatically create and organise downloads to mirror the directory structure on your server, and will keep track of changes in your directories/subdirectories. I think it can probably do exactly what you want.

Wow thanks I will try it out now.

Phalynx
09-23-2007, 07:41 AM
Thanks AndrewD, I'll take a deeper view on this.

I have downloads which requires registrations, and downloads which requires membership in a specific group. I've set protected_link to 2: hyperlink takes user to registration dialogue.

That's very confusing for users: If they register for the first download they will get the file, if they request to download the second with a specific group they are still redirected to register.php saying they have already registered.

What can I do? It would be great if the user is registered when LDM says they need this and this group to access the download.

Phalynx
09-24-2007, 07:56 AM
Can anyone confirm that by installing vB's Project Tools LDM's active menues like editing Categories inside of them (not in administration) are not working?

Vinyljunky
09-24-2007, 09:00 AM
Hello,

How do I change the force_accept default text ?

Many Thanks

VinylJunky

Tulsa
09-24-2007, 10:39 AM
How do we make the text editor wider?

yahoooh
09-24-2007, 10:50 AM
i like this prduct and it is very very usefull

i need to make 3gp files work in flash player
flash player last version support 3gp files
but i do not know if wimpy player add support for this or not

if there is ability to add module for it , it will be great
also if there is new feature like grab files from youtube and then inserting in specific category then i will be played by flash player like wimpy or other

andrewD
i have another site for vedio and files and i want to convert the site to use vbulletin and use your product as main service but my site have more than 40000 files include:images,zip,sis,3gp
and i want to convert the db and get all data for your product
if you have a time and u can work for custom work with good price
i want to dale with u

thank you very much
this product more than perfect but plz add my suggesion features

peace

Phalynx
09-24-2007, 11:11 AM
Another Issue:
Our Modcrew cannot change the "Rename" field (linkfile)

I took a view on the template "links_addnewlink" and read this:

<if condition="$links_permissions['can_set_permissions'] and ($links_permissions['can_upload_files'] or $links_permissions['can_link_files'])">

Why this field requires "can_set_permissions"?

csavern
09-24-2007, 12:04 PM
i have the upload directory set to /uploads
i got a account at BlugaNet WebThumb and entered my api key
it shows when it makes a pic of the site at BlugaNet WebThumb
when on my site i dont get the pic of the site and when you hit sumit on making a new link you get a link /local_links_actions.php in the url bar and the page says Internet Explorer cannot display the webpage
it shows the images uploading to my server and i got the upload folder as /uploads
and it uploads these pictures to /uploads/uploads

AndrewD
09-24-2007, 03:36 PM
Can anyone confirm that by installing vB's Project Tools LDM's active menues like editing Categories inside of them (not in administration) are not working?

I have just installed project tools on my test site alongside LDM, and the menus seem ok.

AndrewD
09-24-2007, 03:41 PM
Another Issue:
Our Modcrew cannot change the "Rename" field (linkfile)

I took a view on the template "links_addnewlink" and read this:

<if condition="$links_permissions['can_set_permissions'] and ($links_permissions['can_upload_files'] or $links_permissions['can_link_files'])">

Why this field requires "can_set_permissions"?

I have tended to use the *can_set_permissions* permission as a shorthand for 'LDM administrator'. A number of the fields on the add entry and add category forms are kept restricted from standard users, as (way back in the distant history of LDM) the sense was that normal users should not have access to them.

Phalynx
09-24-2007, 07:12 PM
I have just installed project tools on my test site alongside LDM, and the menus seem ok.
Please take a look here:
http://www.insidetwoworlds.com/local_links.php?styleid=1

They are greyed out, cannot be clicked. It's with all styles, even reinstall of Product did not help. Before I installed PT they worked :/

I have tended to use the *can_set_permissions* permission as a shorthand for 'LDM administrator'. A number of the fields on the add entry and add category forms are kept restricted from standard users, as (way back in the distant history of LDM) the sense was that normal users should not have access to them.
I don't want to give them the can_set_permission. In my opinion it makes no sense to have other permissions... Anyway, I have to modify this template.

AndrewD
09-24-2007, 07:22 PM
How do we make the text editor wider?

Well, it should be by modifying the formwidth_usercp setting on the vb style sheet, but I realise that I've missed out a table width parameter in the relevant template.

So modify the formwidth_usercp style variable, and then find this sequence in the links_addnewlink template:


<div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div>
$messagearea
</div></td>
</tr>
</table>
</div>


and add a width="100%" field to the table tag.

Phalynx
09-24-2007, 09:01 PM
Now I catched the error with the non working menues. I installed the new vbaCMPS RC2 in the same time like the PT. Using it's "Integration" the menues are disappearing.

I will report this to Brian of vBAdvanced.

Thanks for your efforts anyway, keep up the good work :)

vrom
09-24-2007, 09:08 PM
Thank you for greate product!

I consider to use LDM as FAQ database (code snippets, links).
It seems to be nearly 100% fits the task.

The only problem is that I do not find possibility to attache many files to an item.
May be possible to hack LDM to use vBulletin uploads and attachements like for forum posts?

Tulsa
09-24-2007, 11:57 PM
Well, it should be by modifying the formwidth_usercp setting on the vb style sheet, but I realise that I've missed out a table width parameter in the relevant template.

So modify the formwidth_usercp style variable, and then find this sequence in the links_addnewlink template:


<div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div>
$messagearea
</div></td>
</tr>
</table>
</div>
and add a width="100%" field to the table tag.

Unfortunately adding the 100% did not work, the editor in LDM was still smaller than the forum. So I changed the 100% to the 640 that matches my formwidth_usercp variable and that worked.

AndrewD
09-25-2007, 04:07 AM
Thank you for greate product!

I consider to use LDM as FAQ database (code snippets, links).
It seems to be nearly 100% fits the task.

The only problem is that I do not find possibility to attache many files to an item.
May be possible to hack LDM to use vBulletin uploads and attachements like for forum posts?

There have been other requests to make this change, but it is not a trivial modification to the logic (everything is based on one entry = one file/link). I still have the request on the list, but I don't think it is likely to get done quickly.

AndrewD
09-25-2007, 04:12 AM
i like this prduct and it is very very usefull

i need to make 3gp files work in flash player
flash player last version support 3gp files
but i do not know if wimpy player add support for this or not

if there is ability to add module for it , it will be great
also if there is new feature like grab files from youtube and then inserting in specific category then i will be played by flash player like wimpy or other

andrewD
i have another site for vedio and files and i want to convert the site to use vbulletin and use your product as main service but my site have more than 40000 files include:images,zip,sis,3gp
and i want to convert the db and get all data for your product
if you have a time and u can work for custom work with good price
i want to dale with u

thank you very much
this product more than perfect but plz add my suggesion features

peace

Thanks, I note your requests for file formats and will see what I can do.

I don't take on custom work, but it will not be difficult for a reasonable programmer to do the conversion, for example by translating your existing database tables into LDM's xml import/export format.

AndrewD
09-25-2007, 04:50 AM
Now I catched the error with the non working menues. I installed the new vbaCMPS RC2 in the same time like the PT. Using it's "Integration" the menues are disappearing.

I will report this to Brian of vBAdvanced.

Thanks for your efforts anyway, keep up the good work :)

Suggest you also take a look at http://www.eirma.org/wikis/index.php/VbAdvanced

Probably what is happening is that the vbadvanced integration omits the LDM javascript menu initialisation.

AndrewD
09-25-2007, 04:51 AM
Unfortunately adding the 100% did not work, the editor in LDM was still smaller than the forum. So I changed the 100% to the 640 that matches my formwidth_usercp variable and that worked.

Seems one has to tag the two divs and the table. Anyway, it will be fixed in the final 2.2.8 release

vrom
09-25-2007, 09:10 AM
Is it possible to run many instances of LDM on one installation?
(for links, for files etc)

AndrewD
09-25-2007, 09:41 AM
Is it possible to run many instances of LDM on one installation?
(for links, for files etc)

This is not straightforward - you would have to modify the code to read different initialisation files (includes/local_links_init.php).

However, you can achieve essentially the same effect by structuring your categories in the way you want - have one top level category in which you will create subdirectories for all links and have another for all files, etc. Then, instead of setting up menu links to the top level of LDM, set them up to the main categories.

Phalynx
09-25-2007, 02:31 PM
Another issue:
By clicking on "View Hits" you get the following URL:
http://www.myurl.com/local_links_admin.php?set=logjumps&todo=1&startint=0&linkid=21

If you want to page through the records, you get f.e. this URL for the second page:
http://www.myurl.com/local_links_admin.php?set=logjumps&sortby=byuser&start=2007-08-26&end=2007-09-25&linkid=21&hitsperpage=25&page=2

On my server this page has always no rows, regardless which page I call.

AndrewD
09-25-2007, 04:26 PM
Another issue:
By clicking on "View Hits" you get the following URL:
http://www.myurl.com/local_links_admin.php?set=logjumps&todo=1&startint=0&linkid=21

If you want to page through the records, you get f.e. this URL for the second page:
http://www.myurl.com/local_links_admin.php?set=logjumps&sortby=byuser&start=2007-08-26&end=2007-09-25&linkid=21&hitsperpage=25&page=2

On my server this page has always no rows, regardless which page I call.

Thanks, will check. There's a parameter missing from the url. Just to confirm - you are still using 2.2.8 RC2?

Phalynx
09-25-2007, 08:04 PM
Yes, 2.2.8 RC2 upgraded directly from 2.2.7

If you need admin permission on my db contact me via PM.

mauro1947
09-25-2007, 08:40 PM
Hi!
I have "allow_html" setted to Yes and when i insert my Google Adsense code into description, ads never shows...:(
Can you help me?
Thanks a lot.
Regards!

AndrewD
09-26-2007, 04:11 AM
Hi!
I have "allow_html" setted to Yes and when i insert my Google Adsense code into description, ads never shows...:(
Can you help me?
Thanks a lot.
Regards!

I have not tried this myself. Can you send me a PM with more details of the code you are including?

Tulsa
09-26-2007, 10:42 AM
I'm probably just missing this somewhere but how can I allow a specific usergroup to add a sub category under a specific category only without giving that group global permission to add categories? Also, is there a way to allow a specific user to only be able to edit a category they add?

AndrewD
09-26-2007, 05:54 PM
I'm probably just missing this somewhere but how can I allow a specific usergroup to add a sub category under a specific category only without giving that group global permission to add categories?

This is not a feature at present, but there is no real reason why this is not already the case and it is a trivial change to the code to make it possible. Do you wish me to make this the case in the final version of 2.2.8, or do you want instructions on how to patch the code?

Also, is there a way to allow a specific user to only be able to edit a category they add?

Yes: if you give a usergroup *can_add_category* permission but not *can_edit_category* permission, then users in that group can always edit categories they add themselves, but no others.

Tulsa
09-26-2007, 11:06 PM
This is not a feature at present, but there is no real reason why this is not already the case and it is a trivial change to the code to make it possible. Do you wish me to make this the case in the final version of 2.2.8, or do you want instructions on how to patch the code?


Why both of course. :D

By the way, when you set the template_altbit to bold you get this in the bottom right hand corner.

AndrewD
09-27-2007, 04:17 AM
Why both of course. :D


This is only a partial solution - there are a couple of other changes which are needed to make it complete/clean.

Edit includes/local_links_admininclude.php. Scroll down until you find groups of lines which look like the following:


require_admin_row($seq++, 'title_data_entry', 'll_settings_title_entry', 'title_perms', 1, 1);
require_admin_row($seq++, 'can_add_link', '6,-1', 'usergroup_check', 1);
require_admin_row($seq++, 'can_link_files', '2,3,4,5,6,7,-1', 'usergroup_check', 1);
require_admin_row($seq++, 'can_upload_files', '6,-1', 'usergroup_check', 1);
require_admin_row($seq++, 'can_select_category', '2,3,4,5,6,7,-1', 'usergroup_check');
require_admin_row($seq++, 'can_edit_link', '6,-1', 'usergroup_check');
require_admin_row($seq++, 'can_delete_link', '6,-1', 'usergroup_check');
require_admin_row($seq++, 'can_add_category', '6,-1', 'usergroup_check');
require_admin_row($seq++, 'can_edit_category', '6,-1', 'usergroup_check');
...
require_admin_row($seq++, 'close_data_entry', '', 'close', 1);


Each line defines a parameter setting/permission. When there is a fifth parameter set to 1 (as on the can_add_link line), then the permission can be set at global level and at category level. Otherwise, it can only be set at global level.

So to make can_add_category and can_edit_category permissions avaiable on a per-category basis, simply add ", 1 at the end of the lines:


require_admin_row($seq++, 'can_add_category', '6,-1', 'usergroup_check', 1);
require_admin_row($seq++, 'can_edit_category', '6,-1', 'usergroup_check', 1);


Save, then (important) reinstall the LDM product installer via the vb admincp.

Then, these permissions become available on the Add/Edit Category forms, on the third tab (User Group Permissions). If you deny the permission globally and enable it in one of your categories, then the relevant user group can only create subcategories in that category.

As I said, this is not a complete patch - You will find that the 'add category' form always includes a parent category selection box, allowing people to place the new subcategory somewhere else in the category hierarchy. This is probably not what you want. For some reason, I had overlooked to apply the *can_select_category* permission to category creation. I will fix this in 2.2.8.

My answer about users always being able to edit their own categories was also not completely accurate. There's another bug so that the relevant Edit Category menu item does not get displayed even though the user actually has permission to do the edit. This will also be fixed in 2.2.8.

So you may prefer to wait.

Alfa1
09-27-2007, 05:17 PM
I have the Dutch translation ready. I want to go over it one more time to see if everything is in order.

Could you please look at this:
I never got this sorted out - I took a quick look at the tabs hack but didn't get beyond the introduction.
Basically it adds tabs to the navbar. To let the right tab to highlight according to the members location, the code needs a conditional.

I think this will quickly show you how it works and what is needed:
https://vborg.vbsupport.ru/showthread.php?p=1276144

Something similar to the last option would be needed.

obmob
09-27-2007, 11:37 PM
Hi!
I have "allow_html" setted to Yes and when i insert my Google Adsense code into description, ads never shows...:(
Can you help me?
Thanks a lot.
Regards!Isn't it easier to edit a likbit, that way you add only one adsense code :p

mauro1947
09-28-2007, 01:29 AM
Isn't it easier to edit a likbit, that way you add only one adsense code :p
Thanks, fixed by AndrewD :D
Thanks
Regards!

Ophelia
09-28-2007, 02:25 AM
So Mr. Andrew.. when can I add this delightful new version to our site? :) I'm itching for the multiple uploads ;)

AndrewD
09-28-2007, 03:53 AM
I have the Dutch translation ready. I want to go over it one more time to see if everything is in order.

Could you please look at this:

I'll try to work this out, Alfa - I'm really overwhelmed by work - last time I took a look, it was not obvious to me how it worked.

AndrewD
09-28-2007, 03:57 AM
So Mr. Andrew.. when can I add this delightful new version to our site? :) I'm itching for the multiple uploads ;)

Well, I'd hoped to come back from holiday and find no bugs to fix, but people seem to keep finding them... I think we're nearly there.

Concerning yout earlier PM'd problem with rogue downloads, this is not going to be easy to sort out from a distance. I have somewhat improved the tool for analysing downloads in 2.2.8, and it may be easiest for you to upgrade before we start investigating.

skooby
09-29-2007, 01:51 AM
Awesome mod :) I tried looking through the posts but couldn't find much. Is there a way that when a user uploads a new file (say a mp3), that it creates a new post in a certain forum?

Ipuck
09-29-2007, 02:33 AM
Awesome mod I tried looking through the posts but couldn't find much. Is there a way that when a user uploads a new file (say a mp3), that it creates a new post in a certain forum? Yes. That's an extra for the 2.2.7 version , but for is included in the 2.2.8 version. For more inof go to http://www.eirma.org/wikis/index.php/Options_and_Extras

skooby
09-29-2007, 03:11 AM
Wow man how did I not see that? Thanks so much for the response.

efil
09-29-2007, 08:06 AM
Hi AndrewD,
Is there a vbAdvanced mod like "newest entries" but for "random entries" ?

Ophelia
09-29-2007, 01:46 PM
Well, I'd hoped to come back from holiday and find no bugs to fix, but people seem to keep finding them... I think we're nearly there.

Concerning yout earlier PM'd problem with rogue downloads, this is not going to be easy to sort out from a distance. I have somewhat improved the tool for analysing downloads in 2.2.8, and it may be easiest for you to upgrade before we start investigating.

Darn bugs! And no worries on the needing to upgrade before we start investigating. You do such wonderful work, I bet it's already taken care of! ;)

SherryG
09-30-2007, 02:10 AM
Hi there,

I've had this mod installed for quite some time and it was working great. Now I'm getting the following messages when trying to click on a link:

Error - Cannot determine if you can access link: linkid,forumid= 227, 38

Can someone tell me what that means and how I can fix it?

Cheers!
Sherry

AndrewD
09-30-2007, 04:45 AM
Hi there,

I've had this mod installed for quite some time and it was working great. Now I'm getting the following messages when trying to click on a link:

Error - Cannot determine if you can access link: linkid,forumid= 227, 38

Can someone tell me what that means and how I can fix it?

Cheers!
Sherry

It means that the entry has been 'associated' with a forum which you have subsequently deleted, so the code can't tell if you have access permissions or not. You need to edit the entries to use current forums. The quickest way to do this is with the ldm/admin/categories/mass edit feature, which should highlight for you where the problems are.

AndrewD
09-30-2007, 08:29 AM
I have these forum tabs (https://vborg.vbsupport.ru/showthread.php?t=148933) on my site. I apply conditionals to them, so that the tab that corresponds to the section of the site you are on gets highlighted.
To do this for LDM, I need to define what the cat id variables of LDM are.

I tried this, but this didn't work:
<if condition="in_array($foruminfo[catid], array(126,39, 43))"><li id="active"><a href="http://www.mysite.com/forum/local_links.php?catid=126" id="active">Videos</a></li><else /><li><a href="http://www.mysite.com/forum/local_links.php?catid=126">Video</a></li></if>

Andrew, could you please inform me of the cat id variables?

Well, I finally sorted this out.

I installed the basic tab menu hack and modified the navbar template by putting

<br />
$tabbars
<br />

at the end.

I then modified the standard tabbars template so that there was a menu item defined for LDM:


<li><a href="/forums/local_links.php" class="<if condition="in_array(THIS_SCRIPT, array('local_links', 'local_links_admin', 'local_links_search'))">tabbarssix<else />tabbarsone</if>" onMouseover="expandcontent('sc6', this)">Downloads</a></li>


This sequence will use the tabbarsone style if you are outside LDM and the tabbarssix style if you are inside LDM.

I'm sure you can take it from here. Bear in mind that you will need to change the strings inside the in_array() statement if you have renames the main LDM scripts.

itsblack
09-30-2007, 10:01 AM
Thank you Andrew.
Chinese translation updated.

Tulsa
09-30-2007, 07:40 PM
Well, it should be by modifying the formwidth_usercp setting on the vb style sheet, but I realise that I've missed out a table width parameter in the relevant template.

So modify the formwidth_usercp style variable, and then find this sequence in the links_addnewlink template:


<div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div>
$messagearea
</div></td>
</tr>
</table>
</div>
and add a width="100%" field to the table tag.

Unfortunately adding the 100% did not work, the editor in LDM was still smaller than the forum. So I changed the 100% to the 640 that matches my formwidth_usercp variable and that worked.

In the new version, I (think) see where you've added the width statements now but the 100% didn't work on my forum and changing the values on the new version to 640 didn't work this time. Any thoughts?

Alfa1
09-30-2007, 11:53 PM
Well, I finally sorted this out.

I installed the basic tab menu hack and modified the navbar template by putting

<br />
$tabbars
<br />

at the end.

I then modified the standard tabbars template so that there was a menu item defined for LDM:


<li><a href="/forums/local_links.php" class="<if condition="in_array(THIS_SCRIPT, array('local_links', 'local_links_admin', 'local_links_search'))">tabbarssix<else />tabbarsone</if>" onMouseover="expandcontent('sc6', this)">Downloads</a></li>


This sequence will use the tabbarsone style if you are outside LDM and the tabbarssix style if you are inside LDM.

I'm sure you can take it from here. Bear in mind that you will need to change the strings inside the in_array() statement if you have renames the main LDM scripts.

This was not quite what I meant, because I got this far. I have 3 tabs linking to 3 different categories in LDM; Video, Audio and Documents. All sections make use of local_links, so I can not use THIS_SCRIPT to identify the categories.
This is why I want to use category-id's. I have done this for the tabs linking to forums. This worked like this:
<if condition="in_array($foruminfo['forumid'], array(176, 190, 174))">
I have tried to translate the method to LDM, like below, but was unsuccessful:
<if condition="in_array($foruminfo[catid], array(126,39, 43))">
If you can correct this line for me, then I am set.

AndrewD
10-01-2007, 04:06 AM
This was not quite what I meant, because I got this far. I have 3 tabs linking to 3 different categories in LDM; Video, Audio and Documents. All sections make use of local_links, so I can not use THIS_SCRIPT to identify the categories.
This is why I want to use category-id's. I have done this for the tabs linking to forums. This worked like this:
<if condition="in_array($foruminfo['forumid'], array(176, 190, 174))">
I have tried to translate the method to LDM, like below, but was unsuccessful:
<if condition="in_array($foruminfo[catid], array(126,39, 43))">
If you can correct this line for me, then I am set.

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.

AndrewD
10-01-2007, 04:16 AM
In the new version, I (think) see where you've added the width statements now but the 100% didn't work on my forum and changing the values on the new version to 640 didn't work this time. Any thoughts?

I made the same changes in the *links_addnewentry* and *links_viewallcomment* templates:


<div>
<div style="width:$stylevar[formwidth_usercp];" align="$stylevar[left]">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;" >
<tr>
<td><div style="width:100%;">
$messagearea
</div></td>
</tr>
</table>
</div>
</div>


This works correctly for me with both Firefox and Internet Explorer, with both pixel and percentage values for the formwidth_usercp style setting in VB, provided this value is larger than about 400 pixels. (Smaller values than about 400 seem to be ignored.) Note that "100%" appears twice.

If you are wanting to 'hard code' the width, you need to replace $stylevar[formwidth_usercp];

Tulsa
10-01-2007, 09:20 AM
I made the same changes in the *links_addnewentry* and *links_viewallcomment* templates:


<div>
<div style="width:$stylevar[formwidth_usercp];" align="$stylevar[left]">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;" >
<tr>
<td><div style="width:100%;">
$messagearea
</div></td>
</tr>
</table>
</div>
</div>
This works correctly for me with both Firefox and Internet Explorer, with both pixel and percentage values for the formwidth_usercp style setting in VB, provided this value is larger than about 400 pixels. (Smaller values than about 400 seem to be ignored.) Note that "100%" appears twice.

If you are wanting to 'hard code' the width, you need to replace $stylevar[formwidth_usercp];

I just changed the (style="width:100%;") to (width="640") in the $stylevar statement and it's working fine. I don't know if this has something to do with the fact I'm using a Mac and Firefox or not but certainly the way it's working for you, it's not for me. But it's working and that's all that matters.

AndrewD
10-01-2007, 10:21 AM
I just changed the (style="width:100%;") to (width="640") in the $stylevar statement and it's working fine. I don't know if this has something to do with the fact I'm using a Mac and Firefox or not but certainly the way it's working for you, it's not for me. But it's working and that's all that matters.

ok, noted - I'll see if there's someway to code this that works consistently :)

Phalynx
10-01-2007, 10:40 AM
This is, I hope, the final release candidate for version 2.2.8, fixing the bugs reported in RC2. (How many times has that been said that before...)

Great! Thanks. Will test this today.

obmob
10-01-2007, 03:49 PM
Thanks for the update, will look if further phrases need translation :D

Rouzbeh1
10-01-2007, 10:34 PM
thanks for update.
mirror BW usage counts now ;)

IrPr
10-03-2007, 07:59 AM
Thanks Androw
cant wait for new Hooks:D lol

AndrewD
10-03-2007, 08:10 AM
Thanks Androw
cant wait for new Hooks:D lol

I added a couple - let me know if there need to be others.

IrPr
10-03-2007, 08:45 AM
I added a couple - let me know if there need to be others.
sorry, I mean i cant wait to move my file modifications into new hooks
ldm_mainsql_complete was really needed there to JOIN main query instead of new queries.

Once again, my big appreciation of your awesome work and hourly support!

* IrPr Clicks "Nomaniate for MOTM"

IrPr
10-03-2007, 10:43 AM
Andrew, would u please mention template changes since previous releases or at least mandatory template reverts in changelogs? b/c i've modified linkbit/catbit templates

AndrewD
10-03-2007, 11:15 AM
Andrew, would u please mention template changes since previous releases or at least mandatory template reverts in changelogs? b/c i've modified linkbit/catbit templates

Changed/new templates from 2.2.7-RC2 to 2.2.8-RC3:

links_addnewcat
links_addnewlink
*new* links_addnewmultilink
links_admin
links_admin_bandwidth
links_admin_downloads
links_admin_downloads_item_one
*new* links_admin_onemirror
links_admin_options
links_admin_playerbit
*new* links_catbit_extras
links_downloadbit
links_editbit
links_favbit
links_filmstrip_bit
links_footer
links_header
links_iframed
links_imgmag
links_linkbit
*new* links_linkbit_mtop
links_linkbit_table
links_main
links_massedit
links_massedit_linkbit
*new* links_mirror_select
*new* links_pageinfo_bit
links_playerbit
links_playerbit_MediaPlayer
links_playerbit_WimpyButton
links_report
links_search
links_sendemail
*new* links_tagcloud_bit
links_viewall_comment
links_viewone_comment
links_viewone_popup_comment

Most changes happened between 2.2.7-RC2 and the alpha 2.2.8. There were (I think) no changes in templates since 2.2.8-RC2.

Some of the change were minor but some were quite significant. Unfortunately, I don't have time to check though in detail.

obmob
10-03-2007, 03:58 PM
About templates, is it possible to add more linkbits? :p

I modified the short and the normal linkbit, but i would like to use your current short also. :D

Greetings

AndrewD
10-03-2007, 05:49 PM
About templates, is it possible to add more linkbits? :p

I modified the short and the normal linkbit, but i would like to use your current short also. :D

Greetings

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:


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.


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?

yahoooh
10-03-2007, 07:17 PM
bug :
when synchronise category with folder and this folder contain subfolders , it will not add any entries from subfolders even i make the sync_depth = 2 or 3 or 100

i choose sync_populate_categories "no"

sync_populate_entries "yes"

it is only add entries from the folder but not subfolders under it

IrPr
10-03-2007, 07:33 PM
About templates, is it possible to add more linkbits? :p

I modified the short and the normal linkbit, but i would like to use your current short also. :D

Greetings

Or just this simple query:
INSERT INTO `FORUM`.`LOCAL_linksadmin` (`settingname`, `setting`, `sequence`, `rowtype`, `rowtitle`, `canoverride`, `catid`) VALUES ('links_linkbit_movie', 'a:4:{s:4:"name";s:5:"Movie";s:6:"defcol";i:1;s:6:"maxcol";i:4;s:6:"subbit";s:15:"links_subcatbit";}', 50011, 'define_linkbit', '', 1, -1);


Where FORUM is your forum table and LOCAL_ is your LDM table prefix
This query adds Movie template_linkbit which points to links_linkbit_movie template,
If you want to change your template_linkbit name you have to change 5 ( exact before :"Movie" ) to your template_linkbit display name's length

Edit: You have to add linksbit_linkbit_movie template manually
Please BACKUP your linksadmin table before executing this query or test on your local/test forum

yahoooh
10-03-2007, 10:39 PM
also another bug :
duplicate entries when use manual synchronise , this occure sometimes !

AndrewD
10-04-2007, 03:47 AM
bug :
when synchronise category with folder and this folder contain subfolders , it will not add any entries from subfolders even i make the sync_depth = 2 or 3 or 100

i choose sync_populate_categories "no"

sync_populate_entries "yes"

it is only add entries from the folder but not subfolders under it

I suppose this is a question of definition. It's doing what you told it to do. If sync_populate_categories is set to no, the synchronisation code resyncs the current directory/category but does not track through subdirectories/subcategories. If you have manually created synced subcategories (or created them automatically, then switch off sync_populate_categories), these are resynced when someone visits them.

AndrewD
10-04-2007, 04:25 AM
Or just this simple query:
INSERT INTO `FORUM`.`LOCAL_linksadmin` (`settingname`, `setting`, `sequence`, `rowtype`, `rowtitle`, `canoverride`, `catid`) VALUES ('links_linkbit_movie', 'a:4:{s:4:"name";s:5:"Movie";s:6:"defcol";i:1;s:6:"maxcol";i:4;s:6:"subbit";s:15:"links_subcatbit";}', 50011, 'define_linkbit', '', 1, -1);


Where FORUM is your forum table and LOCAL_ is your LDM table prefix
This query adds Movie template_linkbit which points to links_linkbit_movie template,
If you want to change your template_linkbit name you have to change 5 ( exact before :"Movie" ) to your template_linkbit display name's length

Edit: You have to add linksbit_linkbit_movie template manually
Please BACKUP your linksadmin table before executing this query or test on your local/test forum

Be careful - patching the admin table will work but it's not guaranteed to continue to work following an upgrade.

AndrewD
10-04-2007, 04:26 AM
also another bug :
duplicate entries when use manual synchronise , this occure sometimes !

I've never seen this. I'll be keen to see a reproducible case, if possible.

yahoooh
10-04-2007, 12:43 PM
I suppose this is a question of definition. It's doing what you told it to do. If sync_populate_categories is set to no, the synchronisation code resyncs the current directory/category but does not track through subdirectories/subcategories. If you have manually created synced subcategories (or created them automatically, then switch off sync_populate_categories), these are resynced when someone visits them.

i want to explain more :

i have one category and i just need to enter all files that in a folder and about 100 subfolders in the same category , i did not need to make subcategory for each subfolder

so in this case it is not work

about duplicate content
when i wrote the folder as /folder/
it will not duplicate
but when i write /folder without training slash
it give me duplicate entries

also the template for description of the entries is not work to give automatic description for entries !


suggestion:
1.multiple templates for choose of them , for description of entries
2.specific template for specific category "show"

AndrewD
10-04-2007, 01:36 PM
i want to explain more :

i have one category and i just need to enter all files that in a folder and about 100 subfolders in the same category , i did not need to make subcategory for each subfolder

so in this case it is not work

about duplicate content
when i wrote the folder as /folder/
it will not duplicate
but when i write /folder without training slash
it give me duplicate entries

also the template for description of the entries is not work to give automatic description for entries !


suggestion:
1.multiple templates for choose of them , for description of entries
2.specific template for specific category "show"

OK, these are extensions to the current functionality. I'll look into how they might be implemented and let you know.

obmob
10-04-2007, 03:10 PM
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:


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.


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
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:
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:visite d.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:visite d.tab2{
background:transparent url(http://www.mysite.com/test/images/tab2c.gif) top right no-repeat;
}

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:
<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
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
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
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:
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:visite d.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:visite d.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:
<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
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
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
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
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
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
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:
<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
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
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
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
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
if condition="!$this_action and (THIS_SCRIPT=='index' or in_array(..))">...</if>

Your LDM search check could be

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

Your LDM main page check could be

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


and so on

itsblack
10-06-2007, 06:49 PM
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
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
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
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
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?


<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 (http://www.imeem.com)
www.megavideo.com (http://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
request:

if possible, any chance of adding

www.imeem.com (http://www.imeem.com)
www.megavideo.com (http://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 (https://vborg.vbsupport.ru/showthread.php?t=150491) 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 (http://www.viddler.com) as well (flash sites).

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

AndrewD
10-12-2007, 03:55 AM
Andrew, another suggestion
You can integare this mod to vB AnyMedia (https://vborg.vbsupport.ru/showthread.php?t=150491) 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!


argh..sorry to be a pain..but www.viddler.com (http://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
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
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)

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 (https://vborg.vbsupport.ru/showthread.php?t=150863) 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


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_links.php?catid=28&sort=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
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.

AndrewD
10-14-2007, 09:10 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

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


- 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


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

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


or


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

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
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/showthread.php?t=113583&highlight=hosting


- 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
- 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
In the links_play_standalone template, you can do a category test with the $catid variable. So you could include something like the following:

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


or


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

Does it automatically apply to child categories?

No, this approach works with precisely those categories you specify

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


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

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

<!-- adsense starts -->

<!-- adsense ends -->

</if>

AndrewD
10-18-2007, 02:46 PM
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:

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