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)

Deathspank 01-31-2007 09:02 AM

Andrew, I feel so stupid for not noticing those tabs earlier. Thanks a ton for the help!

Glynn58 01-31-2007 12:55 PM

Hi Andrew,

Installed LDM 2.2.7 last night and I'm impressed Great Mod.

Just having a couple of minor issues.
The links pages are look different in IE & Firefox. I have attached a couple of screen shots for you to see.

I would like them to display the way they do in IE. I know it's possible because I have seen other sites using the same look when viewed in Firefox.

Also I would like to add the link separator between each link but I can't figure out how to do it.
Any help would be appreciated.
Thanks

AndrewD 01-31-2007 07:04 PM

Quote:

Originally Posted by Glynn58 (Post 1171266)
Hi Andrew,

Installed LDM 2.2.7 last night and I'm impressed Great Mod.

Just having a couple of minor issues.
The links pages are look different in IE & Firefox. I have attached a couple of screen shots for you to see.

I would like them to display the way they do in IE. I know it's possible because I have seen other sites using the same look when viewed in Firefox.

Also I would like to add the link separator between each link but I can't figure out how to do it.
Any help would be appreciated.
Thanks

Are you sure you haven't changed the template_linkbit setting between viewing on IE and Firefox? There's no difference in the LDM code between browsers (except for deep down stuff to do with media players). One of your images is displaying the default ("Modern") linkbit, and the other is using one of the alternatives - see either ldm/admin/settings for the global setting or category/edit category/control settings for a per-category setting.

Concerning a separator bar between each item, the way to force this is by giving each entry a different "display_order" on the add/edit entry form. When you do this, you also over-ride *all* the sorting options - groups with the same display order are grouped together according to whatever sort order you want, and each display order group is displayed in sequence.

If you wanted to include a bar without messing up the possibility for your users to sort items, the way to do it is to edit the relevant links_linkbit_** template (e.g. links_linkbit for the modern display). Each link bit is in fact a table row with two cells, so if you add the following at the end of the template, you'll get the effect you want:

HTML Code:

<tr>
<td colspan="2" class="tcat">&nbsp;
</td>
</tr>

If you do this, beware when you install upgraded versions of LDM, in case the template needs reverting because I've made some changes.

Glynn58 01-31-2007 09:05 PM

Thanks Andrew.

I have figured out the firefox thing. Turned out to be a stuborn cookie.
Cleared the cookies out and all is fine. I was concerned because I had firefox and ie open at the same time and refreshed both windows with each change I made.

The addition at the end of the links_linkbit template has done exactly what I wanted.

Many thanks

Renada 01-31-2007 10:52 PM

Quote:

Originally Posted by AndrewD (Post 1170785)
If you set the mimetype information (VB/admin/attachments) for text files to "Content-type: text/plain", then a simple left click on an entry which is a text file opens automatically in the browser window. This works correctly, as far as I can tell, with IE, Firefox and Opera.

However, the user can still force a "save as" using right click with the mouse, or by doing a "view source" and then save. You can disable the 'right click' menu by adding a bit of javascript to the page.

For example, if you edit clientscript/ldm_global.js and add these lines to the end:

Code:

document.oncontextmenu = function(){return false}
if(document.layers) {
    window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown = function(e){
        if(e.target==document)return false;
    }
}
else {
    document.onmousedown = function(){return false}
}

then I think you'll disable the right click menu throughout LDM.

Andrew,

Thank you for that code, it works a treat :)

One more thing - could you please tell me where to set the thumbnail size for pictures? I *thought* I'd done it but it doesn't appear to work.

In my AdminCP I clicked Categories > Edit > Control Settings >

Template Linkbit is set to Photo Album

link_imagesize is set at 0
link_imagemagsize is set at 600

Could you please tell me what I need to change?

Thanks very much and have a wonderful holiday :)

Regards,
Renada

butty 02-01-2007 12:00 AM

andrew jus a quickie if possible (oo err) lol

as you can see from the attached file when i place the ldm in vbadvanced with modules to the left and right the ldm block makes the ones either side narrow. can you tell me where to change the width setting if possible

many thanks

AndrewD 02-01-2007 06:44 AM

Quote:

Originally Posted by Renada (Post 1171603)
Could you please tell me what I need to change?

It's link_imagesize = size of the thumbnail in the main links display - by default set to 0=no thumbs

The 'gotcha' is that the code currently does not automatically re-generate thumbnails when you change the thumbsize - I suppose it should really. If you've already got some thumbs displayed and cached, it continues to display these. So if you change link_imagesize, then go to admin/statistics and select Reset Thumbs

AndrewD 02-01-2007 06:46 AM

Quote:

Originally Posted by butty (Post 1171650)
andrew jus a quickie if possible (oo err) lol

as you can see from the attached file when i place the ldm in vbadvanced with modules to the left and right the ldm block makes the ones either side narrow. can you tell me where to change the width setting if possible

many thanks

Sorry, I can't give you a quick answer to this - am sitting in a hotel room with just my laptop.

Please can a VBadvanced expert help Butty?

Slave 02-01-2007 10:07 AM

Quote:

Originally Posted by AndrewD (Post 1171858)
Sorry, I can't give you a quick answer to this - am sitting in a hotel room with just my laptop.

Please can a VBadvanced expert help Butty?

Unfortuantly I don't use that module .. so I don't think I can help ..

Saying that .. I take it butty that the sizes for the left and right hand columns have been set up correctly in vBa .. therefore it's the LDM module that causing the right hand column to shrink in size?

If so .. Andrew is there a way of giving the LDM module a fixed width?

ubblite 02-02-2007 08:56 AM

Quote:

Originally Posted by Ipuck (Post 1129094)
Hello

I have tried many times to used the Mod_Rewrite and use the seo_friendly links, but I can't get it to work.

1. I have an .htaccess file and I added the 5 lines noted in the LDM manual.

2. Then I turn to YES the seo_friendly.

but is not working, when I click one of the categories it takes me back to LDM index page.

What am doing wrong?

My forum has vBSEO, do you think that is interfering with the mod?

Did anyone come across a working solution for this yet? I also have vbSEO installed and have followed the steps above. I've edited my .htaccess file in the forum root & entered the code, then switched seo_friendly to yes. After that, page not found messages come up.

Great mod btw, thanks.


All times are GMT. The time now is 06:46 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.03238 seconds
  • Memory Usage 1,758KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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