vb.org Archive

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

MissKalunji 09-06-2008 12:41 AM

is anyone available to do a template change for me? PM me

vbboarder 09-06-2008 02:27 AM

I reported this bug a few weeks ago, but did not test thoroughly:
Quote:

When editing an entry with both an uploaded file and an image file, if that image is deleted then the uploaded file is also deleted.
After testing some more, I discovered that this problem only occurs with photos and no other file types (ie: audio, video, etc). So I guess it's not a bug, but the Image Delete checkbox doesn't make sense because: 1. if the user wanted to change the photo/ thumbnail, he would just upload another one, 2. if the user wanted to delete the photo/ thumbnail, he would use the entry's delete button (located further down), and 3. there's no sense in having a thumbnail that's different from the original photo. Therefore, can you please disable the Image Delete checkbox IF the uploaded file is a photo? I'll be glad to test any changes :D

AndrewD 09-06-2008 05:37 AM

Quote:

Originally Posted by derfelix (Post 1615371)
btw... found a really teeny weeny one.. because errors can happen..
STANDARD_ERROR_LITE is not cached.. and..for some reason.. there is no header or footer when it is called.. (we are talking about generated errors like expired security token)
just want to let you know
Felix

thanks !! - just wait until 2.3.0 comes out - then you can help me find the REALLY BIG ONES !! I'm certain there are going to be some, and I will need some help

AndrewD 09-06-2008 05:37 AM

Quote:

Originally Posted by vbboarder (Post 1615587)
I reported this bug a few weeks ago, but did not test thoroughly:
After testing some more, I discovered that this problem only occurs with photos and no other file types (ie: audio, video, etc). So I guess it's not a bug, but the Image Delete checkbox doesn't make sense because: 1. if the user wanted to change the photo/ thumbnail, he would just upload another one, 2. if the user wanted to delete the photo/ thumbnail, he would use the entry's delete button (located further down), and 3. there's no sense in having a thumbnail that's different from the original photo. Therefore, can you please disable the Image Delete checkbox IF the uploaded file is a photo? I'll be glad to test any changes :D

I suspected that this might be the problem - thanks for testing some more - your suggestion makes perfect sense.

AndrewD 09-06-2008 05:42 AM

Quote:

Originally Posted by IR15H (Post 1615527)
Hello again,

Another thing I have noticed concerns table prefixes. I currently have all my vbulletin tables prefixed with vb_ in my database, but have noticed that the LDM ones are installed without this prefix. Is it possible to make it so that in future versions LDM tables also include such a prefix, if one is set?

Actually, it does have a prefix, just a different one by default, and it can be changed.

See includes/local_links_init.php, around line 48:

Code:

// Database Table Prefix
define('THIS_TABLE', 'local_');
// Uncomment this to use the standard VB table prefix...
// define ('THIS_TABLE', TABLE_PREFIX);

You can either change 'local_' to be what you want or you can remove the comment symbols (the //) from the second define statement to use the same prefix as vb (I would not recommend that because you might end up with one database table trying to serve two different masters)

Of course, if you change this in a live system, you will need to use a tool like phpmyadmin to rename your existing tables.

AndrewD 09-06-2008 06:55 AM

Quote:

Originally Posted by TsirhCitna (Post 1612234)
Request: Is there a way to have the page title of View Comments and Ratings to have the link name in the page title for better SEO?

This can be done, but it will add an extra database access every time someone looks at a comments page. This is not a huge deal, but I prefer not to add this unless it's really important for you.

AndrewD 09-06-2008 08:16 AM

Quote:

Originally Posted by derfelix (Post 1614831)
Hi andrew,

I think i discovered another teeny weeny bug... maybe you can reproduce and confirm..

PS: just checked the code.. fix would imply the rewrite the main query.. i think the easiest way to fix is to disable the keyword editing when you are in filter mode...

Fortunately, there was an easy fix for both these problems => 2.3.0

derfelix 09-06-2008 10:48 AM

Quote:

Originally Posted by AndrewD (Post 1615704)
Fortunately, there was an easy fix for both these problems => 2.3.0

Heyy... does that meen we are going to get 3.0 soon? :p

MissKalunji 09-06-2008 01:10 PM

how would i be able to ADD an image to the upload?

AndrewD 09-06-2008 02:02 PM

In 2.3.0:

Quote:

Originally Posted by derfelix (Post 1572283)
1. the styledependent category icons..

Added ldm_icons_cached hook in cache_LDMicons(), and defined $stylevar as a global

Quote:

Originally Posted by derfelix (Post 1572283)
2. multi language category titles and descriptions..

Added five hooks, essentially where indicated:
ldm_catbit_start in ldm_get_categorybits()
ldm_construct_catlist in ldm_construct_category_list()
ldm_maindisplay_title in main code
ldm_customfields_myentries in ldm_member_customfields_myentries()
ldm_customfields_myhits in ldm_member_customfields_myhits()

MissKalunji 09-06-2008 04:19 PM

Quote:

Originally Posted by MissKalunji (Post 1615817)
how would i be able to ADD an image to the upload?

in case you missed?

derfelix 09-06-2008 05:08 PM

Quote:

AndrewD
Hooks for Multi-language category titles
Wow.. as soon as i get hold of the copy i will get the product out for the multilanguage stuff...


btw.. i'm not being ungratefull.. because you are doing great work.. but as i am trying to test everything.. stumbled into another one:

if you go to the comment page.. you have a button "return" and it takes you back to the link... usually it works fine.. but:

If you did a search.. and within the search results you go to the comment page.. when you click the return from there.... it takes you back to the ldm homepage.. ie: the category list

Felix
PS: I'm leaving in a couple of hours for south of france.. and wont be online for 10 days...

AndrewD 09-06-2008 06:03 PM

Quote:

Originally Posted by MissKalunji (Post 1615817)
how would i be able to ADD an image to the upload?

ldm/admin/settings -> set link_imagesize to the size you want the images to display

then, the ldm/add entry menu command and entry/edit entry button will take you to a form which includes fields for an image url/an image upload

AndrewD 09-06-2008 06:04 PM

Quote:

Originally Posted by derfelix (Post 1615994)
Wow.. as soon as i get hold of the copy i will get the product out for the multilanguage stuff...


btw.. i'm not being ungratefull.. because you are doing great work.. but as i am trying to test everything.. stumbled into another one:

if you go to the comment page.. you have a button "return" and it takes you back to the link... usually it works fine.. but:

If you did a search.. and within the search results you go to the comment page.. when you click the return from there.... it takes you back to the ldm homepage.. ie: the category list

Felix
PS: I'm leaving in a couple of hours for south of france.. and wont be online for 10 days...

Enjoy...

I'm not ungrateful at all - so much code, so many routes through it - bound to be bugs.

IR15H 09-06-2008 06:37 PM

Quote:

Originally Posted by AndrewD (Post 1615650)
Actually, it does have a prefix, just a different one by default, and it can be changed.

See includes/local_links_init.php, around line 48:

Code:

// Database Table Prefix
define('THIS_TABLE', 'local_');
// Uncomment this to use the standard VB table prefix...
// define ('THIS_TABLE', TABLE_PREFIX);

You can either change 'local_' to be what you want or you can remove the comment symbols (the //) from the second define statement to use the same prefix as vb (I would not recommend that because you might end up with one database table trying to serve two different masters)

Of course, if you change this in a live system, you will need to use a tool like phpmyadmin to rename your existing tables.

Apologies for my error, and thanks for the info.

MissKalunji 09-07-2008 02:45 AM

Quote:

Originally Posted by AndrewD (Post 1616031)
ldm/admin/settings -> set link_imagesize to the size you want the images to display

then, the ldm/add entry menu command and entry/edit entry button will take you to a form which includes fields for an image url/an image upload

:)( Thank you something else

How would i go around to post the LINK of the download itself in the thread? like what i'm trying to do is

when you upload (example) an mp3 that it post a new thread with the LINK itself to the mp3 and that i would be able to embed it so if someone just want to view ONLY the thread without going to the download section itself just to listen example

i'm not sure if you get what i mean?

tekguru 09-07-2008 02:25 PM

Still running the 'post1' version at the moment, is it worthwhile upgrading yet?

AndrewD 09-07-2008 04:34 PM

Quote:

Originally Posted by MissKalunji (Post 1616300)
:)( Thank you something else

How would i go around to post the LINK of the download itself in the thread? like what i'm trying to do is

when you upload (example) an mp3 that it post a new thread with the LINK itself to the mp3 and that i would be able to embed it so if someone just want to view ONLY the thread without going to the download section itself just to listen example

i'm not sure if you get what i mean?

I think I understand.

Depending on what you want to do, this either requires a simple code edit or is quite difficult :)

If you *always* want to trigger a download/open a remote url, then edit includes/local_links_forumsinterface.php and find the line

Code:

        $gotolink = ldm_make_filename($vbulletin->options['bburl'], LINKS_SCRIPT.'.php?linkid='.$linkid.'&catid='.$linkcatid);
Change it to:
Code:

        $gotolink = ldm_make_filename($vbulletin->options['bburl'], LINKS_SCRIPT.'.php?action=jump&linkid='.$linkid.'&catid='.$linkcatid);
If you *always* want to open the file in the LDM jukebox, then change that line to
[code]
Change it to:
Code:

        $gotolink = ldm_make_filename($vbulletin->options['bburl'], LINKS_SCRIPT.'.php?action=play&linkid='.$linkid.'&catid='.$linkcatid);
If you want the code to be smart about the file type (i.e. play media files, download others), that would require more extensive changes in that file.

Note that these edits will not change any announcements that have already been created in your forums.

AndrewD 09-07-2008 04:35 PM

Quote:

Originally Posted by tekguru (Post 1616636)
Still running the 'post1' version at the moment, is it worthwhile upgrading yet?

Depends on whether you've been hit by any of the bugs that are fixed in post-2 and post-3. I've not had reports of new problems with these releases.

2.3.0 is coming quite soon, but will be in alpha/beta for a couple of months, I imagine.

MissKalunji 09-08-2008 01:12 AM

thank you :)

one more thing : links_playerbit_WimpyButton uncached

AndrewD 09-08-2008 03:29 AM

Quote:

Originally Posted by MissKalunji (Post 1617041)
thank you :)

one more thing : links_playerbit_WimpyButton uncached

thanks

MissKalunji 09-08-2008 03:37 AM

how can i do it manually?

Thank you so much for ALL of your hardwork!

AndrewD 09-08-2008 12:28 PM

Quote:

Originally Posted by MissKalunji (Post 1617097)
how can i do it manually?

Thank you so much for ALL of your hardwork!

Create a new plugin, attached to the cache_templates hook, with the following code

PHP Code:

if (is_array($globaltemplates)) {
    if (
in_array('links_main'$globaltemplates)) {
        
$globaltemplates[] = 'links_playerbit_WimpyButton';
    }



MissKalunji 09-08-2008 01:24 PM

oh ok i thought there was another way. cause i didn't see any plugin attached to links that had to do with "cache" :) thanks

TsirhCitna 09-08-2008 02:57 PM

How would I go about integrating your mod with this one to allow local embedding of videos?
https://vborg.vbsupport.ru/showthread.php?t=189267

MissKalunji 09-08-2008 05:02 PM

*request feature*

It would be cool if you could upload 2-3 files together for ONE entry example

like i have some audio files that are 3 different remix of the same artist instead of creating multiple entries you create ONE with the 3 audio player

That would be cool :) unless i'm blind and didn't see that option?

AndrewD 09-08-2008 07:54 PM

Quote:

Originally Posted by MissKalunji (Post 1617575)
*request feature*

It would be cool if you could upload 2-3 files together for ONE entry example

like i have some audio files that are 3 different remix of the same artist instead of creating multiple entries you create ONE with the 3 audio player

That would be cool :) unless i'm blind and didn't see that option?

Entry attributes -> LDM admin page! you can define multiple files associated with the same entry.

MissKalunji 09-08-2008 08:07 PM

Quote:

Originally Posted by AndrewD (Post 1617673)
Entry attributes -> LDM admin page! you can define multiple files associated with the same entry.

Lol see i knew there was a way lol

how can i make it the second entry play with the MP3 button?
and
How can i move the top navbar (that is administer etc etc to go right over sort by etc)? i want it to be on top of the categories / or new entries on every pages? i've searched through the templates and only find the links_header and that was it

sparklywater 09-08-2008 11:01 PM

How can I make the links in "Who's Online" display go directly to the embedded media pages instead of opening intermediary pages in the 'links_main' template?

obmob 09-09-2008 12:52 AM

Quote:

Originally Posted by AndrewD (Post 1617673)
Entry attributes -> LDM admin page! you can define multiple files associated with the same entry.

OMG! when did i miss this feature? :eek:

Will try, will try, would be nice to share different wallpapers with one entry.

ArnyVee 09-09-2008 02:04 AM

Wow, this is the first time that I've looked at possibly adding this mod and it seems like there are a lot of adjustments and changes that have to be made to get it to work.

Is it easier than it seems because there seems to be a lot of detail to get through on these 72 pages :D

Any tips or pointers to a beginner with this mod? I'm off to read the Wiki again as I glanced at it the first time.

AndrewD 09-09-2008 04:36 AM

Neither of those are currently straightforward.

Quote:

Originally Posted by MissKalunji (Post 1617677)
how can i make it the second entry play with the MP3 button?

Not possible in version 2.2.9. Will be there in 2.3.0

Quote:

Originally Posted by MissKalunji (Post 1617677)
How can i move the top navbar (that is administer etc etc to go right over sort by etc)? i want it to be on top of the categories / or new entries on every pages? i've searched through the templates and only find the links_header and that was it

Ditto.

In four years, you are the first person to ask this :). Currently, the LDM navbar is coded into the links_header template, so it is not trivial (but not impossible) to move. I will make it so in version 2.3.0. Essentially, you have to pull a major piece of that template into a new template, patch the code to assign that template to a new variable, and drop that variable into the links_main template.

AndrewD 09-09-2008 04:38 AM

Quote:

Originally Posted by ArnyVee (Post 1617878)
Wow, this is the first time that I've looked at possibly adding this mod and it seems like there are a lot of adjustments and changes that have to be made to get it to work.

Is it easier than it seems because there seems to be a lot of detail to get through on these 72 pages :D

Any tips or pointers to a beginner with this mod? I'm off to read the Wiki again as I glanced at it the first time.

It should be very easy to get working if you just follow the installation instructions (upload code, install product installer). The complexities come because this has grown into rather a flexible beast which can do many things. But I hope you'll find that everything is logically organised and that the wiki is easy to follow.

MissKalunji 09-09-2008 04:39 AM

Quote:

Originally Posted by AndrewD (Post 1617956)
Neither of those are currently straightforward.



Not possible in version 2.2.9. Will be there in 2.3.0



Ditto.

In four years, you are the first person to ask this :). Currently, the LDM navbar is coded into the links_header template, so it is not trivial (but not impossible) to move. I will make it so in version 2.3.0. Essentially, you have to pull a major piece of that template into a new template, patch the code to assign that template to a new variable, and drop that variable into the links_main template.

I had a feeling it was more complicated then that lol. I'll try myself (no for real think i might wait on 2.3.0) lol

Thanks!

AndrewD 09-09-2008 04:44 AM

Quote:

Originally Posted by sparklywater (Post 1617750)
How can I make the links in "Who's Online" display go directly to the embedded media pages instead of opening intermediary pages in the 'links_main' template?

The code is in includes/local_links_profile.php. There are three lines

PHP Code:

    '<a href="'.LINKS_SCRIPT.'.php?catid='.$myrow['catid'].'&amp;linkid='.$myrow['linkid'].'" title="'.$catname_clean.'" target="_blank">'

Change these to

PHP Code:

    '<a href="'.LINKS_SCRIPT.'.php?action=play&amp;catid='.$myrow['catid'].'&amp;linkid='.$myrow['linkid'].'" title="'.$catname_clean.'" target="_blank">'


Alfa1 09-09-2008 09:45 AM

Any idea about this?
Quote:

Originally Posted by Alfa1 (Post 1615426)
Is there anything special that I need to do to get ldm_new_media.module working? ldm_new.module works fine.


jdunsworth 09-09-2008 10:44 AM

First off, excellent mod.. very deep and well written. I am having a similar problem to a few listed above but with no result.

Currently when trying to add an entry all of the filetypes show a size limit of 7.00 Mbytes. The admin panel states that these limits come from the attachment allowances, however, most of our attachments are different than this.

In addition, when uploading anything bigger than 7MB (guessing this is the line between nonsubmission and not) we get a security token error. This happens both in Firefox and Internet Explorer. I have tried the Firefox id fix as well as checking to ensure the vBulletin security tokens exist in the submission forms and the CMSF protection is true in these and everything should be fine.

I am just unsure as to why none of these are working and my very last ditch effort is to reinstall everything considering the amount of uploads we have. Any help is appreciated!

MissKalunji 09-09-2008 11:47 AM

Quote:

Originally Posted by AndrewD (Post 1617956)
Neither of those are currently straightforward.



Not possible in version 2.2.9. Will be there in 2.3.0



Ditto.

In four years, you are the first person to ask this :). Currently, the LDM navbar is coded into the links_header template, so it is not trivial (but not impossible) to move. I will make it so in version 2.3.0. Essentially, you have to pull a major piece of that template into a new template, patch the code to assign that template to a new variable, and drop that variable into the links_main template.

I got it :) thanks!

sparklywater 09-09-2008 12:28 PM

Quote:

Originally Posted by AndrewD (Post 1617960)
The code is in includes/local_links_profile.php. There are three lines

PHP Code:

    '<a href="'.LINKS_SCRIPT.'.php?catid='.$myrow['catid'].'&amp;linkid='.$myrow['linkid'].'" title="'.$catname_clean.'" target="_blank">'

Change these to

PHP Code:

    '<a href="'.LINKS_SCRIPT.'.php?action=play&amp;catid='.$myrow['catid'].'&amp;linkid='.$myrow['linkid'].'" title="'.$catname_clean.'" target="_blank">'


Thanks for taking your time to reply. I tried making that change but it didn't do what I had asked. To clarify, I am providing an image below of the "Who's Online" display. The entry that has been circled in red is the link that should go directly to the embedded player page when a person clicks on that link. But the user is taken to a non-embedded page instead:


AndrewD 09-09-2008 03:17 PM

Quote:

Originally Posted by jdunsworth (Post 1618141)
First off, excellent mod.. very deep and well written. I am having a similar problem to a few listed above but with no result.

Currently when trying to add an entry all of the filetypes show a size limit of 7.00 Mbytes. The admin panel states that these limits come from the attachment allowances, however, most of our attachments are different than this.

In addition, when uploading anything bigger than 7MB (guessing this is the line between nonsubmission and not) we get a security token error. This happens both in Firefox and Internet Explorer. I have tried the Firefox id fix as well as checking to ensure the vBulletin security tokens exist in the submission forms and the CMSF protection is true in these and everything should be fine.

I am just unsure as to why none of these are working and my very last ditch effort is to reinstall everything considering the amount of uploads we have. Any help is appreciated!

Clearly there is a security token problem that I have not discovered yet. Perhaps it is related to the following:

If you are trying to process an upload as an admin, the size limits in the attachment table are ignored. However, you cannot over-ride the limits set by your php environment, which is determined by two settings in the php.ini file used by your web server. These settings upload_max_filesize and post_max_size. You can find these values tabulated on the LDM admin pages in the left side column or using vb/admincp/maintenance/phpinfo - I imagine you will find that 7Mb is the smaller of these values. To change these values, you need to contact your web site admin.

As explained in the online wiki, it is important that post_max_size has the same value, or a larger value, as upload_max_filesize.

Let me know if this does not help.


All times are GMT. The time now is 05:01 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.03881 seconds
  • Memory Usage 1,886KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_php_printable
  • (31)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