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)

AndrewD 09-15-2008 04:26 AM

Quote:

Originally Posted by Saint_I_Am (Post 1622321)
The url of the youtube video I am trying to add for example is http://au.youtube.com/watch?v=??????? I need it so that members in Australia can use that first url format

This needs a minor change in include/local_links_flashplayers.php - I would like to test the change before explaining it - expect a reply this evening.

vbboarder 09-15-2008 06:22 AM

Thanks Andrew for the update to 2.3.0-alpha! I'm really looking forward to trying it out! I really like the ajax-enabled ratings/comments and the enhancement upgrades for id3 tags.... which reminds me of:

Feature Request: The # of attributes can become large and unwieldy for a site that allows many filetypes. This can be overwhelming for users posting new entries. To make attributes more manageable, can you add 2 features:
1. For each attribute group, can you show them inside a collapsible table (similar to VB's collapsible forum tables) and provide options of having or not having each group initially collapsed?
2. Can you allow attribute groups to be assignable to categories so that a group will appear when adding/ editing an entry only if the category has enabled that attribute group?
Thanks for considering these requests.

AndrewD 09-15-2008 09:46 AM

Quote:

Originally Posted by vbboarder (Post 1622471)
Thanks Andrew for the update to 2.3.0-alpha! I'm really looking forward to trying it out! I really like the ajax-enabled ratings/comments and the enhancement upgrades for id3 tags.... which reminds me of:

Feature Request: The # of attributes can become large and unwieldy for a site that allows many filetypes. This can be overwhelming for users posting new entries. To make attributes more manageable, can you add 2 features:
1. For each attribute group, can you show them inside a collapsible table (similar to VB's collapsible forum tables) and provide options of having or not having each group initially collapsed?
2. Can you allow attribute groups to be assignable to categories so that a group will appear when adding/ editing an entry only if the category has enabled that attribute group?
Thanks for considering these requests.

I think these are very sensible suggestions for taking attributes forward, and will see what I can do to implement them.

Saint_I_Am 09-15-2008 12:52 PM

Quote:

Originally Posted by AndrewD (Post 1622421)
This needs a minor change in include/local_links_flashplayers.php - I would like to test the change before explaining it - expect a reply this evening.

Thanks, looking forward to it

AndrewD 09-15-2008 03:52 PM

Quote:

Originally Posted by MissKalunji (Post 1622411)
oh and hope you won't be mad it's Favorite not favourite *hides face*

Outraged and incandescent :mad: - had that discussion with another dasterdly foreigner a couple of years back - am quite happy to distribute another language translation if someone can handle it - like all Brits, I don't speak other languages very well :):)

AndrewD 09-15-2008 04:07 PM

Quote:

Originally Posted by Saint_I_Am (Post 1622597)
Thanks, looking forward to it

Edit includes/local_links_flashsites.php, find the lines:

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://www.youtube.com/v/$2"

and replace by

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://([a-z]+.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://$1.com/v/$2"

This will work with any alphabetical alternative to www.youtube

Please note that a number of the video sites originally coded in that 'extra' may not work any longer - I don't have time to keep checking them an dthe sites do tend to change the formats of their urls.

MissKalunji 09-15-2008 04:09 PM

Quote:

Originally Posted by AndrewD (Post 1622683)
Outraged and incandescent :mad: - had that discussion with another dasterdly foreigner a couple of years back - am quite happy to distribute another language translation if someone can handle it - like all Brits, I don't speak other languages very well :):)

oh lol i don't really care i thought you never noticed *hangs head* sorry

AndrewD 09-15-2008 04:11 PM

Quote:

Originally Posted by sparklywater (Post 1622174)
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.

Sorry to discover that. I am surprised that the site I got the information from said that there were no side effects. As far as I know, MySQL does not offer a 'natural order' search option, which is what you are looking for, and the alternative of doing this in php will make page generation much more costly.

You can always try the old trick of putting zeros at the beginning of the labels, so that they are all the same length.

AndrewD 09-15-2008 04:27 PM

Quote:

Originally Posted by TsirhCitna (Post 1622215)
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?

As I said, I'm somewhat surprised. I ran a test on a vba page using only the new media module and attach the results. The 2.3.0 code used 10 queries and took 0.24 seconds. The 2.2.9 code used 15 queries and took 0.40 seconds.

Any chance that you were doing something else at the same time?

sparklywater 09-15-2008 04:50 PM

Quote:

Originally Posted by AndrewD (Post 1622030)
Different people will want different things. I've now done three versions of this for you, and each time you seem to explain that you want something different. What you are now describing requires loading quite a lot of the LDM infrastructure in order to work out what each user is actually doing and to deal with different combinations of permissions, etc. I don't think that this is justified just to save some people one click.

If you look at this preview of an entry of a pdf file:


https://vborg.vbsupport.ru/attachmen...1&d=1221500888


Do you see in the red circle the extended description of a category is displayed?
If this is a preview of an entry, then why is the description of a category displayed here?


All times are GMT. The time now is 06:32 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.02083 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)bbcode_php_printable
  • (9)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