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)

nachtfalkesatul 06-03-2009 05:29 AM

i have a Question:

Wenn i create a new Category comes this error

Fatal error: Call to undefined function ldm_create_category() in /var/www/satulcvb/htdocs/local_links_actions.php on line 2450

Question to LDM.

I want the uploadtime behind the Uploader or upload Date!
Is that possible?

Best Regards

AndrewD 06-03-2009 05:45 AM

Quote:

Originally Posted by obmob (Post 1822505)
Well... went online with 2.3.0, everything was fine till i bumped into extra attributes added to certain entries.

I used it to add extra wallpaper size for some i had done. So, the attribute "widescreen" was used and it used to appear as a link, and hits to it were also added to the total count.

I had edited links_viewone_entity for that to happen.

Well, i tried the same this time, but no success, now, even if the attribute is a text i see the whole image in the attribute field.

Also a download link and a magnifier lenz.

If i change the attribute to be an image instead of a URL, te result is a thumbnail, but with no download link, just the magnifier.

In the end if i use this method, the hits are not counted.

Question: :p

Is there a way to show the thumbnail, but also be able to count hits... or, to hide the big image from my linkbit while the attribute is just a URL, would prefer to show the thumb and click on it to download. :D

Hope I was clear :confused:

*Edited*

I think I understand. I've removed the possibility to download images for extra attributes. The fix is straightforward. (Line numbers assume that you have installed version 2.3.0-RC5 - they might be slightly different with earlier versions.)

Edit includes/local_links_entities.php, around line 1159 find:
PHP Code:

    case ENTITY_TYPE_IMAGE :
    case 
ENTITY_TYPE_IMAGEUPLOAD :
        if (
$links_defaults['link_imagesize']) {
        
$entityimgurl $RESIZE_SCRIPT.'.php?'.$vbulletin->session->vars['sessionurl'].'linkid='.$linkid.'&entityid='.$entityid

and add line after:
PHP Code:

        $entitysave ldm_seo_url("jump"$linkcatid$linkid$entityid$pagenumber); 

Edit includes/local_links_main_fetch.php, around line 547 fine:
PHP Code:

    entity.entityvalue AS linkurlentity.entityvalue AS linkfile

and change to:
PHP Code:

    entity.entityvalue AS linkurl'' AS linkfile

(that is two single quotes, not one double quote)

AndrewD 06-03-2009 07:40 AM

Quote:

Originally Posted by nachtfalkesatul (Post 1822564)
i have a Question:

Wenn i create a new Category comes this error

Fatal error: Call to undefined function ldm_create_category() in /var/www/satulcvb/htdocs/local_links_actions.php on line 2450

Check that you have uploaded all the files correctly and into the correct directories. The function ldm_create_category() was moved from one file to another in the latest releases, so I suspect that you've got some old and some new code installed


Quote:

Originally Posted by nachtfalkesatul (Post 1822564)
Question to LDM.

I want the uploadtime behind the Uploader or upload Date!
Is that possible?

Best Regards

I'm not sure I understand. Do you mean that you want entries to indicate the time they were created/edited as well as the date? Or do you mean that you want to tell people how long it took to upload the file?

AndrewD 06-03-2009 07:43 AM

Quote:

Originally Posted by Leo Brazil (Post 1822208)
Man, I have to say, fastest support I ever had on here !! You should charge for your mod, I woudn't mind to pay.

Yes, double checking it, you're right, it seems only happens with "&".

This will be corrected in the next upload. If you want a fix now, here's what to do:

Edit includes/local_links_include.php, line 2369, change:
PHP Code:

    while ($rec=$vbulletin->db->fetch_array($asb)) {
        foreach (
$usernames as $k=>$v) {
            if (
$v==$rec['username']) { 

to
PHP Code:

    while ($rec=$vbulletin->db->fetch_array($asb)) {
        foreach (
$usernames as $k=>$v) {
            
$hv htmlspecialchars_uni($v);
            if (
$hv==$rec['username']) { 


nachtfalkesatul 06-03-2009 10:15 AM

Hi Andrew,

Thank you for you Answer,

Quote:

Originally Posted by AndrewD (Post 1822609)
I'm not sure I understand. Do you mean that you want entries to indicate the time they were created/edited as well as the date? Or do you mean that you want to tell people how long it took to upload the file?

I mean the Upload Time and Date to see for Users!
In my Version ist only upload Date to see.
For Users are better to see Uplad Date and Upload Time!



Quote:

Originally Posted by AndrewD (Post 1822609)
Check that you have uploaded all the files correctly and into the correct directories. The function ldm_create_category() was moved from one file to another in the latest releases, so I suspect that you've got some old and some new code installed

i have only the Version 2.3.0-beta1 installed

AndrewD 06-03-2009 12:56 PM

Quote:

Originally Posted by nachtfalkesatul (Post 1822651)
I mean the Upload Time and Date to see for Users!
In my Version ist only upload Date to see.
For Users are better to see Uplad Date and Upload Time!

The easiest way to do this is to create a small plugin. (I will consider making it an admin option in the next release.)

Go to vb/admincp/products and plugins and select Add New Plugin

Create a new plugin as follows:
- Product : Links and Downloads Manager
- Name : Whatever you like
- Plugin PHP Code:
PHP Code:

$linkdate ldm_date('d-M-y h:m'$linkdatebin); 

- Active : Yes

Save, and you should have the change you want. You can change the format ('d-M-y h:m' in the example above) as you wish.


Quote:

Originally Posted by nachtfalkesatul (Post 1822651)
i have only the Version 2.3.0-beta1 installed

I'm pretty sure that you've got an incomplete includes/local_links_include.php file. It should be 153 K in size, and the function ldm_create_category should begin at line 5134.

Leo Brazil 06-03-2009 02:06 PM

Quote:

Originally Posted by AndrewD (Post 1822511)
I think you've enabled LDM's SEO option without configuring your server to handle this. See http://www.eirma.org/wikis/index.php...e_Optimisation.

Yes, you got it. That was the thing. Solved.

Please, let me know when you have an idea with the "&" thing OK ? Even if you want me to test any version for you, no problem.

THX

AndrewD 06-03-2009 02:35 PM

Quote:

Originally Posted by Leo Brazil (Post 1822743)
Yes, you got it. That was the thing. Solved.

Please, let me know when you have an idea with the "&" thing OK ? Even if you want me to test any version for you, no problem.

THX

Good :)

see this post for the other fix.

Leo Brazil 06-03-2009 03:20 PM

Ops, my bad, I missed this post.

Thanks again

obmob 06-04-2009 03:18 AM

Quote:

Originally Posted by AndrewD (Post 1822569)
*Edited*

I think I understand. I've removed the possibility to download images for extra attributes. The fix is straightforward. (Line numbers assume that you have installed version 2.3.0-RC5 - they might be slightly different with earlier versions.)

Edit includes/local_links_entities.php, around line 1159 find:
PHP Code:

    case ENTITY_TYPE_IMAGE :
    case 
ENTITY_TYPE_IMAGEUPLOAD :
        if (
$links_defaults['link_imagesize']) {
        
$entityimgurl $RESIZE_SCRIPT.'.php?'.$vbulletin->session->vars['sessionurl'].'linkid='.$linkid.'&entityid='.$entityid

and add line after:
PHP Code:

        $entitysave ldm_seo_url("jump"$linkcatid$linkid$entityid$pagenumber); 

Edit includes/local_links_main_fetch.php, around line 547 fine:
PHP Code:

    entity.entityvalue AS linkurlentity.entityvalue AS linkfile

and change to:
PHP Code:

    entity.entityvalue AS linkurl'' AS linkfile

(that is two single quotes, not one double quote)

Thanks for the little update Andrew, worked really nice, after that I just needed to edit "links_entitymarkupbit" to make it look different.

Now, it is odd, i put align="center" and it is not in the middle o_O

Either way, it works and that's the most important thing.

Thank you very much!! :D

Take a look:
http://www.ositobarrigon.com/links.p...d=3&linkid=376


All times are GMT. The time now is 08:09 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03032 seconds
  • Memory Usage 1,790KB
  • 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
  • (11)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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