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)

sparklywater 06-08-2009 12:01 PM

Quote:

Originally Posted by Alfa1 (Post 1825601)
Same here. Even jukebox player links dated many years ago are not in Googles cache, while Google did indexed most of my site.

Thanks Alfa1 for confirming that it's a reproducable problem.

skol 06-08-2009 12:02 PM

Well i've tried for months Andrew,to get the uploading part of the mod to work..and i thought it might be a path problem to where i created the upload folder..

No matter what i do as soon as i hit the submit upload i get a blank page with this http://forum/local_links_actions.php

Alfa1 06-08-2009 12:10 PM

When installing the plugin spider-url that addresses ldm_linkbit_create I get this error:
PHP Code:

Parse error:  syntax errorunexpected '[' in /public_html/forum/includes/local_links_include.php(3725) : eval()'d code on line 3 

Why does the forum home stats show that my entries are 6.17 GB, while my statistics in LDM's settings show 1.87 GB?

AndrewD 06-08-2009 01:20 PM

Quote:

Originally Posted by Alfa1 (Post 1825615)
When installing the plugin spider-url that addresses ldm_linkbit_create I get this error:
PHP Code:

Parse error:  syntax errorunexpected '[' in /public_html/forum/includes/local_links_include.php(3725) : eval()'d code on line 3 


again, a character has gone astray.

Edit the Links and Downloads Manager - Spider external urls plugin attached to the ldm_linkbit_create hook. It starts off with a line

Code:

if (links_defaults['spider_urls_active'] and substr($linkurl,0,4)=="http") {
There should be a dollar sign $ immediately before links_defaults, i.e.

Code:

if ($links_defaults['spider_urls_active'] and substr($linkurl,0,4)=="http") {
Quote:

Originally Posted by Alfa1 (Post 1825615)
Why does the forum home stats show that my entries are 6.17 GB, while my statistics in LDM's settings show 1.87 GB?

These pages are not calculating the same thing. The LDM settings page shows the size of uploads. The forum home figure is the total size of all files which are considered to be downloads.

AndrewD 06-08-2009 01:24 PM

Quote:

Originally Posted by Alfa1 (Post 1825607)
How does the LDM Similarthreads plug-in calculate similar files on showthread? I really like this feature, but it shows completely irrelevant files.

It's doing a match of the thread title against the entry title and description, not on the content of the file.

AndrewD 06-08-2009 01:33 PM

Quote:

Originally Posted by sparklywater (Post 1825590)
I have a category with lots of links to Jukebox audio files. The category page has been indexed by Google, but not a single Jukebox player link has been indexed even after several months. These links do have some text content so Google should be able to index them. I'm wondering if anything in the LDM setup is preventing these pages from being indexed?

Several thoughts:

1) When Google visits your site, it does so as an unregistered user. Unless you have enabled the Jukebox for unregistered users, the links will not be there for Google to see.

2) Each LDM page includes a meta tag of the form:
Code:

<meta name="robots" content="index, nofollow" />
This tells Google to index the content of the page but not to follow any urls on the page. This was done for a reason (although I can't quite recall what the reason was - I think we wanted to stop Google accessing the actual files). You can change this on the LDM settings page with the robots_meta_tag setting, try "index, follow".

3) Does Google actually index urls with long "?action=xxx..." params? Do you need a search engine optimiser? (I don't know)

AndrewD 06-08-2009 01:34 PM

Quote:

Originally Posted by skol (Post 1825610)
Well i've tried for months Andrew,to get the uploading part of the mod to work..and i thought it might be a path problem to where i created the upload folder..

No matter what i do as soon as i hit the submit upload i get a blank page with this http://forum/local_links_actions.php

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.

AndrewD 06-08-2009 01:59 PM

Quote:

Originally Posted by Alfa1 (Post 1825562)
How can I edit the text that is displayed on forum home stats? I want to add a link to the file archive.

You should edit the Links and Downloads Manager - Patch forumhome stats plugin that is attached to the forumhome_complete hook. Find the lines:

Code:

$template_hook['forumhome_wgo_stats'] .= "
        <div>
                $vbphrase[ldm_links_database] $vbphrase[ldm_categories]: $totalcats, $vbphrase[ldm_entries]: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments
        </div>
        ";

and change it to (e.g.)

Code:

$template_hook['forumhome_wgo_stats'] .= "
        <div>
                <a href='".LINKS_SCRIPT."'>$vbphrase[ldm_links_database]</a> $vbphrase[ldm_categories]: $totalcats, $vbphrase[ldm_entries]: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments
                </div>
        ";



Quote:

Originally Posted by Alfa1 (Post 1825562)
I have 3 different main categories in my LDM: documents, video and audio. Is it possible to display the forum home stats for each of these main categories?

I deliberately avoided giving this plugin many features, because it requires loading all the LDM code base and can involve carrying out quite heavy database queries, which will increase the cost of viewing the forum home. So the answer to your question is "yes in principle" but I would be reluctant to make this an easy/reliable feature of the plugin.

Quote:

Originally Posted by Alfa1 (Post 1825562)
Is it possible to use patch-forumhome-newlinks or another function to display latest new files on /search.php?do=getnew ?

Not currently. Again, I have tried to keep integration with other parts of vb limited, so as to keep down the cost of running (and maintaining :)) LDM.

Alfa1 06-08-2009 03:16 PM

Quote:

Originally Posted by AndrewD (Post 1825659)
again, a character has gone astray.

Edit the Links and Downloads Manager - Spider external urls plugin attached to the ldm_linkbit_create hook. It starts off with a line

Code:

if (links_defaults['spider_urls_active'] and substr($linkurl,0,4)=="http") {
There should be a dollar sign $ immediately before links_defaults, i.e.

Code:

if ($links_defaults['spider_urls_active'] and substr($linkurl,0,4)=="http") {

Thanks. That fixed it.

Quote:

Originally Posted by AndrewD (Post 1825663)
It's doing a match of the thread title against the entry title and description, not on the content of the file.

Even though most of my thread titles are descriptive, they will always contain words that do not relate to the topic. For example: 'What is xxx?' 'How can you do xxx?' 'a question about xxx'
Would it be possible to have the addon take tags into account?

Quote:

Originally Posted by AndrewD (Post 1825671)
When Google visits your site, it does so as an unregistered user. Unless you have enabled the Jukebox for unregistered users, the links will not be there for Google to see.

Where do I check this setting?

Quote:

Originally Posted by AndrewD (Post 1825671)
Does Google actually index urls with long "?action=xxx..." params? Do you need a search engine optimiser? (I don't know)

I think this is indeed needed.

Quote:

Originally Posted by AndrewD (Post 1825681)
You should edit the Links and Downloads Manager - Patch forumhome stats plugin that is attached to the forumhome_complete hook. Find the lines:

Code:

$template_hook['forumhome_wgo_stats'] .= "
    <div>
        $vbphrase[ldm_links_database] $vbphrase[ldm_categories]: $totalcats, $vbphrase[ldm_entries]: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments
    </div>
        ";

and change it to (e.g.)

Code:

$template_hook['forumhome_wgo_stats'] .= "
    <div>
        <a href='".LINKS_SCRIPT."'>$vbphrase[ldm_links_database]</a> $vbphrase[ldm_categories]: $totalcats, $vbphrase[ldm_entries]: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments
        </div>
        ";


<a href='".LINKS_SCRIPT."'> does not work for me as that points to /local_links instead of /local_links.php So I used the full url instead. I tweaked the code to use this:
Code:

$template_hook['forumhome_wgo_stats'] .= "
    <br><div>
        <a href='http://www.mysite.com/forum/local_links.php'>Files</a>: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments, $vbphrase[ldm_categories]: $totalcats
        </div>
        ";

Quote:

Originally Posted by AndrewD (Post 1825681)
I deliberately avoided giving this plugin many features, because it requires loading all the LDM code base and can involve carrying out quite heavy database queries, which will increase the cost of viewing the forum home. So the answer to your question is "yes in principle" but I would be reluctant to make this an easy/reliable feature of the plugin.

Thats understandable. I guess my LDM has grown so big, that I have come to a point where I need multiple instances of LDM, to handle each section.

My members keep getting confused whether they are in the video, the documents or the audio section and are uploading to the wrong parts. For this reason I would 3 different category selectors on the upload page. So that it will not be possible to choose a category in the video section, if one is in the document section. Do you see a possibility for me to accomplish this or something similar?

Quote:

Originally Posted by AndrewD (Post 1825681)
Not currently. Again, I have tried to keep integration with other parts of vb limited, so as to keep down the cost of running (and maintaining :)) LDM.

Showing the latest files is possible within a vba module and on forum home. I am not that technical, but can you please explain why the same already coded functionality would not work on search.php? Is there anything that I can do toget it working?

AndrewD 06-08-2009 03:27 PM

Quote:

Originally Posted by Alfa1 (Post 1825730)
Where do I check this setting?

LDM/admin/permissions/can_play_musicbox

Quote:

Originally Posted by Alfa1 (Post 1825730)
My members keep getting confused whether they are in the video, the documents or the audio section and are uploading to the wrong parts. For this reason I would 3 different category selectors on the upload page. So that it will not be possible to choose a category in the video section, if one is in the document section. Do you see a possibility for me to accomplish this or something similar?

Showing the latest files is possible within a vba module and on forum home. I am not that technical, but can you please explain why the same already coded functionality would not work on search.php? Is there anything that I can do toget it working?

I'll give these points some thought


All times are GMT. The time now is 08:10 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.02683 seconds
  • Memory Usage 1,801KB
  • 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
  • (10)bbcode_code_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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