vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

Ophelia 04-13-2007 09:26 PM

Very small bug.. I almost am embarrassed to post it.

Using the most current version: links-2.2.7-post2.zip

Add Entry (it was 5:22 my time)
Set time for 5:25
Submit the entry and it shows "Not yet visible"
Refresh the screen... at 5:24, instead of 5:25, it makes the file visible.

Ophelia 04-13-2007 10:06 PM

Hi Andrew.

I'm having some pretty big problems with upgrading from 2.2.6 to 2.2.7.

I uploaded everything to the server.
I then go into Plugin & Products > Manage Products > Add/Import Product

I bring in product-eirma_ldm.xml and mark for it to overwrite and press import.

The next screen starts with the "please wait".. it then prints out this info

Links and Downloads Manager
Checking installation status...
Currently installed version: 2.2.6
Checking environment...
Environment checked
Creating LDM database tables
Step 1 - Verifying database tables
Patching (1) LDM database tables
Initialising admin table
Patching (2) LDM database tables
Recording version number 2.2.6 in database
Cleaning templates

And stops... it does nothing else. I let it sit for 10 minutes just in case it was because of the size of our database, but it doesn't do anything. Our database, zipped is only around 6 MB.

Any ideas?

AndrewD 04-14-2007 05:49 AM

Quote:

Originally Posted by Ophelia (Post 1227046)
Hi Andrew.

I'm having some pretty big problems with upgrading from 2.2.6 to 2.2.7.

I uploaded everything to the server.
I then go into Plugin & Products > Manage Products > Add/Import Product

I bring in product-eirma_ldm.xml and mark for it to overwrite and press import.

The next screen starts with the "please wait".. it then prints out this info

Links and Downloads Manager
Checking installation status...
Currently installed version: 2.2.6
Checking environment...
Environment checked
Creating LDM database tables
Step 1 - Verifying database tables
Patching (1) LDM database tables
Initialising admin table
Patching (2) LDM database tables
Recording version number 2.2.6 in database
Cleaning templates

And stops... it does nothing else. I let it sit for 10 minutes just in case it was because of the size of our database, but it doesn't do anything. Our database, zipped is only around 6 MB.

Any ideas?

A few thoughts.

First, if you've reported accurately the sequence of messages, then you've still got at least one of the version 2.2.6 files sitting on your server (the local_links_init.php) file, which produces the message "Recording version number 2.2.6 in database".

I've seen a number of reports over the last few months where the ftp code upload hasn't worked correctly, and one then gets very unpredicable behaviour which is essentially impossible to code safeguards against.

Second point is that the LDM installer has printed out all its messages - the 'Cleaning templates' message is the final message before passing control back to vbulletin. So it looks to me as if the installer has done its job and then vb itself is going to sleep. I don't know why that should be.

Do you guys periodically reoptimise your VB database? It's a good idea from time to time to go to vb/admin/maintenance/repair and optimise tables and do a couple of cycles of repair/optimisation. MySQL can slow down quite a bit after heavy use.

If none of this helps, let me know - am, as always, very happy to take a look.

AndrewD 04-14-2007 05:59 AM

Quote:

Originally Posted by Ophelia (Post 1227029)
Very small bug.. I almost am embarrassed to post it.

Using the most current version: links-2.2.7-post2.zip

Add Entry (it was 5:22 my time)
Set time for 5:25
Submit the entry and it shows "Not yet visible"
Refresh the screen... at 5:24, instead of 5:25, it makes the file visible.

It's not a bug, it was deliberate.

The timestamp that's provided to a vb script records when the script starts running rather than when a particular piece of code is executed. So one has to build in a margin of error into time calculations so that when the user actually gets to see the page. In the case of pre-dated entries, I gave a 60 second margin, to avoid the situation where the page is presented at (5.25) but was requested at (5.24).

If this is serious for you, it's a very trivial change to the code of local_links_include.php, about line 2861, depending on version

Code:


$linkexpired = 0;
if ($expire) {
        if ($linkdatebin>TIMENOW+60) {
                $linkexpired = -1;  // post-dated, so just invisible
        }

Just change the 60 to something smaller.

AndrewD 04-14-2007 06:05 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1226002)
hi Andrew,
i have tried Wimpy Wasp Player with the new LDM fixes. it's still not working for me.
what should i do to get it working?
PS: it shows up but video doesn't start to play

Do you by any chance have local_file_root set to 1 and is the flash video stored outside your web site?

The wasp player is picky about what it will play. It has to be given a full url to the file, so the file has to sit within the web site. The wimpy mp3 player is less sensitive and will work properly with php code that streams mp3 content to it.

If this isn't the situation, pls can you do a 'view source' on the wimpy wasp window, save the html to file and then email it to me (ad_rodin at noos.fr)

AndrewD 04-14-2007 06:20 AM

Quote:

Originally Posted by vuiveclub_net (Post 1226197)
I mean like when i upload a file in a subcategories, then why it;s not shows in the forum homepage that there is a new post. but when i post a file at a regular categorie it shows in forum homepage there is a new post. I hope you know what i mean. I want that when we Upload a file in subcategories, it will be show in the forum homepage.

Are you using the 'autocreate_threads' plugin for LDM (it's in the extras directory of the release)?

This 'autocreates' a post in a forum whenever new entries are added to LDM. For this to work, LDM has to know which forum to post into. It uses the 'associated forum' which you (as admin) tell it to use by default - for all categories/entries, in some categories, or on an entry-by-entry basis.

I've just tested this - created a three level forum structure (base, main forum, child forum) and a two level category structure (cat1/cat2). I installed the 'autothread' plugin, and added a new entry to the child category (cat2), associating it with the child forum. The attached images show what my LDM category and forum home look like.

AndrewD 04-14-2007 06:21 AM

Quote:

Originally Posted by unknowngiver (Post 1225921)
hey
i just added a new theme..and the download thing at the main page [vbadvanced] doesnt show :( anyway of adding it back in?

Am not an expert on vbadvanced - will try to take a look into this.

Rouzbeh1 04-14-2007 10:53 AM

Quote:

Originally Posted by AndrewD (Post 1227252)
Do you by any chance have local_file_root set to 1 and is the flash video stored outside your web site?

The wasp player is picky about what it will play. It has to be given a full url to the file, so the file has to sit within the web site. The wimpy mp3 player is less sensitive and will work properly with php code that streams mp3 content to it.

If this isn't the situation, pls can you do a 'view source' on the wimpy wasp window, save the html to file and then email it to me (ad_rodin at noos.fr)

local_file_root is set to no, flv file is on a separate server (accessible with apache)

email sent
thanks

AndrewD 04-14-2007 01:52 PM

Quote:

Originally Posted by Rouzbeh1 (Post 1227384)
local_file_root is set to no, flv file is on a separate server (accessible with apache)

email sent
thanks

See email reply - my bug.

Ophelia 04-14-2007 03:17 PM

Install issue:

My apologies.. I honestly thought I had overwritten everything! However, I've reuploaded again and it installed just perfectly this time.

Quote:

Originally Posted by AndrewD (Post 1227251)
It's not a bug, it was deliberate.

The timestamp that's provided to a vb script records when the script starts running rather than when a particular piece of code is executed. So one has to build in a margin of error into time calculations so that when the user actually gets to see the page. In the case of pre-dated entries, I gave a 60 second margin, to avoid the situation where the page is presented at (5.25) but was requested at (5.24).

If this is serious for you, it's a very trivial change to the code of local_links_include.php, about line 2861, depending on version

Code:


$linkexpired = 0;
if ($expire) {
        if ($linkdatebin>TIMENOW+60) {
                $linkexpired = -1;  // post-dated, so just invisible
        }

Just change the 60 to something smaller.

No, it wasn't a big issue :) Just something I noticed. Teach you to have me looking at your stuff! ;)

Okay, off to finish the install.


All times are GMT. The time now is 11:40 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.02522 seconds
  • Memory Usage 1,768KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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