vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

AndrewD 10-16-2004 12:34 PM

Quote:

Originally Posted by Lionel
I did a nice little addition to rating
below:

$linkrate = round($links_totrate[$linkid] / $links_numrate[$linkid]);

I added:

$thevote="<img src=\"images/rating/rating_$linkrate.gif\">";

and in template ratebit, I swapped $linkrate with $thevote. :squareeyed:

Thanks Lionel

Those who do not like coding can achieve this just by editing the links_ratebit template
PHP Code:

<span class="smallfont"> <img src=images/rating/rating_$linkrate.gif> <if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&amp;vote=-1&amp;id=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber">clear</a></if></span


Blam Forumz 10-16-2004 02:17 PM

Quote:

Originally Posted by AndrewD
See reply to bitg. Will try to provide a fix soon.

Thanks

Also, i got it to work by making it so it has the parent of a section on my forum ^^

hodur 10-17-2004 04:59 PM

I have a error, when I want to moderate a link:
Quote:

Datenbankfehler in vBulletin 3.0.3:

Ungueltige SQL-Abfrage:
mysql error: Query was empty

mysql error number: 1065

Datum: 17.10.2004 19:48:54
Skript: http://mysite.com/forum/local_links....modcat&catid=7
Referer: http://mysite.com/forum/local_links.php?action=mod
Benutzername: hodur
Any ideas?

AndrewD 10-17-2004 07:31 PM

Quote:

Originally Posted by hodur
I have a error, when I want to moderate a link:

Any ideas?

Sorry, there's a bug in the uploaded version, see https://vborg.vbsupport.ru/showpost....&postcount=600 for the fix.

I forgot to upload the corrected version.

hodur 10-17-2004 08:41 PM

Now ist works fine. :squareeyed:
Thanks.

AndrewD 10-18-2004 06:15 PM

Version 1.35a now supported; version 1.41 beta; see first post of thread.

Reports please.

welo 10-18-2004 06:28 PM

Looking pretty good, Andrew ;). I was going to wait until 1.35 went stable and use that, although I think it's a safe risk just to go ahead with 1.41b ;). Oh, and kudos on your superior documentation.

Lionel 10-18-2004 09:47 PM

"added option to allow new links to have an empty link, i.e. just a name
and description"

Is that something that is typical with new beta or could that be achieved in 1.35?

Roms 10-19-2004 02:24 AM

I like it, it was very user friendly to install. I customized it a little just to say "downloads".....

Thanks for the work.

*Clicks Install

AndrewD 10-19-2004 03:32 AM

Quote:

Originally Posted by Lionel
"added option to allow new links to have an empty link, i.e. just a name
and description"

Is that something that is typical with new beta or could that be achieved in 1.35?

It was added in 1.41, following your (and others) suggestion/request. Version 1.35 did not allow it. I have not included the other bits that you added, to provide the extended link description and wisiwig editor.

Lionel 10-19-2004 03:38 AM

ouch, I did a lot of customization... I guess I will have to put in the same dummy url every time...

AndrewD 10-19-2004 04:29 AM

Quote:

Originally Posted by Lionel
ouch, I did a lot of customization... I guess I will have to put in the same dummy url every time...

This is a real problem for software that is still being developed - sorry!

SupraT 10-30-2004 05:48 AM

I have the links installed on site. Works great, but one week after our relaunch I am noticing that downloaders are getting by the protection. It appears that they are getting the direct link from the window that pops up when you click the link. The one that states that you are being redirected. I have used this on other sites and it does not display the same way as it does on my site.

Am I missing something, or is install no good?

Please advice.

Thanks

AndrewD 10-31-2004 06:22 AM

Quote:

Originally Posted by SupraT
I have the links installed on site. Works great, but one week after our relaunch I am noticing that downloaders are getting by the protection. It appears that they are getting the direct link from the window that pops up when you click the link. The one that states that you are being redirected. I have used this on other sites and it does not display the same way as it does on my site.

Am I missing something, or is install no good?

Please advice.

Thanks

Sorry, I'm not sure I understand the problem - are your users getting a popup which tells them the location of the file, so they then know how to bypass the system?

Several questions:
- Are the downloads coming from your site or another? Normally, files with recognised mimetypes on your site should not produce this popup.
- Have you changed the setting of force_redirect on the links admin page - if this = 1 then your users will get to see the file locations
- Are you using the local_file_root setting on the links admin page to place the downloads outside the web directories, to prevent anyone from getting at them except through the links s/w?

If these suggestions don't help, pm me with more details of your site.

SupraT 10-31-2004 03:20 PM

Quote:

Originally Posted by AndrewD
Sorry, I'm not sure I understand the problem - are your users getting a popup which tells them the location of the file, so they then know how to bypass the system?

Several questions:
- Are the downloads coming from your site or another? Normally, files with recognised mimetypes on your site should not produce this popup.
- Have you changed the setting of force_redirect on the links admin page - if this = 1 then your users will get to see the file locations
- Are you using the local_file_root setting on the links admin page to place the downloads outside the web directories, to prevent anyone from getting at them except through the links s/w?

If these suggestions don't help, pm me with more details of your site.

Easy way would be to check out the downloads on my site: http://www.clanspy.net/forum/local_links.php?

I do not see the setting force_redirect, maybe this isn't the same hack??? I didn't install it and was told this was it :(

The files are on the local server and inside the web directories.

Thanks for your help.

AndrewD 10-31-2004 03:42 PM

Quote:

Originally Posted by SupraT
Easy way would be to check out the downloads on my site: http://www.clanspy.net/forum/local_links.php?

I do not see the setting force_redirect, maybe this isn't the same hack??? I didn't install it and was told this was it :(

The files are on the local server and inside the web directories.

Thanks for your help.

It's the same hack - you are using an old version (1.21) in which the force_redirect setting did not exist - but that should not affect things.

Looking at your site, I can see a set of links that are available without logging in. If you want to stop these being copied by unregistered users (via the links hack or by using the redirection), then:
- associate each link with a VBulletin forum
- set that forum's permissions so it is only accessible to the usergroups you want

SupraT 10-31-2004 05:05 PM

Would it be advisable to upgrade to the more recent version? If so, is it simply re-editing the files per the instructions?

AndrewD 11-01-2004 04:08 AM

Quote:

Originally Posted by SupraT
Would it be advisable to upgrade to the more recent version? If so, is it simply re-editing the files per the instructions?

I think it's a good idea to upgrade, but this has nothing to do with the problem you report.

To upgrade, you upload the latest files (local_links.php and local_links_templates.xml into you main forums dir) and local_links_install.php into your admin dir, and rerun the installation script.

SupraT 11-01-2004 05:34 AM

Quote:

Originally Posted by AndrewD
I think it's a good idea to upgrade, but this has nothing to do with the problem you report.

To upgrade, you upload the latest files (local_links.php and local_links_templates.xml into you main forums dir) and local_links_install.php into your admin dir, and rerun the installation script.

OK I did the upgrade, however, as you have stated it has not changed the problem. Did you try the download? See how a window opens in the back ground that states you are being redirected, then the SAVE AS window appears. Well the pop-up window in background is still there and if you highlight the :forward to link" you see the URL.

How do I stop that?

AndrewD 11-01-2004 08:46 AM

Quote:

Originally Posted by SupraT
OK I did the upgrade, however, as you have stated it has not changed the problem. Did you try the download? See how a window opens in the back ground that states you are being redirected, then the SAVE AS window appears. Well the pop-up window in background is still there and if you highlight the :forward to link" you see the URL.

How do I stop that?

I see that you're offering rather large zips and exes. Downloads with recognised mimetypes are handled differently than downloads with unrecognised memetypes, where the redirection window is used. Does your VB main admin have mime settings for zip and exe?

Go to VB's main admin, then attachment, then extensions and sizes. The appropriate mimetype for a zip file is
Code:

Content-type: application/zip
. For an executable, you can just create the exe attachment type and leave the mimetype field empty.

Normally, when the file has a recognised mimetype, the download is handled transparently, so the user does not get to see where the file is stored.

*But* a big warning - if you choose this route, you are increasing the cpu load on your server. This is normally only a problem if the files are held on a third party machine, because then your server has to keep reading, then rewriting records. This is why I added the force_redirect switch on the links admin page, to force the hack always to use redirection rather than read/rewrite to user.

The link on the redirection window ("click here if you do not get redirected") is being created within the standard VB code. There may be a way to suppress it, but I'm not sure.

SandsUSA 11-02-2004 02:43 PM

@AndrewD ~ I've been using this hack since it was first released and just wanted to re-affirm: Thanks, great hack and support.

welo 11-02-2004 04:06 PM

I'll second that. I haven't installed the latest version yet although I intend to this week. This is definitely one of the better supported and developed hacks around here.

Natch 11-04-2004 12:45 AM

*nods* Thumbs-up AndrewD

Ranma2k 11-05-2004 11:56 AM

Hi AndrewD
Thaks alot of the script i still use it since ver 1 :)
i wanted to ask you something

In my site i add the download files in a diffrent server & on that server i enabled the hotlinking protection even for direct request
the only way to download is if the refferal for the download is comming from my site

is there a way to add a specific refferal Url in the script so it send it with the link while the force redirection option is on ?! or even while the force redirection is off ?!

another thing is
is it posible that the owner of the link ( the one who adds the link ) can edit his links only meaning he can't edit links added by other people?!
cuz if i give the people permission to edit thier links they can edit other people links and i don't want that !

dlouly47 11-08-2004 07:10 AM

I just downloaded this and installed it, however in step one It failed and gives me the error from mysql stating the table does not support full text indexes? How do I fix this

Ranma2k 11-08-2004 10:04 AM

Quote:

Originally Posted by dlouly47
I just downloaded this and installed it, however in step one It failed and gives me the error from mysql stating the table does not support full text indices? How do I fix this?


what ver is your Mysql ?! ( the script requires MySql 4.0+ )

dlouly47 11-08-2004 04:09 PM

Hi Ranam2k,

Its Version 4.1

dlouly47 11-08-2004 05:01 PM

Ah.. All resolved !! I did the fix last nite but did not reboot. I just had to change the filesystem type to myisam.. rebooted this morning and whala..

Thanks guys !!

AndrewD 11-09-2004 04:06 PM

Quote:

Originally Posted by Ranam2k
Hi AndrewD
Thaks alot of the script i still use it since ver 1 :)
i wanted to ask you something

In my site i add the download files in a diffrent server & on that server i enabled the hotlinking protection even for direct request
the only way to download is if the refferal for the download is comming from my site

is there a way to add a specific refferal Url in the script so it send it with the link while the force redirection option is on ?! or even while the force redirection is off ?!

another thing is
is it posible that the owner of the link ( the one who adds the link ) can edit his links only meaning he can't edit links added by other people?!
cuz if i give the people permission to edit thier links they can edit other people links and i don't want that !

Hi, thanks.

I'll have to think about the first question.

For the second, the owner of the link should always be able to edit his/her own links, regardless of the settings you make on the admin page. (If not, something's broken!) Let me know if that's not the case.

Cent 11-09-2004 04:16 PM

How can I make, that who adds the link, wrote the E-mail? That on a mail the letter was sent it, that the reference has been added in the catalogue! Sorry for my English!

dlouly47 11-09-2004 10:10 PM

Ok Got it up however when I or users try to download , its starts fine but then closes in about 20 seconds? Cuts the file download short? It must be settings in my PHP.INI? Please let me know how to adjust this ..

Thanks again for the wonderful work

AndrewD 11-10-2004 10:43 AM

Quote:

Originally Posted by dlouly47
Ok Got it up however when I or users try to download , its starts fine but then closes in about 20 seconds? Cuts the file download short? It must be settings in my PHP.INI? Please let me know how to adjust this ..

Thanks again for the wonderful work

If it's your php.ini settings, try looking at the section

PHP Code:


;;;;;;;;;;;;;;;;;;;
Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time 30     Maximum execution time of each scriptin seconds
max_input_time 
60    Maximum amount of time each script may spend parsing request data
memory_limit 
8M      Maximum amount of memory a script may consume (8MB


Cent 11-10-2004 10:54 AM

Hey AndrewD! HELP PLEASE!!!

How can I make, that who adds the link, wrote the E-mail? That on a mail the letter was sent it, that the reference has been added in the catalogue! Sorry for my English!

AndrewD 11-10-2004 11:33 AM

Quote:

Originally Posted by Ranam2k
Hi AndrewD
Thaks alot of the script i still use it since ver 1 :)
i wanted to ask you something

In my site i add the download files in a diffrent server & on that server i enabled the hotlinking protection even for direct request
the only way to download is if the refferal for the download is comming from my site

is there a way to add a specific refferal Url in the script so it send it with the link while the force redirection option is on ?! or even while the force redirection is off ?!

Thinking about this (but without spending time trying it out ;))...

If force_redirect is off, etc, the download is handled as a series of reads/writes. The code uses an fopen() call to access the download file, and this turns into an HTTP GET. My Apache log shows that this GET is recorded against the IP address of the requesting server, so your file host should be able to see that the request is legitimate.

If force_redirect is on, then the code eventually drops through to the STANDARD_REDIRECT template within Vbulletin. This sends a series of HTTP headers to the file host, and I would think you could add an HTTP_REFERER.

AndrewD 11-10-2004 11:35 AM

Quote:

Originally Posted by Cent
Hey AndrewD! HELP PLEASE!!!

How can I make, that who adds the link, wrote the E-mail? That on a mail the letter was sent it, that the reference has been added in the catalogue! Sorry for my English!

Hi Cent. Sorry, I'm not quite sure I understand what you're asking.

Do you want the hack to send an email to the person who creates a new link when that link is accepted by the moderator?

Let me know, and I'll try to help.

dlouly47 11-10-2004 05:45 PM

Quote:

Originally Posted by AndrewD
If it's your php.ini settings, try looking at the section

PHP Code:


;;;;;;;;;;;;;;;;;;;
Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time 30     Maximum execution time of each scriptin seconds
max_input_time 
60    Maximum amount of time each script may spend parsing request data
memory_limit 
8M      Maximum amount of memory a script may consume (8MB


Thanks Andrew... I actually thought that was it and I replaced the Values to
-----------------------------------------------------
max_execution_time = 0 ; Maximum execution time of each script, in seconds
max_input_time = 0 ; Maximum amount of time each script may spend parsing request data
----------------------------------
As well as used set_timeout = 0 on top of the php.ini

and it works like a charm.. Again.. Thank you for the hack and the support.. Awesome man!@

Cent 11-10-2004 09:28 PM

Quote:

Do you want the hack to send an email to the person who creates a new link when that link is accepted by the moderator?
Yes! But not "when that link is accepted by the moderator". I don`t moderete the new links. =)

I want, that after the adding a new link, mail was sent to person who creates a new link. WOW! +)

Sorrrrry for my English! ;)

Ranma2k 11-10-2004 11:51 PM

Quote:

Originally Posted by Cent
Yes! But not "when that link is accepted by the moderator". I don`t moderete the new links. =)

I want, that after the adding a new link, mail was sent to person who creates a new link. WOW! +)

Sorrrrry for my English! ;)


Please chose one of the following :
*if a person adds a link the system will send an e-mail to him conforming that it was added ?!
*if a person adds a link the system will send an e-mail to the people subscriped to it !
* if a person ads a link the system will e-mail the admin about it !


i'm out of options :)

Ranma2k 11-10-2004 11:53 PM

Quote:

Originally Posted by AndrewD
Thinking about this (but without spending time trying it out ;))...

If force_redirect is off, etc, the download is handled as a series of reads/writes. The code uses an fopen() call to access the download file, and this turns into an HTTP GET. My Apache log shows that this GET is recorded against the IP address of the requesting server, so your file host should be able to see that the request is legitimate.

If force_redirect is on, then the code eventually drops through to the STANDARD_REDIRECT template within Vbulletin. This sends a series of HTTP headers to the file host, and I would think you could add an HTTP_REFERER.


i C
i'll give it a try .. and i'll post the results here :)

Cent 11-11-2004 08:09 AM

Quote:

*if a person adds a link the system will send an e-mail to him conforming that it was added ?!
:) Thanks!


All times are GMT. The time now is 02:54 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.02589 seconds
  • Memory Usage 1,866KB
  • 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
  • (3)bbcode_php_printable
  • (22)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