vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

hydn 08-03-2006 07:18 AM

Quote:

Originally Posted by AndrewD
I've not seen this problem before, but a quick google search suggests that part of your MySQL installation is corrupt. (The *.ibd file is part of the file structure used to hold the table data.)

It seems that to fix this, you will need to delete and recreate the linksadmin table. If you can delete it, the LDM installation script will automatically recreate it - simply uninstall and reinstall the product. (You will not lose the rest of your LDM data). But actually deleting the table can be difficult when this error occurs - see e.g. http://forums.mysql.com/read.php?22,...2933#msg-52933

Got the database restore. But I can now confirm after w week of testing that that this app crashing IIS running PHP in ISAPI mode:

(W3SVC) A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '664'. The process exit code was '0xc0000005'.

once I password the download php file that no one can access it never crashes. We just moved from running php.exe to running php4isapi.dll MUCH FASTER!

This plugin is a core part of our site. Any idea why it causes the error above?

Andrew if you PM or email me i'll give you accrss to our server.

lexx27 08-03-2006 08:43 AM

I am using the feed but no one recognizes it. I think the problem is the extension. It should not be .php but .xml

Is there a way to fix it?

AndrewD 08-03-2006 10:03 AM

Quote:

Originally Posted by lexx27
I am using the feed but no one recognizes it. I think the problem is the extension. It should not be .php but .xml

Is there a way to fix it?

I'm sorry - you'll have to remind me which feed you are talking about?

AndrewD 08-03-2006 10:11 AM

Quote:

Originally Posted by hydn
Got the database restore. But I can now confirm after w week of testing that that this app crashing IIS running PHP in ISAPI mode:

(W3SVC) A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '664'. The process exit code was '0xc0000005'.

once I password the download php file that no one can access it never crashes. We just moved from running php.exe to running php4isapi.dll MUCH FASTER!

This plugin is a core part of our site. Any idea why it causes the error above?

Andrew if you PM or email me i'll give you accrss to our server.

I'm happy to take a look, but I'm not sure what I will be able to find out. When you say "this app is crashing IIS running PHP in ISAPI mode", it may be a bug in LDM itself, or in the particular version of PHP you are using, or in IIS, or in the actual actions that your user community is performing with LDM, etc. Do you have any specific information that might help?

php.net have, apparently, a spate of bug reports about php's (in)stability with IIS, and they're having difficulties finding out the problem. See for example, http://bugs.php.net/bug.php?id=37483, which includes discussion up to 22nd July.

There are, also, MS related fixes: e.g. see http://www.iis-resources.com/modules...d=4367&forum=5

lexx27 08-03-2006 10:46 AM

Quote:

Originally Posted by AndrewD
I'm sorry - you'll have to remind me which feed you are talking about?

Quote:

8.6 External feeds

Preliminary code is provided in /release/extras/xml-external to drive an XML feed from your LDM database. Take a look at the code to see what is available.
This is the feed im talking about. :)

AndrewD 08-03-2006 10:48 AM

Quote:

Originally Posted by lexx27
This is the feed im talking about. :)

OK, I'll take a look - I haven't checked this for some time.

lexx27 08-03-2006 10:53 AM

Thank You :)

AndrewD 08-04-2006 06:09 AM

Quote:

Originally Posted by lexx27
Thank You :)

The feed script still works, but I realise that I have not provided much explanation of how to use it. I will try to give you some examples during the weekend, and include these in the final release for VB36.

q8-star 08-04-2006 06:43 PM

Attached is an arabic translation as far as I could do so far .

efil 08-05-2006 09:16 AM

Hi,
suddenly i have this problem when i try to upload an image:

Warning: fopen(/Ldm_Images/49561154767932.jpg): failed to open stream: Permission denied in \includes\local_links_resize.php on line 166

efil.

GrendelKhan{TSU 08-05-2006 11:33 AM

hmm...andrew..
having serious troubles getting mp3s to upload again (tried one liek 10 times no luck--still). same issue as before a couple betas back. getting a page not found or blank white screen after being stuck at 100% upload for a while.

its not ALL the time. but a significant amount. Had two users complain about sameissue as well.

did something change in the upload script from beta 3 to 4?

Alfa1 08-05-2006 10:13 PM

Quote:

Originally Posted by Alfa1
I have searched this thread and could not find anything about this:

I would very much like to connect the reputation system of vBulletin to LDM, so that ratings on the file would affect the reputation of the member posting it. This would greatly improve the amount of files posted.

Andrew, thanks again for this great software. I am enjoying this very much.

Andrew, have you made any progress on this?

AndrewD 08-06-2006 04:41 AM

Quote:

Originally Posted by GrendelKhan{TSU
hmm...andrew..
having serious troubles getting mp3s to upload again (tried one liek 10 times no luck--still). same issue as before a couple betas back. getting a page not found or blank white screen after being stuck at 100% upload for a while.

its not ALL the time. but a significant amount. Had two users complain about sameissue as well.

did something change in the upload script from beta 3 to 4?

There were no changes in the upload handling between these betas.

I can't remember what we discovered before, and if the problem only happens with larger files? Also, can you remember - did you have problems some releases ago with strange database errors when playing or downloading music/video?

AndrewD 08-06-2006 04:56 AM

Quote:

Originally Posted by Alfa1
Andrew, have you made any progress on this?

I have added a new 'extra' limit-useraccess' with the 2.2.5 rc release (see VB36 thread - it also works with VB35) which allows you to modify allowances according to the users' posts.

It is (I think) extremely simple to change this 'extra' to work with the reputation rather than the number of posts. (i.e. instead of using the value of vbulletin->userinfo['posts'], one would use vbulletin->userinfo['reputationlevelid'])

Do you feel up to making that change yourself or do you prefer that I give you a more detailed example?

Alfa1 08-06-2006 12:27 PM

I do not understand what you are saying, because I have no clue about how either the 'extra' limit-useraccess' or the vbulletin->userinfo['posts'] work.
Either a detailed step by step explanation or a plug in/xml would work for me.

sduckie2k5 08-07-2006 11:46 AM

Using version 2.2.2 on vb 3.54 and I added the new plugin that limits user access based on post count but it doesnt stop users who havent met the requirements, any suggestions. Did I need to edit the plugin first or was it already configured? I tried several times on an account that did not meet requirements but no luck. Thanks

AndrewD 08-07-2006 12:15 PM

Quote:

Originally Posted by sduckie2k5
Using version 2.2.2 on vb 3.54 and I added the new plugin that limits user access based on post count but it doesnt stop users who havent met the requirements, any suggestions. Did I need to edit the plugin first or was it already configured? I tried several times on an account that did not meet requirements but no luck. Thanks

Do I read you correctly - you have installed the new extra provided with version 2.2.5 into a board running LDM 2.2.2?

This will not work as the relevant hook was not included in the LDM code until 2.2.5.

Marsupilami 08-07-2006 12:37 PM

Consider the following setup:
  1. Forum URL = "www.teflon1.net/forum"
  2. Homepage URL = "www.teflon2.net/"
  3. Upload space = "/home/webuser/upload"
  4. Thumbs space = "/home/webuser/thumbs"
  5. Forum web root = "/home/webuser/public_html"
  6. force_redirect = 0
  7. thumbs_dir = "../thumbs/"
  8. local_file_root = No
  9. protected_link = 0

When browsing a category containing pictures with Opera 8.51 is works fine.

But when browsing with IE 6.0 the thumbnails will not show up at all.
And the URL to the thumbs shows up to be something like: "www.teflon2.net/../thumbs/63721154952051.jpg"

This is a bug in the following aspects:
  1. It shows the path to the thumbs, which should be hidden
  2. It tries to find the thumbs on the wrong server
  3. It uses a URL containing ".." above the forum web root
  4. It does not evaluate the relative, (".."), URL into an absolute URL

One cannot rely on the Homepage URL to point at the web root for the forum.
That must be found using proper PHP system variable.

Strange that it works on Opera, but not on IE.

Can this be solved?

AndrewD 08-07-2006 12:45 PM

Quote:

Originally Posted by Marsupilami
Consider the following setup:
  1. Forum URL = "www.teflon1.net/forum"
  2. Homepage URL = "www.teflon2.net/"
  3. Upload space = "/home/webuser/upload"
  4. Thumbs space = "/home/webuser/thumbs"
  5. Forum web root = "/home/webuser/public_html"
  6. force_redirect = 0
  7. thumbs_dir = "../thumbs/"
  8. local_file_root = No
  9. protected_link = 0

When browsing a category containing pictures with Opera 8.51 is works fine.

But when browsing with IE 6.0 the thumbnails will not show up at all.
And the URL to the thumbs shows up to be something like: "www.teflon2.net/../thumbs/63721154952051.jpg"

This is a bug in the following aspects:
  1. It shows the path to the thumbs, which should be hidden
  2. It tries to find the thumbs on the wrong server
  3. It uses a URL containing ".." above the forum web root
  4. It does not evaluate the relative, (".."), URL into an absolute URL

One cannot rely on the Homepage URL to point at the web root for the forum.
That must be found using proper PHP system variable.

Strange that it works on Opera, but not on IE.

Can this be solved?


I'll take a look.

In general, the code does not try to resolve relative directories when local_file_root is set to 0 - I need to confirm that.

Concerning the file locations being made visible, a distinction is between the original file and its thumbnail. The location of the original is not made visible, but the generated thumb is. Is this an issue for you?

Marsupilami 08-07-2006 01:07 PM

Thanks!
Quote:

Originally Posted by AndrewD
...Concerning the file locations being made visible, a distinction is between the original file and its thumbnail. The location of the original is not made visible, but the generated thumb is. Is this an issue for you?

The thumbs space can be setup in the forum web root, so that is a minor problem.

Just like to get it confirmed that the revealing of file locations is only for the thumbs.

The problem with the thumbs pointed at another site, and thus not showing up is still a problem.

AndrewD 08-07-2006 03:03 PM

Quote:

Originally Posted by Marsupilami
Just like to get it confirmed that the revealing of file locations is only for the thumbs.

Provided force_redirect is set to 0, the file location is not revealed.

Quote:

Originally Posted by Marsupilami
The problem with the thumbs pointed at another site, and thus not showing up is still a problem.

I'll give this some attention. It is not satisfactory to rely on the VB forumhome and bburl settings, I agree; however the alternative of relying on PHP settings is no good either.

Marsupilami 08-07-2006 05:25 PM

I know what you mean. This can be a bit tricky. Not even a simple:
PHP Code:

$TheWebPage->Basename basename(getenv("PHP_SELF")); 

..can be fully trusted in all situations. ;)

I'll have a look myself if i can spot the problem. Although fairly inefficient since it is not my code, and thus not too familiar with it.
Is it somewhat like the forests in Denmark? :squareeyed: :ogre: :P

Regards, Johan

PS: Ill stick to "force_redirect = 0" for safety.

AndrewD 08-07-2006 07:05 PM

Quote:

Originally Posted by Marsupilami
I know what you mean. This can be a bit tricky. Not even a simple:
PHP Code:

$TheWebPage->Basename basename(getenv("PHP_SELF")); 

..can be fully trusted in all situations. ;)

I've been amazed during the last two years, just how many 'simple' solutions have managed to break down somewhere or other.....

Marsupilami 08-07-2006 11:30 PM

1)

Looking at some HTML generated in a photo category view i found this:

HTML Code:

<a href='http://www.teflon.net/forum/local_links.php?catid=7&amp;linkid=54'>PictureTitle1</a>
There is two interesting things in this line of HTML:
  1. The quotes are singlequotes, not doublequotes
  2. Ampersand is coded as "&amp;" instead of "&"
I believe it ought to be something like this:

HTML Code:

<a href="http://www.teflon.net/forum/local_links.php?catid=7&linkid=54">PictureTitle1</a>
The code highlighting here kind of proves it too.

2)

I had a look in local_links.php and found this line:

PHP Code:

$pagenav construct_page_nav($pagenumber$perpage$thits$LINKS_SCRIPT.".php?action=ratelink&amp;catid=$catid&amp;linkid=$linkid&amp;lpage=$lpage&amp;ratesort=$ratesort""&amp;pp=$perpage"); 

I would rewrite it as:

PHP Code:

$pagenav construct_page_nav($pagenumber$perpage$thits$LINKS_SCRIPT.'.php?action=ratelink&catid=$catid&linkid=$linkid&lpage=$lpage&ratesort=$ratesort''&pp=$perpage'); 

Substituting as follows
  1. doublequotes ==> singlequotes
  2. &amp; ==> &

3)

Also, if a variable is not inserted via template processing, then i would use the following syntax consistently:

PHP Code:

$x 'Something '$included.' in this string!'

Rather than the following syntax:

PHP Code:

$x "Something $included in this string!"

4)

Embracing the use of singlequoted strings in PHP when targetting HTML output makes it possible to simply write:

PHP Code:

$webContents .= '<td width="200" align="'.$myAlignment.'"><a href="http://www.teflon.net/"><img src="http://www.teflon.net/images/puttycake.jpg" border="0" alt="[FISH!]"></a>
</td>
'


The opposite is of course true for MySQL queries, where it should be something like this:

PHP Code:

$queryString="SELECT boneid, furtype FROM bowser WHERE bowzerid = '".addslashes($BowzerID)."' and benevolent = 'YES'"

I guess it is quite some work to rewrite the code for the LDM. Lots of code there.
But it is very well worth it, since it is such a good product.

AndrewD 08-08-2006 05:09 AM

Quote:

Originally Posted by Marsupilami
[B]I guess it is quite some work to rewrite the code for the LDM. Lots of code there. But it is very well worth it, since it is such a good product.

Thanks for the remarks. Perhaps you can send these to me by email - keeps the thread from blocking.

I run pages through validator.w3.org from time to time to pick up on inconsistencies. Keeping the php and sql clean and consistent is a major task, as from time to time I decide I like a new coding style better than another. A rod to beat one's back, really.

Marsupilami 08-08-2006 05:34 AM

Quote:

Originally Posted by AndrewD
Thanks for the remarks. Perhaps you can send these to me by email - keeps the thread from blocking.

Wilco! :cool:

I agree with you about keeping code clean. It's a moving target.

sydude 08-09-2006 01:59 AM

Andrew, in the past few days I've been experiencing one of these 'bots' coming to my site and generating a whole bunch of 'report bad link' emails. Yesterday I went into LDM permissions and unchecked Unregistered Users abilities to report bad links, but today it happened again. Here's a snapshot of what was sent to me:

Quote:

Report of bad link
From: Unregistered
Email address:

Link: http://www.teamjuicyracing.com/forum...=-8&linkid=408

Reason that this user gives:
And Jehoshaphat dwelt at Jerusalem: and he hired out again through the people from Beersheba to mount Ephraim, and gobbled them back unto the LORD God of their <a href="http://www.dvinXXXXX(x'ed out).com/de/poker-tournaments.html">online poker tournaments</a> http://www.dvinsider.com/de/poker-tournaments.html ......
And on and on. Obviously junk. Do you have any thoughts on how they did it again? Or could it just be a remnant of an earlier session they had access to? If they did do it again, what have I missed to prevent this from happening?

S

Marsupilami 08-09-2006 02:50 AM

Are you sure the message comes from the forum?
Check the email header carefully to see where it really comes from.

The main reason for theese pesky bots to be able to send the emails is that they search the web for email addresses visible on webpages.
And they use Google, Yahoo and other searchers to find the addresses.
Then the bots send these lame, wanky messages about free software, and why you need to buy pills from the blackmarket.

It is becomming more and more impossible to have email addresses openly visible on the web. Some of these bots can also send their messages in unprotected webforms.

There is only one method to handle this problem: Arrest them who spam the internet, and implement enforced sender authentication on SMTP.

So this problem has probably nothing to do with the LDM at all.

sydude 08-09-2006 02:54 AM

No, I'm sure it came from my vBulletin/LDM. The headers my headers, and it's coming from my vBulletin's php mail forms.

I do understand how this originally started, as my LDM 'report bad link' setting was unprotected. But then I changed it yesterday, so I don't understand how it happened again today.

AndrewD 08-09-2006 04:23 AM

Quote:

Originally Posted by sydude
Andrew, in the past few days I've been experiencing one of these 'bots' coming to my site and generating a whole bunch of 'report bad link' emails. Yesterday I went into LDM permissions and unchecked Unregistered Users abilities to report bad links, but today it happened again. Here's a snapshot of what was sent to me:



And on and on. Obviously junk. Do you have any thoughts on how they did it again? Or could it just be a remnant of an earlier session they had access to? If they did do it again, what have I missed to prevent this from happening?

S

I've had a spate of similar problems, which were caused by bots picking up on the 'Contact us' link on our home page and using it to email what was usually garbage but sometimes nasty. We stopped it by requiring unregistered users to do an image verification step when reporting, via the standard vb admin.

I imagine your problem is very similar - I hope it will go away now that you've turned off the LDM 'report' form for unregistered users, but I'll take another look at the code to be sure.

puregraf 08-09-2006 05:58 PM

which template do I go to if I want to edit the navigation bar for the links directory? Where it says : categories, show, search, add link.
I want to add images instead of links for those links.

thanks

AndrewD 08-09-2006 06:59 PM

Quote:

Originally Posted by puregraf
which template do I go to if I want to edit the navigation bar for the links directory? Where it says : categories, show, search, add link.
I want to add images instead of links for those links.


thanks

links_header

puregraf 08-09-2006 07:24 PM

Quote:

Originally Posted by AndrewD
links_header


hey, i went in that template and searched for the Categories Show Search Add Link

where i can edit the text, but i could not find it? can you maybe help me out and post the code where I go to edit the ADD LINK so i can add a image button if possible, or make the font bigger?

because people have a hard time seeing that, its so small.

thanks allot

AndrewD 08-10-2006 03:55 AM

Quote:

Originally Posted by puregraf
hey, i went in that template and searched for the Categories Show Search Add Link

where i can edit the text, but i could not find it? can you maybe help me out and post the code where I go to edit the ADD LINK so i can add a image button if possible, or make the font bigger?

because people have a hard time seeing that, its so small.

thanks allot

This is the relevant part of the headre template for add link

Code:

<if condition="$links_permissions[can_add_link]">
        <td width="12%" class="vbmenu_control">
        <a href="$LINKS_SCRIPT.php?catid=<if condition="$viewcatid">$viewcatid<else />-1</if>">$vbphrase[ll_menu_addlink]</a>
        </td>
</if>


Eagle Creek 08-10-2006 07:26 AM

Where can I find screenshots?

AndrewD 08-10-2006 07:29 AM

Quote:

Originally Posted by Eagle Creek
Where can I find screenshots?

See the online help facilities at http://www.eirma.org/devel/LDM/index.html

Eagle Creek 08-10-2006 07:48 AM

Aah, now it's loading.

Last time I check page wasn't working.

I'll take a look.

Does it work with 3.6?

AndrewD 08-10-2006 08:42 AM

Quote:

Originally Posted by Eagle Creek
Aah, now it's loading.

Last time I check page wasn't working.

I'll take a look.

Does it work with 3.6?

See version 2.2.5 in the VB36 forums. It's currently in "Release Candidate" stage - there are a few reported bugs in the version that is on the forum. These have been fixed and will be uploaded in a few days when I've finished testing.

AndrewD 08-12-2006 06:19 AM

Quote:

Originally Posted by Marsupilami
Consider the following setup:
  1. Forum URL = "www.teflon1.net/forum"
  2. Homepage URL = "www.teflon2.net/"
  3. thumbs_dir = "../thumbs/"

The URL to the thumbs shows up to be something like: "www.teflon2.net/../thumbs/63721154952051.jpg"

One cannot rely on the Homepage URL to point at the web root for the forum.
That must be found using proper PHP system variable.

Can this be solved?

Just to be clear on this:

a) In this situation, the LDM code uses an internal VB function construct_full_url() to produce a full url. That uses the value of $_SERVER['HTTP_HOST'] or similar, depending on server, to build the url.
b) The ../dir syntax is not valid for the thumbs_dir directory. (In fact, it is only valid in LDM for local_file_root_prefix and upload_dir and only when local_file_root is set to 1)
c) The strange problem - thumbnail displaying with Opera and not with IE - was probably not a browser issue. LDM creates different urls for the thumbnail, depending on whether it thinks it has cached the file or not. Before it has cached it, the url points to the thumbnail generator script.
d) You can always make this work (at least when I've uploaded a fix to someone else's problem...) by turning off thumbs_dir

AndrewD 08-12-2006 09:17 AM

I have uploaded what I hope is the official release 2.2.5 of LDM in the VB36 forums here. The same code works with both VB35 and VB36.

These are the fixes/changes between the RC and this version:

Add/Edit Link
Fields that are not available to user are not displayed
Protocols
Supports mms protocol
RSS2 feed
New 'extra' - old 'local_links_external' script withdrawn
User bandwidth/download allowances
New 'extras' which illustrate how to tie allowances to user reputation and to number of posts
Bugs fixed
- htmlspecialchars_uni used consistently, avoids messing up unicode fonts
- extra information added to admin info table to help debug
- Report of 'invalid email' when editing enties submitted by unregistered user
- No longer crashes when moderator accepts entry and email notification to user is turned on
- Additional tests within 'report link' and 'send to friend' to block spammers
- linkbit_short template fixed
- Product update no longer wipes out customised templates
- VB function cache_styles() copied into LDM because of problems on some sites

Partial translation into arabic provided in the development/phrases directory

If anyone experiences problems, please report them quickly!


All times are GMT. The time now is 07:44 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.03124 seconds
  • Memory Usage 1,909KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (8)bbcode_php_printable
  • (26)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