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)

vbboarder 09-20-2008 06:55 AM

This bug is related to the filter links bug reported above

Quote:

Originally Posted by AndrewD (Post 1626142)
It's $nhits that's the problem. I imagine you've got featured sites enabled and there are none to show in the current category. The code which sets up the featured sites is over-writing the correct value of $nhits.

Yes, I got featured sites enabled, and I selected entries as favorites, and I set my userid in featured_user_favs, but the filter links bar still does not show.
On further testing (with admin privileges), the featured entries page (from the 'Show' dropdown menu) shows no entries even though the my favorites page shows the favorites that I specified and I set my userid so that my favorites are seen as featured.
Similarly, the nominated entries page (from the 'Show' dropdown menu) shows no entries eventhough there are entries nominated by other users.

abdelghani68 09-20-2008 07:06 AM

Quote:

Originally Posted by AndrewD (Post 1626146)
which version of LDM are you using? the problem of a blank player is caused by a caching bug in adobe flash.

I use LDM 2.3.0. The probleme is only in the page vbadvanced.

AndrewD 09-20-2008 11:31 AM

Quote:

Originally Posted by vbboarder (Post 1626017)
The stats for newest entries are incorrect when displayed in LDM pages. I have old entries showing up whose dates are even past the time limit set in LDM Settings > Statistics Display. However, the VBA module for new entries stats does work correctly. Andrew, can you tell me what file or plugin to edit so that I can use the php code from the ldm_new.module file?

Note: Not sure if this is related, but I used the Flash sites extra plugin and all the old entries that showed up in the new entries stats in LDM pages happen to be entries created by that plugin.

There's a parameter missing on the relevant function call, so the sql is requesting 'all entries' rather than 'new entries'. Assuming that I didn't do that for a reason that I've forgotten, the solution is as follows:

edit includes/local_links_vbafunc.php

find function ldm_get_hitparades($catid, $template="links_hitparade")

find
Code:

        $hitsince = ($links_defaults['days_seen_on_portal'] ? TIMENOW-intval($links_defaults['days_seen_on_portal'])*24*60*60 : $vbulletin->userinfo['lastvisit']);
and change to
Code:

        $newsince = $hitsince = ($links_defaults['days_seen_on_portal'] ? TIMENOW-intval($links_defaults['days_seen_on_portal'])*24*60*60 : $vbulletin->userinfo['lastvisit']);
find
Code:

        if ($links_defaults['show_hp_new']) {
                $query = ldm_get_specialsearchsql($NEW_CAT, $linksee, "", $catids);
                list($links['show_hp_new'], $hits) = ldm_get_entrybits_brief($query, $linksee, $template);
                $showme = ($hits ? 1 : $showme );
        }

and change to
Code:

        if ($links_defaults['show_hp_new']) {
                $query = ldm_get_specialsearchsql($NEW_CAT, $linksee, "", $catids, $newsince);
                list($links['show_hp_new'], $hits) = ldm_get_entrybits_brief($query, $linksee, $template);
                $showme = ($hits ? 1 : $showme );
        }

I think that will fix things. Please confirm.

AndrewD 09-20-2008 02:24 PM

Quote:

Originally Posted by abdelghani68 (Post 1626158)
I use LDM 2.3.0. The probleme is only in the page vbadvanced.

As far I know, this is a caching problem. I thought that the new JW player had got round it (someone else reported this). Try clearing the browser cache and check that you have the latest version of the Adobe Flash player plugins.

abdelghani68 09-20-2008 02:43 PM

Quote:

Originally Posted by AndrewD (Post 1626353)
As far I know, this is a caching problem. I thought that the new JW player had got round it (someone else reported this). Try clearing the browser cache and check that you have the latest version of the Adobe Flash player plugins.

I have clearing the broser and upgrade in the latest version of the adobe flash player. I have again this probleme.

thanks

AndrewD 09-20-2008 03:43 PM

Quote:

Originally Posted by abdelghani68 (Post 1626363)
I have clearing the broser and upgrade in the latest version of the adobe flash player. I have again this probleme.

thanks

My apologies - I realise that this is a different problem than I thought - have you got your cmps_index.php file in a different directory than your forums directory?

abdelghani68 09-20-2008 03:57 PM

Quote:

Originally Posted by AndrewD (Post 1626412)
My apologies - I realise that this is a different problem than I thought - have you got your cmps_index.php file in a different directory than your forums directory?

I have that :

www.mysite.com/cmps_index.php (portal)

www.mysite.com/forum (forum)

thanks

AndrewD 09-20-2008 04:15 PM

Quote:

Originally Posted by abdelghani68 (Post 1626420)
I have that :

www.mysite.com/cmps_index.php (portal)

www.mysite.com/forum (forum)

thanks

Edit the links_playerbit_JWPlayer template and replace

Code:

        src="clientscript/JWmediaplayer.swf"
by

Code:

        src="{$vbulletin->options[bburl]}/clientscript/JWmediaplayer.swf"
That should do it.

Keep a note that you have done this, as the template will be completely rewritten in the next beta release.

vbboarder 09-20-2008 05:00 PM

I further debugged the featured entries & nominations bug. Both links from the 'Show' dropdown menu calls '/local_links_search.php?action=find' so I looked at that code in that file. So cache_LDMfavourites() & cache_LDMnominations() are called at about line 505, which set the linkids that are marked as favourites & nominated in arrays $links_myfav, $links_mystarred and $links_starred, but I don't see those variables used in local_links_search.php or the templates eval'ed by it. Am I missing something?

abdelghani68 09-20-2008 07:08 PM

Quote:

Originally Posted by AndrewD (Post 1626437)
Edit the links_playerbit_JWPlayer template and replace

Code:

        src="clientscript/JWmediaplayer.swf"
by

Code:

        src="{$vbulletin->options[bburl]}/clientscript/JWmediaplayer.swf"
That should do it.

Keep a note that you have done this, as the template will be completely rewritten in the next beta release.

Thanks, it works now


All times are GMT. The time now is 01:24 PM.

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.04715 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
  • (8)bbcode_code_printable
  • (9)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