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)

RikiB 04-28-2008 04:14 AM

I tried adding the slash to the 2nd part of the rule, unfortunately it didn't work.

I tried both in the site root and the forum root, does it matter which one the .htaccess file needs to be in?

What happens is I click on a category in the LDLM and it just says page not found.

AndrewD 04-28-2008 05:04 AM

Quote:

Originally Posted by RikiB (Post 1501208)
I tried adding the slash to the 2nd part of the rule, unfortunately it didn't work.

I tried both in the site root and the forum root, does it matter which one the .htaccess file needs to be in?

What happens is I click on a category in the LDLM and it just says page not found.

I'm at a bit of a loss with this - the rules I suggested (with the /) work for me in my httpd.conf file and for another user in his .htaccess file - without the slash it would only work in the httpd.conf. mod_rewrite is (as has been said) voodoo. Its behaviour does change depending on where the rules are being read, i.e. in which directory the .htaccess file is placed. One really needs access to its log file to sort out what is happening - I imagine you don't have this possibility?

I'll see if I can dig any further.

GrendelKhan{TSU 04-29-2008 10:34 AM

Quote:

Originally Posted by AndrewD (Post 1498912)
How exactly are entering the 'relative to forum' string?

Can you also check and let me know the setting of 'forum url' on your vb/admincp

I think you still have adminid on my board from last time. I'll pm you the info again if that's ok.

josiespencer 04-29-2008 06:36 PM

OK, I think I am misunderstanding the how the can_view_hidden setting works. I grant this permission to a user group. Then I hard code the link in a post like this:

PHP Code:

[COLOR=Blue][I][U][B][URL="http://uber-goober.com/forums/local_links.php?catid=1&linkid=3891"]AC020 Investment Management[/URL][/B][/U][/I][/COLOR

When a user in this group clicks on the hyperlink created by the above code, I expect them to be able to download the file. But they get this error message instead:

Quote:

Sorry - there is nothing here to show you (no permission, all entries hidden, etc)
How is this supposed to work? I don't want my users doing searches, I want every link to be hard coded in a post.

AndrewD 04-30-2008 04:54 AM

Quote:

Originally Posted by josiespencer (Post 1502595)
OK, I think I am misunderstanding the how the can_view_hidden setting works. I grant this permission to a user group. Then I hard code the link in a post like this:

PHP Code:

[COLOR=Blue][I][U][B][URL="http://uber-goober.com/forums/local_links.php?catid=1&linkid=3891"]AC020 Investment Management[/URL][/B][/U][/I][/COLOR

When a user in this group clicks on the hyperlink created by the above code, I expect them to be able to download the file. But they get this error message instead:



How is this supposed to work? I don't want my users doing searches, I want every link to be hard coded in a post.

As you say, wrong permission - entries can be 'hidden' (explicitly or e.g. by post-dating them) - and *can_view_hidden* controls whether the usergroup can see these hidden entries or not.

I think the permission to use is *can_access_link* (with 2.2.9, or - required with earlier versions - the forums based permissions system)

Also your url in the forum should be ..php?action=jump&... to take authorised users directly to the download and unauthorised users to an error. Otherwise, users without the permission will simply get to see the usual LDM page with an entry with no hyperlink.

Rouzbeh1 04-30-2008 10:21 AM

hi Andrew,
for some reason (which i don't know) i'm not able to edit any categories
getting this message:

Quote:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
ADD: this happens also when i try to add a category

AndrewD 04-30-2008 10:54 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1503184)
hi Andrew,
for some reason (which i don't know) i'm not able to edit any categories
getting this message:



ADD: this happens also when i try to add a category

have you got all the latest RC code and templates installed or have you patched any of the standard LDM templates?

The error is generated by the latest vbulletin code when a form does not have the correct CSRF security token. I added all these tokens in the latest templates.

Rouzbeh1 04-30-2008 11:17 AM

oh thank you
problem fixed

josiespencer 04-30-2008 03:34 PM

Thanks!

RikiB 04-30-2008 04:34 PM

For some reason my flv and xml links wont play in IE7, they only download when I click the link. Is there anything special I need to do to get it working in IE7? (works fine in FireFox)

Riki

webspider 04-30-2008 04:57 PM

This appears to be a great addon.

After installation I tried to access various sections from my ACP and was presented with a VB no permission error page specifically "Statistics & Searches" I'm logged in as admin. Any idea why this may be happening?

Many thanks!

IrPr 04-30-2008 07:00 PM

Andrew, Im getting "Operation Aborted" Error on IE when pop-up comments are enabled on every entry page
Any solution?

Thanks

AndrewD 04-30-2008 07:02 PM

Quote:

Originally Posted by webspider (Post 1503596)
This appears to be a great addon.

After installation I tried to access various sections from my ACP and was presented with a VB no permission error page specifically "Statistics & Searches" I'm logged in as admin. Any idea why this may be happening?

Many thanks!

Sorry, I'd overlooked that.

Those acp commands take you to LDM pages that no longer exist, which is why there's an error message. Will fix.

AndrewD 05-01-2008 05:08 AM

Quote:

Originally Posted by IrPr (Post 1503746)
Andrew, Im getting "Operation Aborted" Error on IE when pop-up comments are enabled on every entry page
Any solution?

Thanks

According to a Google search, this may be a bug in IE, caused when Javascripts modify pages 'on the fly', which is the case with the vbulletin code that handles the comment pop-ups. I cannot reproduce the bug within LDM but I can easily generate the bug with a short test script (see attached).

Have you got other Javascripts embedded into your pages? Possibly, there's a conflict.

tekguru 05-01-2008 05:09 AM

Hi guys, yesterday I upgraded to the RC 2.29 version with vB 3.6.10 to get around the security token issue.

Two days prior to this the server the site runs on was ugraded (with no issues) to MySQL 5.0.45.

Since these two changes I'm seeing:

1) MySQL errors:

PHP Code:

Database error in vBulletin 3.6.10:

Invalid SQL:

                                        
UPDATE vb_session
                                        SET lastactivity 
1209614372location '/forums/local_links.php?action=jump&id=164&catid=8'useragent 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SU 3.011; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; Zune 2.0; .NET CLR 3.5.21022)'
                                        
WHERE sessionhash '65f940813662b64ba0952843a5cfddd9';

MySQL Error  MySQL server has gone away Error Number 2006
Date         
ThursdayMay 1st 2008 05:00:38 AM
Script       
http://www.4winmobile.com/forums/local_links.php?action=jump&id=164&catid=8
Referrer     http://www.4winmobile.com/forums/phone-edition-general/14865-slide2unlock-better-than-default-windows-screen-lock-customisable-too.html
IP Address   24.17.203.240
Username     
esamos
Classname    
vB_Database 

I'm not seeing any similar errors from any other part of the system.

2) Also if I try and use the FORUMHOME patches to display the top downloads I get a error on line 20 of the code and the page will not load. Is this because I'm running 3.6.10? I've taken the steps obn removing all addins, and them overwriting the Mod and readding with no changes to the issue. So for the moment we're having to run without these.

Any ideas on either?

AndrewD 05-01-2008 06:42 AM

Quote:

Originally Posted by tekguru (Post 1504171)
Hi guys, yesterday I upgraded to the RC 2.29 version with vB 3.6.10 to get around the security token issue.

Two days prior to this the server the site runs on was ugraded (with no issues) to MySQL 5.0.45.

Since these two changes I'm seeing:

1) MySQL errors:

PHP Code:

Database error in vBulletin 3.6.10:

Invalid SQL:

                                        
UPDATE vb_session
                                        SET lastactivity 
1209614372location '/forums/local_links.php?action=jump&id=164&catid=8'useragent 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SU 3.011; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; Zune 2.0; .NET CLR 3.5.21022)'
                                        
WHERE sessionhash '65f940813662b64ba0952843a5cfddd9';

MySQL Error  MySQL server has gone away Error Number 2006
Date         
ThursdayMay 1st 2008 05:00:38 AM
Script       
http://www.4winmobile.com/forums/local_links.php?action=jump&id=164&catid=8
Referrer     http://www.4winmobile.com/forums/phone-edition-general/14865-slide2unlock-better-than-default-windows-screen-lock-customisable-too.html
IP Address   24.17.203.240
Username     
esamos
Classname    
vB_Database 

I'm not seeing any similar errors from any other part of the system.

These'a similar report on vb.com:
http://www.vbulletin.com/forum/showt...46#post1547346

They suggest increasing the mySql wait_timeout setting, which controls how long the database connection stays open for a script. This would make sense with LDM - the sql that you report is executed right at the end of vbulletin page generation. Particularly if someone has just done a download, then the database connection might have closed down in the meantime.

Quote:

Originally Posted by tekguru (Post 1504171)

Also if I try and use the FORUMHOME patches to display the top downloads I get a error on line 20 of the code and the page will not load. Is this because I'm running 3.6.10? I've taken the steps obn removing all addins, and them overwriting the Mod and readding with no changes to the issue. So for the moment we're having to run without these.

Any ideas on either?

I'll test this and post a reply when possible.

tekguru 05-01-2008 07:12 AM

Cheers Andrew, have requested that my host sends me a copy of the ini file for MySQL to I can take a look at it.

If you can come back on the errors that would be great.

AndrewD 05-01-2008 08:23 AM

Quote:

Originally Posted by tekguru (Post 1504258)
If you can come back on the errors that would be great.

I'd moved some code into a new file and forgotten to update the plugin.

Here are modified versions of the plugins for the patch-forumhome-newlinks and patch-forumhome-thumbs extras.

tekguru 05-01-2008 09:41 AM

Okay those are now in and the error is gone - cheers for that.

Next problem is that he icons associated with the entries now showing hav an X for the image. Looking at the image properties the code is looking for the icons:

http://www.4winmobile.com/forums/htt.../icons/zip.gif

instead of at:

http://www.4winmobile.com/forums/images/icons/zip.gif

Any ideas if I can fix this one? This is with the 'hot' entries only)

AndrewD 05-01-2008 10:22 AM

Quote:

Originally Posted by tekguru (Post 1504335)
Okay those are now in and the error is gone - cheers for that.

Next problem is that he icons associated with the entries now showing hav an X for the image. Looking at the image properties the code is looking for the icons:

http://www.4winmobile.com/forums/htt.../icons/zip.gif

instead of at:

http://www.4winmobile.com/forums/images/icons/zip.gif

Any ideas if I can fix this one? This is with the 'hot' entries only)

Try this version of includes/local_links_vbafunc.php

tekguru 05-01-2008 11:04 AM

And fixed :) Nicely done and cheers for the quick response!

AndrewD 05-01-2008 01:53 PM

Quote:

Originally Posted by RikiB (Post 1503576)
For some reason my flv and xml links wont play in IE7, they only download when I click the link. Is there anything special I need to do to get it working in IE7? (works fine in FireFox)

Riki

Not sure - flvs and xmls are working fine for me with both IE7 and Firefox. Can you explain a bit more?

tekguru 05-01-2008 04:05 PM

Hi Andrew another problem I'm afraid, one of my Moderators has just advised that the downloads are not working.

I've just tested one:

http://www.4winmobile.com/forums/loc...d=8&linkid=167

When the link is clicked upon it opens:

http://www.4winmobile.com/forums/loc...catid=8&id=167

And a blank page appears, but no download.

Any ideas (once again)?

tekguru 05-01-2008 04:15 PM

Self fixed :)

I'd forgotten to add in the Extras for additional MIME types....

Apologies for the false alarm!

webspider 05-01-2008 06:21 PM

I must be missing the obvious :) How do you setup a link for your visitors to access the manager?

webspider 05-01-2008 06:34 PM

Quote:

Originally Posted by webspider (Post 1504869)
I must be missing the obvious :) How do you setup a link for your visitors to access the manager?

Solved :)

RikiB 05-01-2008 10:05 PM

Quote:

Originally Posted by AndrewD (Post 1504552)
Not sure - flvs and xmls are working fine for me with both IE7 and Firefox. Can you explain a bit more?

I guess Ill check my settings again, its strange, I click the link in IE7 and it just downloads it instead of playing the video.

On another note, in the category description, when I type in a link using html it seems to count the characters in the html and breaks the line because its too long, vbulletin doesn't seem to do that itself, so I think maybe its just a bug.

Thanks
Riki

itsblack 05-02-2008 12:10 PM

Hi Andrew, here is the chinese translation for 2.9 RC1. Lot of phrases have been updated, inclusive some old translations.

AndrewD 05-02-2008 01:27 PM

Quote:

Originally Posted by itsblack (Post 1505691)
Hi Andrew, here is the chinese translation for 2.9 RC1. Lot of phrases have been updated, inclusive some old translations.

Thanks. There may be just a couple more in the final release.

AndrewD 05-02-2008 01:33 PM

Quote:

Originally Posted by RikiB (Post 1505081)
I guess Ill check my settings again, its strange, I click the link in IE7 and it just downloads it instead of playing the video.

May I take a look at your site myself? Sometimes these things are browser/cache dependent, but if there's a real bug, I want to get rid of it.

Quote:

Originally Posted by RikiB (Post 1505081)
On another note, in the category description, when I type in a link using html it seems to count the characters in the html and breaks the line because its too long, vbulletin doesn't seem to do that itself, so I think maybe its just a bug.

You mean that you are including a url as raw html in the category description? You are using the word_wrap setting?

josiespencer 05-02-2008 04:10 PM

I'm having a weird problem - the daily accesses count is always 0 "0 Files during last 24 hours". But I know people have downloaded files.

RikiB 05-02-2008 06:14 PM

Quote:

Originally Posted by AndrewD (Post 1505747)
May I take a look at your site myself? Sometimes these things are browser/cache dependent, but if there's a real bug, I want to get rid of it.

I dont know how, but I think I got it working. If I find anymore out about this I will post it.

Quote:

Originally Posted by AndrewD (Post 1505747)
You mean that you are including a url as raw html in the category description? You are using the word_wrap setting?

Yes, I include a link inside the category description like this:

HTML Code:

<a href="http://website.com/forum/faq.php?faq=pdinfo#faq_dlm">See our recommendations</a>.
And it seems to count all of theses characters and splits the line. For example,

instead of getting something like this:
For help with a list of options See our recommendations

I get this:
For help with a list of options
See our recommendations

RikiB 05-02-2008 06:26 PM

I almost forgot, yes I tried playing with the word wrap settings and it didnt seem to effect it much.

Ipuck 05-02-2008 07:04 PM

AndrewD

In my site some users don't have access to all the links, they can see the links but they can click on it.

Question:

How can I add a icon (like a lock) at the end of the link just for the user that don't have access to the link.

Thanks!

AndrewD 05-03-2008 05:10 AM

Quote:

Originally Posted by Ipuck (Post 1506053)
AndrewD

In my site some users don't have access to all the links, they can see the links but they can click on it.

Question:

How can I add a icon (like a lock) at the end of the link just for the user that don't have access to the link.

Thanks!

I'll include this in the next upload. When an entry is visible but not accessible, the 'filetype' icon will change to a padlock.

AndrewD 05-03-2008 05:24 AM

Quote:

Originally Posted by josiespencer (Post 1505893)
I'm having a weird problem - the daily accesses count is always 0 "0 Files during last 24 hours". But I know people have downloaded files.

Do you mean that the admin/allowances page is showing zero accesses or do you mean somewhere else?

AndrewD 05-03-2008 06:13 AM

Quote:

Originally Posted by RikiB (Post 1505996)
Yes, I include a link inside the category description like this:

HTML Code:

<a href="http://website.com/forum/faq.php?faq=pdinfo#faq_dlm">See our recommendations</a>.
And it seems to count all of theses characters and splits the line. For example,

instead of getting something like this:
For help with a list of options See our recommendations

I get this:
For help with a list of options
See our recommendations

I can't find anything wrong with the code, so I may need more help in understanding your settings.

Can you just check the following - edit the category and make sure that you have not inadvertently added a line break in either the category description or the extended category description at the point where the text is wrapping. These are easy to insert by mistake and impossible to see. If you are using the same extended description as standard description, it's worth clearing the extended description and letting LDM recreate it from the standard text.

Ipuck 05-03-2008 05:16 PM

Quote:

I'll include this in the next upload. When an entry is visible but not accessible, the 'filetype' icon will change to a padlock.
Excellent!! https://vborg.vbsupport.ru/external/2008/05/66.gif

Clinotus 05-03-2008 11:05 PM

Will this thumbnail pdfs?

RikiB 05-04-2008 12:53 AM

Quote:

Originally Posted by AndrewD (Post 1506512)
I can't find anything wrong with the code, so I may need more help in understanding your settings.

Can you just check the following - edit the category and make sure that you have not inadvertently added a line break in either the category description or the extended category description at the point where the text is wrapping. These are easy to insert by mistake and impossible to see. If you are using the same extended description as standard description, it's worth clearing the extended description and letting LDM recreate it from the standard text.

Thanks for checking the code, so I went back and messed with it and simply removed a few extra spaces and it seemed to fix the problem. Sometimes I guess the wires just need to be wiggled a bit to get things working :)

Thanks again,
Riki


All times are GMT. The time now is 05:56 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.04886 seconds
  • Memory Usage 1,883KB
  • 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_html_printable
  • (4)bbcode_php_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