vb.org Archive

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

Slave 08-15-2006 07:06 AM

Quote:

Originally Posted by AndrewD
I think you should put the variable $linkcatname in the template links_vbalinks

I'd prefer not to add vba parameters in the LDM admin, but I'm happy to modify the lmd_hot and ldm_new modules and links_vbalinks template to make the display of template name an option which is controlled by a switch in these modules

Yeah .. that would be cool :)

AndrewD 08-15-2006 07:09 AM

Quote:

Originally Posted by Slave
Problem ..

I've just moved over to using a Mac (lovely lovely machine) .. and I've found that in both the Safari and Opera browsers the "Control Settings" and "User Group Permissions" tabs in the category edit screen don't work ..

Ahh .. just tried it in IE on a WinXP box and the same thing happens (or doesn't ;))

Sure? I've just tried it and it seems ok. What happens (or doesn't)?

Slave 08-15-2006 07:13 AM

Quote:

Originally Posted by AndrewD
Sure? I've just tried it and it seems ok. What happens (or doesn't)?

In IE I get an "Error on page" .. in Safari and Opera nothing happens :)

Hmm .. shall I send you the admin account for you to look?

AndrewD 08-15-2006 07:20 AM

Quote:

Originally Posted by Slave
In IE I get an "Error on page" .. in Safari and Opera nothing happens :)

Hmm .. shall I send you the admin account for you to look?

Please...

Slave 08-15-2006 07:23 AM

Done :)

AndrewD 08-15-2006 07:42 AM

Quote:

Originally Posted by Slave
Done :)

I think you've patched the templates in order to fit everything into your column display. The links_header template now declares some javascript that control (e.g.) the tabs on the category edit form. You need to include this in whatever template you're using as header:

LDM version 2.2.5:

Code:

<script language="JavaScript" type="text/javascript">
<!--

function ldmshow(object, k, n)
{
        for (var i=1; i <= n; i++)
        {
                obj = fetch_object(object + i);
                if (i==k)
                {
                        obj.style.display = '';
                }
                else
                {
                        obj.style.display = 'none';
                }
        }
}

function ldmtextLimit(field, maxlen)
{
        if (field.value.length > maxlen)
        {
                field.value = field.value.substring(0, maxlen);
        }
}

function ldmtextDOI(field)
{
        field.value = field.value.replace(/[^a-zA-Z0-9-_]+/g, "");
}

function ldmpopup(URL)
{
        window.open(URL,'player','width=$links_defaults[musicbox_standalone_width],height=$links_defaults[musicbox_standalone_height],toolbar=no,personalbar=no,location=no,directories=no,statusbar=no,menubar=no,status=no,resizable=yes,left=60,screenX=60,top=100,screenY=100');
}

if (location.search.substring(1)=="focuswin")
{
        window.focus();
}

// -->
</script>

LDM version 2.2.6 and higher:

Code:

<script type="text/javascript" src="clientscript/ldm_global.js"></script>

Slave 08-15-2006 07:49 AM

Hmm .. I take it that's new? .. as it worked before.

I'm using the suggested way to wrap vBa columns around other areas of the forums (which can be found in the vBa manual)

I believe this uses the normal vB header .. so I'll try adding the above code into that and see what happens. I'll let you know how it goes :)

Thanks for taking a look :D

Slave 08-15-2006 07:55 AM

Yep .. adding it to the normal vB header template has sorted it .. :)

It might be worth adding something to the manual about that as I'm sure I'm not the only one to use that vBa "trick" ..

AndrewD 08-15-2006 08:15 AM

Quote:

Originally Posted by Slave
Yep .. adding it to the normal vB header template has sorted it .. :)

It might be worth adding something to the manual about that as I'm sure I'm not the only one to use that vBa "trick" ..

Done. I'm not very happy with the manual. Grendel suggested changing it to a wiki a few months back. I might look into that, then everyone could help keep the information up to date.

EasyTarget 08-15-2006 08:28 AM

sorry for the delay, just barely got around to updating to the new ldm script.
Quote:

Originally Posted by AndrewD
Yes

The same code is used to build both the cmps ldm_new and ldm_hot modules, as well as the patch-forumhome-newlinks extra. This code sets up a variable $linkimgshow which can be used to display the thumbnail. By default, this variable is not displayed - all you need to do is edit the links_vbalinks template and refer to $linkimgshow.

I switched $linkhits with $linkimgshow and it shows images in the what's going on box now. However I was wondering if you could help me to display it something like this? Attachment 32754


All times are GMT. The time now is 12:48 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.02108 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (7)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