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)

kylek 08-15-2006 05:55 AM

Thanks, glad its not just me that found it confusing. So if you have say a bunch of different categories like rock & roll, classical, etc. each category would need to be edited and set for parent forum?

Slave 08-15-2006 06:15 AM

Quote:

Originally Posted by AndrewD
Whichever vba module is using functions_gallery.php is declaring a function called empty_category, and so is LDM. PHP does not allow this. So one of us will have to change the name of the code :) I will do so in the next upload. In the meantime, you can fix this by editing lines 1812 and 1815 of local_links_admin.php and lines 2935, 2997 and 3257 in includes/local_links_include.php

Just change empty_category to (e.g.) ldm_empty_category

Thanks Andrew, that seems to do the trick. Although I also had to add "ldm_" in front of delete_category a couple of time too. (Didn't add it to the can_delete_category in local_links_admin.php .. should I?)

One thing, I started to get the title "Latest Links" showing twice at the top of the module. In the manual it says to have "Use Module Shell Template" as "Yes" but if you have this as "No" this behavior goes away.

AndrewD 08-15-2006 06:23 AM

Quote:

Originally Posted by kylek
Thanks, glad its not just me that found it confusing. So if you have say a bunch of different categories like rock & roll, classical, etc. each category would need to be edited and set for parent forum?

That's right, if you want the auto threads to go into different forums. Or if you want them all to go into the same forum, just give default_forumid a value. Bear in mind that you'll have to edit any categories that you've already created, as the association is made at the time these are created/edited.

There's a long history to the forum association setting, which I'm gradually trying to unwind in favour of inherited settings and permissions, but it takes time and I don't want to break people's boards in the meantime...

AndrewD 08-15-2006 06:24 AM

Quote:

Originally Posted by Slave
Thanks Andrew, that seems to do the trick. Although I also had to add "ldm_" in front of delete_category a couple of time too.

Thanks

Quote:

Originally Posted by Slave
(Didn't add it to the can_delete_category in local_links_admin.php .. should I?)

No

Quote:

Originally Posted by Slave
One thing, I started to get the title "Latest Links" showing twice at the top of the module. In the manual it says to have "Use Module Shell Template" as "Yes" but if you have this as "No" this behavior goes away.

Yes, I don't routinely check LDM and vba, as I don't use vba

Slave 08-15-2006 06:28 AM

Also, can you remind me how to get the category showing in the module.

Any chance of making this a "Show category a link is from within module" setting on the admin page?

kylek 08-15-2006 06:35 AM

Quote:

Originally Posted by AndrewD
That's right, if you want the auto threads to go into different forums. Or if you want them all to go into the same forum, just give default_forumid a value. Bear in mind that you'll have to edit any categories that you've already created, as the association is made at the time these are created/edited.

There's a long history to the forum association setting, which I'm gradually trying to unwind in favour of inherited settings and permissions, but it takes time and I don't want to break people's boards in the meantime...


Thanks for all the answers by the way, great support!!

I surprised myself and got the integration going, nothing was showing until I noticed and clicked on the "keep linked forum" in the settings and they are showing now on the main forum as sub forums. Yahoooo!!

Slave 08-15-2006 06:57 AM

Quote:

Originally Posted by Slave
Also, can you remind me how to get the category showing in the module.

Any chance of making this a "Show category a link is from within module" setting on the admin page?

Ahh .. finally found it in the old 3.5 thread. You need to add "$linkcatname" to the "links_vba_links" template.

Is this in the manual anywhere?

AndrewD 08-15-2006 06:57 AM

Quote:

Originally Posted by Slave
Also, can you remind me how to get the category showing in the module.

Any chance of making this a "Show category a link is from within module" setting on the admin page?

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

AndrewD 08-15-2006 06:58 AM

Quote:

Originally Posted by Slave
Ahh .. finally found it in the old 3.5 thread. You need to add "$linkcatname" to the "links_vba_links" template.

Is this in the manual anywhere?

Snap. and probably no

Slave 08-15-2006 07:04 AM

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 ;))

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

sickboy6ths 08-15-2006 08:44 AM

There are 2 functions that you specify in your code, but the same functions are already in use by vbGallery...

These 2 functions:
empty_category
delete_category

found in:
local_links_include.php

AndrewD 08-15-2006 08:48 AM

Quote:

Originally Posted by EasyTarget
sorry for the delay, just barely got around to updating to the new ldm script.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

Probably. What you want is a box across the top of a forum that displays thumbnail images from LDM? Give me a few more details.

Slave 08-15-2006 09:06 AM

Not sure if this is by design ..

I've added a keyword to a couple of my entries as a test :) .. When I go to the search page and enter my keyword, untick the search option "title/description", only have "Keywords" ticked and press search I get the list that I am expecting of links that have the keyword. But it also highlights in red the word in all the links in which that word appears.

I would of expected this if I had "title/description" ticked as that's what it's searching for. I wouldn't expect to see this if it's unticked.

AndrewD 08-15-2006 09:08 AM

Quote:

Originally Posted by Slave
Not sure if this is by design ..

I've added a keyword to a couple of my entries as a test :) .. When I go to the search page and enter my keyword, untick the search option "title/description", only have "Keywords" ticked and press search I get the list that I am expecting of links that have the keyword. But it also highlights in red the word in all the links in which that word appears.

I would of expected this if I had "title/description" ticked as that's what it's searching for. I wouldn't expect to see this if it's unticked.

It's by (accidental) design. It correctly does the search on keywords but it highlights the search phrase everywhere.

Slave 08-15-2006 09:14 AM

Ok .. :) .. If you're happy, I'm happy .. heh :)

Slave 08-15-2006 09:18 AM

Suggestion ..

You know how in vB 3.6 they've added an extra line in the search dropdown, giving you the option of "Show Threads" and "Show Posts" .. how about the same sort of thing for the LDM search dropdown for "title/description" and "keywords"?

:)

Slave 08-15-2006 09:23 AM

Another suggestion ..

Any chance we can change the way featured links get picked? .. instead of relying on one persons favourites list (which means I can't use my list as I would want), could we not just have a tick box within the edit link page "Make this a featured link"?

Forget that .. I forgot about numbered ordering :)

Slave 08-15-2006 10:05 AM

btw .. did you ever get anywhere with enabling the "forumbit_display" plugin to look into subcats for latest link info?

obmob 08-15-2006 03:29 PM

OH, showing latest additions with thumbnails would be great :D

Don't know, to have the chance to set the number, cause my thumbs are 250 width :p

Also, is it possible to show 1 random item in forumhome or in vbadvanced? I mean ony one with thumb?

AndrewD 08-16-2006 04:02 AM

Quote:

Originally Posted by sickboy6ths
There are 2 functions that you specify in your code, but the same functions are already in use by vbGallery...

These 2 functions:
empty_category
delete_category

found in:
local_links_include.php

Yes, Slave also discovered this. I'll change them in the next release. Thanks.

AndrewD 08-16-2006 04:05 AM

Quote:

Originally Posted by Slave
btw .. did you ever get anywhere with enabling the "forumbit_display" plugin to look into subcats for latest link info?

Not as far as I can see/recall.

EasyTarget 08-16-2006 08:56 AM

Quote:

Originally Posted by AndrewD
Probably. What you want is a box across the top of a forum that displays thumbnail images from LDM? Give me a few more details.

ok, dunno what others want, but for me I envision a box where I can specify the thumbnail size, the category/categories that the images get pulled from, how many thumbnails to fit in a row, and whether it pulls the images randomly, from newly submitted images or both. I don't really want the details, just the picture.. maybe a mouseover will bring up the name of the picture or other info and clicking on it would bring them to the ldm details page with the image.

Maybe categories that are setup using the image layout could have a preview of the previous and next image below the current image as well.

I would use it on the forumhome but maybe others would find it useful for the vbadvanced as well.

kylek 08-16-2006 06:35 PM

Just started to get this error:

Database error in vBulletin 3.6.0:

Invalid SQL:

UPDATE local_linkslink
SET linkstatus=-1, linkcheck=
WHERE linkid='14'
LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE linkid='14'
LIMIT 1' at line 3
Error Number : 1064
Date : Wednesday, August 16th 2006 @ 02:28:24 PM
Script : http://www.xxxxxxxxxxx.xxx/forum/loc...catid=7&page=1
Referrer : http://www.xxxxxxxxxxxxx.xx/forum/lo...inkid=4&page=1

Is this something to do with the 2 way auto create threads?

Code Monkey 08-17-2006 03:50 AM

local_resize.php throws a big ugly url up in who's online. I got rid of it by adding this after define('THIS_SCRIPT', 'local_resize');

Code:

define('SKIP_SESSIONCREATE', 1);
define('SESSION_BYPASS', 1);
define('NOCOOKIES', 1);
define('DIE_QUIETLY', 1);
define('SKIP_DEFAULTDATASTORE', 1);

Plus it's more efficient as it keeps many vb functions from running when they are not needed.

AndrewD 08-17-2006 03:55 AM

Quote:

Originally Posted by kylek
Just started to get this error:

Database error in vBulletin 3.6.0:

Invalid SQL:

UPDATE local_linkslink
SET linkstatus=-1, linkcheck=
WHERE linkid='14'
LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE linkid='14'
LIMIT 1' at line 3
Error Number : 1064
Date : Wednesday, August 16th 2006 @ 02:28:24 PM
Script : http://www.xxxxxxxxxxx.xxx/forum/loc...catid=7&page=1
Referrer : http://www.xxxxxxxxxxxxx.xx/forum/lo...inkid=4&page=1

Is this something to do with the 2 way auto create threads?

Thanks for reporting this. It's a coding bug which is hit in an unusual situation

I thik you'll find that one or more of your entries is associated with a forum that no longer exists. You can find out which by going to LDM/admin/categories then mass edit for each of your categories in turn.

AndrewD 08-17-2006 03:58 AM

Quote:

Originally Posted by Code Monkey
local_resize.php throws a big ugly url up in who's online. I got rid of it by adding this after define('THIS_SCRIPT', 'local_resize');

Code:

define('SKIP_SESSIONCREATE', 1);
define('SESSION_BYPASS', 1);
define('NOCOOKIES', 1);
define('DIE_QUIETLY', 1);
define('SKIP_DEFAULTDATASTORE', 1);

Plus it's more efficient as it keeps many vb functions from running when they are not needed.

Thanks

kylek 08-17-2006 06:19 AM

Quote:

Originally Posted by AndrewD
Thanks for reporting this. It's a coding bug which is hit in an unusual situation

I thik you'll find that one or more of your entries is associated with a forum that no longer exists. You can find out which by going to LDM/admin/categories then mass edit for each of your categories in turn.

Thank you!! I had changed some settings around and thought I had them right.

AndrewD 08-17-2006 04:18 PM

As an experiment, I've created a Wiki for the LDM user manual.

I'd appreciate some feedback on whether this is a useful way to keep the documentation up to date and gather ideas, bugs, problems, etc.

http://www.eirma.org/wikis/index.php...nloads_Manager

It isn't a replacement for vb.org, but it may be more convenient for some things.

Code Monkey 08-17-2006 04:24 PM

I notice that when I customize an option per category that you are adding an inline css value for background. If it's a dark skined site and the text is light this makes it hard to read. I would suggest a better method would be to just change the class to class="inlinemod" which is a default vb class and good styles will have the appropriate highlight colors.

AndrewD 08-17-2006 05:04 PM

Quote:

Originally Posted by Code Monkey
I notice that when I customize an option per category that you are adding an inline css value for background. If it's a dark skined site and the text is light this makes it hard to read. I would suggest a better method would be to just change the class to class="inlinemod" which is a default vb class and good styles will have the appropriate highlight colors.

Unfortunately, I need two styles, customised and customised in parent category. I'll give this some thought - your basic point is correct.


All times are GMT. The time now is 08:59 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.02446 seconds
  • Memory Usage 1,866KB
  • 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
  • (4)bbcode_code_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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