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)

obmob 06-08-2009 04:57 PM

Ok... this was a busy weekend, will read carefully, good week :D

Alfa1 06-08-2009 06:23 PM

Quote:

Originally Posted by AndrewD (Post 1825740)
LDM/admin/permissions/can_play_musicbox

I had that permission turned off.

Quote:

Originally Posted by AndrewD (Post 1825740)
I'll give these points some thought

Thanks.

I would like to display an 'upload file' button within each category. Adding a button is relatively easy to do, but I would like the category to be selected on the upload page. I have been looking to find the code.
Here is what I have come up with for the links_main template so far:
Code:

<td class="smallfont"><a href="$LINKS_SCRIPT.php?{$vbulletin->session->vars['sessionurl']}action=addlink&amp;catid=<if condition="$viewcatid">
rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="Post new file" border="0" /></a><else />&nbsp;</if></td>

But that does not select the category, like it should. Do you know what I am doing wrong?

Alfa1 06-08-2009 09:16 PM

The LDM Similarthreads plugin has a problem. At least when several thousand visitors try to open threads around the same time.

Threads would not open anymore. A mass of queries where launched. Tables started locking. Here are the queries that where running when my site went down:
Quote:

stop proces 1180 database_name localhost database_name
Query 32 updating DELETE FROM vb6_linksdebug WHERE settingtime <
'1243891011'
stop proces 1181 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891011'
stop proces 1183 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891013'
stop proces 1184 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891014'
stop proces 1191 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891016'
stop proces 1192 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891016'
stop proces 1193 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891016'
stop proces 1196 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891017'
stop proces 1200 database_name localhost database_name Query 32
Locked DELETE FROM vb6_linksdebug WHERE settingtime < '1243891017'
I deactivated the plugins and all went back to normal.

AndrewD 06-09-2009 03:08 AM

Quote:

Originally Posted by Alfa1 (Post 1825973)
The LDM Similarthreads plugin has a problem. At least when several thousand visitors try to open threads around the same time.

Threads would not open anymore. A mass of queries where launched. Tables started locking. Here are the queries that where running when my site went down:
I deactivated the plugins and all went back to normal.

I'm not surprised, and this is why I was saying yesterday that one needs to keep the functionality of these plugins under control.

However, I think the error messages that you are reporting are happening because you have switched on LDM's debug or tracing feature - they are not related to the *similarthreads* plugin. There is no reason at all why you need debug or trace in normal use - all it's doing is adding a lot of overhead in terms of database access. I suggest you disable this feature and see whether the other plugins are still causing problems.

Debug and tracing are found on LDM->admin->debug

AndrewD 06-09-2009 03:29 AM

Quote:

Originally Posted by Alfa1 (Post 1825878)
I would like to display an 'upload file' button within each category. Adding a button is relatively easy to do, but I would like the category to be selected on the upload page. I have been looking to find the code.
Here is what I have come up with for the links_main template so far:
Code:

<td class="smallfont"><a href="$LINKS_SCRIPT.php?{$vbulletin->session->vars['sessionurl']}action=addlink&amp;catid=<if condition="$viewcatid">
rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="Post new file" border="0" /></a><else />&nbsp;</if></td>

But that does not select the category, like it should. Do you know what I am doing wrong?

Code:

<td class="smallfont">
<if condition="$viewcatid>0"><a href="$LINKS_SCRIPT.php?{$vbulletin->session->vars['sessionurl']}action=addlink&amp;catid=$viewcatid"
rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="Post new file" border="0" /></a><else />&nbsp;</if>
</td>


pooslokka 06-09-2009 07:37 AM

Quote:

Originally Posted by pooslokka (Post 1798187)
oh great ;)

btw, ill check the information you gave and reply you asap
Thank you andrewD for the kind corporation :)

Hai andrew, sorry for the delayed reply

i went to our vps lx admin panael and change the max memory limit to 65
but its not taking effect in vb admin
still shows old value

in lx admin
https://vborg.vbsupport.ru/

after changing, i login to vb admin
but still 32

https://vborg.vbsupport.ru/

uploading pic also still same problem.


Edit : May be i need to reboot the vps right?
Edit : banghead. even after restart of vps, it says 32 :)

skol 06-09-2009 08:04 AM

Quote:

Originally Posted by AndrewD (Post 1825672)
Sorry to hear this. Do you want me to take a look - I can't easily suggest a solution otherwise. Send me a PM with site details + a full admin account.

Superb Andrew thank you,all up and running..:D

AndrewD 06-09-2009 10:00 AM

Quote:

Originally Posted by pooslokka (Post 1826205)
Hai andrew, sorry for the delayed reply

i went to our vps lx admin panael and change the max memory limit to 65
but its not taking effect in vb admin
still shows old value

in lx admin
https://vborg.vbsupport.ru/

after changing, i login to vb admin
but still 32

https://vborg.vbsupport.ru/

uploading pic also still same problem.


Edit : May be i need to reboot the vps right?
Edit : banghead. even after restart of vps, it says 32 :)

I'm sorry - I cant really help you with specific server problems. I have no idea whether the parameter you have changed is the the required php parameter or not.

sparklywater 06-09-2009 09:54 PM

Quote:

Originally Posted by AndrewD (Post 1825671)
Several thoughts:

3) Does Google actually index urls with long "?action=xxx..." params?

Andrew, I suspect that this might be the cause of the indexing problem. I've checked the other two options you listed and they both look fine. It is possible that Google is overlooking URLs that end in ?action=play...
I already have vbSEO installed. Can you suggest a way to change the core format of those URLs so that they are more conventional, without the ?action=play part?

AndrewD 06-10-2009 11:55 AM

Quote:

Originally Posted by sparklywater (Post 1826691)
Andrew, I suspect that this might be the cause of the indexing problem. I've checked the other two options you listed and they both look fine. It is possible that Google is overlooking URLs that end in ?action=play...
I already have vbSEO installed. Can you suggest a way to change the core format of those URLs so that they are more conventional, without the ?action=play part?

You can get LDM to present a more conventional url with the SEO options on LDM->admin. However, these will only work if the web server is properly configured to recognise them. You can find an explanation in the wiki. I have no idea if this can be set up with vbseo - I'm not keen to pay them for a licence in order to develop software that works with their product :)

Could you let me know the url of a page on your site that you want Google to scan, then I can see if I have other ideas.

sparklywater 06-10-2009 12:48 PM

This is an example of a page: http://www.sparklywater.com/category/2/stream/1190.html

The URL does not show the ?action=play part because I am using vBSEO to rewrite those URLs. However perhaps Google can still decipher the original URLs and has problems indexing them.

sparklywater 06-10-2009 12:52 PM

By the way, my 'Who's Online' display shows that Google does 'scan' the pages, but it doesn't go on to index them.

AndrewD 06-10-2009 01:43 PM

Quote:

Originally Posted by sparklywater (Post 1826937)
By the way, my 'Who's Online' display shows that Google does 'scan' the pages, but it doesn't go on to index them.

I've taken a look at Google, and it is indexing at least some of your stream files. For example, if you enter the search "At the mountains so high site:www.sparklywater.com", it correctly returns a link to the "You Are Never Alone - Zain Bhikha" track.

Other entries, such as the one you pointed out to me (Wonderful World - Connie Talbot), are not indexed, although the essentially identical entry in your "creative arts" forum is being indexed. Perhaps Google doesn't like two pages with virtually the same content?

sparklywater 06-10-2009 02:12 PM

Thanks for pointing that out, I hadn't noticed. I'll see what I can do to get more of my links indexed :)

Alfa1 06-10-2009 04:48 PM

At a page with vbadvanced modules, I find the following templates uncached:
  • links_keysbit
  • links_othercatsbit(5)
  • links_ratebit_dropdown(5)
  • links_reportlinkbit(4)
  • links_sendtofriendbit(5)
I use 3 instances of ldm_new.php
As far as I can see, I do not need this page to show keywords/keysbit, ratebit, reportlink or sendtofriend. I am not sure what othercatsbit is.

Quote:

Originally Posted by AndrewD (Post 1826134)
I'm not surprised, and this is why I was saying yesterday that one needs to keep the functionality of these plugins under control.

However, I think the error messages that you are reporting are happening because you have switched on LDM's debug or tracing feature - they are not related to the *similarthreads* plugin. There is no reason at all why you need debug or trace in normal use - all it's doing is adding a lot of overhead in terms of database access. I suggest you disable this feature and see whether the other plugins are still causing problems.

Debug and tracing are found on LDM->admin->debug

I had the tracking function on to see if I could find if there where sites leaching, as my stats found very large bandwidth use.

I have turned similar files on again and will see if that works well.
Debug mode shows the following templates are uncached on showthread:
  • links_keysbit(4)
  • links_ratebit_dropdown(4)
  • links_playerbit_JWPlayer (1)
Similar files shows 4 files, but does not show keywords, ratings or a player.

Many thanks for your help.

Quote:

Originally Posted by AndrewD (Post 1826142)
Code:

<td class="smallfont">
<if condition="$viewcatid>0"><a href="$LINKS_SCRIPT.php?{$vbulletin->session->vars['sessionurl']}action=addlink&amp;catid=$viewcatid"
rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="Post new file" border="0" /></a><else />&nbsp;</if>
</td>


Thank you. That's a great improvement!

The order in which categories are displayed is incorrect wherever there is a closed category. I am not sure if this is a coincidence.

AndrewD 06-11-2009 05:18 AM

Quote:

Originally Posted by Alfa1 (Post 1827073)
At a page with vbadvanced modules, I find the following templates uncached:
  • links_keysbit
  • links_othercatsbit(5)
  • links_ratebit_dropdown(5)
  • links_reportlinkbit(4)
  • links_sendtofriendbit(5)
I use 3 instances of ldm_new.php
As far as I can see, I do not need this page to show keywords/keysbit, ratebit, reportlink or sendtofriend. I am not sure what othercatsbit is.

Debug mode shows the following templates are uncached on showthread:
  • links_keysbit(4)
  • links_ratebit_dropdown(4)
  • links_playerbit_JWPlayer (1)
Similar files shows 4 files, but does not show keywords, ratings or a player.

The template caching for the vba modules is fixed in the 2.3.0RC5 release. The caching for the similarthreads extra will be fixed in the next release. It is necessary to have those templates cached, as the code does not 'know' what will actually be displayed - this depends on the contents of other templates.

Quote:

Originally Posted by Alfa1 (Post 1827073)
The order in which categories are displayed is incorrect wherever there is a closed category. I am not sure if this is a coincidence.

I can't reproduce this problem.

Alfa1 06-11-2009 08:29 AM

I had to turn similar files off again, as it seemed to lead to all kinds of errors. Each of the errors where not directly related. They disappeared when I turned the similar files hack off.

I am running 2.3.0RC5, and have installed the extras, but my vba modules are php modules. How do I turn these ldm_new.php modules into something that uses the imported ldm_new.module?

AndrewD 06-11-2009 08:42 AM

Quote:

Originally Posted by Alfa1 (Post 1827501)
I am running 2.3.0RC5, and have installed the extras, but my vba modules are php modules. How do I turn these ldm_new.php modules into something that uses the imported ldm_new.module?

You have to delete the php files, then go to vb/acp/vb advanced/download upload module

AndrewD 06-14-2009 06:25 AM

I think there has been enough testing of version 2.3.0, so (with further very minor fixes) this is now available in the header post as the officially supported release for vb 3.7 and 3.8.

SemperFideles 06-14-2009 06:32 AM

Thank you so much for your labors Andrew.

wbottomley 06-15-2009 12:52 AM

I'm getting an error: XML Error: > required at Line 12001 while trying to import the xml file.

All files that are required have been uploaded.

AndrewD 06-15-2009 03:37 AM

Quote:

Originally Posted by wbottomley (Post 1829859)
I'm getting an error: XML Error: > required at Line 12001 while trying to import the xml file.

All files that are required have been uploaded.

I'm assuming that you are trying to install the English version.

One way in which this error message can appear is if the product-eirma-ldm.xml file has been corrupted at some stage, for example during the upload.

Line 12001 of this file should read:
Code:

                <phrase name="ll_perms_cat_default_sort_order" date="0" username="" version=""><![CDATA[Default order in which categories are presented]]></phrase>
If the first ">" character has been lost (after version=""), then vbulletin will generate the error you report.

I suggest you re-extract the .zip file and try again with the product-eirma-ldm.xml file

Simon Lloyd 06-15-2009 06:13 AM

Quote:

Originally Posted by pooslokka (Post 1826205)
Hai andrew, sorry for the delayed reply

i went to our vps lx admin panael and change the max memory limit to 65
but its not taking effect in vb admin
still shows old value

in lx admin
http://img149.imageshack.us/img149/8...eenshottzi.jpg

after changing, i login to vb admin
but still 32

http://img149.imageshack.us/img149/7108/screenshotf.jpg

uploading pic also still same problem.


Edit : May be i need to reboot the vps right?
Edit : banghead. even after restart of vps, it says 32 :)

I'm guessing you should also change it in your forum root>includes>config.php

nyunyu 06-15-2009 11:01 AM

I uninstall LDM and got those SQL error message bombing my email.
So, from this thread, I learned that I need to run the LDM Kill file to completely remove LDM.

But, it gave me this error instead,
Code:

Fatal error: Call to undefined function delete_ldmtables() in /home/nyunyu/public_html/forum/admincp/local_links_kill.php on line 55
Can you help?

AndrewD 06-15-2009 11:41 AM

Quote:

Originally Posted by nyunyu (Post 1829999)
I uninstall LDM and got those SQL error message bombing my email.
So, from this thread, I learned that I need to run the LDM Kill file to completely remove LDM.

But, it gave me this error instead,
Code:

Fatal error: Call to undefined function delete_ldmtables() in /home/nyunyu/public_html/forum/admincp/local_links_kill.php on line 55
Can you help?

Sorry to hear you are having problems. First, what SQL error messages are you receiving? Second, what version of LDM are you running? Had you already deleted the LDM code files? The function delete_ldmtables is in the file includes/local_links_admininclude.php, so that file (and includes/local_links_init.php) must both be present for the kill code to work.

wbottomley 06-16-2009 12:04 AM

Andrew... thank you for your help!

After re-extracting the zip file again, I'm getting this error: XML Error: > required at Line 11999

AndrewD 06-16-2009 03:25 AM

Quote:

Originally Posted by wbottomley (Post 1830437)
Andrew... thank you for your help!

After re-extracting the zip file again, I'm getting this error: XML Error: > required at Line 11999

This is the same error, with the corruption now just a line or two earlier. Which software are you using to extract the zip file?

wbottomley 06-16-2009 11:11 PM

Andrew, I'm using win rar which has always been reliable.

Anything else I should try?

AndrewD 06-17-2009 03:30 AM

Quote:

Originally Posted by wbottomley (Post 1830989)
Andrew, I'm using win rar which has always been reliable.

Anything else I should try?

I've just tried winrar and it seems to work ok. Anyway, I attach the unzipped product xml file for you to try.

obmob 06-17-2009 05:07 PM

Oh... it's official 2.3.0, thanks! :p

wbottomley 06-18-2009 12:46 AM

Still didn't work.

I uploaded all the files again and have gotten different errors at different times.

For example, 12004 once, another time 12001, and another time 11999

AndrewD 06-18-2009 03:06 AM

Quote:

Originally Posted by wbottomley (Post 1831632)
Still didn't work.

I uploaded all the files again and have gotten different errors at different times.

For example, 12004 once, another time 12001, and another time 11999

I really don't know what to say. There's clearly some problem in the upload process on your site, which is corrupting the xml file. Possibly this is to do with your server settings. If you want me to take a look, send me a PM with full site details including a username and password with full vb admin rights.

obmob 06-18-2009 04:32 PM

Maybe it is the FTP program, maybe you have an uploads manager in your cpanel, if any available.

wbottomley 06-19-2009 12:13 AM

I think I'll wait a few days until I visit it again.

Will be out of town.

Andrew, will check back in and thank you for the help!

AndrewD 06-22-2009 11:39 AM

Quote:

Originally Posted by wbottomley (Post 1832336)
I think I'll wait a few days until I visit it again.

Will be out of town.

Andrew, will check back in and thank you for the help!

I posed this problem to the guys at vb.com, who said that XML errors like that are generally related to a php issue. PHP is timing out, or hitting a memory limit. I tend to agree that this is the most likely cause of your problem. I suspect the memory limit is the more likely.

hydn 06-27-2009 07:20 PM

Quick question:

I want to show a splash image but ONLY on the link_main (local_link.php front page).

I added the code to the link_main template. Is there an "if condition" for the template or any other way I can restrict this to only the local_links.php front page? For now it's showing up on ALL local_links pages.

Thanks.

AndrewD 06-28-2009 03:35 AM

Quote:

Originally Posted by hydn (Post 1838555)
Quick question:

I want to show a splash image but ONLY on the link_main (local_link.php front page).

I added the code to the link_main template. Is there an "if condition" for the template or any other way I can restrict this to only the local_links.php front page? For now it's showing up on ALL local_links pages.

Thanks.

Yes, indeed. $viewcatid will be set to -1 if you are on the front page. So put in a test such as
Code:

<if condition="$viewcatid==-1"> .. show image .. </if>

hydn 06-29-2009 02:33 AM

thanks! Works!

hydn 07-09-2009 04:05 AM

What does "Empty and reinitialise database" do? Empty all entries then reloads them?

I've just linked the categories with forums and would like a new thread created for old links.

If i use "Empty and reinitialise database" will this force creation of new threads now that it's enabled in settings?

Thanks

AndrewD 07-09-2009 05:59 AM

Quote:

Originally Posted by hydn (Post 1845561)
What does "Empty and reinitialise database" do? Empty all entries then reloads them?

I've just linked the categories with forums and would like a new thread created for old links.

If i use "Empty and reinitialise database" will this force creation of new threads now that it's enabled in settings?

Thanks

NO!!! Empty and reinitialise database does exactly what it says - it deletes everything you have entered and resets everything back to when you first installed LDM.

There is currently no facility to create new threads from old entries. Sorry.


All times are GMT. The time now is 02:32 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.03236 seconds
  • Memory Usage 1,872KB
  • 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
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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