vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

Boofo 10-01-2005 04:06 PM

Quote:

Originally Posted by AndrewD
Either approach will work, - install/overwrite or uninstall/reinstall - the uninstall does not harm the LDM database tables.

The only tricky situation with the new VB system is when an install only partly completes, and VB thinks it has finished the job. This is because installation code is only executed when the VB installer thinks it is installing a higher version. So if , e.g. (for any reason) you have part-installed version 2.0.5, then to complete the job you have to uninstall and start again.

As we found out during the beta phase of 2.0.5. ;)

AndrewD 10-01-2005 04:08 PM

Quote:

Originally Posted by Boofo
As we found out during the beta phase of 2.0.5. ;)

Don't be too sarcastic or you may find an unexpected worm in the next release ;););)

Boofo 10-01-2005 04:11 PM

Quote:

Originally Posted by AndrewD
Don't be too sarcastic or you may find an unexpected worm in the next release ;););)

LOL I wasn't being sarcastic, actually. But now that you mention it ... ;)

Meltingfire 10-01-2005 04:14 PM

Quote:

Originally Posted by AndrewD
Don't be too sarcastic or you may find an unexpected worm in the next release ;););)

I have created a own module i call "ldm-hotcat.php" that is basicly a hot category.
Since i use the category as a filename, lets say "miranda" and then post a link for each version "miranda 1.0", "miranda 2.0" etc i want all hits to be collected together inside that category so i use the following code as SQL, other then that there is no changes made to the original "ldm-hot.php"

PHP Code:

        SELECT cat.catid AS linkidcat.catname AS linknamecat.catdesc AS linkdesc
            
SUM(link.linkhits) AS linkhitslink.linkstatus AS linkstatus
        FROM 
".THIS_TABLE."linksltoc AS ltoc         
        LEFT JOIN 
".THIS_TABLE."linkslink AS link 
            ON ltoc
.linkid link.linkid 
        LEFT JOIN 
".THIS_TABLE."linkscat as cat 
            ON ltoc
.catid cat.catid
        GROUP BY cat
.catid

            $order
        LIMIT $linksee 

The problem is that when i use the $filter i get a SQL error, cant see why...

if the filter is "WHERE link.linkmoderate = 0" it gives a error which it shouldnt, or am i just blind

Meltingfire 10-01-2005 04:21 PM

Quote:

Originally Posted by PtP
I started to wonder if I was just being opinionated in my comment of the template, I have attached the old (beta template) and the new template for your own opinion, I honestly think the old beta one looks classier. See what you think.

Since i see that you have a small empty row on top, here is a fix for you, i also added the linkstatus-thingie that was used in older LDM but not in this 3.5, how come?

well here is the code for links_hotlinks if you want a 2 column module, and also dont forget to edit module to use 2 in colspan.

PHP Code:

<if condition="$linkstatus==1">
<
a href="$vboptions[bburl]/local_links.php?action=jump&amp;id=$linkid">$linkname</a>
</if>
<if 
condition="$linkstatus>1">
<
a href="$vboptions[bburl]/local_links.php?action=jump&amp;id=$linkid">$linkname</a</if>
<if 
condition="$linkstatus<=0">
$linkname (n/a)
</if>
</
span>
</
td>
<
td class="alt2">
<
span class="smallfont">[$linkhits]</span>
</
td>
</
tr>
<if 
condition="$nhits<4">
<
tr>
<
td class="alt1"><span class="smallfont">
</if> 

the part with <if condition="$nhits<4"> should be changes if you have 10 rows then it should be 9, and so on...

EDIT:
i dont know what the intension was of using a both linkstatus==1 and linkstatus>1 but i guess it has to do that at one of them you can also show filesize if i recall right.

Meltingfire 10-01-2005 04:31 PM

Im on fire tonight! :P
Sorry for trippleposting but i want to keep each feature/bug in a new post.

Shouldnt ldp-new.php use the current link instead to show "Whats New" when you click on the header.
$hottitle = '<a href="'.$vbulletin->options['bburl'].'/'.LINKS_SCRIPT.'.php?action=links&catid=-8">'.'New files'.'</a>';

Meltingfire 10-01-2005 05:06 PM

After debugging and editing for half an hour this is my last feedback for today.

It is impossible to run both new and hot at the same time, probably because they use same variablenams etc.

What i had to do was to rename everything with "hot" in ldm-new.php to "new", after that i duplicated one styles for each "links_hotlinks" and "links_newlinks", and also "adv_portal_custom_ldm_hot" and "adv_portal_custom_ldm_new".

I removed the <tr><td><span> $hotlinks </span></td></tr> part from the "adv_portal_custom_ldm_hot" since i wanted to use more then one colulmn and or row per file, and added the part with <tr><td><span> <a href> ... </a></span></td></tr> in "links_hotlinks" instead. Did same thing for the "_new"-versions.

This also removes the need to use $hottitle, $collapseobj_custom_ldm and $collapseimg_custom_ldm, since they can now be set in the template instead.

This is my $0.05, now its saturday night here and time to party! :P

AndrewD 10-01-2005 05:08 PM

Quote:

Originally Posted by Meltingfire
Im on fire tonight! :P
Sorry for trippleposting but i want to keep each feature/bug in a new post.

Shouldnt ldp-new.php use the current link instead to show "Whats New" when you click on the header.
$hottitle = '<a href="'.$vbulletin->options['bburl'].'/'.LINKS_SCRIPT.'.php?action=links&catid=-8">'.'New files'.'</a>';

I think that's right - ditto What's hot?

AndrewD 10-01-2005 05:10 PM

Quote:

Originally Posted by Meltingfire
After debugging and editing for half an hour this is my last feedback for today.

It is impossible to run both new and hot at the same time, probably because they use same variablenams etc.

What i had to do was to rename everything with "hot" in ldm-new.php to "new", after that i duplicated one styles for each "links_hotlinks" and "links_newlinks", and also "adv_portal_custom_ldm_hot" and "adv_portal_custom_ldm_new".

I removed the <tr><td><span> $hotlinks </span></td></tr> part from the "adv_portal_custom_ldm_hot" since i wanted to use more then one colulmn and or row per file, and added the part with <tr><td><span> <a href> ... </a></span></td></tr> in "links_hotlinks" instead. Did same thing for the "_new"-versions.

This also removes the need to use $hottitle, $collapseobj_custom_ldm and $collapseimg_custom_ldm, since they can now be set in the template instead.

This is my $0.05, now its saturday night here and time to party! :P

Greatly appreciated - as I've said elsewhere, I don't use vbAdvaced, so have had to work a bit in the dark - will try to pull these things together soon.

Your easrlier equstion about $linkstatus = 1 or >1 - the variable is positive if the link is good, and >1 if it should be treated as a file size - maybe I should have used two variables but I was a bit lazy at one point

Meltingfire 10-01-2005 05:18 PM

Quote:

Originally Posted by AndrewD
Greatly appreciated - as I've said elsewhere, I don't use vbAdvaced, so have had to work a bit in the dark - will try to pull these things together soon.

Your easrlier equstion about $linkstatus = 1 or >1 - the variable is positive if the link is good, and >1 if it should be treated as a file size - maybe I should have used two variables but I was a bit lazy at one point

Also, adding a phrase for "local_links.php" would be appreciated so you can translade it to for example "links.php", so i dont have to word-replace all urls in styles after a upgrade ;) even if that only takes 2 seconds.

Maybe not the best solution but would work and phrases wouldnt be changed after an upgrade as styles do.


All times are GMT. The time now is 09:29 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.03161 seconds
  • Memory Usage 1,774KB
  • 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
  • (2)bbcode_php_printable
  • (8)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