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)

abdelghani68 09-14-2008 05:29 PM

in the version 2.3.0 :

How to center the title :

http://www.monsterup.com/upload/1221416681.jpg

How to do for the bcode isn't display in the previsualisation :

http://www.monsterup.com/upload/1221416907.jpg

thanks

AndrewD 09-14-2008 05:51 PM

Quote:

Originally Posted by sparklywater (Post 1622080)
If the 'default_sort_order' is set to 'Title (ascending)' for a given category, and the entries in that category are an ascending list of numbers (1, 2, 3, 4, 5 ... 100 ), then LDM does not correctly list these entries in ascending order of numbers. Instead, it lists the numbers like this:

1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30, 31, 32, 33 ...

This is a well-known problem with computer sorts - they don't do what people consider right! It seems that one can fix the problem without any unwanted side effects by making a small change to the database query.

edit includes/local_links_include.php

find function ldm_get_sortsql and change the function's code as follows:

PHP Code:

function ldm_get_sortsql($sort$withlinkdorder=1) {
    
$linkdorder = ($withlinkdorder "linkdorder ASC, " "");
    if (
is_numeric($sort)) {
        
$sorder $linkdorder."  linkrecenthits DESC, linkname + 0 ASC, linkcatid ASC";
    }
    else {
        switch (
$sort) {
        case 
'r'$sorder $linkdorder."  IF(numrate>0,(totrate/numrate),numrate) DESC, linkname + 0 ASC, linkcatid ASC"; break;
        case 
'R'$sorder $linkdorder."  IF(numrate>0,(totrate/numrate),numrate) ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'd'$sorder $linkdorder."  linkdate DESC, linkname + 0 ASC, linkcatid ASC"; break;
        case 
'D'$sorder $linkdorder."  linkdate ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'h'$sorder $linkdorder."  linkhits DESC, linkname + 0 ASC, linkcatid ASC"; break;
        case 
'H'$sorder $linkdorder."  linkhits ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'u'$sorder $linkdorder."  linkusername + 0 DESC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'U'$sorder $linkdorder."  linkusername + 0 ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'n'$sorder $linkdorder."  linkname + 0 DESC, linkcatid ASC"; break;
        case 
'N':
        default:  
$sorder $linkdorder."  linkname + 0 ASC,  linkcatid ASC"; break;
        }
    }

    (
$hook vBulletinHook::fetch_hook('ldm_sortsql_complete')) ? eval($hook) : false;

    return 
$sorder;


(the change is to add "+ 0" after every text field)

AndrewD 09-14-2008 06:07 PM

Quote:

Originally Posted by abdelghani68 (Post 1622092)
in the version 2.3.0 :

How to center the title :


How to do for the bcode isn't display in the previsualisation :


thanks

Not sure - both of these work fine for me.

are you sure you've got bbcodes enabled on the ldm admin/settings page?

sparklywater 09-14-2008 06:46 PM

Quote:

Originally Posted by AndrewD (Post 1622102)
This is a well-known problem with computer sorts - they don't do what people consider right! It seems that one can fix the problem without any unwanted side effects by making a small change to the database query.

edit includes/local_links_include.php

find function ldm_get_sortsql and change the function's code as follows:

---

(the change is to add "+ 0" after every text field)


Thanks, that's now sorted (pun is intended) :)

sparklywater 09-14-2008 07:37 PM

I've just checked my other category listing and the above change has messed up the alphabetical order of the list. I will be undoing those changes now.



TsirhCitna 09-14-2008 08:48 PM

The new media vba module drastically slows my page generation.

From: Page generated in 0.35296 seconds with 26 queries [Server Loads: 8.33 8.54 : 10.39]
To: Page generated in 6.83178 seconds with 35 queries [Server Loads: 8.72 8.50 : 10.01]

9 more queries to show 5 links?

MissKalunji 09-14-2008 09:01 PM

Quote:

Originally Posted by AndrewD (Post 1622039)
The most noticable change is to the 'inline comment and ratings'. These can be ajax-enabled so that quick remarks can be added without having to go to the advanced comment and rating page, and the most recent remarks can be seen on every linkbit page.

Uhm heads up the ajax comment isn't working when i press the comment it still loads the other page...

Saint_I_Am 09-14-2008 09:52 PM

Quote:

Originally Posted by AndrewD (Post 1621989)
The flash sites plugin seems to work ok for me with youtube. Install it (nb, remember to upload the includes/local_links_flashsite.php file as well) and then create an entry with url that points to a youtube video (i used http://www.youtube.com/watch?v=dompotjTeIA). The hyperlink on the LDM entry title shows a "Play Me" popup when you hover over it. Clicking the link takes you to the jukebox and it plays ok.

What is the situation your end?

I have everything installed ok. When I click on the file a new window opens and it redirects to the YouTube page where the video is

yahoooh 09-14-2008 10:27 PM

AndrewD
i have folder with more than 3000 bmp images
i want to put it in category with description begin like this:
HTML Code:

[img]https://vborg.vbsupport.ru/external/2008/09/1.bmp[/img]
and so on for other files
this will give the picture appearing in the description
i open new category , i run scan admin
and it insert all files but the error is not write description as i want

i use this in:links_scantext
PHP Code:

$file[name] [img]https://vborg.vbsupport.ru/[/img] 

but $file[name] not show any thing !
i test the default template and also it will not whow the filename
i need to show filename with extension also to make it work

plz help me
thanks

Kosovarap 09-15-2008 12:27 AM

This is by far the best mod in my opinion. Great stuff.
Installed, looks/works great. I just need to learn a little about it.
So i got a few questions:

- I use the scan/server option, to add Songs for example, but it says:
Code:

Skipped (not in mimetype table): mp3 [14]
How do i add them into mimetype table?

I noticed there's Media Players to stream them directly, but i have no idea how to use them, insert them.
How do I use the Media players? Is there a command i should know?


I appreciate the work,
Thank you


All times are GMT. The time now is 05:21 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.02965 seconds
  • Memory Usage 1,770KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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