vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

|oR|Greg 03-27-2006 06:32 PM

Sigh, I don't know man, but I just uploaded something last night after the upgrade, it didn't retain the name. I downloaded the file, renamed it, re-uploaded it, and it's fine. Such is life. Thanks for the great hack.

As you can see on the site, I use it to it's full potential.

http://www.limmac.org/vb/local_links.php

AndrewD 03-28-2006 02:27 AM

Quote:

Originally Posted by |oR|Greg
Sigh, I don't know man, but I just uploaded something last night after the upgrade, it didn't retain the name. I downloaded the file, renamed it, re-uploaded it, and it's fine. Such is life. Thanks for the great hack.

As you can see on the site, I use it to it's full potential.

http://www.limmac.org/vb/local_links.php


I'm bemused by this. If you find out more, I'll gladly take a look.

shiva 03-28-2006 02:44 AM

I upgraded, though had a couple of problems because of my host. Works fine so far, though auto parsing of links will only work on new posts. (No biggie, just re-add them in)

Where's that setting in admin to allow/prohibit duplicates by default? Too many settings... :)

AndrewD 03-28-2006 02:46 AM

Quote:

Originally Posted by shiva
I upgraded, though had a couple of problems because of my host. Works fine so far, though auto parsing of links will only work on new posts. (No biggie, just re-add them in)

Where's that setting in admin to allow/prohibit duplicates by default? Too many settings... :)

LDM/admin/settings/allow_duplicates (bottom of the first group)

|oR|Greg 03-28-2006 03:46 AM

Quote:

Originally Posted by AndrewD
I'm bemused by this. If you find out more, I'll gladly take a look.

Upon further investigation, my forum halted with javascript errors right after the upgrade as well. I did a reinstallation and now everything is working. Kinda strange, don't know why your hack hosed the javascript for the WYSIWYG editor?

Here's the useless thread I made over at vbulletin.com

http://www.vbulletin.com/forum/showthread.php?t=180262

AndrewD 03-28-2006 08:38 AM

Quote:

Originally Posted by |oR|Greg
Upon further investigation, my forum halted with javascript errors right after the upgrade as well. I did a reinstallation and now everything is working. Kinda strange, don't know why your hack hosed the javascript for the WYSIWYG editor?

Here's the useless thread I made over at vbulletin.com

http://www.vbulletin.com/forum/showthread.php?t=180262

Greg, I'm happy to try to track down problems, but I can't do much with words like 'hosed'. You described this hack on vbulletin.com as 'a hack that you were suspect of' - maybe you can explain why so that we can get to the bottoms of this?

|oR|Greg 03-28-2006 12:51 PM

I fixed it Andrew, no need to investigate, it was user error on my part. All fixed. Thanks.

|oR|Greg 03-28-2006 01:40 PM

I do have a question though Andrew. I want to start making my own templates to use like the links_linkbit_table, ya know, something that I can select that is my own formatting, but I don't want to overwrite your templates.

I went into Styles & Templates, added a new template with the code I want to use, but it doesn't add it to your Links and Downloads of course, just to the Custom Templates section. How do I use that new template in LDM?

AndrewD 03-28-2006 02:03 PM

Quote:

Originally Posted by |oR|Greg
I do have a question though Andrew. I want to start making my own templates to use like the links_linkbit_table, ya know, something that I can select that is my own formatting, but I don't want to overwrite your templates.

I went into Styles & Templates, added a new template with the code I want to use, but it doesn't add it to your Links and Downloads of course, just to the Custom Templates section. How do I use that new template in LDM?

You're wanting to have additional templates, rather than just a different style? Easiest approach would be to create a new style and simply customise one of the linkbit templates in that style, and tell LDM to use the new style for those categories of interest (on the edit category/display settings tab)

If you really want to add additional templates, then this is a straightforward edit to the code. Go into local_links_include.php, and about 250 lines in, you'll find an array declaration as follows:

PHP Code:

$linkbitcache = array(
    
"links_linkbit_short" => array("collapse"=>0"defcol"=>1"maxcol"=>3"altbit"=>"links_linkbit"),
    
"links_linkbit" => array("collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>1"altbit"=>"links_linkbit"),
    
"links_linkbit_table" => array("collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>2"altbit"=>"links_linkbit_table"),
    
"links_linkbit_photo" => array("collapse"=>0"defcol"=>$maxpic"maxcol"=>$maxpic"altbit"=>"links_linkbit"),
); 

Just add your new template to the end of the array, and it will magically appear on the list of choices.

For example:
PHP Code:

    "mylinks_linkbit_new" => array("collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>1"altbit"=>"links_linkbit"), 

There are a few lines of comment just above the array, explaining the parameters.

|oR|Greg 03-28-2006 02:14 PM

I'll try with the code you mentioned. However I'm curious as to what you mean about a new style? How do I add a new style to LDM?


All times are GMT. The time now is 06:27 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.03216 seconds
  • Memory Usage 1,756KB
  • 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
  • (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