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)

obmob 11-04-2006 12:38 AM

Bear = to endure, to stand up to... not the fluffy stuffed animal or the honey eater XD

|oR|Greg 11-04-2006 01:31 AM

Yes, but I called him honey bear... and he said bear with me... so... ya know..

AndrewD 11-04-2006 06:06 AM

Quote:

Originally Posted by |oR|Greg
Yes, but I called him honey bear... and he said bear with me... so... ya know..

The irony is overwhelming me...

AndrewD 11-04-2006 08:09 AM

Quote:

Originally Posted by |oR|Greg
How do I add a section to say that if extension = X, then $player = "flvplayer" ?

if (strtolower($type)=="flv") {
$player = "flvplayer";
}

obmob 11-06-2006 03:57 PM

Quote:

Originally Posted by AndrewD
Thanks... I'll include these in the official 2.2.6 in a few days.

I wasn't aware that updating would lose templates. I thought I'd corrected that, but will check again. Sorry...

I can't recall your question about image resizing - can you remind me?

You know, actually this time i needed to revert templates, there seem to be many corrections and new addons in them. :)

Now, i made a two icon links_favbit... huh? yeah, two stages, if it's in the favorite, then it shows an icon with a minus, letting the user know he/she can delete it from favorites.

Now, if i click, it returns me to the category... is it possible to make it ajax and avoid that redirection? :tired:

Have never played with ajax, i'd need some help :p

Here is the template, i removed the highlight, but it can be added with no problem.

Oh and i used my templates misc folder, i had no idea how to call the LDM folder :(

Code:

<if condition="$linkfav and $viewcatid!=-2">
<a href="$ACTION_SCRIPT.php?action=dofavlink&amp;id=$linkid&amp;set=<if condition="$linkfav">-1<else />1</if>&amp;catid=$linkcatid&amp;page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
        <img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favdel.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
        " border="0" /></a>

    <else />
<a href="$ACTION_SCRIPT.php?action=dofavlink&amp;id=$linkid&amp;set=<if condition="$linkfav">-1<else />1</if>&amp;catid=$linkcatid&amp;page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
        <img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favadd.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
        " border="0" /></a>
</if>


obmob 11-06-2006 04:37 PM

Well, i start playing with the resize mod in 2.2.6

But somehow i can't make it work as i want... i think there must be a way to do this.

First, i base my category browsing in the links_linkbit_short. Then, by clicking the image i see the details of this in the links_linkbit template.

OK, so i replaced the simple $linkimg in "short" with something like this:

Code:

<if condition="$linkimg"><a href="WHAT IN HERE?"><img class="inlineimg" src="http://mysite.com/dll_resize.php?linkid=$linkid&size=200" alt="$linkname" border="0" /></a></if>
So, i get the resizing, but how can i call the url that takes me to the details in "linkbit".

Somehow i know the right URL is in $linkurllink. but this one creates the whole text link, is there a variable that calls the url inside that link? :hurt:

Thanks :D

AndrewD 11-06-2006 06:53 PM

Quote:

Originally Posted by obmob
Well, i start playing with the resize mod in 2.2.6

But somehow i can't make it work as i want... i think there must be a way to do this.

First, i base my category browsing in the links_linkbit_short. Then, by clicking the image i see the details of this in the links_linkbit template.

OK, so i replaced the simple $linkimg in "short" with something like this:

Code:

<if condition="$linkimg"><a href="WHAT IN HERE?"><img class="inlineimg" src="http://mysite.com/dll_resize.php?linkid=$linkid&size=200" alt="$linkname" border="0" /></a></if>
So, i get the resizing, but how can i call the url that takes me to the details in "linkbit".

Somehow i know the right URL is in $linkurllink. but this one creates the whole text link, is there a variable that calls the url inside that link? :hurt:

Thanks :D

local_links.php?catid=$linkcatid&linkid=$linkid

should do it

AndrewD 11-06-2006 06:56 PM

Quote:

Originally Posted by obmob
You know, actually this time i needed to revert templates, there seem to be many corrections and new addons in them. :)

Now, i made a two icon links_favbit... huh? yeah, two stages, if it's in the favorite, then it shows an icon with a minus, letting the user know he/she can delete it from favorites.

Now, if i click, it returns me to the category... is it possible to make it ajax and avoid that redirection? :tired:

Have never played with ajax, i'd need some help :p

Here is the template, i removed the highlight, but it can be added with no problem.

Oh and i used my templates misc folder, i had no idea how to call the LDM folder :(

Code:

<if condition="$linkfav and $viewcatid!=-2">
<a href="$ACTION_SCRIPT.php?action=dofavlink&amp;id=$linkid&amp;set=<if condition="$linkfav">-1<else />1</if>&amp;catid=$linkcatid&amp;page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
        <img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favdel.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
        " border="0" /></a>

    <else />
<a href="$ACTION_SCRIPT.php?action=dofavlink&amp;id=$linkid&amp;set=<if condition="$linkfav">-1<else />1</if>&amp;catid=$linkcatid&amp;page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
        <img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favadd.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
        " border="0" /></a>
</if>


Making things work with ajax is not straightforward - it needs a whole accompanying javascript in the background. I'd suggest some practice before playing with this - e.g. take a look at clientscript/ldm_ajax_keysugg.js and see if you can figure out how it works :)

germinus 11-07-2006 07:50 AM

well i have spent hours trying to find the link to get the jukebox on screen so that it can be used and now this program has crashed my database and my web hosts advise me that they can not repair the db error, so I have lost my complete site.

AndrewD 11-07-2006 08:16 AM

Quote:

Originally Posted by germinus
well i have spent hours trying to find the link to get the jukebox on screen so that it can be used and now this program has crashed my database and my web hosts advise me that they can not repair the db error, so I have lost my complete site.

Could you please explain what you mean by saying that this program has crashed your database. And why do your web hosts not take regular backups?

I'm very happy to help you get LDM installed and working - just send me a PM and we can take it from there.


All times are GMT. The time now is 01:43 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.04998 seconds
  • Memory Usage 1,757KB
  • 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
  • (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