View Full Version : Major Additions - Links and Downloads Manager
Pages :
1
2
3
4
5
6
7
8
[
9]
10
11
12
13
AndrewD
07-16-2007, 05:47 PM
Hey, i?ve got another Question. Is there a possibility to get the comments on the links in a forum?
Yes, the autothread_create feature (an addon with 2.2.7 and built in with 2.2.8) will post comments in a thread
itsblack
07-16-2007, 06:18 PM
Hi Andrew, thanks a lot for the update.
Again, the allowance problem.
All my downloads are local files. LDM also can detect the filesize when I submitted a new item. But LDM doesn't count the download as "download". Neither the filesize, nor the file amount is recorded when user download an item. (In the last version, the file amount was still recorded.)
Can you do me a favor, tell me how to treat links and downloads as the same thing? I mean, I want to use the hit record as the allowance scale.
minimalize
07-16-2007, 06:22 PM
ok, i´ve installed the plugin but it doesn´t work. where can i assign a forum to post in? is it the one in the categorie settings?
itsblack
07-16-2007, 06:26 PM
Maybe it is not the problem of allowance, but the problem of LDM how to treat a url as link or download.
I uploaded the file per ftp to my site, is that not a "download"?
itsblack
07-16-2007, 07:50 PM
Here is the new chinese product file for 2.2.8-beta.
AndrewD
07-17-2007, 04:59 AM
ok, i?ve installed the plugin but it doesn?t work. where can i assign a forum to post in? is it the one in the categorie settings?
Yes, basically.
In version 2.2.7, it works as follows:
LDM mantains a setting 'default_forumid' (by default set to 'none'); each category has an associated forum (by default 'default_forumid'); and each entry has an associated forum (by default the category's forumid).
Each of these associated forums can be changed: default_forumid on the admin settings page, and the category/entry forum using the add/edit category/entry forms.
The autocreate_thread plugin only creates a thread for new entries that have a valid forumid that is open for posting. It will only create posts for comments if a thread was auto-created when the entry was added. (I hope that is clear.)
In other words, the autocreate process posts in the forum which is 'associated' with the entry.
In version 2.2.8, this same mechanism works, but there is also a possibility to set an 'autocreate_forum' on a global and per-category basis. This can be a different forum to the 'associated forum' and takes precedence if set.
Forum association is explained in the on-line manual at http://www.eirma.org/wikis/index.php/Forum-based_Access_Control
AndrewD
07-17-2007, 05:04 AM
Here is the new chinese product file for 2.2.8-beta.
Thanks - maybe I'm not awake, but I can't figure out how to extract the contents as a UTF-8 format file - it keeps coming out in PC/ANSI format. Could you just post the phrases as an XML?
I'll take a look at the allowances problem - maybe I've messed something up.
this is exactly the mod that i wanted to use!!
i have 3 questions: LDM works perfect, but:
1)on local_links.php (where i can find the categories), is it also possible to see all the entries?
2) when i click on an entry, is it possible to see also the ratings and comments? (i say, if it's possibile to open the page " View Comments and Ratings" when i click on a song in a category!)
3) is it possibile to have a vbadvanced module that display the entries that have the highest rate?
thanks!
minimalize
07-17-2007, 10:07 AM
Yes, basically.
In version 2.2.7, it works as follows:
LDM mantains a setting 'default_forumid' (by default set to 'none'); each category has an associated forum (by default 'default_forumid'); and each entry has an associated forum (by default the category's forumid).
Each of these associated forums can be changed: default_forumid on the admin settings page, and the category/entry forum using the add/edit category/entry forms.
The autocreate_thread plugin only creates a thread for new entries that have a valid forumid that is open for posting. It will only create posts for comments if a thread was auto-created when the entry was added. (I hope that is clear.)
In other words, the autocreate process posts in the forum which is 'associated' with the entry.
In version 2.2.8, this same mechanism works, but there is also a possibility to set an 'autocreate_forum' on a global and per-category basis. This can be a different forum to the 'associated forum' and takes precedence if set.
Forum association is explained in the on-line manual at http://www.eirma.org/wikis/index.php/Forum-based_Access_Control
Ok, thanks a lot for the care about my questions. I think i will get it work! Have you some interesting news for me about the external frames addon? :)
itsblack
07-17-2007, 01:07 PM
Thanks - maybe I'm not awake, but I can't figure out how to extract the contents as a UTF-8 format file - it keeps coming out in PC/ANSI format. Could you just post the phrases as an XML?
I'll take a look at the allowances problem - maybe I've messed something up.
No problem.
i have to make my question again, now that i've understood something about LDM.
when i enter a category, i find all the entries of that category.
i want that when i click on an entry, it display the page with the rate and comments..
but let me explain with an example.
You are inside this category: dance category (http://www.musicadigitale.net/forum/local_links.php?catid=2)
i want thatm if i click on "Angben65 & Sergiopad - L'Atotanka (TaInKiTu)" it opens rate and comments (http://www.musicadigitale.net/forum/local_links.php?action=ratelink&linkid=1&catid=2&lpage=1) ...is it possible?
thanks! ;)
Rouzbeh1
07-17-2007, 03:36 PM
did you try the option in Administration--Permissions ? (you can also set category specific options on this)
must_rate_download
Usergroups that must provide a comment/rating before being allowed to visit/download an entry.
AndrewD
07-17-2007, 06:14 PM
i have to make my question again, now that i've understood something about LDM.
when i enter a category, i find all the entries of that category.
i want that when i click on an entry, it display the page with the rate and comments..
but let me explain with an example.
You are inside this category: dance category (http://www.musicadigitale.net/forum/local_links.php?catid=2)
i want thatm if i click on "Angben65 & Sergiopad - L'Atotanka (TaInKiTu)" it opens rate and comments (http://www.musicadigitale.net/forum/local_links.php?action=ratelink&linkid=1&catid=2&lpage=1) ...is it possible?
thanks! ;)
Edit the links_linkbit template.
Find the line (close to the top)
$linkurljump
Replace by
<a href="$LINKS_SCRIPT.php?action=ratelink&linkid=$linkid&c atid=$viewcatid&lpage=$pagenumber" title="<phrase 1="$linkraters">$vbphrase[ll_viewallratings]</phrase>">$linkname</a>
<!-- $linkurljump //-->
That should do the job.
AndrewD
07-17-2007, 06:32 PM
Maybe it is not the problem of allowance, but the problem of LDM how to treat a url as link or download.
I uploaded the file per ftp to my site, is that not a "download"?
Downloads are files with filetypes that appear in the vb mimetypes table. I checked the code - currently, the allowances only apply for such files - the logic being that other file types are transferred using broswer redirects rather than LDM managed transfers. I realise, now you point it out, that a redirect from your own server is still consuming bandwidth, so there's a logic in applying the allowances. I'll work out the cleanest way to do this for RC version of 2.2.8.
Thanks for the translation - that's excellent (I think!! - can't read it to be sure).
itsblack
07-17-2007, 06:47 PM
Thank you for your effort.
now it's perfect..tnx a lot! ;)
Alfa1
07-17-2007, 10:26 PM
Andrew,
Could you please answer this:
Hi Andrew,
How do I find the url to link to a search query? I'd like to use keywords to generate forum topic specific links to relating files in LDM. i.e. use the url of a search query result and post that as a link.
Many thanks for your support.
And this:
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?
Just to clarify: I want to find the category id variables to have the right tab be highlighted when a member is in a certain category of LDM.
DarkRyda
07-18-2007, 05:25 AM
easily my favourite mod for Vbulletin. Thanks for this awesome addition and excellent support, can't wait for final of version 2.2.8.
Alfa1
07-18-2007, 10:21 AM
Yes, same here. It still puzzles me why LDM is not a Premium mod.
I revived the request here (https://vborg.vbsupport.ru/showthread.php?p=1294487#post1294487)
TheBlackPoet
07-18-2007, 11:04 AM
the amount of information on this hack is so monumental... i am left to wonder if you, my friend have a readily available supply of mind altering drugs to keep you sane!!!! this hack is outstanding... and im ashamed it took me so long to incorporate it into my own forum... now, today i will be reading and learning how to use it...
thanks....
maybe it's only a suggestion for future releases: but is it possible to see the links to new entries and new ratings/comments in the /search.php?do=getnew page?
thanks for all you are doing for as with this mod ;)
EDIT: i'd like to open a thread where we can give links to our LDM pages, and have suggestion about how incorporating it with our forum!!is it possibile? and where?
AndrewD
07-18-2007, 04:06 PM
Andrew,
Could you please answer this:
(about searching)
I'm sorry, I missed your question the first time round.
The syntax for the search urls is as follows:
.../local_links_search.php?action=show
with some or all of these parameters:
required
&search=searchstring
&desc=0/1 [search descriptions]
&keys=0/1 [search keywords]
&searchdate=0/-1/N [any date/since last visit/last N days]
optional
&filetype=typelist [filetypes, comma separated]
&catlist=n1,n2,n3 [list of category ids to search]
&childcats=1 [also search child categories of those selected]
&beforeafter=1/-1 and newer/and older
&sort=N/n/h/30/6/1/D/d/R/r/U/u [Title (ascending)/Title (descending)/Hits (overall)/Hits (30 days)/Hits (7 days)/Hits (24 hours)/Date created (ascending)/Date created (descending)/Rating (ascending)/Rating (descending)/Submitter (ascending)/Submitter (descending)]
&user=username
&userid=userid
There are some other switches too, but that's probably all you need.
Andrew,
And this:
(about tab colouring)
Just to clarify: I want to find the category id variables to have the right tab be highlighted when a member is in a certain category of LDM.
Give me a couple of days to look at this - I've not see this hack before.
AndrewD
07-18-2007, 04:09 PM
maybe it's only a suggestion for future releases: but is it possible to see the links to new entries and new ratings/comments in the /search.php?do=getnew page?
I'd not tried to integrate LDM with VB's search, which is a quite fearful bit of code. Maybe I'll take another look.
EDIT: i'd like to open a thread where we can give links to our LDM pages, and have suggestion about how incorporating it with our forum!!is it possibile? and where?
I'm very happy for you to create an account on the wiki (http://www.eirma.org/wikis) and add a link to your site /remarks about integration there
minimalize
07-18-2007, 08:56 PM
I've taken a quick look at the 2nd mod - it will not work in its current form with LDM - I will think about this and try to suggest an answer.
hey andrew,
have you looked at this? is it possible. Its really important for me that i get this running.
AndrewD
07-19-2007, 04:14 AM
hey andrew,
have you looked at this? is it possible. Its really important for me that i get this running.
Install the attached plugin (vb/admincp/plugins and products/download and upload plugins)
It will integrate external urls and local entries that do not have recognised mimetypes into the "External Links Framed" hack.
Ipuck
07-19-2007, 04:16 AM
I added the extra to auto create a thread when I enter a new thread, but I can't get it to work. I'm a bit slow ;-). Could you explain it with more details. When I add a link what do I do to make a thread?
Thanks AndrewD
PS I did created an special forum just for the new entries and when I created the link I select that forum, but nothing happen.
minimalize
07-19-2007, 12:25 PM
Install the attached plugin (vb/admincp/plugins and products/download and upload plugins)
It will integrate external urls and local entries that do not have recognised mimetypes into the "External Links Framed" hack.
oh.. wow. thanks a lot to you andrew! I will try it the next few hours! Is there a way to donate to you?
EDIT: mh.. i didn?t work.. i installed the plugin but there?s no change with the existing an new external links.
AndrewD
07-19-2007, 12:46 PM
oh.. wow. thanks a lot to you andrew! I will try it the next few hours! Is there a way to donate to you?
I just realised that the plugin is designed to work with version 2.2.8, and will not work correctly with 2.2.7 unless you make a small edit to the release code. I'm not sure which version you are running.
If you are using 2.2.7, edit the file local_links.php, which is in your main forums directory.
find (at line 2194)
// About to start - last chance to change things...
($hook = vBulletinHook::fetch_hook('ldm_download_begin')) ? eval($hook) : false;
and move these two line up, so that they are just before line 2124
// Access as a regular link if:
// in force redirect mode
// full url and not a known mimetype
// qualified mimetype (a la Sourceforge)
// local file, not a known mimetype, and neither local_file_root nor local_file_root_prefix is set
minimalize
07-19-2007, 01:42 PM
ahhh.. now it works. many thanks to you andrew!
minimalize
07-19-2007, 02:54 PM
ok. i´v got another question. i have im my ldm categories like "show all" , "artist" ....
The "show all" categorie should be free to everyone. The other categories should only be shown to a special usergroup. When i put the switch "can_acces.." only to those usergroup, others will be still able to take a look at these categorie. is there a possibility to hide unauthorized categories?
AndrewD
07-19-2007, 03:03 PM
ok. i?v got another question. i have im my ldm categories like "show all" , "artist" ....
The "show all" categorie should be free to everyone. The other categories should only be shown to a special usergroup. When i put the switch "can_acces.." only to those usergroup, others will be still able to take a look at these categorie. is there a possibility to hide unauthorized categories?
You need to use the forums based permissions system in LDM.
Associate the restricted category with a VB forum with the desired access permissions, and make sure you don't give other users 'can_see_protected_links_on_portal' permission.
See http://www.eirma.org/wikis/index.php/Forum-based_Access_Control
AndrewD
07-19-2007, 03:54 PM
I added the extra to auto create a thread when I enter a new thread, but I can't get it to work. I'm a bit slow ;-). Could you explain it with more details. When I add a link what do I do to make a thread?
Thanks AndrewD
PS I did created an special forum just for the new entries and when I created the link I select that forum, but nothing happen.
You can test things as follows:
#1 install autocreate plugin
#2 go to vb/admin/options/Cookies and HTTP Header Options and set Remove Redirection Message Pages to No, so that you can see what's going on.
#3 go to your LDM admin/settings page and make sure that it's active. Other settings are not that important. Turn off moderation for the time being.
#4 create a test LDM category and give it an associated forum which is a) a real forum (not a category or link) and b) open for posting new threads.
#5 create an entry in that category. As you are doing so, check that its associated forum is the one you've just defined in #4
You should get an 'accepted' message which tells you that the entry has also been posted in the forum.
Once you know that it's working correctly, return the VB and LDM settings as you want them.
Ipuck
07-19-2007, 04:31 PM
Thanks for your time AndrewD I really appreciate your time. I'll give it a try and let you.
Thanks.
Rouzbeh1
07-19-2007, 04:35 PM
hi Andrew
is it possible to embed pdf files in a popup page(with fix size), instead of downloading them?
thanks
Ipuck
07-19-2007, 04:58 PM
It worked perfectly, :-)
Two more questions:
1. Associating the category to the forum, would that have any effect in the allowance? Or it is just view permission?
2. I have 6 main categories, can I still edit those categories to associate with a forum or do I have to make a new category?
AndrewD
07-19-2007, 05:06 PM
It worked perfectly, :-)
Two more questions:
1. Associating the category to the forum, would that have any effect in the allowance? Or it is just view permission?
2. I have 6 main categories, can I still edit those categories to associate with a forum or do I have to make a new category?
Associating categories and entries with forums is used mainly to pick up viewing permissions and handle the autothread creation.
You can always edit a category and reassociate it with a new forum. If you tick the checkbox 'also update entries' then the entries will also use the forum for their permissions. However, existing entries will not trigger the autocreate mechanism - that only happens with new entries.
CamJM
07-20-2007, 05:19 AM
Having a permissions issue.
I'd like to have all administrators able to alter categories but at the moment only the admin who created the category is allowed to alter it.
How can I change this?
AndrewD
07-20-2007, 05:22 AM
Having a permissions issue.
I'd like to have all administrators able to alter categories but at the moment only the admin who created the category is allowed to alter it.
How can I change this?
This should be the *can_edit_category* permission. Is it not working correctly?
i have an other problem, the last i hope!!
a lot of users upload the files on esternal servers (like rapidshare, yousendit...) so when they add a link to their song there is something like: http://www.site.com/vaskvjasnvkjanv345/
now, when they add this link as an URL, LDM will show anything..because it doesn't recognise the filetype!
is there a way to get rid of this problem?
thanks! :)
AndrewD
07-20-2007, 04:09 PM
i have an other problem, the last i hope!!
a lot of users upload the files on esternal servers (like rapidshare, yousendit...) so when they add a link to their song there is something like: http://www.site.com/vaskvjasnvkjanv345/
now, when they add this link as an URL, LDM will show anything..because it doesn't recognise the filetype!
is there a way to get rid of this problem?
thanks! :)
Do you mean that you want LDM to show a filetype icon? Normally, this is determined automatically. I suppose one could add an option for the user to select manually, but there could be a security problem if someone tried to fool users. I suppose that the sensible approach would be to allow a manual filetype selection only if the entry has not filetype?
[QUOTE=AndrewD;1296686 I suppose that the sensible approach would be to allow a manual filetype selection only if the entry has not filetype?[/QUOTE]
i think that this could be the best option...!
AndrewD
07-21-2007, 03:33 PM
i think that this could be the best option...!
:up: Thanks. I will make a note of this. It requires a change to the database structure, and I think I am too far into the testing of version 2.2.8 to make the change in this release.
Rouzbeh1
07-21-2007, 09:29 PM
hi again,
is this a bug?
i have imported ldm_tot.module, it shows 740 MB. i have downloaded something to test it, it didn't change. do i do something wrong?
Alfa1
07-21-2007, 10:30 PM
This add-on makes me wonder if this can somehow be combined with LDM:
Radio Stations (https://vborg.vbsupport.ru/showthread.php?t=152037)
It strikes me as strange to install this mod, while I already have LDM for playing music. But a radio player is a great addition.
AndrewD
07-22-2007, 05:15 AM
hi again,
is this a bug?
i have imported ldm_tot.module, it shows 740 MB. i have downloaded something to test it, it didn't change. do i do something wrong?
If the file was not a recognised 'download', i.e. its filetype isn't in the vb attachments table, then the current LDM code doesn't record the bytes transferred, so the vba module won't list it. The logic has been that transfers of 'links' are not managed by LDM - they are processed using browser redirects.
ItsBlack raised a similar point recently concerning 'allowances'. I can see the point, so the final version of 2.2.8 will record bytes transferred in these situations:
- the entry is a 'download', i.e. has a recognised filetype (e.g. http:// sitename // file.pdf), or
- the entry is a file on the local server, i.e. does not have a complete url (e.g. /file.xyz)
In both these cases, your web server is carrying the load of transferring the file, so the logic is to record that transfer.
Another possibility is to try to work out the size of all transfers, regardless of filetype or location. This is not always possible, and am not sure that it is sensible. I'd appreciate comments.
AndrewD
07-22-2007, 05:30 AM
This add-on makes me wonder if this can somehow be combined with LDM:
Radio Stations (https://vborg.vbsupport.ru/showthread.php?t=152037)
It strikes me as strange to install this mod, while I already have LDM for playing music. But a radio player is a great addition.
The Radio Stations hack is nicely done - works straight off with a clean interface. LDM will also play streamed radio - this is one of the standard tests. I could imagine a couple of ways of interfacing:
a) provide an extra to read a Radio Stations channel list from its xml file (in the Radio Stations release, this is the file default-radio-stations.xml)
b) provide an extra that will 'mirror' an installed Radio Stations database into a corresponding LDM category structure.
which do you have in mind?
i think i've found a bug too..
with autocreat threads, it paste into the topics also the comments.
and it's ok still here.
but when i have comments with the use of "return" LDM will not display the words on a new row, but it add something like this \r\n\r\
Example.
if in ldm the comment is this:
commentoi
invio1
invio2
in the autocreated thread the commenti is this:
commentoi\r\ninvio1\r\n\r\ninvio2
do you know why?
tnx!
AndrewD
07-22-2007, 10:32 AM
i think i've found a bug too..
with autocreat threads, it paste into the topics also the comments.
and it's ok still here.
but when i have comments with the use of "return" LDM will not display the words on a new row, but it add something like this \r\n\r\
Example.
if in ldm the comment is this:
in the autocreated thread the commenti is this:
do you know why?
tnx!
I recall that bug in version 2.2.7, and it will be fixed in the release candidate of 2.2.8 (it's actually fixed in the beta, but there's a new bug in that which stops autocreation of posts for comments working at all :o)
Sorry
Rouzbeh1
07-22-2007, 12:41 PM
If the file was not a recognised 'download', i.e. its filetype isn't in the vb attachments table, then the current LDM code doesn't record the bytes transferred, so the vba module won't list it. The logic has been that transfers of 'links' are not managed by LDM - they are processed using browser redirects.
ItsBlack raised a similar point recently concerning 'allowances'. I can see the point, so the final version of 2.2.8 will record bytes transferred in these situations:
- the entry is a 'download', i.e. has a recognised filetype (e.g. http:// sitename // file.pdf), or
- the entry is a file on the local server, i.e. does not have a complete url (e.g. /file.xyz)
In both these cases, your web server is carrying the load of transferring the file, so the logic is to record that transfer.
Another possibility is to try to work out the size of all transfers, regardless of filetype or location. This is not always possible, and am not sure that it is sensible. I'd appreciate comments.
the file types i have are mostly (99.5%) .zip files which are in vb attachments table.
the other file types are pdf and wmv. these both are on the table too.
about the allowance thing, there are 2 allowance systems for attachments. one of them is for vb attachments and the other one is from LDM. but i don't know which one was meant by itsblack....
my suggestion: all files get a file size allocated when submitting entry, would it be possible to read this size when a user clicks to download that file? just like hit recording. it's just one more query. (as far as i can understand!!) :D but you are the specialist ;)
one more thing, does LDM reset the bytes transfered when i delete hits for a period of time? i haven't tested this...
Alfa1
07-22-2007, 01:13 PM
The Radio Stations hack is nicely done - works straight off with a clean interface. LDM will also play streamed radio - this is one of the standard tests. I could imagine a couple of ways of interfacing:
a) provide an extra to read a Radio Stations channel list from its xml file (in the Radio Stations release, this is the file default-radio-stations.xml)
b) provide an extra that will 'mirror' an installed Radio Stations database into a corresponding LDM category structure.
which do you have in mind?
Option A would be great.
AndrewD
07-22-2007, 01:40 PM
the file types i have are mostly (99.5%) .zip files which are in vb attachments table.
the other file types are pdf and wmv. these both are on the table too.
about the allowance thing, there are 2 allowance systems for attachments. one of them is for vb attachments and the other one is from LDM. but i don't know which one was meant by itsblack....
my suggestion: all files get a file size allocated when submitting entry, would it be possible to read this size when a user clicks to download that file? just like hit recording. it's just one more query. (as far as i can understand!!) :D but you are the specialist ;)
one more thing, does LDM reset the bytes transfered when i delete hits for a period of time? i haven't tested this...
The code generally knows the size - it just wasn't storing the bytes transferred in the downloads table unless it actively managed the transfer itself. I'm taking another look at that. itsblack was also talking about the LDM system.
Yes, LDM resets the bytes transferred when you clean up the hits table.
Alfa1
07-22-2007, 01:50 PM
I am integrating the LDM navbar with the standard vb navbar, by placing the links in quick links and in Moderator tools (https://vborg.vbsupport.ru/showthread.php?t=126649&highlight=navbar). That goes well so far. But I wonder about the edit category link.
The link normally is local_links.php?action=editcat&catid=X where X is the category ID.
This doesn't work because it needs a conditional to find the ID of the category that one is in.:
<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat">Edit Category</a></td></tr></if>
What code can I use to fetch the correct category/catid?
If you like I will post the code for this navbar integration, so that other members can enjoy this as well.
AndrewD
07-22-2007, 03:49 PM
I am integrating the LDM navbar with the standard vb navbar, by placing the links in quick links and in Moderator tools (https://vborg.vbsupport.ru/showthread.php?t=126649&highlight=navbar). That goes well so far. But I wonder about the edit category link.
The link normally is local_links.php?action=editcat&catid=X where X is the category ID.
This doesn't work because it needs a conditional to find the ID of the category that one is in.:
<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat">Edit Category</a></td></tr></if>
What code can I use to fetch the correct category/catid?
If you like I will post the code for this navbar integration, so that other members can enjoy this as well.
If the user is viewing a category, the variable $viewcatid is set to the category id and is positive. Alternatively, you can look at $vbulletin->GPC['catid']
I recall that bug in version 2.2.7, and it will be fixed in the release candidate of 2.2.8 (it's actually fixed in the beta, but there's a new bug in that which stops autocreation of posts for comments working at all :o)
Sorry
thanks, so i wait for the new release! :D
CamJM
07-23-2007, 02:54 AM
This should be the *can_edit_category* permission. Is it not working correctly?
Yeah i guess it's not working because the can_edit_category permission is ticked for administrators but I can't edit a category created by the other admin.
AndrewD
07-23-2007, 04:23 AM
Yeah i guess it's not working because the can_edit_category permission is ticked for administrators but I can't edit a category created by the other admin.
I don't understand. I've just tested this, with both versions 2.2.7 and 2.2.8.
admin user 1 creates category
admin user 2 edits that category
Only difference is that in version 2.2.7, admin user 2 cannot change the name of the user who 'owns' the category, but can otherwise edit it.
I must be missing something - do you want me to take a look at your site?
tamborinegal
07-23-2007, 04:46 AM
Hi Andrew,
I was wondering if there is any way to link from the postbit to all the users submissions as you can on the users profile. I know it could be done using something like local_links_search.php?action=show&userid=xxxx&sort=d - but can it be done using a conditional so that every user doesn't get this showing in their postbit. Most of my members don't have links added in yet and it would just go to a blank page... Is there a way doing this?
Thanks for any help,
Cheers
Clancy
AndrewD
07-23-2007, 05:12 AM
Hi Andrew,
I was wondering if there is any way to link from the postbit to all the users submissions as you can on the users profile. I know it could be done using something like local_links_search.php?action=show&userid=xxxx&sort=d - but can it be done using a conditional so that every user doesn't get this showing in their postbit. Most of my members don't have links added in yet and it would just go to a blank page... Is there a way doing this?
Thanks for any help,
Cheers
Clancy
Every day an interesting challenge :)
To avoid putting the link in everyone's postbits, this will currently need a new 'extra', which will have to check the database to see who has added entries to LDM. I'll have to think whether there is an efficient way of doing this, so that the database search is done once per thread not for every postbit.
tamborinegal
07-23-2007, 05:42 AM
Every day an interesting challenge :)
:) Wouldn't want you staying idle Andrew.
To avoid putting the link in everyone's postbits, this will currently need a new 'extra', which will have to check the database to see who has added entries to LDM. I'll have to think whether there is an efficient way of doing this, so that the database search is done once per thread not for every postbit.
It was just an idea to promote that part of my forum a bit more. Not everyone checks out profile pages, but everyone sees the postbit, I just thought/was hoping it might have been something easy like a conditional.
Thanks for the reply,
Clancy
Rouzbeh1
07-23-2007, 07:47 PM
hi Andrew,
is it possible to give moderators the permission to choose Parent forum, when they add a category without giving them too much permissions?
AndrewD
07-24-2007, 04:28 AM
hi Andrew,
is it possible to give moderators the permission to choose Parent forum, when they add a category without giving them too much permissions?
The *can_set_permissions* permission determines whether the user can do this or not. The description on the admin/permissions page is slightly misleading - it does not give the user general admin privs, although I imagine it gives more powers than you want.
One approach is to edit the addnewcat template. Look for lines that contain
<if condition="$links_permissions['can_set_permissions']">
There are four in total in this template. The second encloses a sequence starting
<if condition="$links_permissions['can_set_permissions']">
<tr>
<td class="alt1">
<strong>$vbphrase[ll_forumparent]</strong>
<br /><span class="smallfont">
$curforumtitle<br />
$vbphrase[ll_forumparent_text]
</span>
</td>
You could change this conditional test, e.g.
<if condition="$links_permissions['can_set_permissions'] or $links_permissions['can_moderate_links']">
Alfa1
07-24-2007, 06:16 AM
If the user is viewing a category, the variable $viewcatid is set to the category id and is positive. Alternatively, you can look at $vbulletin->GPC['catid']
So do I understand you correct that if I place this code in my drop down, then the link will cause editing of the viewed category?<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
AndrewD
07-24-2007, 06:27 AM
So do I understand you correct that if I place this code in my drop down, then the link will cause editing of the viewed category?<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
As I understood, you only wanted this to show if the user is currently in a category, so I think (without testing it) that you need
<if condition="is_member_of($bbuserinfo,5,6,7) and $viewcatid>0"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
Alfa1
07-24-2007, 09:49 AM
Thanks! That works great. I applied the same to addcat and put this in a link to in vb's navbar as well. I have now added all LDM links in the vb navbar, except that I have to find a search integration solution. I requested a search integration solution here (https://vborg.vbsupport.ru/showthread.php?t=153231)
How can I remove LDM's navbar?
AndrewD
07-24-2007, 12:29 PM
Thanks! That works great. I applied the same to addcat and put this in a link to in vb's navbar as well. I have now added all LDM links in the vb navbar, except that I have to find a search integration solution. I requested a search integration solution here (https://vborg.vbsupport.ru/showthread.php?t=153231)
How can I remove LDM's navbar?
Easiest is to edit the links_header template, find the lines:
$header
$navbar
<if condition="$show['popups']">
<div align="center">
and change to
$header
$navbar
<if condition="$show['popups']">
<div align="center" style="display:none">
Alfa1
07-24-2007, 02:42 PM
Yes, that works well. Thank you.
Rouzbeh1
07-25-2007, 04:49 PM
The *can_set_permissions* permission determines whether the user can do this or not. The description on the admin/permissions page is slightly misleading - it does not give the user general admin privs, although I imagine it gives more powers than you want.
One approach is to edit the addnewcat template. Look for lines that contain
<if condition="$links_permissions['can_set_permissions']">
There are four in total in this template. The second encloses a sequence starting
<if condition="$links_permissions['can_set_permissions']">
<tr>
<td class="alt1">
<strong>$vbphrase[ll_forumparent]</strong>
<br /><span class="smallfont">
$curforumtitle<br />
$vbphrase[ll_forumparent_text]
</span>
</td>
You could change this conditional test, e.g.
<if condition="$links_permissions['can_set_permissions'] or $links_permissions['can_moderate_links']">
thank you, will try;)
one more suggestion: is it possible to make vba modules read thumbs from ldm_thumb folder (local storage) instead of generating them each time?
for security reasons, i have my covers ftp on a separate server, and i don't want covers fail to display IF that server is down....
thanks :)
minimalize
07-25-2007, 08:51 PM
Hey Andrew,
i?ve got another question. I hope it?s my last one :)
When i add a new link there is a select field where i can select the categorie. Is there an ability to get the main categories bold?
AndrewD
07-26-2007, 04:55 AM
Hey Andrew,
i?ve got another question. I hope it?s my last one :)
When i add a new link there is a select field where i can select the categorie. Is there an ability to get the main categories bold?
You mean the categories that are at the bottom of the tree (which have no parents)?
Edit the links_addnewlin_catselect_multi template (vb/admin/styles) and replace the current template with the following:
<if condition="$select_stage==1"> <select class="select" name="$list_name" id="$list_id" multiple="multiple" size="5" style="width:400px; height:100px;">
<optgroup label="$vbphrase[ll_parcatslabel]">
</if><if condition="$select_stage==2"> <option value="$catid"<if condition="$catsel==1"> selected="selected"</if> <if condition="$disabled">disabled="disabled"</if> <if condition="$class">class="$class"</if> <if condition="!$prepend">style="font-weight: bold;"</if>
>$catname<if condition="$catclosed"> [$vbphrase[ll_catclosed]]</if></option>
</if><if condition="$select_stage==3">
</optgroup>
</select>
</if>
In case you're intersted, the change is adding the conditional test
<if condition="!$prepend">style="font-weight: bold;"</if>
AndrewD
07-26-2007, 05:59 AM
thank you, will try;)
one more suggestion: is it possible to make vba modules read thumbs from ldm_thumb folder (local storage) instead of generating them each time?
for security reasons, i have my covers ftp on a separate server, and i don't want covers fail to display IF that server is down....
thanks :)
Yes, good suggestion.
I think it is possible provided the vba module is set up to use the same size thumb as the linkbit.
Edit the adv_portal_custom_ldm_new_thumb_one template.
Replace the current template by
<tr>
<td align="center" <if condition="$links_defaults[cellsize]">width="$links_defaults[cellsize]"</if>>
<if condition="$linkimg">
<a href="$vboptions[bburl]/$LINKS_SCRIPT.php?catid=$linkcatid&linkid=$linkid" title="$title">
<img src="$vboptions[bburl]/$RESIZE_SCRIPT.php?linkid=$linkid<if condition="$linkimgthumbsize!=$links_defaults[link_imagesize]">
&size=$links_defaults[link_imagesize]</if>" border="0" alt="$linkcatname, $linkname" />
</a>
<else />
<span class="smallfont">$linktypebit<if condition="$linkstatus<=0">$linkname<else />$linkurllink</if></span>
</if>
</td>
</tr>
The modification is the test on linkimgthumbsize:
<if condition="$linkimgthumbsize!=$links_defaults[link_imagesize]">
&size=$links_defaults[link_imagesize]</if>
I think that this will do the job provided the thumb is already cached. I will look at the code to see if it is possible at this point in LDM also to cache the thumb if it is being generated on the fly.
Let me know if that works ok.
Rouzbeh1
07-26-2007, 08:17 AM
thank you Andrew,
worked perfectly.
Phalynx
07-26-2007, 11:48 AM
I got the following message by importing product:
Database error in vBulletin 3.6.7:
Invalid SQL:
ALTER TABLE local_linksadmin
CHANGE sequence sequence INT( 10 ) NOT NULL;
MySQL Error : Unknown column 'sequence' in 'local_linksadmin'
I'm driving three boards, only on this one the error occurs. Using post-2 of LDM227.
The table exists, but contains only these columns: adminid settingname setting
This is a fresh and clean install, DB is empty.
EDIT:
I removed local_linksadmin and local_linkscat manuelly and run the import again, this time without error.
maybe it's a stupid question, but if i want to modify $links[hot] and $links[new] where do i have to go
thank you!
AndrewD
07-26-2007, 01:52 PM
maybe it's a stupid question, but if i want to modify $links[hot] and $links[new] where do i have to go
thank you!
$links[hot] and $links[new] are used in the patch-forumhome-thumbs and patch-forumhome-newlinks extras. In both cases, the variables are assigned within the corresponding plugin, i.e. newlinks-plugin.xml or forumhome-thumbs-plugin.xml. They contain the linkbits to be displayed.
The code for these plugins is substantially rewritten in version 2.2.8 as part of the standardisation process concerning LDM extras' admin settings.
AndrewD
07-26-2007, 02:02 PM
I got the following message by importing product:
I'm driving three boards, only on this one the error occurs. Using post-2 of LDM227.
The table exists, but contains only these columns: adminid settingname setting
This is a fresh and clean install, DB is empty.
EDIT:
I removed local_linksadmin and local_linkscat manuelly and run the import again, this time without error.
Extremely strange - sounds as if the first install gave up in the middle of table creation. I don't think this problem has been reported before.
Indeed, the installer is smart enough to detect missing tables and recreate them.
Phalynx
07-26-2007, 02:46 PM
Andrew, I see a field named linkimg. Is it possible to upload a picture for every download?
Also, I'm really waiting for the release that introduces custom fields :>
AndrewD
07-26-2007, 02:54 PM
Andrew, I see a field named linkimg. Is it possible to upload a picture for every download?
Also, I'm really waiting for the release that introduces custom fields :>
Yes, if you enable the LDM setting link_imagesize, each entry can have an associated picture. If you also enable uploads, then the pictures can also be uploaded. In each case, the 'add entry' form expands to include the features that have been enabled and the current user is authorised to access.
If you also upload the jukebox-enhancements extra (or to be more specific, if you upload the getid3 library included in that extra), mp3s will automatically be imaged with an embedded cover art.
I'm also waiting for custom fields - something I've kept putting off because I want to do it properly
chronoshift
07-26-2007, 08:22 PM
oh man this plugin is AMAZING! I think this is my first post on this board, everything else I've been able to figure out but this one is a little tricky:
For flash-sites, instead of linking to the jukebox where the .flv file is embedded, is there a way for the linkbit to show the direct embed for the flash-sites where an uploaded thumbnail would've been placed otherwise? So that it looks like a thumbnail but you can press play on it.
Whitey193
07-26-2007, 09:47 PM
I've tried searching this forum to no avail so I'm now asking for help.
I've installed it (2.2.7) and set up the relevant directories (I think) and have sucessfully added a navbar link and uploaded a file which as the administrator I can view no problems.
When I try and access the category that it's uploaded to I get this line which gives the http 404 Not Found
http://www.revolutionsoldiers.com/forum/local_links/links/1
If i click on the what's new form the drop down box, no probs and I can view the link and the file.
Now.. If I change user to a registered user who has access to the category again the main section doesn't work and when I click on the what's new and then click on the link i get this link.
http://www.revolutionsoldiers.com/forum/local_links/jump/2/1
What have I done wrong ?
From looking at a post earlier I've turned off the SEO..
Help
Whitey.. :eek:
AndrewD
07-27-2007, 03:30 AM
oh man this plugin is AMAZING! I think this is my first post on this board, everything else I've been able to figure out but this one is a little tricky:
For flash-sites, instead of linking to the jukebox where the .flv file is embedded, is there a way for the linkbit to show the direct embed for the flash-sites where an uploaded thumbnail would've been placed otherwise? So that it looks like a thumbnail but you can press play on it.
This is not currently possible, but it should be a minor (:)) change/extension to the flash-sites extra to make it so. Let me think about it. Will give you a reply soon.
AndrewD
07-27-2007, 03:33 AM
I've tried searching this forum to no avail so I'm now asking for help.
I've installed it (2.2.7) and set up the relevant directories (I think) and have sucessfully added a navbar link and uploaded a file which as the administrator I can view no problems.
When I try and access the category that it's uploaded to I get this line which gives the http 404 Not Found
http://www.revolutionsoldiers.com/forum/local_links/links/1
If i click on the what's new form the drop down box, no probs and I can view the link and the file.
Now.. If I change user to a registered user who has access to the category again the main section doesn't work and when I click on the what's new and then click on the link i get this link.
http://www.revolutionsoldiers.com/forum/local_links/jump/2/1
What have I done wrong ?
From looking at a post earlier I've turned off the SEO..
Help
Whitey.. :eek:
The urls are only generated in that format when the LDM 'search engine friendly' option is switched on - normally they take the form local_links.php?action=jump and ?linkid=N, etc. Suggest you check again on the LDM admin settings page - disable search engine friendly.
apokphp
07-27-2007, 06:22 AM
nvm, found the answer. Delete me.
chronoshift
07-27-2007, 11:52 AM
This is not currently possible, but it should be a minor (:)) change/extension to the flash-sites extra to make it so. Let me think about it. Will give you a reply soon.
I'd really appreciate it! I tried adding $playerbit_player to the linkbit template but that didn't work ;/
Rouzbeh1
07-27-2007, 03:49 PM
hi Andrew,
could you please help me to generate a LDM MAP to submit in google webmaster tools? or is there already a tool for doing this?
thanks in advance
obmob
07-27-2007, 05:33 PM
I'm missing something... when i add a new link to the db, my categories are re-sorted, is there a way to maintain the order? :eek:
Thanks
chronoshift
07-27-2007, 11:10 PM
when using the flash-sites addon, photobucket vids don't play :(
itsblack
07-28-2007, 06:25 AM
I'm missing something... when i add a new link to the db, my categories are re-sorted, is there a way to maintain the order? :eek:
Thanks
You can edit the catetory, then assign the display order for the category.
itsblack
07-28-2007, 09:39 AM
Hi Andrew, I hope you can set the default rate option with "none", so that the users must choose a rate option manually when they submitt a rate/comment. For now the default option is "1 star", some users of mine often forget changing the rate option when they make a comment.
PS: It seems there is a bug when I edit the comment/rate. The rate option can not be changed.
Best regards.
itsblack
07-28-2007, 11:12 AM
Another request, Andrew, can you create a page that displays the newst comments together? Sometimes I just don't know which item has new comment.
Got blank page after run local_links_kill.php and I only can access admincp
Any idea how to fix it?
AndrewD
07-28-2007, 03:42 PM
Got blank page after run local_links_kill.php and I only can access admincp
Any idea how to fix it?
What do you mean, a blank page? What are you trying to access?
local_links_kill.php physically removes your LDM database tables, so you run it when you really want to deinstall it.
obmob
07-28-2007, 04:05 PM
You can edit the catetory, then assign the display order for the category.So true, so true! Thanks. :p
Andrew, Andrew!!!
Maybe there could be a way to order all categories at once, similar to the way forums are sorted in vbulletin. Of course, for future releases. :D
apokphp
07-28-2007, 06:02 PM
Something screwy with the "What's hot" and "What's New" links on the main page.
http://www.onlinedebate.net/forums/local_links.php
When you click on "what's new", there's a 404 error. The url it takes you to is:
http://www.onlinedebate.net/forums/%5BARG:4%20UNDEFINED%5D.php?catid=-8
When you click on "what's hot", anohter 404 error. The url for that one is:
http://www.onlinedebate.net/forums/%5BARG:4%20UNDEFINED%5D.php?catid=-7
Did I miss a setting or something?
The url for both of them when I hover over them, contains the code: /forums/[ARG:4 Undefined].php?catid=-# (where -# is either -7 or -8).
AndrewD
07-29-2007, 06:03 AM
Something screwy with the "What's hot" and "What's New" links on the main page.
http://www.onlinedebate.net/forums/local_links.php
When you click on "what's new", there's a 404 error. The url it takes you to is:
http://www.onlinedebate.net/forums/%5BARG:4%20UNDEFINED%5D.php?catid=-8
When you click on "what's hot", anohter 404 error. The url for that one is:
http://www.onlinedebate.net/forums/%5BARG:4%20UNDEFINED%5D.php?catid=-7
Did I miss a setting or something?
The url for both of them when I hover over them, contains the code: /forums/[ARG:4 Undefined].php?catid=-# (where -# is either -7 or -8).
In order to get this, you must have some some other code (plugin, etc) installed which is interacting with LDM, redefining either the constant SEARCH_SCRIPT or the variable $SEARCH_SCRIPT. If we can find out which one, then I can see how to get round the problem.
AndrewD
07-29-2007, 07:48 AM
Hi Andrew, I hope you can set the default rate option with "none", so that the users must choose a rate option manually when they submitt a rate/comment. For now the default option is "1 star", some users of mine often forget changing the rate option when they make a comment.
PS: It seems there is a bug when I edit the comment/rate. The rate option can not be changed.
Best regards.
For 2.2.8, I've put in a javascript test - when *must_comment_and_rate* is set, the submit button on the form only becomes active when the user selects a rating.
I can't reproduce your bug report. Are you sure you are clicking the 'submit' button rather than the 'return' button? (Return takes you back to the main category page but does not process the comment/rating form. Submit processes the form, but leaves you in the view comments and ratings page.)
itsblack
07-29-2007, 09:05 AM
For 2.2.8, I've put in a javascript test - when *must_comment_and_rate* is set, the submit button on the form only becomes active when the user selects a rating.
I can't reproduce your bug report. Are you sure you are clicking the 'submit' button rather than the 'return' button? (Return takes you back to the main category page but does not process the comment/rating form. Submit processes the form, but leaves you in the view comments and ratings page.)
I've set "must_comment_and_rate" to yes, but even so the submit button is active without select a rating. And the default rating option is "1 star". I tested it for several times: When I open an item, I just click "rate/comment", then click "submit" buuton, without doing anything, neither writting a comment, nor selecting a rating, but LDM will still accept the submitting.
I don't know why it doesn't work as you said. So I still suggest adding a "none" rating option, I guess it can simplify the process mechanism.
For the bug I reported, please forgive me, I forgot something. It is when I editing a comment/rating from other member, I can edit the comment, but can not change the rating.
AndrewD
07-29-2007, 09:17 AM
I've set "must_comment_and_rate" to yes, but even so the submit button is active without select a rating. And the default rating option is "1 star". I tested it for several times: When I open an item, I just click "rate/comment", then click "submit" buuton, without doing anything, neither writting a comment, nor selecting a rating, but LDM will still accept the submitting.
I don't know why it doesn't work as you said. So I still suggest adding a "none" rating option, I guess it can simplify the process mechanism.
For the bug I reported, please forgive me, I forgot something. It is when I editing a comment/rating from other member, I can edit the comment, but can not change the rating.
Sorry, I was unclear - in the final 2.2.8 I will make this change to the submit button.
I'll look for the bug you describe in edit ratings.
aryapsh
07-29-2007, 09:36 AM
andew i have sent you a message my juke box is not working can you help me?
itsblack
07-29-2007, 09:46 AM
Another request, Andrew, can you create a page that displays the newst comments together? Sometimes I just don't know which item has new comment.
I'm sorry to disturb you again, Andrew, but please think about this request.
AndrewD
07-29-2007, 09:59 AM
I'm sorry to disturb you again, Andrew, but please think about this request.
I'd noticed. You know that there's a vba module to do this? I assume you don't want to use that.
AndrewD
07-29-2007, 10:00 AM
andew i have sent you a message my juke box is not working can you help me?
I visited your site and registered my username, saw that you're getting blank pages thrown up when launching the jukebox. Is that the problem?
If so, can you upgrade my account (andrewd) to full vb admin.
thanks.
aryapsh
07-29-2007, 10:23 AM
I visited your site and registered my username, saw that you're getting blank pages thrown up when launching the jukebox. Is that the problem?
If so, can you upgrade my account (andrewd) to full vb admin.
thanks.
yes this is the problem your username is andrewd right? you are admin now
itsblack
07-29-2007, 10:30 AM
I'd noticed. You know that there's a vba module to do this? I assume you don't want to use that.
No, I don't want to use it in the vba page. It will be better add a link in the "Show" drop down menu.
PlymWS
07-30-2007, 10:03 AM
I've just noticed that on my 2.2.7 install I can access all the administration options except the Permissions settings. Any idea why this would be ? I must have been able to access it on initial setup so I can't see why I can't access it now ?!?
AndrewD
07-30-2007, 10:39 AM
I've just noticed that on my 2.2.7 install I can access all the administration options except the Permissions settings. Any idea why this would be ? I must have been able to access it on initial setup so I can't see why I can't access it now ?!?
I can't see anything obvious.
When you say you can't access - what precisely is happening? Do you see the permission link on the admin pages, do you get an error message, etc?
Happy to take a look at your site if necessary.
PlymWS
07-30-2007, 10:52 AM
If I click permissions I get the page loading spinny thing ( Firefox ) but the page does not display. It just times out. The files are all there and have correct permissions. I only need to access it as I've added some new usergroups and need to setup their access rights
AndrewD
07-30-2007, 10:56 AM
If I click permissions I get the page loading spinny thing ( Firefox ) but the page does not display. It just times out. The files are all there and have correct permissions. I only need to access it as I've added some new usergroups and need to setup their access rights
Am happy to take a look - I've not had this problem reported before. If you want me to investigate, send me a PM with details of an admin account.
You might also check whether you can get at the per-category permissions pages by going into any category, edit category, permissions tab - it's basically the same code so it is interesting to see if it behaves the same way or not.
PlymWS
07-30-2007, 11:06 AM
I can get the per-category page up fine. I just can't get the global one up.
AndrewD
07-30-2007, 11:45 AM
I can get the per-category page up fine. I just can't get the global one up.
Try flushing the browser cache or check with IE.
If that fails, go to vb/admincp/vb options/headers and cache/disable gzip, and see if the system is trying to send you an error message.
i have a new question :D
i've noticed that i can't edit uplaoded files.
if i want to modify the file of an entry (maybe i want to upload a new version) i have to delete the old entry and insert a new one.
this is very boring and frustrating for my users, that can't delete entries, so they ask me to remove the old entries. it's also frustrating because they lose also all rates and comments!
so, is it possible to delete an attachment and upload a new one, without having to delete the entry?
tnx!
AndrewD
07-30-2007, 03:11 PM
i have a new question :D
i've noticed that i can't edit uplaoded files.
if i want to modify the file of an entry (maybe i want to upload a new version) i have to delete the old entry and insert a new one.
this is very boring and frustrating for my users, that can't delete entries, so they ask me to remove the old entries. it's also frustrating because they lose also all rates and comments!
so, is it possible to delete an attachment and upload a new one, without having to delete the entry?
tnx!
I had already coded this for uploaded images in 2.2.8 and it makes sense to do the same for uploads in general. I will include in the next (RC) version of 2.2.8.
** Edited - I'm slightly confused. The only thing that you currently can't do during an edit is replace an upload with a url. You can already replace an upload with another. Or am I missing something?
AndrewD
07-30-2007, 03:19 PM
No, I don't want to use it in the vba page. It will be better add a link in the "Show" drop down menu.
This will be included in the RC version of 2.2.8, this week.
apokphp
07-30-2007, 03:32 PM
In order to get this, you must have some some other code (plugin, etc) installed which is interacting with LDM, redefining either the constant SEARCH_SCRIPT or the variable $SEARCH_SCRIPT. If we can find out which one, then I can see how to get round the problem.
Well, can't I just use the code in the drop down menu? That seems to be working just fine. I'm referring to the "Show" dropdown menu of course.
Where can I find the code for "What's New" and "What's Hot"?
Also, on the main page it displays the most popular links. Is there a way to change that to display the highest rated links?
AndrewD
07-30-2007, 04:02 PM
Well, can't I just use the code in the drop down menu? That seems to be working just fine. I'm referring to the "Show" dropdown menu of course.
Where can I find the code for "What's New" and "What's Hot"?
Also, on the main page it displays the most popular links. Is there a way to change that to display the highest rated links?
I'm confused - I thought you said that the What's Hot and What's New on the Show menu were not working?
If you mean by 'main page' the box down the bottom right of the screen, the code for this is in includes/local_links_include.php, routine get_ldm_hitparade. You would have to modify the sql to filter on numrate and sort on totrate/numrate.
The code for What's New and What's Hot is in local_links_search.php.
obmob
07-30-2007, 11:55 PM
Spanish product and phrases... there were several new phrases. ^^,
So... 2.2.8 RC coming soon? :D
benjaminbih
07-31-2007, 02:01 AM
every time i want to change my LDM settings i get this error:
Fatal error: zval::refcount integer overflow detected in /srv/www/vhosts/xyz.net/httpdocs/includes/functions_file.php on line 58
How to fix it ?
AndrewD
07-31-2007, 04:09 AM
every time i want to change my LDM settings i get this error:
Fatal error: zval::refcount integer overflow detected in /srv/www/vhosts/xyz.net/httpdocs/includes/functions_file.php on line 58
How to fix it ?
I don't know how to fix this, because it's an internal php error and I haven't seen it before.
From a quick search on Google, I guess that your site is using php 4?
Please check the entries you are providing for *thumbs_dir* and *upload_dir*. LDM validates these by attempting to create test files in the directories specified. The error you are reporting is connected to that test (actually to the vbulletin function vbmkdir() which sits underneath the test). So maybe something is going wrong there.
Am happy to help further if this does not solve the problem, but will need vb admin access to your site.
AndrewD
07-31-2007, 04:10 AM
Spanish product and phrases... there were several new phrases. ^^,
So... 2.2.8 RC coming soon? :D
Thanks. Very soon, as long as we don't find horrible bugs.
** Edited - I'm slightly confused. The only thing that you currently can't do during an edit is replace an upload with a url. You can already replace an upload with another. Or am I missing something?
maybe there is something i haven't turned on on the LDM admin cp...
where do i have to look?
thanks! :p
AndrewD
07-31-2007, 07:53 AM
maybe there is something i haven't turned on on the LDM admin cp...
where do i have to look?
thanks! :p
With version 2.2.7, if you've got uploads enabled and the user who is editing the entry has permission to upload, then part of the 'Edit Entry' form should look like the attached image.
To replace the exiting upload with another, you simply browse for a new upload.
Does this not work for you?
benjaminbih
07-31-2007, 09:50 AM
I don't know how to fix this, because it's an internal php error and I haven't seen it before.
From a quick search on Google, I guess that your site is using php 4?
Please check the entries you are providing for *thumbs_dir* and *upload_dir*. LDM validates these by attempting to create test files in the directories specified. The error you are reporting is connected to that test (actually to the vbulletin function vbmkdir() which sits underneath the test). So maybe something is going wrong there.
Am happy to help further if this does not solve the problem, but will need vb admin access to your site.
Ok it seems that i fix this with a point before begenning slash.
But a other problem, Jukebox is unable to play mpeg mpg files that are larger, i have a file with 230MB uploaded and on the beginning the strema goes, but it hangs now and a other file with 120MB hangs to.
How to fix this
AndrewD
07-31-2007, 10:00 AM
Ok it seems that i fix this with a point before begenning slash.
But a other problem, Jukebox is unable to play mpeg mpg files that are larger, i have a file with 230MB uploaded and on the beginning the strema goes, but it hangs now and a other file with 120MB hangs to.
How to fix this
You are almost certainly running out of cpu time allowed for the php script.
How are you setting up the urls for the entries - a) are they on your own server and b) do you use a full url or just the local filename. *Much much better* to use local filenames on the local server, otherwise it's expensive for the server to stream the file.
benjaminbih
07-31-2007, 10:19 AM
You are almost certainly running out of cpu time allowed for the php script.
How are you setting up the urls for the entries - a) are they on your own server and b) do you use a full url or just the local filename. *Much much better* to use local filenames on the local server, otherwise it's expensive for the server to stream the file.
a) The files are all uploaded on my server
b) On creating an entry, i use path/file_name like this /uploads/etc/etc/file.mpeg
AndrewD
07-31-2007, 10:34 AM
a) The files are all uploaded on my server
b) On creating an entry, i use path/file_name like this /uploads/etc/etc/file.mpeg
Is your server running in safe mode, and what is the maximum cpu time allowed for a php script (phpinfo/max_execution_time)?
benjaminbih
07-31-2007, 10:46 AM
this are the configs
max_execution_time = 240 ; Maximum execution time of each script, in seconds
max_input_time = 240 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M
safe_mode is off
AndrewD
07-31-2007, 11:09 AM
this are the configs
max_execution_time = 240 ; Maximum execution time of each script, in seconds
max_input_time = 240 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M
safe_mode is off
Then I'm puzzled - this should be quite sufficient. I'll try some experiments at home and see if I can spot anything obvious.
With version 2.2.7, if you've got uploads enabled and the user who is editing the entry has permission to upload, then part of the 'Edit Entry' form should look like the attached image.
To replace the exiting upload with another, you simply browse for a new upload.
Does this not work for you?
yes, my pages are like the photo attached to your post..
but i didn't realize that "file upload" could replace the file...it seems to me that you can add an other file..whell, i'll add a line of text specifing it!
tnx a lot!
AndrewD
07-31-2007, 03:03 PM
yes, my pages are like the photo attached to your post..
but i didn't realize that "file upload" could replace the file...it seems to me that you can add an other file..whell, i'll add a line of text specifing it!
tnx a lot!
Ok, will try to clarify the message
dilbert
08-01-2007, 12:04 AM
This is a really great product, thank you very much!
Two questions.
Categories. What is this? With the mindset of forums, it sounds like a category, with forums to follow. Can there be more than one main category? For instance, I want to have a lot of file download sections, then a few separate image download sections.
Version number. Can the version number be removed?
AndrewD
08-01-2007, 04:01 AM
This is a really great product, thank you very much!
Two questions.
Categories. What is this? With the mindset of forums, it sounds like a category, with forums to follow. Can there be more than one main category? For instance, I want to have a lot of file download sections, then a few separate image download sections.
Version number. Can the version number be removed?
Categories hold entries. Entries are downloads, links to web sites, etc. There can be as many main categories as you wish (within reasonable limits, 32000 in total), and each category can have as many subcategories as required, and so on. (I realise this isn't the way that vb uses the word category.) Every category can have as many entries and subcategories as you want, and every entry can be placed simultaneously in one or many categories.
Version number - You mean the version number (2.2.7) that appears at the right hand side of the LDM navbar? This can be removed with a simple template edit. Edit the links_header template, find the string:
$LDM_environment[lfd_version]
(it appears twice) and replace it by
dilbert
08-01-2007, 10:47 AM
Categories hold entries. Entries are downloads, links to web sites, etc. There can be as many main categories as you wish (within reasonable limits, 32000 in total), and each category can have as many subcategories as required, and so on. (I realise this isn't the way that vb uses the word category.) Every category can have as many entries and subcategories as you want, and every entry can be placed simultaneously in one or many categories.
Version number - You mean the version number (2.2.7) that appears at the right hand side of the LDM navbar? This can be removed with a simple template edit. Edit the links_header template, find the string:
$LDM_environment[lfd_version]
(it appears twice) and replace it by
Thanks for the category explanation. I have it set up as described, I was just looking for a better way to distinguish the two types of downloads I plan to offer.
As for the version number question, I just wanted to make sure it was OK to remove it.
Thanks again!
apokphp
08-01-2007, 06:09 PM
I'm confused - I thought you said that the What's Hot and What's New on the Show menu were not working?
If you mean by 'main page' the box down the bottom right of the screen, the code for this is in includes/local_links_include.php, routine get_ldm_hitparade. You would have to modify the sql to filter on numrate and sort on totrate/numrate.
The code for What's New and What's Hot is in local_links_search.php.
The drop down (Show) menu works fine.
The links in the bottom right of the screen do not.
What is the template name where I can change the links in the bottom right, to be identical with that in the drop down (Show) menu?
I can't mess with sql routines, I know nothing about them. Can't I just change the code in the template to match the url in the drop down (Show) menu? Don't both places result in the same display?
AndrewD
08-02-2007, 04:38 AM
The drop down (Show) menu works fine.
The links in the bottom right of the screen do not.
What is the template name where I can change the links in the bottom right, to be identical with that in the drop down (Show) menu?
I can't mess with sql routines, I know nothing about them. Can't I just change the code in the template to match the url in the drop down (Show) menu? Don't both places result in the same display?
I took a look at your site, and I think I finally understood your question.
Please check your vb/admincp/languages and phrases. I think that you will find that you have modified the phrase "ll_recent" at some time in the past. It should look like this:
{2} new entries {3}since {1}
In an old version of LDM, the phrase had four parameters, something like this:
There have been:<br />· {2} new entries [<span class="smallfont"><a href="{4}.php?catid=-8">what's new</a></span>]<br />· {3} hits [<span class="smallfont"><a href="{4}.php?catid=-7">what's hot</a></span>]<br />during the last {1} days
which on your board has been modified to look something like this
During the last July 2nd, 2007 days:
? 42 new entries [what's new]
? [view] hits [what's hot]
Apologies for being slow on the uptake with this.
dilbert
08-02-2007, 10:28 PM
I guess I don't get how to install a module.
Are CMPS modules as simple as going to CMPS an uploading the module?
When I do, it doesn't seem to work. I get it in the module list with a name of []. I can't edit any of the settings.
AndrewD
08-03-2007, 03:47 AM
I guess I don't get how to install a module.
Are CMPS modules as simple as going to CMPS an uploading the module?
When I do, it doesn't seem to work. I get it in the module list with a name of []. I can't edit any of the settings.
I've seen that problem myself once or twice and I've never worked out why. It seems to go away if you delete the empty module and try again.
Which versions of vba (2 or 3) and LDM (2.2.7 or 2.2.8)? The 2.2.7 vba modules work with vba version 2, and the 2.2.8 modules with both. It should be as simple as importing the .module files through the vba interface.
dilbert
08-03-2007, 10:31 AM
vba 3 / ldm 2.2.8
I get this error when I upload the module:
Warning: unlink(./modules/ldm_new.module): No such file or directory in \admincp\vba_cmps_admin.php on line 3269
AndrewD
08-03-2007, 10:44 AM
vba 3 / ldm 2.2.8
I get this error when I upload the module:
Warning: unlink(./modules/ldm_new.module): No such file or directory in \admincp\vba_cmps_admin.php on line 3269
Does this message repeat when you uninstall/reinstall the module?
dilbert
08-03-2007, 08:45 PM
Does this message repeat when you uninstall/reinstall the module?
Yes. I've tried different modules too, same message.
AndrewD
08-04-2007, 05:44 AM
Yes. I've tried different modules too, same message.
Looking at the vbadvanced code, this message can be generated if va is unable to write in your modules directory Have you checked that it has full write erissions? (ie mode 777 on unix)
AndrewD
08-04-2007, 08:29 AM
Release Candidate version 2.2.8, uploaded 4/8/07.
*Superceded by RC2 *
I have continued to add a few more features planned to become part of the final release and fixed a couple of obscure bugs.
All the usual warnings apply - until this becomes the official release, take care - back everything up and don't use it on a live board, particularly if you want to provide gigabytes of downloads every day. However, I've been using it/developing it for some time and nothing has gone too badly wrong.
Once again, I welcome remarks/test reports/etc.
Important - for test users moving straight from the 2.2.8 alpha
There was a bug in the alpha release which sometimes messed up the userids in a couple of LDM tables. The plugin in the /bugfixes/2.2.8-alpha directory in the release zip will fix this. Install the plugin and visit one of your LDM admin pages to autorun the fix.
Changes from 2.2.8 beta 1 to 2.2.8 RC1
+ Admin
admin/categories/mass edit categories and admin/categories/mass edit links include option to mass edit the display orders
admin/import/export includes facility to download Google-type sitemap of your LDM database; imports/exports can be gzipped
+ Allowances
All files hit on local server count against allowances, even when "links" rather than "Downloads"
+ Add/Edit Entry
Data entry form modified to clarify options to replace existing entry with url or upload
+ Extras
external-links-framed opens external urls in an iframe
import-radiostations imports xml data files prepared using Dream's excellent radiostations hack (vb.org thread 152037)
+ Main page layout
Category information tidied up
Show Latest Ratings menu item added, displays most recently rated entries
+ Ratings
When *must_comment_and_rate* is set, submit button is disabled until user selects a rating
Users who can edit other's comments can also change their ratings
+ vba modules
thumbs module uses cached thumbnail when possible
+ Bug fixes
Partial content transfers work correctly with IIS webserver
Changes from 2.2.8 alpha to 2.2.8 beta 1
+ Add Entry
*allow_add_multi* setting allows users to create several entries during a single Add Entry
+ Admin
local_links_init.php (ADMIN_USER_GROUP) extended to allow multiple usergroups to have access to LDM admin
+ Entries
Size displayed for entries with filetype other than htm/html even if not in attachment table
+ Mirrors
Active/inactive switches added
+ Ratings
User avatars displayed within ratings bits
+ Extras
*secureurl* extra added to lock play/download urls to entries/times/userid/ip address
Jukebox-enhancements extra brought up to date
+ Bug Fixes
Changed autocreate thread to be inactive by default
Fixed broken admin layout when improper settings found in database
Validate entries resets invalid filesizes
Fixed invalid userid setting on edit entry
Fixed invalid userid test on edit category
+ Translations
Arabic language removed - obsolete and very incomplete
Changes from 2.2.7 introduced in 2.2.8 alpha
+ Categories
Add/Edit Category allows same username changes as Add/Edit Entry
autocreate linked forum includes choice whether to display linked forum on forumjump menus
+ Entries
Autocreate thread/post code extended and integrated into main product
(NB: users of existing autocreate 'extra', refer to 'extra' directory for info)
+ Comments and Ratings
Options to display summary inline within the linkbit or as drop-down,
*must_rate_download*, *must_rate_play* permissions added to force comment/rating
before allowing download/play
Moderators can create/edit comments by other users and change the submitting user for comments
+ Images
Options added to Edit Entry to delete/replace existing uploaded image
+ Keywords
*must_add_keyword* permission requires at least one keyword on add/edit entry
+ Mirror sites
Mirror sites supported by new admin page. When a download satisfies a mirror test, user is presented with list of available mirrors and is asked to choose one.
+ Searching
*can_search_link* permission allows/denies access to searches
+ Admin
Tidy hits table (archive/delete) accepts optional list of usernames
New settings variable *perpage_download* controls default hits per page on admin/hits
+ Extras
systematic revision of extras to use LDM admin settings page to control behaviour
*auto_threadcreate* removed and fully integrated into LDM
*block-context-menu* extra now works in player windows
*blockhit-bytime* extra added to allow usergroup d/l blocks by time of day
*filmstrip* extra provides strip overview of category contents when viewing single entry
*tagcloud* extra, as per vbadvanced module but displayed within category
+ vBulletin integration
apply_censor option defines whether to apply vBulletin censorship features
vb's forum password protection implemented within LDM
- when viewing categories associated with a password-protected forum
- when attempting to view/play entries associated with a password-protected forum
+ vbAdvanced integration
Keyword tagcloud module added
Code fixed to work correctly with vbAdvanced versions 2.x and 3.x in function-wrap and global modes
+ Bug fixes
Fixed bug for players requiring fullurl when playing offsite media files
Fixed allowance reporting bug (links counted as files on main displays)
Allowances apply to downloadable files even when force_redirect set to 1
Fixed Wimpy Button to work via vbAdvanced when not in forum directory
Searches work in utf-8 languages (but still don't highlight correctly)
DOI searches on advanced search work correctly
Fixed bug whereby image-type entries never gained thumbnail if link_imagesize=0 at time of creation
Fixed spurious 'Nothing to show' message when *featured_sites* enabled but none visible in current category
Fixed bug with *sync_username* parameter, leading to wrong associated userid.
itsblack
08-04-2007, 04:42 PM
Thank you Andrew! It's great, now there's no more allowance problem. I have updated the chinese translation (although there are only a few new phrases).
I have some little suggestions:
1. About the vba moudule ldm_new_thumb. Now it uses the thumbnails which has been created. Unfortunately the thumb size I used in LDM is much bigger than which I assigned in vba moudule before. So it will be great, if you add a switch to let people choose which method (use the exist thumbs or use the former method) they would like to use.
2. The new Rating mechanism works great. But I think it needs a explanation to let the users know, why the submitt button is disabled. It can display near the submitt button or the rating field.
3. About the links_linkbit template. Now the thumb and the item infos (plus comment/rating, etc.) are put in the middle of the column. It is not convenient when there is a long item description. I prefer to putting them in the top of the column, so the users can see these infos at the first sight when they open the page. Of course I can do it myself, but I hope you can make it as default.
Thanks again for your great work! Merci bien!
Alfa1
08-04-2007, 08:47 PM
Thanks for all your hard work Andrew!
dilbert
08-04-2007, 11:32 PM
Of course I checked that, well, um, not actually checked, kinda sorta... OK, so I had no idea. :)
Thank you for figuring this out for me, and if this is something you already posted, my apologies.
Once again, this is terrific work.
Looking at the vbadvanced code, this message can be generated if va is unable to write in your modules directory Have you checked that it has full write erissions? (ie mode 777 on unix)
itsblack
08-05-2007, 02:08 AM
Andrew, there's something wrong with autocreate_sync_comments. I have set it to yes, but it doesn't work.
Rouzbeh1
08-05-2007, 02:14 AM
thank you andrew
update worked without any problem. xml LDM sitemap worked also. i have just added it to yahoo siteexplorer for testing reason to see if it works :D
obmob
08-05-2007, 04:32 AM
WOW! RC is here! :D
Thanks Andrew! :)
AndrewD
08-05-2007, 05:15 AM
Thanks.
1. About the vba moudule ldm_new_thumb. Now it uses the thumbnails which has been created. Unfortunately the thumb size I used in LDM is much bigger than which I assigned in vba moudule before. So it will be great, if you add a switch to let people choose which method (use the exist thumbs or use the former method) they would like to use.
Mea culpa. The code is supposed to spot this and work out what to do. Unfortunately, I overlooked a couple of things. Will fix.
2. The new Rating mechanism works great. But I think it needs a explanation to let the users know, why the submitt button is disabled. It can display near the submitt button or the rating field.
Agreed
3. About the links_linkbit template. Now the thumb and the item infos (plus comment/rating, etc.) are put in the middle of the column. It is not convenient when there is a long item description. I prefer to putting them in the top of the column, so the users can see these infos at the first sight when they open the page. Of course I can do it myself, but I hope you can make it as default.
I've wondered about this for some time and I think you're right, but I recall someone felt otherwise. Probably the easiest solution is simply to add another linkbit into the choices, so that there's one with with top alignment.
There's something wrong with autocreate_sync_comments. I have set it to yes, but it doesn't work.
It works for me, but there was a bug that I fixed between the beta and the RC code. Can you check that you've correctly uploaded the local_links_actions.php file? Line 2213 should read
$links_defaults['autocreate_sync_comments'] and
In the old, incorrect, code, line 2205 read
$links_defaults['autocreate_sync_comments_with_thread'] and
Slave
08-05-2007, 06:07 AM
Hi Andrew :)
I've just installed .8 on a new 3.6.8 forum and imported my links from one of my old forums. I've noticed that the search is only working on stuff I've newly added to the db today and not on any of my old links. I've tried both types of search in the settings.
Any ideas? .. Do I need to rebuild the search table and if so where do I do it (I'm blind!)
Also, I've just noticed that on one of my old forums, when I try to access the LDM admin area all I get is a blank page in IE but all the code is there when I look at the source. It also works fine in Safari .. any ideas why that would happen? (was running .7, upgraded to .8 to see if that would help, it didn't)
Slave
08-05-2007, 06:18 AM
Hmm .. I've just noticed that the plugin the LDM uses to show last link/download and number of links when you have a forum as a link to LDM doesn't take into account forum permissions. So unregistered and incorrect user groups are seeing the latest file from an area they shouldn't even know is there :)
Should this be working as I think it should, or has it always done that? Any chance of changing it if so?
AndrewD
08-05-2007, 07:10 AM
Hi Andrew :)
Well, how do you do...
Hi Andrew :)
I've just installed .8 on a new 3.6.8 forum and imported my links from one of my old forums. I've noticed that the search is only working on stuff I've newly added to the db today and not on any of my old links. I've tried both types of search in the settings.
Any ideas? .. Do I need to rebuild the search table and if so where do I do it (I'm blind!)
This is weird. There is no search table to build - it's all done within sql (unlike vb). How did you import the old entries - via LDM or as a database import?
Hi Andrew :)
Also, I've just noticed that on one of my old forums, when I try to access the LDM admin area all I get is a blank page in IE but all the code is there when I look at the source. It also works fine in Safari .. any ideas why that would happen? (was running .7, upgraded to .8 to see if that would help, it didn't)
Couple of things to try - a) clear the browser cache, and b) go to vbulletin/admincp/options and set the gzip output option to 'no'.
Concerning the forum plugins, I don't think they've changed, but I'll take a look to see what can be done.
itsblack
08-05-2007, 01:41 PM
It works for me, but there was a bug that I fixed between the beta and the RC code. Can you check that you've correctly uploaded the local_links_actions.php file? Line 2213 should read
$links_defaults['autocreate_sync_comments'] and
In the old, incorrect, code, line 2205 read
$links_defaults['autocreate_sync_comments_with_thread'] and
Yes, I've uploaded the newset version. I guess maybe it has someting to do with the language? Because I found that you use word "Dicussion" to check the threadid, but unfortunately I've translated it into chinese. What surprised me is, a) after the codes in local_links_actions.php, when there is already $row['linkthread' (I checked the database, some items have this), it should work without check the phrase, but it doesn't; b) Sometime before it works for me, although I use the chinese version all the time.
I have also tried to delete "Dicussion" in the code (local_links_actions.php, line 2232), but it doesn't work.
AndrewD
08-05-2007, 02:17 PM
Yes, I've uploaded the newset version. I guess maybe it has someting to do with the language? Because I found that you use word "Dicussion" to check the threadid, but unfortunately I've translated it into chinese. What surprised me is, a) after the codes in local_links_actions.php, when there is already $row['linkthread' (I checked the database, some items have this), it should work without check the phrase, but it doesn't; b) Sometime before it works for me, although I use the chinese version all the time.
I have also tried to delete "Dicussion" in the code (local_links_actions.php, line 2232), but it doesn't work.
OK, I'll rethink the logic
AndrewD
08-05-2007, 05:35 PM
Yes, I've uploaded the newset version. I guess maybe it has someting to do with the language? Because I found that you use word "Dicussion" to check the threadid, but unfortunately I've translated it into chinese. What surprised me is, a) after the codes in local_links_actions.php, when there is already $row['linkthread' (I checked the database, some items have this), it should work without check the phrase, but it doesn't; b) Sometime before it works for me, although I use the chinese version all the time.
I have also tried to delete "Dicussion" in the code (local_links_actions.php, line 2232), but it doesn't work.
I recall how all this developed now.
In the earlier versions of the 'extra', there was no special database field for the associated thread, so the code had to check for the relevant text (threadid=..) in the body of the link description. In 2.2.7, I realised that this was definitely a kludge, so added a an extra column in the database.
I imagine that you'll find that comments work with those entries where the linkthread column is set, and don't work where it is blank. But (on the assumption that you haven't got a load of threadid bb codes in your LDM descriptions, it should be ok to modify the regular expression, as follows. Instead of
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]Discussion/", $row['linkdesc'], $match)) {
try
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/u", $row['linkdesc'], $match)) {
(there's an extra 'u' after the second slash)
Can you let me know if this solves it, and if my theory is correct about the linkthread field?
Slave
08-05-2007, 05:52 PM
Well, how do you do...
I'm doing all right :)
This is weird. There is no search table to build - it's all done within sql (unlike vb). How did you import the old entries - via LDM or as a database import?
I exported via, and imported using the 2nd option if I remember
Couple of things to try - a) clear the browser cache, and b) go to vbulletin/admincp/options and set the gzip output option to 'no'.
I've done the cache part, and I'm sure the forum is already set at no for gzip, but I will double check ..
Concerning the forum plugins, I don't think they've changed, but I'll take a look to see what can be done.
Wonderful, thanks :)
Slave
08-05-2007, 05:56 PM
btw .. both the spider links and the tag cloud plugins work superbly .. thank you! :)
Not sure about the spider icon though :p .. I'll see if I can find one that works on a black background. Would it be possible to make it so that in the linkbit if there isn't an image it would have "spider this link" type text like how the other icons work?
AndrewD
08-05-2007, 05:58 PM
I exported via, and imported using the 2nd option if I remember
Could you email me the database dump - ad_rodin at noos.fr
I've done the cache part, and I'm sure the forum is already set at no for gzip, but I will double check ..
Keep me informed.
I've sorted out the forum permissions. It had always been that way, but it was a straightforward change to thhe code. Will be in the final release.
itsblack
08-05-2007, 07:05 PM
I recall how all this developed now.
In the earlier versions of the 'extra', there was no special database field for the associated thread, so the code had to check for the relevant text (threadid=..) in the body of the link description. In 2.2.7, I realised that this was definitely a kludge, so added a an extra column in the database.
I imagine that you'll find that comments work with those entries where the linkthread column is set, and don't work where it is blank. But (on the assumption that you haven't got a load of threadid bb codes in your LDM descriptions, it should be ok to modify the regular expression, as follows. Instead of
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]Discussion/", $row['linkdesc'], $match)) {
try
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/u", $row['linkdesc'], $match)) {
(there's an extra 'u' after the second slash)
Can you let me know if this solves it, and if my theory is correct about the linkthread field?
I've tried what you said, it took no effect.
Actually after upgraded to the later versions, there are already some entries which the linkthread column are set, but even with these entries the comment doesn't work.
It's weird.
AndrewD
08-06-2007, 04:01 AM
btw .. both the spider links and the tag cloud plugins work superbly .. thank you! :)
Not sure about the spider icon though :p .. I'll see if I can find one that works on a black background. Would it be possible to make it so that in the linkbit if there isn't an image it would have "spider this link" type text like how the other icons work?
Indeed, I'll make that change.
I imported and tested each of the xml files you sent into a clean database. In both cases, search work correctly, using both the like and the fulltext methods. I wonder if you had a problem with character encodings or indices in your database. Can't think how to test that, except maybe phpmyadmin/sql/REPAIR TABLE local_linkslink QUICK or vb/admincp/maintenance/repair tables
Slave
08-06-2007, 05:38 AM
K .. I'll give that a go and let you know :)
Slave
08-06-2007, 06:22 AM
Keep me informed.
gzip is off as I thought ..
K .. I'll give that a go and let you know :)
hmm .. seems to have started working I think .. :)
Slave
08-06-2007, 07:44 AM
One thing I've noticed about the Tag Cloud .. it only seems to show keywords that anyone can see, it doesn't take into account words that are added into an area that are protected by forum permissions. Any chance this could be changed?
AndrewD
08-06-2007, 04:13 PM
I've tried what you said, it took no effect.
Actually after upgraded to the later versions, there are already some entries which the linkthread column are set, but even with these entries the comment doesn't work.
It's weird.
I'm at a loss with this. I set up a board using your Chinese translation, created various new entries to get threads created and tried adding comments.
a) the standard process with 2.2.8 code worked fine
b) when I tried killing the linkthread value, the standard release code did not work, for reasons I understand, but the simplified regular expression worked just fine.
I saw that you've modified the ldm_thread_create_relink message, which is what is generated/tested. In your version, there are extra bbcodes inside the thread bbcode, but even so, the following code:
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/", $row['linkdesc'], $match)) {
picks up the threadid fine.
AndrewD
08-06-2007, 05:33 PM
One thing I've noticed about the Tag Cloud .. it only seems to show keywords that anyone can see, it doesn't take into account words that are added into an area that are protected by forum permissions. Any chance this could be changed?
This isn't how it works, unless I'm missing something. Depending on whether you're weighting by hits or just frequency of use, keywords will only be displayed a) if they are used or b) if they've actually been hit.
Slave
08-07-2007, 08:36 AM
This isn't how it works, unless I'm missing something. Depending on whether you're weighting by hits or just frequency of use, keywords will only be displayed a) if they are used or b) if they've actually been hit.
Yeah .. but could forum permissions be taken into account?
At the moment, a normal register user could see a tag word in the cloud that when clicked takes him to a blank search page as all the items using that tag word are hidden from him as he doesn't have the permission to see that forum which those items are linked to.
See what I mean?
AndrewD
08-07-2007, 08:53 AM
Yeah .. but could forum permissions be taken into account?
At the moment, a normal register user could see a tag word in the cloud that when clicked takes him to a blank search page as all the items using that tag word are hidden from him as he doesn't have the permission to see that forum which those items are linked to.
See what I mean?
Sorry, I misunderstood you. Will take a look
Slave
08-07-2007, 09:15 AM
Sorry, I misunderstood you. Will take a look
Cool .. ta :)
Alfa1
08-07-2007, 10:35 AM
Andrew; are you planning to add inline moderation to LDM?
AndrewD
08-07-2007, 10:38 AM
Andrew; are you planning to add inline moderation to LDM?
It's something to do at some time, but it hadn't been given a very high priority. I'm gradually trying to make things more friendly in these ways, without breaking anything.
Alfa1
08-07-2007, 10:58 AM
Thanks.
I would like to request the option to handle comments with a vbulletin thread. I prefer this above auto thread creation, because auto thread creation means duplication of the discussion.
minimalize
08-07-2007, 01:23 PM
Hi Andrew,
when i have a link like http://rapidshare.de/afile_name.mp3 the system tries to play the link with the mediaplayer. But this is the rapidshare url. Is there an option to turn the mediaplayer off for external links?
obmob
08-07-2007, 01:46 PM
Hmm... well, finally installed the new script... how do i enable the filmstrip to show the upcoming download link?
You know, that thing I asked for some months ago? That looks similar as vbgallery :eek:
Thanks :p
AndrewD
08-07-2007, 03:23 PM
Hmm... well, finally installed the new script... how do i enable the filmstrip to show the upcoming download link?
You know, that thing I asked for some months ago? That looks similar as vbgallery :eek:
Thanks :p
It's provided in the 'extras' directory - have you installed it and read the 'readme' file?
We avg 50,000 downloads per month and the table... local_links_downloads eventually grew to over 700,000 rows. Which cause huge CPU spikes on our MYSQL server.
After truncating the local_links_downloads table. The CPU spike were gone (after 3 month of trying to find this worsening problem).
So my question, is there anyway to set an auto cut off for the stats to stop incrementing?
Or this means every few months we have to manually truncate the table. Can Links and Downloads Manager be set to only keep say the last 30 days of download stats?
Thanks very much for any support you can provide.
obmob
08-07-2007, 10:23 PM
It's provided in the 'extras' directory - have you installed it and read the 'readme' file?mwahaha! no... thought it was embedded in the templates, so, i was searching all over there. :eek:
Will test tonight, thanks Andrew. :D
AndrewD
08-08-2007, 04:07 AM
We avg 50,000 downloads per month and the table... local_links_downloads eventually grew to over 700,000 rows. Which cause huge CPU spikes on our MYSQL server.
After truncating the local_links_downloads table. The CPU spike were gone (after 3 month of trying to find this worsening problem).
So my question, is there anyway to set an auto cut off for the stats to stop incrementing?
Or this means every few months we have to manually truncate the table. Can Links and Downloads Manager be set to only keep say the last 30 days of download stats?
Thanks very much for any support you can provide.
Go to LDM/admin/settings and set prune_downloadtable to the number of days you want to keep, e.g. 30. Note that detailed usage statistics are only available for those days where the downloads table is populated, but the overall statistics (total hits on entries) are retained when the table is pruned. Hope this helps.
Alfa1
08-08-2007, 09:14 AM
How can I see the number of downloads per month?
AndrewD
08-08-2007, 09:32 AM
How can I see the number of downloads per month?
It does not get tabulated by month, but if you go to ldm/admin/hits you can do an analysis for any range of dates for which you still have information in your downloads table.
Rouzbeh1
08-08-2007, 03:40 PM
hi Andrew,
just wanted to thank you and report that BW usage is working fine now ;)
btw. i have read that you are implementing a server load management for mirror sites. is that correct? :D
Go to LDM/admin/settings and set prune_downloadtable to the number of days you want to keep, e.g. 30. Note that detailed usage statistics are only available for those days where the downloads table is populated, but the overall statistics (total hits on entries) are retained when the table is pruned. Hope this helps.
THanks. That does help. However, I logged in / clicked administer / then clicked settings / ...
But can't find that prune_downloadtable.
I'm on version 2.1.0
Is this an option I can set with a Mysql query maybe? Or other solution(s)?
Thanks much.
BuRaCh
08-08-2007, 05:03 PM
thank you good hack;)
AndrewD
08-08-2007, 06:37 PM
THanks. That does help. However, I logged in / clicked administer / then clicked settings / ...
But can't find that prune_downloadtable.
I'm on version 2.1.0
Is this an option I can set with a Mysql query maybe? Or other solution(s)?
Thanks much.
Goodness, version 2.1.0.
You're in luck - that part of the code has not changed very much in two years :) Take a copy of the file include/local_links_include.php. Edit, and go to line 1078, which reads:
function record_hit($id, $url, $status, $size=0) {
global $vbulletin, $links_permissions, $links_defaults;
if ($links_permissions["can_bypass_hit_recording"]) {
Change to:
function record_hit($id, $url, $status, $size=0) {
global $vbulletin, $links_permissions, $links_defaults;
$when = TIMENOW-24*60*60*XXX;
$vbulletin->db->query_write("
DELETE FROM ".THIS_TABLE."linksdownloads
WHERE usertime<'".$when."'
");
if ($links_permissions["can_bypass_hit_recording"]) {
where XXX is the number of days you want to retain in the table, e.g. 30.
Ipuck
08-08-2007, 07:28 PM
AndrewD, thank you for the 2.2.8 version is working great, tagcluod, mirror site. Excellent work and the upgrade was simple as before..
One small question, I'm not sure if I'm missing this, but how do I search downloads by username? I know I can go the "hits" and then search page by page until I found the username, but iss there any other way? your mod has so many options that I get lost.
AndrewD
08-09-2007, 04:22 AM
AndrewD, thank you for the 2.2.8 version is working great, tagcluod, mirror site. Excellent work and the upgrade was simple as before..
One small question, I'm not sure if I'm missing this, but how do I search downloads by username? I know I can go the "hits" and then search page by page until I found the username, but iss there any other way? your mod has so many options that I get lost.
Maybe I'm missing the question - apologies if so.
You go to ldm/admin/hits. Then you use the pull down menus to select the dates of interest and 'username'. That produces aggregated information sorted by username. You then click on one of the usernames and you get a full tabulation of that user's activity.
I just discovered that the 2.2.8 code includes a debug statement in the javascript which I forgot to remove. As a result, when you use these pull down menus you'll get a couple of annoying alert boxes pop up. You can dismiss those - they don't matter. Will eb tidied up in the final release.
AndrewD
08-09-2007, 04:24 AM
hi Andrew,
just wanted to thank you and report that BW usage is working fine now ;)
btw. i have read that you are implementing a server load management for mirror sites. is that correct? :D
It would be nice to do this, but I'm not sure that I know how to so it reliably.
obmob
08-09-2007, 03:52 PM
Hmm... hello, finally installed the filmstrip, it works really good... but i was wondering if it's possible to move it below the linkbit and if there is a template i can edit to add some css style to it? :p
Thanks Andrew!
Those who take a little time to install and learn more about LDM can't deny is the best addon for vbulletin! :D
apokphp
08-09-2007, 03:53 PM
I took a look at your site, and I think I finally understood your question.
Please check your vb/admincp/languages and phrases. I think that you will find that you have modified the phrase "ll_recent" at some time in the past.
*edit*
Andrew, I think I may have fixed it, just by copy/pasting...can you check to see if it looks how it should look? If so, disregard the indented text below. I do have a 2nd challenge at the bottom of the post though.
Thanks for your time and devotion to this hack, I absolutely love it, it is truly one of the best mods for vbulletin! :)
I don't recall modifying any phrases. I did install this a while back, but I uninstalled it prior to installing the updated version.
In my phrase manager, when I do a search, I have 2 versions of ll_recent.
One is the English translation, the other is the Standard translation. Copy paste from the phrase manager after the search, it isn't formatted well, sorry.
ll_recent English (US) Translation
During the last {1} days:<br />· {2} new entries [<span class="smallfont"><a href="{4}.php?catid=-8">what's new</a></span>]<br />· {3} hits [<span class="smallfont"><a href="{4}.php?catid=-7">what's hot</a></span>]
ll_recent Standard Phrase
{2} new entries {3}since {1}
Is the wrong one being used? How do I get rid of it, or fix the problem?
Any time I try to edit the "standard phrase" one, it goes to the English phrase after clicking "edit". That is...
During the last {1} days:<br />· {2} new entries [<span class="smallfont"><a href="{4}.php?catid=-8">what's new</a></span>]<br />· {3} hits [<span class="smallfont"><a href="{4}.php?catid=-7">what's hot</a></span>]
...appears in the text box for both the English and Standard phrases when I try to edit either.
_______________________________________________
Also, a bug or another problem that I've found...
The system considers this url: http://classics.mit.edu/Browse/index.html to be an offsite download.
This is the result of clicking that link from the system, when off site downloads are turned off:
http://www.onlinedebate.net/forums/local_links.php?action=jump&id=80&catid=1
Internal Server Error (500)
This is the result of clicking that link from the system, when off site downloads are turned on:
http://www.onlinedebate.net/forums/local_links.php?action=jump&id=80&catid=1
Sorry, off-site downloads have been disabled.
Not sure why the internal server error is occurring.
AndrewD
08-09-2007, 06:16 PM
*edit*
Andrew, I think I may have fixed it, just by copy/pasting...can you check to see if it looks how it should look? If so, disregard the indented text below. I do have a 2nd challenge at the bottom of the post though.
Looks ok to me - not sure how this has happened .
Also, a bug or another problem that I've found...
The system considers this url: http://classics.mit.edu/Browse/index.html to be an offsite download.
This is the result of clicking that link from the system, when off site downloads are turned off:
http://www.onlinedebate.net/forums/local_links.php?action=jump&id=80&catid=1
Internal Server Error (500)
This is the result of clicking that link from the system, when off site downloads are turned on:
http://www.onlinedebate.net/forums/local_links.php?action=jump&id=80&catid=1
Sorry, off-site downloads have been disabled.
Not sure why the internal server error is occurring.
This is weird. Are you by any chance using the internal LDM mod_rewrite facility? Looking at the code, I can only assume that the url is getting patched to something else.
AndrewD
08-09-2007, 06:42 PM
Hmm... hello, finally installed the filmstrip, it works really good... but i was wondering if it's possible to move it below the linkbit and if there is a template i can edit to add some css style to it? :p
Thanks Andrew!
Those who take a little time to install and learn more about LDM can't deny is the best addon for vbulletin! :D
Glad to hear this is close to what you wanted.
Currently, any changes have to be made by editing the plugin itself, which may seem a bit hairy.
The placement is quite easy. Go to vb/admin/products and plugins/plugin manager. and look for the Links and Downloads Manager - Filmstrip plugin that is attached to the ldm_maindisplay_end hook. Edit this plugin. Find the line that reads:
$includeinmain['postfeat'] .= '
You can move the feature around the page by changing 'postfeat'.
Going from the top of the page down, these are your options:
'precat'
'postcat'
'prefeat'
'postfeat'
'prelink'
'postlink'
'prestats'
'poststats'
I imagine you want 'postlink'.
The lines which build the table for the filmstrip are immediately below this line in the code - the html is embedded into the plugin. You can edit the css there. Be careful - this is similar but not identical to a template, and you need to keep the syntax valid.
minimalize
08-09-2007, 08:51 PM
Hi Andrew,
when i have a link like http://rapidshare.de/afile_name.mp3 the system tries to play the link with the mediaplayer. But this is the rapidshare url. Is there an option to turn the mediaplayer off for external links?
could you please have a look at this? its very important for me to get this working. half off the links in my ldm are rapidshare links!
obmob
08-09-2007, 09:53 PM
Glad to hear this is close to what you wanted.
Currently, any changes have to be made by editing the plugin itself, which may seem a bit hairy.
The placement is quite easy. Go to vb/admin/products and plugins/plugin manager. and look for the Links and Downloads Manager - Filmstrip plugin that is attached to the ldm_maindisplay_end hook. Edit this plugin. Find the line that reads:
$includeinmain['postfeat'] .= '
You can move the feature around the page by changing 'postfeat'.
Going from the top of the page down, these are your options:
'precat'
'postcat'
'prefeat'
'postfeat'
'prelink'
'postlink'
'prestats'
'poststats'
I imagine you want 'postlink'.
The lines which build the table for the filmstrip are immediately below this line in the code - the html is embedded into the plugin. You can edit the css there. Be careful - this is similar but not identical to a template, and you need to keep the syntax valid.Oh, it is hairy! :eek:
Well, it's awesome, it was indeed the 'postlink' part, I don't know how this works, but is it possible to add a selectable menu in the filmstrip setting to select where we want to show it? Oh, and this kind of information is added to your wiki? It is quite useful. :D
Maybe for 2.2.9 or 2.3 :p
Thanks
Goodness, version 2.1.0.
You're in luck - that part of the code has not changed very much in two years :) Take a copy of the file include/local_links_include.php. Edit, and go to line 1078, which reads:
function record_hit($id, $url, $status, $size=0) {
global $vbulletin, $links_permissions, $links_defaults;
if ($links_permissions["can_bypass_hit_recording"]) {
Change to:
function record_hit($id, $url, $status, $size=0) {
global $vbulletin, $links_permissions, $links_defaults;
$when = TIMENOW-24*60*60*XXX;
$vbulletin->db->query_write("
DELETE FROM ".THIS_TABLE."linksdownloads
WHERE usertime<'".$when."'
");
if ($links_permissions["can_bypass_hit_recording"]) {
where XXX is the number of days you want to retain in the table, e.g. 30.
Worked like a charm!!!
Where/how can I send you a donation. This is wonderful support!
apokphp
08-09-2007, 10:51 PM
This is weird. Are you by any chance using the internal LDM mod_rewrite facility? Looking at the code, I can only assume that the url is getting patched to something else.
No, that field is blank.
Ipuck
08-10-2007, 03:11 AM
You go to ldm/admin/hits. Then you use the pull down menus to select the dates of interest and 'username'. That produces aggregated information sorted by username. You then click on one of the usernames and you get a full tabulation of that user's activity.
The 2.2.8 have an option to search by username, but is not working properly I get an error. (I'm sure that will be fix with the final release, I don't care for now)
the 2.2.7 does not have the option to search by username.
I have two sites, one with 2.2.7 and one with 2.2.8 and I was looking at the one with 2.2.7 when I post the question, without realizing the you add that feature with the 2.2.8. I'll just wait until the final release is ready to start using it.
Thanks for your time :up:
AndrewD
08-10-2007, 04:48 AM
could you please have a look at this? its very important for me to get this working. half off the links in my ldm are rapidshare links!
I will try to get this sorted out at the weeked.
AndrewD
08-10-2007, 04:48 AM
No, that field is blank.
Do you mind if I take a detailed look at your site? I'll need admin privs to VB and LDM.
Daisy EE8
08-10-2007, 07:29 AM
I have a problem and no clue whats going on. :(
After installing the product ist says that:
Warning open_basedir is set to /srv/www/htdocs/web25/html/:/srv/www/htdocs/web25/phptmp/:/srv/www/htdocs/web25/files/:/srv/www/htdocs/web25/atd/ in your PHP installation
Please refer to the hack instructions for information on this setting
I think i have to contact my Admin-C to make some changes in the php.ini file - but what?
Cant get the problem here - whats this message saying to me?
AndrewD
08-10-2007, 08:05 AM
I have a problem and no clue whats going on. :(
After installing the product ist says that:
I think i have to contact my Admin-C to make some changes in the php.ini file - but what?
Cant get the problem here - whats this message saying to me?
This is only a warning, not necessarily an error. The "open_basedir" setting in your web site's php.ini file restricts the parts of your web site where it is possible for php scripts to read/write. It is a security setting. Your current setting is probably ok, especially if vBulletin is working fine. You will see if there are any difficulties if (e.g.) uploads fail or if you wanted to store files completely outside the web site's directories.
Daisy EE8
08-10-2007, 02:19 PM
Ah ok - thanks for the help.
So everything should be fine. But:
If i head to the local_links_admin the side has a weird look. I cant see everything.
The "ok" button e.g. is empty - just a grey box.
Here is a screenshot of what I mean:
AndrewD
08-10-2007, 03:08 PM
Ah ok - thanks for the help.
So everything should be fine. But:
If i head to the local_links_admin the side has a weird look. I cant see everything.
The "ok" button e.g. is empty - just a grey box.
Here is a screenshot of what I mean:
Definitely not right! Do you want me to take a look? - if so send me a PM with site details and an admin username and password
minimalize
08-10-2007, 06:11 PM
I will try to get this sorted out at the weeked.
ok thanks to you andrew
dtommy79
08-10-2007, 08:02 PM
hi,
I've installed this mod and I have a feww error in the admin page. First of all this one:
Possible inconsistencies between LDM and its environment
- web server DocRoot /servers/httpd/htdocs seems to point to a non-existent directory
and then this one:
https://vborg.vbsupport.ru/ (http://kepfeltoltes.hu/view/070810/links_www.kepfeltoltes.hu_.gif)
Here is a link to the picture:
http://kepfeltoltes.hu/070810/links_www.kepfeltoltes.hu_.gif
Any idea?
Mori750
08-10-2007, 08:19 PM
Definitely not right! Do you want me to take a look? - if so send me a PM with site details and an admin username and password
i have same problem , Can u Help me plz? :)
AndrewD
08-11-2007, 05:01 AM
hi,
I've installed this mod and I have a feww error in the admin page. First of all this one:
and then this one:
http://kepfeltoltes.hu/thumb/070810/links_www.kepfeltoltes.hu_.gif (http://kepfeltoltes.hu/view/070810/links_www.kepfeltoltes.hu_.gif)
Here is a link to the picture:
http://kepfeltoltes.hu/070810/links_www.kepfeltoltes.hu_.gif
Any idea?
LDM has to be able to read and write files on your server, and it can be prevented from doing this by security settings on your server. One of these is the php.ini setting open_basedir. This prevents php scripts from reading and writing files except in directories specified in its setting or in their subdirectories.
It looks to me as if the setting of open_basedir on your server does not allow scripts to read/write files that are actually within your web site directories (which DOC_ROOT points to).
The message
web server DocRoot /servers/httpd/htdocs seems to point to a non-existent directory
actually means "I can't find out if the directory exists or not", and the reason is that your php.ini setting of open_basedir is forbidding this to happen.
If there is a good reason for excluding your web site from the open_basedir setting, you can still get LDM to work, but you have to make sure that uploads and and files that you provide to your community are stored in directories that are authorised by open_basedir. LDM will not be able to store thumbnails of images, because these have to be placed within the web site itself.
You achieve this using the LDM settings local_file_root and local_file_root_prefix. This is explained in the wiki, see url in the first post.
If you don't understand what I'm saying, you will need to speak to your site admin
AndrewD
08-11-2007, 05:03 AM
i have same problem , Can u Help me plz? :)
I can help - send me a PM with site details and an admin account - but just to explain - the main problem on that site was that they were running the board in a non-English language and had not installed the LDM phrases for that language.
AndrewD
08-11-2007, 05:06 AM
Oh, it is hairy! :eek:
Well, it's awesome, it was indeed the 'postlink' part, I don't know how this works, but is it possible to add a selectable menu in the filmstrip setting to select where we want to show it? Oh, and this kind of information is added to your wiki? It is quite useful. :D
Maybe for 2.2.9 or 2.3 :p
Thanks
I will make the final version in 2.2.8 behave in the proper way, i.e. with a selectable option in the admin and a standard template. I don't want people choking on hair balls. Bad enough when cats do it.
AndrewD
08-11-2007, 05:58 AM
Hi Andrew,
when i have a link like http://rapidshare.de/afile_name.mp3 the system tries to play the link with the mediaplayer. But this is the rapidshare url. Is there an option to turn the mediaplayer off for external links?
I think you can get round the problem with LDM/admin/settings => set force_redirect to 1. This may have some side effects, depending on what else is in your database.
I will have to think whether there is a better way to do this, without building in a list of special cases.
Alfa1
08-11-2007, 12:40 PM
The amount of keywords in my LDM are rapidly getting quite large. Many keywords are misspellings. It would be nice to be able to merge keywords entries. for example: if you have the following keywords, with a certain number of entries linked to them:
pharmacology [32]
pharmacoligy [17]
It would be optimal to be able to merge them, so that all entries have the same correct keyword. As it is now you would have to edit them one by one and with thousands of entries this is not feasible.
I have an increasing # of members reporting the following error:
"Our records indicate that you have already registered under the name of Dory. If you have lost your password click HERE. If you would like to modify your account, click HERE."
Any ideas? It blocks users from downloading.
AndrewD
08-11-2007, 01:04 PM
I have an increasing # of members reporting the following error:
"Our records indicate that you have already registered under the name of Dory. If you have lost your password click HERE. If you would like to modify your account, click HERE."
Any ideas? It blocks users from downloading.
That message is produced in the standard vbulletin register.php script I'm not sure why it should be displayed within LDM. What are your users doing that triggers it?
AndrewD
08-11-2007, 01:04 PM
The amount of keywords in my LDM are rapidly getting quite large. Many keywords are misspellings. It would be nice to be able to merge keywords entries. for example: if you have the following keywords, with a certain number of entries linked to them:
pharmacology [32]
pharmacoligy [17]
It would be optimal to be able to merge them, so that all entries have the same correct keyword. As it is now you would have to edit them one by one and with thousands of entries this is not feasible.
Understood. Will see how to handle this.
csavern
08-11-2007, 09:43 PM
i try to setup the upload_dir and this is what i get
The following setting(s) are invalid
upload_dir : /upload_dir
Cannot access/create directory /upload_dir [/home/mysite/public_html/upload_dir
i have tried every way i know how to and still cant get it
could some one tell me what i am doing wrong
That message is produced in the standard vbulletin register.php script I'm not sure why it should be displayed within LDM. What are your users doing that triggers it?
That's immediately after they click to download a file. Mayne :DM prevents abuse per IP and they share the same ISP?
AndrewD
08-12-2007, 05:15 AM
i try to setup the upload_dir and this is what i get
The following setting(s) are invalid
upload_dir : /upload_dir
Cannot access/create directory /upload_dir [/home/mysite/public_html/upload_dir
i have tried every way i know how to and still cant get it
could some one tell me what i am doing wrong
two possibilities to check - read/write permissions and the php setting open_basedir.
Take a look at your LDM admin pages, at the left hand column, where you will find a number of environmental variables. One of these is open_basedir. If this is set, then you can only create/access directories that start with a string that matches one of the parts of that setting.
In other words, if open_basedir is unset or looks something like the start of /home/mysite/public_html, then this is not the problem.
Another possibility is that you do not have write access to /home/mysite/public_html, so /upload_dir cannot be created. In this case, you will need to create the /home/mysite/public_html/upload_dir directory by hand, e.g. using your FTP client, and give it full read/write permissions.
AndrewD
08-12-2007, 05:30 AM
That's immediately after they click to download a file. Maybe LDM prevents abuse per IP and they share the same ISP?
I've never come across this problem before and I can't immediately think what is causing it. However, LDM takes users to the VB registration script in the following situation:
the LDM setting *protected_link* is set to 2, and
the user does not have LDM *can_access_link* permission
I wonder - have you been adding new usergroups? These by default have no LDM access. Furthermore, in the older versions of LDM, the code worked out permissions (I think) on the user's primary usergoup, not using all his/her groups.
If this is the problem, then go to LDM/admin/permissions and give the new usergroups can_access_link permission
csavern
08-12-2007, 11:06 AM
i sent a pm of what the php setting open_basedir looks like
Another possibility is that you do not have write access to /home/mysite/public_html, so /upload_dir cannot be created. In this case, you will need to create the /home/mysite/public_html/upload_dir directory by hand, e.g. using your FTP client, and give it full read/write permissions.
as for that i have made the folder my self and CHMOD to 777 and still same error
Tulsa
08-12-2007, 02:05 PM
I don't know, maybe I'm getting lost in the complexity of this wonderful mod and little guidance would be greatly appreciated.
Here's what I'm trying to do, please tell me the best way to go about doing it.
Initial categoy (type) > Sub category (manufacturer - up to 40 entries) > Sub category/item (items - up to 65 entries) > Item
I am wanting to keep from having to create 65 categories then 65 items, one in each category. Is there anyway to simple list the sub category/items, then display upon click the item itself in full?
1. I know I can show full/short entries with expand/collapse for the table but can I force the display to be collapsed for everyone and can I incorporate a thumbnail next to the item name in the collapsed scenario?
2. Is there a better way to achieve this functionality?
3. Also since I have over 1000 items listed currently in their own forum as individual threads, can I import all of these posts into individual entries?
4. For the expanded view of each entry, I prefer the look of the "featured" style but I can't find a way to edit the entry if I utilize "featured". Is there a way to edit the entry using the featured setting?
Thanks in advance and I'm using the 2.2.8 RC1 version.
obmob
08-12-2007, 02:40 PM
I will make the final version in 2.2.8 behave in the proper way, i.e. with a selectable option in the admin and a standard template. I don't want people choking on hair balls. Bad enough when cats do it.*cough cough* hairball! :eek:
Thanks Andrew! :D
AndrewD
08-12-2007, 04:08 PM
I don't know, maybe I'm getting lost in the complexity of this wonderful mod and little guidance would be greatly appreciated.
0. Here's what I'm trying to do, please tell me the best way to go about doing it.
Initial categoy (type) > Sub category (manufacturer - up to 40 entries) > Sub category/item (items - up to 65 entries) > Item
I am wanting to keep from having to create 65 categories then 65 items, one in each category. Is there anyway to simple list the sub category/items, then display upon click the item itself in full?
1. I know I can show full/short entries with expand/collapse for the table but can I force the display to be collapsed for everyone and can I incorporate a thumbnail next to the item name in the collapsed scenario?
2. Is there a better way to achieve this functionality?
3. Also since I have over 1000 items listed currently in their own forum as individual threads, can I import all of these posts into individual entries?
4. For the expanded view of each entry, I prefer the look of the "featured" style but I can't find a way to edit the entry if I utilize "featured". Is there a way to edit the entry using the featured setting?
Thanks in advance and I'm using the 2.2.8 RC1 version.
0. and 3. Question - are the entries you are eventually serving files on your server or urls to external sites? If they are files on your server, you can autocreate the whole structure by using the category synchronisation feature. Ditto if the links in the forums are pointing to files on your server, again you can autocreate them in LDM the same way.
1. and 4. The featured style is supposed to look very clean, so doesn't have the icons. But these are just vbulletin templates - so you can always edit them, mixing and matching the pieces you like. You can find the names of the templates by going to LDM/admin/linkbits and catbits. All the pieces that fit into the various linkbit styles are available to them all, so you can add the thumbnail in with the $linkimgjump variable, etc (take a look in the links_linkbit template to see what I'm talking about).
2. Undoubtedly :) If I had the last three and half years over again, I might do things differently!
Let me know if you need more help.
Tulsa
08-12-2007, 07:34 PM
Let me know if you need more help.
Oh I'm beyond help my friend, but this is a good kick-start for me. :up:
CamJM
08-12-2007, 10:55 PM
Hi, was wondering how I might go about removing the bars that appear between links in the new files vba module.....
http://www.hrbuzz.com.au/vb/cmps_index.php?page=docs
Thanks
pictureboarduk
08-13-2007, 12:15 AM
I don't get what this hack is.
I want to offer mp3's, ebooks and programs to my members on the forum. Will this allow them to access a 'shop' to get them.
Can you charge them for the downloads individually, like with points or something?
Could anyone explain for me?
Thanks.
obmob
08-13-2007, 01:57 AM
Don't know if this would work as a shop script, but certainly it is able to distribute almost any kind of content to your users, and you can set limits to them, and also force them to do some kind of things before they are able to get a file or link.
Though, there is not a points system that works with LDM.
Sure Andrew will tell you a lot more about it.
AndrewD
08-13-2007, 05:29 AM
Hi, was wondering how I might go about removing the bars that appear between links in the new files vba module.....
http://www.hrbuzz.com.au/vb/cmps_index.php?page=docs
Thanks
This is happening because your entries have different values assigned for their 'Display Order' (Add/Edit Entry form). I agree that it is not needed on the vba interfaces, and will correct in version 2.2.8.
In the meantime, you can eliminate these bars completely (including in the main LDM displays) by editing the links_linkseparator template. Simply empty that template in your main style. It's a little trickier to do this just in the vba page, and it's probably easiest to wait for 2.2.8.
AndrewD
08-13-2007, 05:31 AM
I don't get what this hack is.
I want to offer mp3's, ebooks and programs to my members on the forum. Will this allow them to access a 'shop' to get them.
Can you charge them for the downloads individually, like with points or something?
Could anyone explain for me?
Thanks.
The hack provides you with a way of giving your users managed access to your files or to their own. It can control things like access permissions, bandwidth use, and the like. It does not have a points system built in, nor any e-trading. However, you could easily integrate it with a standard e-commerce system (I use Payloadz) to integrate with a PayPal account.
itsblack
08-13-2007, 05:48 AM
I'm at a loss with this. I set up a board using your Chinese translation, created various new entries to get threads created and tried adding comments.
a) the standard process with 2.2.8 code worked fine
b) when I tried killing the linkthread value, the standard release code did not work, for reasons I understand, but the simplified regular expression worked just fine.
I saw that you've modified the ldm_thread_create_relink message, which is what is generated/tested. In your version, there are extra bbcodes inside the thread bbcode, but even so, the following code:
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/", $row['linkdesc'], $match)) {
picks up the threadid fine.
Thank you Andrew. Sorry for the delay, due to some reason I couldn't use the internet last week.
Now the problem is the comment doesn't work with thread even the entry has a threadid. It seems the problem only occurs by me, I'm confused. Anything else should I notice?
itsblack
08-13-2007, 06:06 AM
Thank you Andrew. Sorry for the delay, due to some reason I couldn't use the internet last week.
Now the problem is the comment doesn't work with thread even the entry has a threadid. It seems the problem only occurs by me, I'm confused. Anything else should I notice?
Finally, I think I find the reason.
It's about "autocreate_forum". The discription said "Forum in which to post thread. Leave blank to use category's associated forum." But it does not! For I have several different categories associated with different forums, so I left this option blank. And as you see, the comments doesn't work with thread. I noticed that the script will first check the forumid, so I tried set the default autocreate_forum with one forum, now it works!
That means, in order to add comments to the thread, we must assign the autocreate_forum: either in the general setting or in the individual category setting.
AndrewD
08-13-2007, 07:15 AM
Finally, I think I find the reason.
It's about "autocreate_forum". The discription said "Forum in which to post thread. Leave blank to use category's associated forum." But it does not! For I have several different categories associated with different forums, so I left this option blank. And as you see, the comments doesn't work with thread. I noticed that the script will first check the forumid, so I tried set the default autocreate_forum with one forum, now it works!
That means, in order to add comments to the thread, we must assign the autocreate_forum: either in the general setting or in the individual category setting.
OK, I think that must be a bug :) Sorry to waste your time. I'll look into this tonight.
itsblack
08-13-2007, 07:27 AM
OK, I think that must be a bug :) Sorry to waste your time. I'll look into this tonight.
No, no, you don't need say sorry. I can understand, because LDM is a big project, you have done your best. I'm glad I can help you somehow.
CamJM
08-13-2007, 10:46 AM
This is happening because your entries have different values assigned for their 'Display Order' (Add/Edit Entry form). I agree that it is not needed on the vba interfaces, and will correct in version 2.2.8.
In the meantime, you can eliminate these bars completely (including in the main LDM displays) by editing the links_linkseparator template. Simply empty that template in your main style. It's a little trickier to do this just in the vba page, and it's probably easiest to wait for 2.2.8.
Thanks Andrew, you've always been so helpful :)
obmob
08-13-2007, 02:22 PM
Hello, hello... i'm wondering if i already asked for help on the next issue? :p
I was wondering if there is way, where i can upload images, and once the user clicks to download or watch the original file, this one is diplayed inside a page that uses somekind of linkbit template to add some instructions on how to download or save the file.
I think I have had this on my mind for months... so I was wondering if i ever asked for help. :D
Thanks!
BTW, Andrew, maybe you could signup for a google adsense account and add some banners inside your wiki... that way i could click some cents to you from time to time. :p
Phalynx
08-13-2007, 02:27 PM
Using now 2.2.8 post 2 I have detected that by using the action "jump" the download is not registered in vB's "Who's Online".
That's bad, because many sites are redirecting directly to action=jump instead of the linkid, so many users are not listed...
Is there a possibility to change the behaviour of LDM?
My only solution at the moment is to send a redirect within the hook download_complete
AndrewD
08-13-2007, 04:34 PM
Using now 2.2.8 post 2 I have detected that by using the action "jump" the download is not registered in vB's "Who's Online".
That's bad, because many sites are redirecting directly to action=jump instead of the linkid, so many users are not listed...
Is there a possibility to change the behaviour of LDM?
My only solution at the moment is to send a redirect within the hook download_complete
Noted, will check.
I've never come across this problem before and I can't immediately think what is causing it. However, LDM takes users to the VB registration script in the following situation:
the LDM setting *protected_link* is set to 2, and
the user does not have LDM *can_access_link* permission
I wonder - have you been adding new usergroups? These by default have no LDM access. Furthermore, in the older versions of LDM, the code worked out permissions (I think) on the user's primary usergoup, not using all his/her groups.
If this is the problem, then go to LDM/admin/permissions and give the new usergroups can_access_link permission
Thanks. It was the permissions. Added a new group a few days ago.
Mori750
08-14-2007, 12:55 PM
after i Installed LMD I cant upload Avatar I got This erorr :( any one can help me ?
Warning: tempnam(): open_basedir restriction in effect. File(/home/..../tmp) is not within the allowed path(s): (/home/***/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/***/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail) in /includes/class_upload.php on line 346
AndrewD
08-14-2007, 01:41 PM
after i Installed LMD I cant upload Avatar I got This erorr :( any one can help me ?
Warning: tempnam(): open_basedir restriction in effect. File(/home/..../tmp) is not within the allowed path(s): (/home/***/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/***/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail) in /includes/class_upload.php on line 346
I doubt that this is an LDM error. Your site is protected by the php setting "open_basedir" which stops the vbulletin scripts from uploading into the required temporary directory. You need to speak to your site admin.
obmob
08-14-2007, 10:52 PM
Hello, hello... i'm wondering if i already asked for help on the next issue? :p
I was wondering if there is way, where i can upload images, and once the user clicks to download or watch the original file, this one is diplayed inside a page that uses somekind of linkbit template to add some instructions on how to download or save the file.
I think I have had this on my mind for months... so I was wondering if i ever asked for help. :D
Thanks!
BTW, Andrew, maybe you could signup for a google adsense account and add some banners inside your wiki... that way i could click some cents to you from time to time. :p:( no answer for me!
itsblack
08-15-2007, 01:02 AM
Hi Andrew, about the autocreatd posts from comments/rates. I hope when there is only rate but no comment given, then LDM will not creat a new post. Or you can make an option let people choose. Thanks in advance.
AndrewD
08-15-2007, 03:54 AM
:( no answer for me!
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.
AndrewD
08-15-2007, 03:55 AM
Hi Andrew, about the autocreatd posts from comments/rates. I hope when there is only rate but no comment given, then LDM will not creat a new post. Or you can make an option let people choose. Thanks in advance.
Noted.
dilbert
08-15-2007, 01:19 PM
Andrew,
I don't think we can say it enough, thank you for all of your hard work. Your support of this project is exceptional.
Alfa1
08-15-2007, 06:06 PM
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?
Just to clarify: I want to find the category id variables to have the right tab be highlighted when a member is in a certain category of LDM.
Give me a couple of days to look at this - I've not see this hack before.
Andrew, do you know the solution to this?
AndrewD
08-15-2007, 06:36 PM
Andrew, do you know the solution to this?
I never got this sorted out - I took a quick look at the tabs hack but didn't get beyond the introduction.
Rouzbeh1
08-15-2007, 06:53 PM
updated without any problems
will do some tests and report if there were any issues
thanks Andrew
itsblack
08-15-2007, 08:13 PM
I've updated without any problem. Also I have updated the chinese translation. Now this time is 100% completed. :D
Phalynx
08-15-2007, 08:55 PM
Andrew, thanks for RC2! *installing*
Slave
08-15-2007, 08:59 PM
RC2 downloaded .. I'll install later tonight and report any issues I find :)
Alfa1
08-15-2007, 09:48 PM
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.
BTW: what do you need to have translated to Dutch? Please send it to me and I'll try to whip it up before my vacation.
Edit: I just upgraded to 2.2.8 RC2 and got this message:
Critical error: different versions of software, templates, phrases and database.
Software: 2.2.8 database: 2.2.7
Cannot continue - ask administrator to correct.
AndrewD
08-16-2007, 03:57 AM
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.
I'll try to work this out for you.
BTW: what do you need to have translated to Dutch? Please send it to me and I'll try to whip it up before my vacation.
I've attached the Dutch phrases file for LDM. It's easiest to edit the file directly, using notepad or something similar, although you can also do the job inside the VBulletin admin cp. Each line looks something like the following:
<phrase name="ldm_cp_categories" date="0" username="" version=""><![CDATA[Categorieen]]></phrase>
Its very important only to edit the part between "!CDATA[" and "]]", which contains the phrase. All of these need to be in Dutch - currently, quite a lot are the original English.
Some of the phrases include codes like "{1}" "{2}", etc. These indicate a place where something else will be filled in by LDM. You need to make sure that the word order in Dutch makes sense, so you may need to move the codes around in the phrase. However, they must be in the "right" places - so "{1}" can appear after "{2}".
Edit: I just upgraded to 2.2.8 RC2 and got this message:
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.
AndrewD
08-16-2007, 04:13 AM
I've updated without any problem. Also I have updated the chinese translation. Now this time is 100% completed. :D
Hi, and thanks for this work. There's still a few English phrases in the file you uploaded - maybe these got overlooked? I attach just the missing phrases, mainly in the WOL section.
itsblack
08-16-2007, 04:30 AM
Hi, and thanks for this work. There's still a few English phrases in the file you uploaded - maybe these got overlooked? I attach just the missing phrases, mainly in the WOL section.
oops :p sorry for thouble, obviously I uploaded the wrong file.
PS: Some phrases such as "bytes", "url" or "Mimetypes" are don't need to translate into chinese, cause we use them as normal.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.