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)

AndrewD 11-07-2005 08:44 AM

Quote:

Originally Posted by benj
hey andrew just wondering is there a way in the links_linkbit template to show which place a download/link appears on a list? so when looking at say hits in 24 hours the top downloaded link (at top of list) has 1 next to it followed underneath by 2 3 4 etc

With the new 2.0.7RC (not the first one), you can edit any of the links_linkbit templates and include the following
Code:

<if condition="$sort=='30' or $sort=='7' or $sort=='1'">$linkhit</if>
It is not possible to include its position in the 'hits' when you are not sorting by hits. However, you can use the $linkhit variable simply to show where the entry is in the current sort order.

Jukov 11-07-2005 10:02 AM

I'm translating LDM to hebrew, could someone point me to where the Links and Downloads Database phrases are?
I mean I need to translate :
"Most popular entries during the last 30 days:"
"During the last 30 days:" etc.
can't seem to find it with phrase search...

AndrewD 11-07-2005 10:10 AM

Quote:

Originally Posted by Jukov
I'm translating LDM to hebrew, could someone point me to where the Links and Downloads Database phrases are?
I mean I need to translate :
"Most popular entries during the last 30 days:"
"During the last 30 days:" etc.
can't seem to find it with phrase search...

The phrases files sit in /development/phrases - if you take the English file as your model and post your results here, I'll make sure that the release also includes a product loader for Hebrew

Benj 11-07-2005 10:20 AM

Quote:

Originally Posted by AndrewD
With the new 2.0.7RC (not the first one), you can edit any of the links_linkbit templates and include the following
Code:

<if condition="$sort=='30' or $sort=='7' or $sort=='1'">$linkhit</if>
It is not possible to include its position in the 'hits' when you are not sorting by hits. However, you can use the $linkhit variable simply to show where the entry is in the current sort order.

just what i need cheers mate :D

Jukov 11-07-2005 10:43 AM

Quote:

Originally Posted by AndrewD
The phrases files sit in /development/phrases - if you take the English file as your model and post your results here, I'll make sure that the release also includes a product loader for Hebrew

OK thanks, I'll upload in half an hour

Benj 11-07-2005 11:07 AM

works a dream whats the condition to get this to work in "whats hot"

cheers

AndrewD 11-07-2005 11:53 AM

Quote:

Originally Posted by benj
works a dream whats the condition to get this to work in "whats hot"


cheers

edit local_links_include.php, around line 1300 or so, function get_links2; a few lines later, just before the line
PHP Code:

eval("\$links .= \"".fetch_template('links_vbalinks')."\";"); 

insert a line
PHP Code:

$linkhit $nhits+1

, then patch the links_vbalinks template in the same way as the linkbit. I'll make this change to the php in the final release.

*Edited* - except that you don't have the variable $sort available, so there's no point making a check on it

Jukov 11-07-2005 03:33 PM

I'm having some troubles translating due to encoding issues, but it will be solved.

few questions, though : can a message box be added at the top of the entry page of LDM so it will be used for writing short terms and conditions or short messages for users? Which template should be modified?

I'm using vBadvanced. I have created a navbar entry for LDM and the LDM is accessed without a problem from inside the forums (linking to mydomain.com/forums/local_links.php?) but the link at the vBadvanced is linking to mydomain.com/local_links.php? :ermm:

EasyTarget 11-07-2005 04:53 PM

thanks for the updates andrew. I'll be sure to test it out more tonight, but one thing that might be handy is a confimation notice for the delete button. Sometimes I accidentally hit the wrong button and I'd hate to lose something that way.

AndrewD 11-07-2005 05:49 PM

Quote:

Originally Posted by Jukov
I'm having some troubles translating due to encoding issues, but it will be solved.

Tower of Babel and all that..

Quote:

Originally Posted by Jukov
few questions, though : can a message box be added at the top of the entry page of LDM so it will be used for writing short terms and conditions or short messages for users? Which template should be modified?

links_main - you need a conditional test on $viewcatid being equal to -1, which is the base category.

Quote:

Originally Posted by Jukov
I'm using vBadvanced. I have created a navbar entry for LDM and the LDM is accessed without a problem from inside the forums (linking to mydomain.com/forums/local_links.php?) but the link at the vBadvanced is linking to mydomain.com/local_links.php? :ermm:

What have you set as the url for the navbar link? should it look something like $vbulletin->options['bburl']/local_links.php


All times are GMT. The time now is 09:35 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.05297 seconds
  • Memory Usage 1,755KB
  • 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_code_printable
  • (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
  • (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