vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

AndrewD 07-16-2007 05:47 PM

Quote:

Originally Posted by minimalize (Post 1292912)
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

Quote:

Originally Posted by minimalize (Post 1292987)
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...Access_Control

AndrewD 07-17-2007 05:04 AM

Quote:

Originally Posted by itsblack (Post 1293068)
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.

jGas 07-17-2007 06:57 AM

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

Quote:

Originally Posted by AndrewD (Post 1293404)
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...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

Quote:

Originally Posted by AndrewD (Post 1293407)
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.

jGas 07-17-2007 01:40 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

i want thatm if i click on "Angben65 & Sergiopad - L'Atotanka (TaInKiTu)" it opens rate and comments ...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

Quote:

Originally Posted by jGas (Post 1293634)
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

i want thatm if i click on "Angben65 & Sergiopad - L'Atotanka (TaInKiTu)" it opens rate and comments ...is it possible?

thanks! ;)

Edit the links_linkbit template.

Find the line (close to the top)
Code:

$linkurljump
Replace by
Code:

<a href="$LINKS_SCRIPT.php?action=ratelink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;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

Quote:

Originally Posted by itsblack (Post 1292993)
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.

jGas 07-17-2007 06:48 PM

now it's perfect..tnx a lot! ;)

Alfa1 07-17-2007 10:26 PM

Andrew,

Could you please answer this:
Quote:

Originally Posted by Alfa1 (Post 1255595)
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:

Quote:

Originally Posted by Alfa1 (Post 1279562)
I have these forum tabs 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:
PHP Code:

<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

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

jGas 07-18-2007 12:35 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?

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

Quote:

Originally Posted by Alfa1 (Post 1294085)
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.

Quote:

Originally Posted by Alfa1 (Post 1294085)
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

Quote:

Originally Posted by jGas (Post 1294557)
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.


Quote:

Originally Posted by jGas (Post 1294557)
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

Quote:

Originally Posted by AndrewD (Post 1291751)
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

Quote:

Originally Posted by minimalize (Post 1295003)
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

Quote:

Originally Posted by AndrewD (Post 1295348)
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

Quote:

Originally Posted by minimalize (Post 1295624)
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)
Code:

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

Code:

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

Quote:

Originally Posted by minimalize (Post 1295744)
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...Access_Control

AndrewD 07-19-2007 03:54 PM

Quote:

Originally Posted by Ipuck (Post 1295352)
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

Quote:

Originally Posted by Ipuck (Post 1295852)
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

Quote:

Originally Posted by CamJM (Post 1296284)
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?

jGas 07-20-2007 01:48 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! :)

AndrewD 07-20-2007 04:09 PM

Quote:

Originally Posted by jGas (Post 1296596)
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?


All times are GMT. The time now is 03:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03767 seconds
  • Memory Usage 1,870KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete