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)

AndrewD 09-17-2008 05:35 AM

Quote:

Originally Posted by TsirhCitna (Post 1623845)
Nope. Just tried it again. ldm_new.php module off and on:

OK, we need to get to the bottom of this. Will you give me full admin access to your site?

MissKalunji 09-17-2008 05:48 AM

oh btw :) much more easier with the $ldmnavbar then moving the whole codes thank you

and

Quote:

Uncached templates: links_navbar (1)
Uncached templates: links_navbar_popups (1)
In Admin area
Besides that didn't encounter any bugs :)

TsirhCitna 09-17-2008 12:05 PM

Quote:

Originally Posted by AndrewD (Post 1623951)
OK, we need to get to the bottom of this. Will you give me full admin access to your site?

PM sent.

AndrewD 09-17-2008 02:22 PM

Quote:

Originally Posted by dranet (Post 1622823)
That is what it looks like. Our information panel on the left says 60 seconds. Do you know how to change that setting? Is it done in the program or is that something in mysql?

I'm using the standard file upload. I'm not familiar with swfupload - do you think it will help? How do I find it?

Thanks again!
Tracy

As far as i know, this can get delicately caught up in the combination of which web server, how php is installed, and a number of php site configuration settings. The swfupload is an addon in the LDM release/extras directory. It will at least let you see at what stage the upload is failing.

abdelghani68 09-17-2008 02:34 PM

Quote:

Originally Posted by AndrewD (Post 1623369)
The player is dropped into the links_linkbit (or whatever) template as variable $linkbottomline. If you edit that template, look for the section:
Code:

<if condition="$linkbottomline">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
                <td style="padding-top:5px">
                $linkbottomline
                </td>
        </tr>
        </table>
</if>

Put an align=center on the td element.

Thanks, it's work.

abdelghani68 09-17-2008 02:38 PM

I need 2 LDM for my site. Why? Because I have files of 2 really different theme. It is really important that the files of the theme 01 and theme 02 are separated, exemple for the statistics. Consequently I add a new page vbadvanced. This page will contain the modules LDM for only the files of the theme 2. How can I do that please.

In summary, I woul'd like to install 2 LDM.

Thanks and sorry for my english.

readjono 09-17-2008 05:11 PM

Can I remove the Downloads title box from the main page? http://www.unofficialmills.co.uk/com...ocal_links.php

AndrewD 09-17-2008 05:43 PM

Quote:

Originally Posted by readjono (Post 1624224)
Can I remove the Downloads title box from the main page? http://www.unofficialmills.co.uk/com...ocal_links.php

Edit the links_main template. Find the lines:

Code:

<if condition="$viewcatname">
<table class="tborder" cellpadding="$stylevar[cellpadding]"

and change to read

Code:

<if condition="$viewcatname and $viewcatid!=-1">
<table class="tborder" cellpadding="$stylevar[cellpadding]"

I think that will work with no side effects

AndrewD 09-17-2008 06:53 PM

Quote:

Originally Posted by TsirhCitna (Post 1624050)
PM sent.

The problem is caused by parsing the bbcodes in the entry description for the NVidia driver in your drivers category - many many unnecessary nested bbcodes.

LDM takes a long time decoding these, but so does vbulletin - if you copy and past the description into a forum post, it shows exactly the same slow page generation time (although only the first time round because posts are cached after the first time they are generated). (This is not surprising, because LDM calls the vbulletin routines to do the job)

I will see if it is possible to cache parsed descriptions, although I think the real fix is in your hands.

MissKalunji 09-17-2008 07:26 PM

When i use ajax to submit comment it only happens IN ONE category?

Quote:

Invalid SQL:

INSERT INTO local_linksrate
SET
linkid='37',
linkuserid='8',
linkusername='Mz K',
linkvote='4',
lcomment='I don't know that song from michael but i love tarrus',
ltime='1221683103';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know that song from michael but i love tarrus',
ltime='1221683103'' at line 7
Error Number : 1064
Request Date : Wednesday, September 17th 2008 @ 04:25:03 PM
Error Date : Wednesday, September 17th 2008 @ 04:25:03 PM
Script : http://www.dancehallareaz.com/forum/...links_ajax.php
Referrer : http://www.dancehallareaz.com/forum/...kid=37&catid=6
IP Address : XXXX
Username : XXX
Classname : vB_Database
MySQL Version : XXXcommunity~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EZ Bounce Management:

TsirhCitna 09-17-2008 07:58 PM

Quote:

Originally Posted by AndrewD (Post 1624304)
The problem is caused by parsing the bbcodes in the entry description for the NVidia driver in your drivers category - many many unnecessary nested bbcodes.

LDM takes a long time decoding these, but so does vbulletin - if you copy and past the description into a forum post, it shows exactly the same slow page generation time (although only the first time round because posts are cached after the first time they are generated). (This is not surprising, because LDM calls the vbulletin routines to do the job)

I will see if it is possible to cache parsed descriptions, although I think the real fix is in your hands.

Probably from copy and pasting. I will correct that.

Would it be possible to just pull the name and avoid all of that?

readjono 09-17-2008 09:55 PM

Thanks, sorted!

readjono 09-17-2008 10:07 PM

Oh and I'm trying to add some new entries into a category and it keeps setting the "Display Order" as 0. This is separating my new entries from the old. I can't see the setting in the main administration settings to stop this happening without manually changing it to '1'. Any ideas?

Edit: Found the option now :)

AndrewD 09-18-2008 03:53 AM

Quote:

Originally Posted by TsirhCitna (Post 1624346)
Would it be possible to just pull the name and avoid all of that?

It seems that way on the surface - in fact that was the way it was originally done - but it isn't that straightforward. The code doesn't know which pieces of information about an entry will be used in the template. Quite a number of the feature requests here are about including a piece of information displayed in one linkbit within another. So the code has to assume that each template may need everything, so has to do all the preprocessing.

AndrewD 09-18-2008 04:06 AM

Quote:

Originally Posted by MissKalunji (Post 1624320)
When i use ajax to submit comment it only happens IN ONE category?

It's the apostrophe character in your message that causes the database error. Thanks for reporting.

Saint_I_Am 09-18-2008 04:15 AM

I've uploaded a couple WAV's and they won't play for some reason??

Saint_I_Am 09-18-2008 04:52 AM

Quote:

Originally Posted by Saint_I_Am (Post 1624552)
I've uploaded a couple WAV's and they won't play for some reason??

The WAV's will play in IE7 but not Firefox, why? How can I get them to play in Firefox?

AndrewD 09-18-2008 05:04 AM

Quote:

Originally Posted by Saint_I_Am (Post 1624569)
The WAV's will play in IE7 but not Firefox, why? How can I get them to play in Firefox?

Are you getting a message that reads something like 'unable to find plugin'? I imagine that the Windows Media Player plugin for Firefox does not handle wav files. Probably one of the other players will work, but off-hand I'm not sure which. Go to ldm/admin/media players. You'll find wav listed as one of the file types that windows media player can handle. Try removing it from that player and adding it to, e.g., real player.

Saint_I_Am 09-18-2008 05:35 AM

Didn't get an error, it just wouldn't play. I tried real player and it asked to install a plugin and then it said it couldn't find one

Manhand 09-18-2008 10:40 AM

Great mod thanks!

Anyone know how i can add a right sidebar to all pages showing the category listing?

MissKalunji 09-18-2008 03:52 PM

Quote:

Originally Posted by AndrewD (Post 1624548)
It's the apostrophe character in your message that causes the database error. Thanks for reporting.

No problem :)

Quote:

Originally Posted by Manhand (Post 1624699)
Great mod thanks!

Anyone know how i can add a right sidebar to all pages showing the category listing?

i was wondering the same

You can do it manually editing the template but i'm sure there's an easier way

abdelghani68 09-19-2008 07:52 PM

how to do for the lecteur works in vbavanced cmps please:

https://vborg.vbsupport.ru/

thanks

Ophelia 09-19-2008 11:18 PM

Andrew, I'm back. I can't figure out the rhyme or reason for the "Your submission could not be processed because a security token was invalid" we now even have members getting this error when they try to view a product. Help? :)

vbboarder 09-20-2008 02:15 AM

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.

vbboarder 09-20-2008 04:03 AM

This is a strange bug. The filter links bar does not appear on pages listing a category's entries (ie: /local_links.php?catid=12), but does appear on pages listing a single entry (ie: /local_links.php?catid=12&linkid=20) - that doesn't make sense since you need filtering on listing pages, not on single entries. I made sure that the setting 'category_filter_menu' was enabled for the tested forums.

Note: I'm testing on LDM-2.2.9-post1 with default LDM templates. Please help, I really like the filtering function & links bar.

MissKalunji 09-20-2008 04:27 AM

he released 2.3.0 try it out?

vbboarder 09-20-2008 04:39 AM

Update on Filter links bug:
I looked at the code for local_links.php and the only line I could find for $linkfilterbit is (near line 785):
Quote:

if ($links_defaults['category_filter_menu'] and ($nhits or strlen($viewfilter))) {
eval("\$linkfilterbit = \"".fetch_template('links_filter')."\";");
}
I experimented and removing the condition '($nhits or strlen($viewfilter))' enabled the filter links bar to appear. Are the values for $nhits or $viewfilter set incorrectly when viewing a category's entries list?

Note: I'm still testing on LDM-2.2.9-post1 'cause I don't want to complicate my tests with some more new code from 2.3.0-alpha1. I'm trying to track the fixes that you've done, so hopefully I'm not reporting a bug that's already fixed. I found some other minor bugs in LDM-2.2.9-post1, but haven't post them yet - will try to fix myself and report them.

AndrewD 09-20-2008 05:09 AM

Quote:

Originally Posted by Ophelia (Post 1625949)
Andrew, I'm back. I can't figure out the rhyme or reason for the "Your submission could not be processed because a security token was invalid" we now even have members getting this error when they try to view a product. Help? :)

Gladly. Send me a PM with full admin access to your site.

AndrewD 09-20-2008 06:00 AM

Quote:

Originally Posted by vbboarder (Post 1626100)
Update on Filter links bug:
I looked at the code for local_links.php and the only line I could find for $linkfilterbit is (near line 785):
I experimented and removing the condition '($nhits or strlen($viewfilter))' enabled the filter links bar to appear. Are the values for $nhits or $viewfilter set incorrectly when viewing a category's entries list?

Note: I'm still testing on LDM-2.2.9-post1 'cause I don't want to complicate my tests with some more new code from 2.3.0-alpha1. I'm trying to track the fixes that you've done, so hopefully I'm not reporting a bug that's already fixed. I found some other minor bugs in LDM-2.2.9-post1, but haven't post them yet - will try to fix myself and report them.

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.

AndrewD 09-20-2008 06:24 AM

Quote:

Originally Posted by abdelghani68 (Post 1625860)
how to do for the lecteur works in vbavanced cmps please:

http://www.monsterup.com/upload/1221857474.jpg

thanks

which version of LDM are you using? the problem of a blank player is caused by a caching bug in adobe flash.

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 09:31 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.02348 seconds
  • Memory Usage 1,867KB
  • 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
  • (11)bbcode_code_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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