vb.org Archive

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

obmob 10-03-2008 02:45 PM

Oh, I checked the wiki, now i'm playing to make my link, should have read before, sorry u.u

AndrewD 10-04-2008 05:57 AM

Quote:

Originally Posted by Sandgrinder (Post 1634654)
Ah, very nice.

One thing though, I made a test file > http://crinale.com/forums/local_link...id=10&linkid=5

But the image doesn't work, I made so you have to put in a image URL but it seem not to work, nor show the thumbnail in the category list.

Hi, have you enabled images by setting a thumbnail size using ldm/admin/settings/link_imagesize?

AndrewD 10-04-2008 06:09 AM

Quote:

Originally Posted by Simon Lloyd (Post 1635029)
Is it possible to perhaps add a boolean something like in a php (don't know which one):
PHP Code:

if ($ldm_accep '0')
{
     
$ldm_denied true;
}
else
{
     
$ldm_denied false;


and then perhaps this in the links_agreement template (i guessed that one!):
PHP Code:

<if condition "$ldm_denied">
     <
span class="highlight">$vbphrase[ll_agreement_declined]</span>
</if> 

to show just the declined message, it doesn't matter about an ok button as in the message i have a link to take them back to forums.


It's easier than that.

Edit the links_agreement template, and find these lines:

Code:

        <if condition="$ldm_accept<0">
        <span class="highlight">$vbphrase[ll_agreement_declined]</span>
        </if>
        <br /><br />
        $vbphrase[ll_agreement]

and replace them with this:

Code:

        <if condition="$ldm_accept<0">
        <span class="highlight">$vbphrase[ll_agreement_declined]</span>
        <else />
        $vbphrase[ll_agreement]
        </if>

That way, the two phrases (ll_agreement and ll_agreement_declined) are kept totally separate.

Simon Lloyd 10-04-2008 06:57 AM

Andrew, thanks for the support and time you spent on this but if i could just make one more request, is it possible not to show the radio buttons or the go button when decline has been selected, as i said the decline message has a link in it back to forums, i could of course add another link back to the ldm page and perhaps call the links "Back to forums" and "Try again".

AndrewD 10-04-2008 08:15 AM

Quote:

Originally Posted by Simon Lloyd (Post 1636976)
Andrew, thanks for the support and time you spent on this but if i could just make one more request, is it possible not to show the radio buttons or the go button when decline has been selected, as i said the decline message has a link in it back to forums, i could of course add another link back to the ldm page and perhaps call the links "Back to forums" and "Try again".

Missed that part, sorry.

It's just a matter of moving the close of the <if> test a bit further down in the links_agreement template, for example

Code:

        <if condition="$ldm_accept<0">
        <span class="highlight">$vbphrase[ll_agreement_declined]</span>
        <else />
        $vbphrase[ll_agreement]
        <br /><br />
        <input type="radio" name="ldm_accept_form" value="1" /> $vbphrase[ll_accept]
        &nbsp;&nbsp;
        <input type="radio" name="ldm_accept_form" value="-1" checked="checked"/> $vbphrase[ll_decline]
        <br /><br />
        <input type="submit" class="button" name="submit" value="$vbphrase[ll_go]" />
        </if>


Simon Lloyd 10-04-2008 09:36 AM

Andrew, briliant thanks!!!!!!

support-vb.com 10-04-2008 11:22 AM

Hello ,
I have a problem when I try to import the product please look at this picture :

http://t7meel.cc//uploads/images/t7m...0fb22a3dbf.png


and I have this database error when I try to open the hack CP :

Code:

MySQL Error : Unknown column 'language.phrasegroup_local_links' in 'field list'
I have traid to import the product in 3 different forums but still same problem

please tell me how to resolve it

thank you

AndrewD 10-04-2008 12:08 PM

Quote:

Originally Posted by support-vb.com (Post 1637086)
Hello ,
I have a problem when I try to import the product please look at this picture :

http://t7meel.cc//uploads/images/t7m...0fb22a3dbf.png


and I have this database error when I try to open the hack CP :

Code:

MySQL Error : Unknown column 'language.phrasegroup_local_links' in 'field list'
I have tried to import the product in 3 different forums but still same problem

please tell me how to resolve it

thank you

It looks as if it is not completing the installation, but I have no idea why. If you send me a PM with site details and an admin account, I will take a look.

AndrewD 10-04-2008 12:27 PM

Quote:

Originally Posted by vbboarder (Post 1635990)
Great, I'm glad you like Shadowbox also :D Let me know if you want any help testing your new scripts.

Maybe you can try this. It patches LDM to use Shadowbox for the Jukebox and as an alternative lightbox for the LDM image magnifier.

vbboarder 10-04-2008 04:39 PM

Quote:

Originally Posted by AndrewD (Post 1637106)
Maybe you can try this. It patches LDM to use Shadowbox for the Jukebox and as an alternative lightbox for the LDM image magnifier.

Wow, you are amazingly fast Andrew! Will test it out and report back. Thanks ;)


All times are GMT. The time now is 12:18 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.05688 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)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