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 11-11-2004 09:39 AM

Quote:

Originally Posted by Cent
:) Thanks!

OK, now I understand.

But I don't understand why this is needed. When someone adds a link (without moderation), they immediately see that it's there? How will this extension help? What am I missing? Thanks,

Stormwolf 11-11-2004 11:32 AM

Does this track who clicked on a link?

Like if I wanted to see by forum username how many times the link was clicked and who clicked on it.

AndrewD 11-11-2004 11:43 AM

Quote:

Originally Posted by Stormwolf
Does this track who clicked on a link?

Like if I wanted to see by forum username how many times the link was clicked and who clicked on it.

Yes, the admin can get a summary of all hits. There are no options for sorting, etc, unless you write a piece of code to process the downloads table in the database

Cent 11-11-2004 01:09 PM

Quote:

But I don't understand why this is needed. When someone adds a link (without moderation), they immediately see that it's there? How will this extension help? What am I missing? Thanks,
For me links are added by guests.

AndrewD 11-11-2004 01:59 PM

Quote:

Originally Posted by Cent
For me links are added by guests.

OK, I'll include this on the list for the next version. Give me a few days ;)

Any more urgent (simple to implement) wishes, anyone?

Cent 11-11-2004 05:26 PM

Quote:

OK, I'll include this on the list for the next version. Give me a few days
BIG THANKS! SPASIBO FROM RUSSIA! +)

Ranma2k 11-11-2004 10:34 PM

Quote:

Originally Posted by AndrewD
OK, I'll include this on the list for the next version. Give me a few days ;)

Any more urgent (simple to implement) wishes, anyone?


how about a user can register to a catagory and recive an e-mail when it's updated :)
also if it's posible more detail about the links / files ( when you click on it b4 redirect )

For example :
link/file Name
Author Name
Remote Filesize if it's a file
File Type if it's a file
# Views
# Downloads
Discussion can specify a link in a forum :)
Date Submitted
Rating ( members can rate it
Notify me of any updates on this file ( member can registre to get notified as i said i the top )


Oh my i got carried away :speechless:

AndrewD 11-13-2004 08:19 AM

Quote:

Originally Posted by Ranam2k
how about ...

So, you want that:

- A user can register to a category and receive e-mail when something is added/updated
- A user can register to be notified of any updates on this file

Taking these plus Cent's request suggests three levels of request
- email me whenever there's a new link I'm allowed to access (including one I create myself)
- email me on any new link in this category that I'm allowed to access
- email me whenever a link/file I've accessed is edited

A change in file size would also trigger the last case (but isn't always possible, e.g. for remote, non-mimetype files)

Cent want this to work for unregistered guest visitors, so the code will have to ask if necessary for an email address

- More detail about the links / files

link/file Name - this is currently hidden to stop leaching, but I suppose there's no harm in a pop-up giving just the local file name, stripped of any directory/web info
Author Name - Already available, just not shown in the template, so easy to add

Remote Filesize if it's a file - Already available for files with recognised mimetype *after * first download. Not possible for remote files accessed using redirects
File Type if it's a file - Already available using the file_icons_dir setting on the admin page (see documentation)

# Views - not sure what you mean

# Downloads - already visible to usergroups with can_view_hits permission, set on admin page

Date Submitted - already there!

Rating ( members can rate it ) - already there, provided you turn on can_rate_link on admin page

- Discussion can specify a link in a forum

I've thought about this for quite a while. The clean way to do this would be to use the forum parent which is used to set the link's access permissions also as the discussion forum for the link. The first time someone tried to discuss a link, a new thread would be created in that forum. The first post in the thread would be a summary of the link. Subsequently, people would simply be taken to that thread.

- Better admin summaries of who has accessed/downloaded what.

Currently, this is just a long list, ordered by date, with an optional start and end date which can be specified on hard-coded links but are not selectable within the admin template

Thoughts, anyone?

Ranma2k 11-13-2004 02:14 PM

well what i mean is
when you click on a link it will open a page with all the information i just listed
in it
and in that information a button that will redirect him to the link ..

so the user can read the file details and then if he wants click on download button to continue with the download.

Quote:

Originally Posted by AndrewD
# Views - not sure what you mean

I mean number of people viewed this link either clicked on it or didn't click on it


Also i have another thing if it's posible
in the information page insted of showing the download link it will show an agreement if hte user agrees it will take him to the file otherwise it will redirect him to the site / forum / or what ever

restless 11-16-2004 08:10 AM

while this is indeed a great hack, i would like to reiterate was is probably beating a dead horse...

this addition has nothing to do with a files database. it's links. the name is misleading.

i wish someone would do an addon to this hack that includes an uploader.

AndrewD 11-16-2004 08:20 AM

Quote:

Originally Posted by restless
while this is indeed a great hack, i would like to reiterate was is probably beating a dead horse...

this addition has nothing to do with a files database. it's links. the name is misleading.

i wish someone would do an addon to this hack that includes an uploader.

Sorry that you feel this way - I am clearly doing something wrong in offering our members access to several hundred files by using this hack! I think that the only possible confusion is that the "files" are not stored in the database, only the location of the files. Storing lots of files in a database is generally not good practice anyway because of the size problems.

An uploader is deliberately not part of the hack, as I did not want to get into all the issues of security management that it will create. There is plenty of software available to handle secure file uploading into web site directories, or into secure directories outside the web structure. Of course, there's nothing to stop anyone providing a separate hack to achieve this, but I want to resist any extensions *to this hack*.

restless 11-16-2004 05:47 PM

don't get me wrong.. i think your hack is great and i'm sure i'll end up clicking install and using it. i'm just not sure for what at this point.

jugo 11-17-2004 07:27 PM

Well...

I love this hack. so there!!

Now for the upload, I'm going to make me alittle something something using the httpupload hack.

I've used that for sig uploads and a couple of other things, why not this. I'll let you know what I come up with.

jugo out

LMAO...Who says that!?!?!?

restless 11-18-2004 12:52 AM

i'm sorry if this was already covered in another post, but.....

is there any way to tell who added the link? i hate everything being so anonymous.

other than that.. i've managed a configuration. i wish i could do coding to get it to do what i want... (have an uploader on the add page that automatically places the link in the text box after uploading.)

spence2 11-18-2004 11:54 PM

Quote:

Originally Posted by AndrewD
OK, I'll include this on the list for the next version. Give me a few days ;)

Any more urgent (simple to implement) wishes, anyone?

Yes, it would be great to be able to display the username of the person who added the link.

Thanks

AndrewD 11-20-2004 09:18 AM

Quote:

Originally Posted by spence2
Yes, it would be great to be able to display the username of the person who added the link.

I'm rather busy, so the next release will be a couple of weeks still.

In the meantime, those who want to display submitting username might try this. Just replace the links_linkbit template with the attached. Please let me know if this is what you're wanting, or if Ive got the wrong message.

The submitting username and #hits are only visible to usergroups which you give can_view_hits privilege (see links admin page)

fortnox 11-22-2004 08:40 PM

Hi!

First thanks for this great Hack.

I have a little Problem.

I can not set usergroup Permissions.Always when i give the permissions and click to "go" i become this on a new site :surprised: :

Quote:

The following setting(s) are invalid
file_icons_dir : /
Go back
Can me anybody help please?

Bhuwan 11-22-2004 08:43 PM

i am using it as a download system. iuploaded a 20 mb file and when i go to download it only 2.35 MB is downloaded.

fortnox 11-22-2004 10:47 PM

Sorry i found what i`ve maked false. :rolleyes:

Great Hack!!

*clicks Install

restless 11-23-2004 02:47 AM

excellent!

Quote:

Originally Posted by AndrewD
I'm rather busy, so the next release will be a couple of weeks still.

In the meantime, those who want to display submitting username might try this. Just replace the links_linkbit template with the attached. Please let me know if this is what you're wanting, or if Ive got the wrong message.

The submitting username and #hits are only visible to usergroups which you give can_view_hits privilege (see links admin page)


ericgtr 11-23-2004 04:24 PM

Quote:

Originally Posted by restless
excellent!

This is a well documented, great mod but I want to make sure I am not missing something here, is there a way to have it display all the attached files from a specific forum?

AndrewD 11-23-2004 04:31 PM

Quote:

Originally Posted by bchawla
i am using it as a download system. iuploaded a 20 mb file and when i go to download it only 2.35 MB is downloaded.

You are probably exceeding the CPU time limit allowed for php scripts. If you're controlling your own site, this is set in php.ini. Also, the script handles large files much quicker if you set force_redirect on the links admin page, but then the location of the file on your site will become visible.

AndrewD 11-23-2004 04:32 PM

Quote:

Originally Posted by ericgtr
This is a well documented, great mod but I want to make sure I am not missing something here, is there a way to have it display all the attached files from a specific forum?

Yes I think I coded this inb, but I need to get home to remind myself! Will post an answer tomorrow.

ericgtr 11-23-2004 04:35 PM

Quote:

Originally Posted by AndrewD
Yes I think I coded this inb, but I need to get home to remind myself! Will post an answer tomorrow.

Great, thanks! Just so I am making myself clear, that would be existing files from a forum, right?

AndrewD 11-24-2004 04:07 AM

Quote:

Originally Posted by ericgtr
Great, thanks! Just so I am making myself clear, that would be existing files from a forum, right?

OK, I think we're talking at cross purposes. (1) Do you want to be able to find all the regular VBulletin attachments in a forum? Or (2) do you want to find all the files mentioned in a forum using the URL bbcode? Or (3) do you want to find all the files that have been set up using this hack which are associated with a particular forum?

This hack current will handle the third (although I think I found a bug). There's another hack somewhere that deals with the first. And I wrote some code, but haven't released it yet, that handles the second.

AndrewD 11-24-2004 04:13 AM

Continuing the previous post, to handle case (3), i.e. to list all the links set up using this hack which were associated with forum X, use the following URL:

Code:

local_links.php?action=show&forum=X

Natch 11-24-2004 09:31 PM

Clairification: will this above bit of code list files in this forum and child forums, or just this forumid?

AndrewD 11-25-2004 03:00 AM

Quote:

Originally Posted by Natch
Clairification: will this above bit of code list files in this forum and child forums, or just this forumid?

Natch, currently, this gives purely the links/files which have the given forumid associated with them - recall that this is primarily the mechanism for controlling access permissions.

Do I get the sense that people want this hack to automatically gather files/attachments from forums and set up the appropriate entries in the links database? Do-able (but not this weekend)..

Natch 11-25-2004 08:39 AM

Wow: that would be very cool, but I wouldn't want it to duplicate the file: only to create the link to it...

Thanks for the cla rification...

ogetbilo 11-25-2004 09:53 AM

Andrew I have a question ? Is it possible for the script to get all files from a specific folder ?
For example me and all my buddies are uploading our files to www.yourforum.com/download Is it possible to add a script so links database will directly get the link and add it ? We are uploading nearly 50-60 different files everyweek and adding each of them one by one is pretty hard.

AndrewD 11-26-2004 09:31 AM

Quote:

Originally Posted by ogetbilo
Andrew I have a question ? Is it possible for the script to get all files from a specific folder ?
For example me and all my buddies are uploading our files to www.yourforum.com/download Is it possible to add a script so links database will directly get the link and add it ? We are uploading nearly 50-60 different files everyweek and adding each of them one by one is pretty hard.

Yes, I've written the script for this at home but had not released it. I'll include this - and related - features in the next revision.

NightWalk8r 11-27-2004 09:46 PM

Quote:

The following setting(s) are invalid
file_icons_dir : /
wasnt this optional?? why cant i leave it blank?? o_O
PLEASE HELP
TIA =)

AndrewD 11-28-2004 04:46 AM

Quote:

Originally Posted by NightWalk8r
wasnt this optional?? why cant i leave it blank?? o_O
PLEASE HELP
TIA =)

It is optional and you should be able to leave it blank. Either you accidentally typed something else, or there's something about file and directory permissions that I've overlooked.

Can you
a) PM me the output from a phpinfo() (normal vb admincp, down the bottom in the maintenance section). In particular the setting of open_basedir is important.
b) Try setting this to a valid directory, e.g. admincp. It won't cause any difficulties because there are no icons there.
c) If all fails and this error message is a problem to you - actually it shouldn't matter because all that will happen is that no icons appear - find the following code (line 2880 in release 1.41):

PHP Code:

if ($handle = @opendir($newsetting)) {
    
closedir($handle);
} else {
    
$error 1;


and simply comment out the $error = 1 line (put // at the start of the line).

Please let me know what you find.

Jason McConnell 11-28-2004 06:35 PM

Awesome hack!! Installed very easily :D

I have one question though, whenever someone's in the links directory, they appear in WOL as Unkown Location. I'm sure this has been addressed, but I've just spent the better part of almost two days searching for this and can't find an answer. Anyone got any idea how to fix this?

welo 11-28-2004 07:31 PM

For Who's online: Install this hack (or use this)

Jason McConnell 11-28-2004 07:41 PM

Thanks! :D

NightWalk8r 11-28-2004 08:09 PM

hey, Andrew.......i commented out the line and it's working now =D
thank you so much =)

AndrewD 11-29-2004 05:01 AM

Quote:

Originally Posted by Jason McConnell
Awesome hack!! Installed very easily :D

I have one question though, whenever someone's in the links directory, they appear in WOL as Unkown Location. I'm sure this has been addressed, but I've just spent the better part of almost two days searching for this and can't find an answer. Anyone got any idea how to fix this?

Thanks. The "who's online" question is explained (I hope!) in the instructions file, see section 3.4 (d). Let me know if this works correctly.

Jason McConnell 11-29-2004 06:09 AM

Quote:

Originally Posted by AndrewD
Thanks. The "who's online" question is explained (I hope!) in the instructions file, see section 3.4 (d). Let me know if this works correctly.

Thanks, I missed that the first time reading the instructions over. This hack kicks some ass man :D

*EDIT* Works just fine :)

Pixelgrounds 11-29-2004 11:14 PM

Would someone be kind enough to repackage this hack for 3.0.3 with all the fixes that have been made thoughout this thread.


All times are GMT. The time now is 01:06 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.02447 seconds
  • Memory Usage 1,853KB
  • 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
  • (1)bbcode_php_printable
  • (24)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