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)

AndrewD 11-28-2007 08:25 PM

Quote:

Originally Posted by Alfa1 (Post 1391152)
Old server:
local_file_root Website
local_file_root_prefix
/forum/links/downloads/

New server:
local_file_root Website
local_file_root_prefix
/forum/links/downloads/

Both local_file_root_prefix are correct, though my new server does not have a normal url yet, but is using IP~mydomain.com/
http://35.125.65.123~mydomain.com/forum/links/downloads

Can this have an adverse effect?

I do not know if local_file_root website is correct for the new server, as I don't understand the meaning.

The temporary IP based address is almost certainly your problem. LDM tries to find local files by concatenating a series of settings on the front of the file name you have specified. I suspect that it is getting the wrong result because it has probably missed out /~mydomain.com from the middle. You can try this by editing local_file_root_prefix and putting /~mydomain.com at the start.

If this doesn't work, as usual I'm happy to take a look.

JirQUEST 11-28-2007 11:52 PM

I got this:

Fatal error: Cannot redeclare cache_styles() in /xxxxx/includes/local_links_include.php on line 1120

Latest LDM version with vB3.6.8 PL 2 :)

[EDIT] I just found out it clashed with vB Ad Management. What can I do to allow both modifications to work together?

AndrewD 11-29-2007 03:51 AM

Quote:

Originally Posted by JirQUEST (Post 1391367)
I got this:

Fatal error: Cannot redeclare cache_styles() in /xxxxx/includes/local_links_include.php on line 1120

Latest LDM version with vB3.6.8 PL 2 :)

[EDIT] I just found out it clashed with vB Ad Management. What can I do to allow both modifications to work together?

somebody else obviously had the same problem I had and found the same solution :)

edit includes/local_links_include.php. cache_styles appears three times - at about lines 1120, 1145 and 1157. Change each of them to, e.g., ldm_cache_styles. That should solve the problem. I'll fix this permanently in the next release.

JirQUEST 11-29-2007 04:13 AM

Sweet as, dude. I love you! LOL.

GrendelKhan{TSU 11-30-2007 04:22 AM

Quote:

Originally Posted by AndrewD (Post 1390085)
Welcome back!



Which linkbit are you using? If you are using the standard (Modern) linkbit, check that these lines appear about 20 lines into the links_linkbit template
Code:

<if condition="$linkimgmag">
<br />
<div style="margin-top:3px"><span class="smallfont">$linkimgmag</span></div>
</if>

Also check that the links_imgmag template exists and looks like this:
Code:

<if condition="$linkimg">
<a href="$RESIZE_SCRIPT.php?linkid=$linkid&amp;size=<if condition="$links_defaults[link_imagemagsize]">$links_defaults[link_imagemagsize]<else />0</if>" rel="lightbox[show]" target="_blank" title="$vbphrase[ll_enlarge_thumb]">
<if condition="$ldm_icon_cache['magnify']"><img border="0" src="$ldm_icon_cache[magnify]" alt="$vbphrase[ll_enlarge_thumb]" /><else />[+]</if></a>
</if>

You means the 'display order' setting? I can't reproduce this problem.

THANKS!! glad to be kickin again. been delving back into LDM recently. still a great tool and even better (imo) with the flashsite integration (again: request others like megavideo or a way for us to help add them for you as with the AME embedded video player :))

Yes, modern linkbit. EG: http://www.unrealaddicts.com/forums/...&expandset=all

Checked and all those codes are there. :( +_+
here's the exact code from both templates:


link_linkbit:
Code:

<tr id="linkid$linkid">
<td colspan="2">
<fieldset class="fieldset">
<legend>
<strong>
<if condition="$linknew">$linknew</if>
$linktypebit
$linkurljump
</strong>
$linkurlextra
<if condition="$linksavebit">$linkurlsave</if>
<if condition="$linkraters"><img src="$stylevar[imgdir_rating]/rating_$linkrate.gif" border="0" alt="$linkrate *" /></if>
<if condition="$links_permissions['can_view_hidden']"><if condition="$linkexpired>0"><span class="highlight">$vbphrase[ll_expired] </span><else /><if condition="$linkexpired<0"><span class="highlight">$vbphrase[ll_notyetvisible] </span></if></if></if>
<if condition="$linkstatus==$LINK_HIDDEN"><span class="highlight">$vbphrase[ll_hidden_entry] </span></if>
</legend>
<div style="margin-top:3px">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<if condition="$linkimg">
<td width="$linkimgsize" align="$stylevar[right]">
$linkimgjump
<if condition="$linkimgmag">
<br />
<div style="margin-top:3px"><span class="smallfont">$linkimgmag</span></div>
</if>
</td>
<td width="5">&nbsp;</td>
</if>
<td valign="middle" align="$stylevar[left]">
<span class="smallfont">
$linkdesc
<if condition="$showcatname"><br /><br />$vbphrase[ll_cat] $linkothercatsbit<else />
<if condition="$linkshowothercatbit>0"><br /><br />$vbphrase[ll_seealso] $linkothercatsbit</if>
</if>
</span>
</td>
<td width="5">&nbsp;</td>
<td width="30%">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<fieldset class="fieldset">
<if condition="$linklegendbuttons"><legend><if condition="$linkfavbit">$linkfavbit </if><if condition="$linkeditbit">$linkeditbit </if><if condition="$links_permissions['can_send_tofriend']"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" title="$vbphrase[ll_sendtofriend]"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if><if condition="$links_permissions['can_report_link'] and $linkuserid != $bbuserinfo['userid']"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>$linklikebit</legend></if>
<table width="100%"><tr><td align="$stylevar[right]">
<div class="smallfont">
<if condition="$links_defaults['enable_doi'] and $linkdoi">$vbphrase[ll_doi] $linkdoi<br /></if>
<if condition="$links_permissions['can_view_names']">$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a>
<a href="$SEARCH_SCRIPT.php?action=show&amp;userid=$linkuserid&amp;sort=d" title="$vbphrase[ll_find_others]">
<if condition="$ldm_icon_cache['magnify']"><img border="0" src="$ldm_icon_cache[magnify]" alt="$vbphrase[ll_find_others]" /><else />[?]</if>
</a>
<br /></if>
<if condition="$linkmoderate==$LINK_TO_MODERATE and ($links_permissions['can_moderate_links'] or $links_permissions['can_moderate_forums'])">[<a href="$ACTION_SCRIPT.php?action=domod&catid=$viewcatid" title="$vbphrase[ll_moderate]">$vbphrase[ll_moderate]</a>]<br /></if>
$linkdate <if condition="$expire and !$linkexpired"><phrase 1="$linkdateexp">$vbphrase[ll_expires_on]</phrase></if>
<if condition="$links_permissions['can_view_hits']"><br />
$vbphrase[ll_hits] $linkhits
<if condition="$links_permissions['can_admin_links'] and $linkhits"><a href="$ADMIN_SCRIPT.php?set=logjumps&amp;todo=1&amp;startint=0&amp;linkid=$linkid" title="$vbphrase[ll_viewhits]"><if condition="$ldm_icon_cache['magnify']"><img border="0" src="$ldm_icon_cache[magnify]" alt="$vbphrase[ll_viewhits]" /><else />[?]</if></a></if>
</if>
<if condition="$linksize"><br />$linksize</if>
<if condition="!$linkstatus"><br />[$vbphrase[ll_unknown_status]]</if>
<if condition="$links_permissions['can_set_display_order']"><br />$vbphrase[ll_displayorder] $thisorder</if>
<if condition="$links_permissions['can_edit_keyword']">
<br />

<div id="keys{$linkid}_1">
<a href="#{$linkid}" onclick="ldm_show('keys{$linkid}_', 2, 2);">$vbphrase[ll_keywords]</a> $linkkeys
</div>

<div id="keys{$linkid}_2" style="display:none;" >
    <form action="$ACTION_SCRIPT.php" method="post">
<table width="100%">
<tr><td align="$stylevar[right]">
    <a href="#{$linkid}" onclick="ldm_show('keys{$linkid}_', 1, 2);">$vbphrase[ll_keywords]</a>
</td><td align="center">
        <div id="ldmkey$linkid">$linkkeysraw
        <!-- <textarea id="ldmkey{$linkid}_txt" name="keywords" rows="1" cols="20">$linkkeysraw</textarea> -->
        <input type="text" class="bginput" id="ldmkey{$linkid}_txt" name="keywords" value="$linkkeysraw" rows="1" size="20" />
        </div>
        <div class="vbmenu_popup" id="ldmkey{$linkid}_menu" style="display:none; z-index:50"></div>
        <script type="text/javascript">
        <!--
        vbmenu_register('ldmkey{$linkid}', true);
        recip_sugg{$linkid} = new ldm_AJAX_KeySuggest('recip_sugg{$linkid}', 'ldmkey{$linkid}_txt', 'ldmkey{$linkid}');
        recip_sugg{$linkid}.allow_multiple = true;
        //-->
        </script>
</td><td align="$stylevar[left]">
        <input type="hidden" name="action" value="doeditkeys" />
        <input type="hidden" name="viewlinkid" value="$viewlinkid" />
        <input type="hidden" name="linkid" value="$linkid" />
        <input type="hidden" name="catid" value="$linkcatid" />
        <input type="hidden" name="page" value="$pagenumber" />
        <input type="submit" class="button" value="$vbphrase[ll_go]"  />
</td></tr>
</table>
    </form>
</div>

<else />
    <if condition="$linkkeys"><br />$vbphrase[ll_keywords]: $linkkeys</if>
</if>

</div>
</td>
<if condition="$links_permissions['can_view_names'] and $linkavatar"><td valign="top">$linkavatar</td></if>
</tr></table>
</fieldset>
</td>
</tr>
<if condition="$links_permissions['can_rate_link'] and $linkratebit">
<tr>
<td id="ratings$linkid" align="$stylevar[left]">
<if condition="$linkraters and $links_defaults['dropdown_comment_and_rate']"><script type="text/javascript"> vbmenu_register("ratings$linkid"); </script>&nbsp;</if>
<span class="smallfont">
$linkratebit
</span>
</td>
</tr>
<!--$linkid::rate-->
</if>
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
</tr>

links_imgmag temp

Code:

<if condition="$linkimg">
<a href="$RESIZE_SCRIPT.php?linkid=$linkid&amp;size=<if condition="$links_defaults[link_imagemagsize]">$links_defaults[link_imagemagsize]<else />0</if>" rel="lightbox[show]" target="_blank" title="$vbphrase[ll_enlarge_thumb]">
<if condition="$ldm_icon_cache['magnify']"><img border="0" src="$ldm_icon_cache[magnify]" alt="$vbphrase[ll_enlarge_thumb]" /><else />[+]</if></a>
</if>

its weird..dunno know why they don't work. it just stopped working one day. :( which sux as I was getting great SEO hits from the images (even with the mod_rewrite which I have yet to get to work grrrrr).

and yah, from the display order I have that issue (btw, is there a way to MASS update the display order and category?)

if you want I can get you admin access to check it out.

AndrewD 11-30-2007 04:22 PM

Quote:

Originally Posted by GrendelKhan{TSU (Post 1392137)
and yah, from the display order I have that issue (btw, is there a way to MASS update the display order and category?)

See PM for remarks on your magnifying glass problem.

You can mass edit category and display order with LDM/admin/categories/mass edit

Kingster 12-02-2007 03:02 AM

Quote:

Originally Posted by bigdaddyforums (Post 1148929)
Also I'd quite like to see FTP upload with a Progress Bar. I've got people trying to upload 200mb sets but it just times out on them after an hour or so. So it'd be nice to see how long you have left to upload with a nice progress bar etc :)

Quote:

Originally Posted by AndrewD (Post 1148950)
Yes, I know what you mean... I gave this som ethought before - probably the easiest and most robust solution is to offer an optional addon to one of the Java uploader scripts

Any word on an FTP upload add-on, Andrew? I've got users that have some massive files UT/UT2K4/UT3 maps and map packs) that I want to be able to utilize your manager...

Ipuck 12-03-2007 10:59 PM

Hello AndrewD

I'm trying to link an external .zip file, but is not accepting the link. If a copy the link address to the web browser address bar the link works, but when I added to the LDM doesn't work. I also have a .rar file in the same folder and that one works OK. The files name is the same, the only difference is that one is .rar and the other one .zip. Any ideas?

Thanks

Nam 12-04-2007 03:41 AM

Dear Andrew, I think there is a problem with visible link setup on 2.2.8 post 1.

I set up Category A with standard LDM link protection, and subcategory B under category A with setting 2 (link location visible, this is to avoid the double bandwidth load). However, when I play the file under category B, I can't see the real location of the remote server. The link is still hidden.

Did I do anything wrong?

derfelix 12-04-2007 09:56 AM

I did a couple of searches.. and looked through 50 of the 181 pages.. but did not find an answer to my problem..
Setup as simple link directory.. everything works fine..
but if an image is added in the description for http://mysiteone.com , and the imageurl is http://mysiteone.com/image1.jpg

It seems to work fine... image shows up... i can also post a link only to that image...

But if you do a search.. for mysiteone then the url to that image gets completely broken.. because the word "mysiteone" is highlighted in the text..
so the sourcecode of the page is:
HTML Code:

case image:
<img src="http://www.<span class="highlight">mysiteone</span>.com/image1.jpg" border="0" alt="" />
case link:
<a href="http://www.<span class="highlight">mysiteone</span>.com/image1.jpg" target="_blank">http://www.<span class="highlight">mysiteone</span>.com/image1.jpg</a>

Probably hapened to others also.. but i can find a fix nowhere....

Thanx for a reply

Felix


All times are GMT. The time now is 11:37 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.03222 seconds
  • Memory Usage 1,808KB
  • 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
  • (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
  • (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