![]() |
Quote:
|
Quote:
|
Quote:
|
Quote:
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:
if the filter is "WHERE link.linkmoderate = 0" it gives a error which it shouldnt, or am i just blind |
Quote:
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:
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. |
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>'; |
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 |
Quote:
|
Quote:
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 |
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|