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)

FleaBag 03-18-2004 11:32 AM

Got this installed with ease - an excellent system. Thank you.

JohnXWA 03-21-2004 05:37 PM

Now VB3 is gold, is there a chance of AdminCP intergration?

Thanks!

AndrewD 03-22-2004 04:28 AM

Quote:

Originally Posted by JohnXWA
Now VB3 is gold, is there a chance of AdminCP intergration?

Thanks!

Guys, I keep answering this question! The instructions explain how to integrate with the AdminCp. It's a three line patch.

Is there a reason you want more?

sim 03-22-2004 09:10 PM

BUG: (don't think this specific bug has been reported in the thread - I did search !)

in local_links_install.php, line 217, the line:

ALTER TABLE local_linksltoc ADD INDEX ( linkid )

should read:

ALTER TABLE ".THIS_TABLE."linksltoc ADD INDEX ( linkid )

Most people won't come across this problem since they wouldn't change the table prefix in THIS_TABLE.

sim 03-23-2004 12:07 AM

BUG #2

$bbuserinfo is not defined in the routine get_linklistbit - which means that if you are not using forum permissions to determine who can do what, then the code to check whether the current user is allowed to edit their own post doesn't work.

The line which doesn't work is in the links_linkbit template (line 20):

<if condition="$links_permissions[can_edit_link] or $bbuserinfo[userid] == $linkuserid">

and the problem can be fixed simply by declaring $bbuserinfo as global in the get_linklistbit routine in local_links.php - ie. somewhere around line 385 add the following:

global $bbuserinfo;

Works now :D

AndrewD 03-23-2004 04:12 AM

Quote:

Originally Posted by sim
BUG #2

$bbuserinfo is not defined in the routine get_linklistbit - which means that if you are not using forum permissions to determine who can do what, then the code to check whether the current user is allowed to edit their own post doesn't work.

The line which doesn't work is in the links_linkbit template (line 20):

<if condition="$links_permissions[can_edit_link] or $bbuserinfo[userid] == $linkuserid">

and the problem can be fixed simply by declaring $bbuserinfo as global in the get_linklistbit routine in local_links.php - ie. somewhere around line 385 add the following:

global $bbuserinfo;

Works now :D

Thanks, Sim.

Your first bug was reported a couple of weeks ago and is fixed in my development version - I was waiting on confirmation on the fix to another bug before releasing. Your second report is new to me, so I'll include in release 1.01, probably this weekend.

martinh4 03-23-2004 02:01 PM

Quote:

Originally Posted by FleaBag
Got this installed with ease - an excellent system. Thank you.

I agree, very easy install. :)

Chrissicom 03-24-2004 08:59 AM

Quote:

Originally Posted by gmarik
This is what we needed. Several things:
- not integrated with the admin cp is no good - you need to integrate it, it's the most important part
- we could make the design together - and we could cooperate with other download zone vb2 hackers to unite the code and make it even better.

Is this available for vB 3 Gold ?

AndrewD 03-24-2004 09:01 AM

Quote:

Originally Posted by Chrissicom
Is this available for vB 3 Gold ?

This works fine with vb3 gold

Chrissicom 03-24-2004 09:02 AM

Quote:

Originally Posted by AndrewD
This works fine with vb3 gold

Yes I know the Links Database works but that is not what I need... I was asking about the File Database with all the data given there with screenshots in the 3rd or 4th post of this thread, that doesn't work with this hack apparently

AndrewD 03-24-2004 09:34 AM

Quote:

Originally Posted by Chrissicom
Yes I know the Links Database works but that is not what I need... I was asking about the File Database with all the data given there with screenshots in the 3rd or 4th post of this thread, that doesn't work with this hack apparently

Everything that this hack is described as doing, it does, largely correctly, with VB3 gold.

It does not do what other hacks for VB2 do or did.

Chrissicom 03-24-2004 09:39 AM

Quote:

Originally Posted by AndrewD
Everything that this hack is described as doing, it does, largely correctly, with VB3 gold.

It does not do what other hacks for VB2 do or did.

oh ok that answered my question, the file database add-on with all these features is vB 2 only :(

AndrewD 03-24-2004 09:55 AM

Quote:

Originally Posted by Chrissicom
oh ok that answered my question, the file database add-on with all these features is vB 2 only :(

Does it? This handles file downloads - I'm not sure what you're looking for?

Chrissicom 03-25-2004 08:43 AM

I am looking for something like this here https://vborg.vbsupport.ru/attachmen...chmentid=15991 which I don't know how to do with this mod :(

Tradjick 03-25-2004 07:05 PM

I don´t know if it has anything to do with your hack, but vb.nl is down an so I thought maybe you could help me out, Andrew. I installed a style, installed vbIndex and yours and Natch´s and did some template work. And when I tried to save and to upload that style i got an error. After cleaning the code it went good, but it´s always some work to do it.
Image1 is when trying to upload the style and Image2 is an extract from the .xml file.
Do you maybe have an idea, also because this happens over and over again?

AndrewD 03-26-2004 04:18 PM

Quote:

Originally Posted by Tradjick
I don?t know if it has anything to do with your hack, but vb.nl is down an so I thought maybe you could help me out, Andrew. I installed a style, installed vbIndex and yours and Natch?s and did some template work. And when I tried to save and to upload that style i got an error. After cleaning the code it went good, but it?s always some work to do it.
Image1 is when trying to upload the style and Image2 is an extract from the .xml file.
Do you maybe have an idea, also because this happens over and over again?

I'm sorry, I have no idea what is causing this. It looks like your database has been corrupted somehow. I'm a bit reluctant to offer advice without knowing how this happened, but have you tried simply reinstalling VB's master style?

Tradjick 03-27-2004 06:46 AM

Quote:

Originally Posted by AndrewD
I'm sorry, I have no idea what is causing this. It looks like your database has been corrupted somehow. I'm a bit reluctant to offer advice without knowing how this happened, but have you tried simply reinstalling VB's master style?

The default vB style doesn?t produce an error when uploading but it just won?t show up although it is marked as "selectable".

Tradjick 03-27-2004 11:50 AM

As I don?t want to use this thread for my problem I refer to...

http://www.vbulletin.com/forum/showthread.php?t=99446

Thank you Andrew!

AndrewD 03-28-2004 07:57 AM

New release available in first post, fixes reported bugs up to mid week.

LoOnEyToOnZ 03-28-2004 04:45 PM

Hi Andrew.

Thanks for the fantastic hack, does it support VB3 Gold yet ?

AndrewD 03-28-2004 05:47 PM

Quote:

Originally Posted by LoOnEyToOnZ
Hi Andrew.

Thanks for the fantastic hack, does it support VB3 Gold yet ?

Yes indeed, no problems as far as I know. Our main board was upgraded to Gold as soon as it was released and nothing's gone wrong so far.

WreckRman2 03-29-2004 11:23 PM

Great hack! One thing I would like to see is a counter that shows how many links are in each category.

Sub-category Description # of Links

LoOnEyToOnZ 03-30-2004 02:39 AM

Hmm i dont know why im getting unexpected end of archive errors while opening the zip file....

AndrewD 03-30-2004 03:20 AM

Quote:

Originally Posted by LoOnEyToOnZ
Hmm i dont know why im getting unexpected end of archive errors while opening the zip file....

I dont understand either - same thing is happening to me. I've reuploaded the zip and the problem remains. What is downloaded does not match what was uploaded.

AndrewD 03-30-2004 03:24 AM

Quote:

Originally Posted by AndrewD
I dont understand either - same thing is happening to me. I've reuploaded the zip and the problem remains. What is downloaded does not match what was uploaded.

I've tried to download two other hacks also, and the same thing happens - corrupt archive.

Is anyone else having problems? I've tried the old tricks of turning off the firewall and Norton but it makes no difference.

Jolten 03-30-2004 06:07 AM

I just downloaded and installed. This is great! Exactly what I was looking for. Thanks Andrew.

Now I've got to figure a way to connect it to events.

Again, great work Andrew!

hubba 03-30-2004 08:57 PM

Strange, if I put in a link like

http://www.detektor.net/Information/

it does not show up, in the admin section it is marked as "not available"...??? But

http://www.detektor.net

works well...

oly51 03-30-2004 11:04 PM

Quote:

Originally Posted by hubba
Strange, if I put in a link like

http://www.detektor.net/Information/

it does not show up, in the admin section it is marked as "not available"...??? But

http://www.detektor.net

works well...

That link gives a 403 error.
Try adding http://www.detektor.net/Information/information.html

hubba 03-30-2004 11:22 PM

That was an example, the unvalidatet Link was http://www.detektor.net/Information/...ingerhute.html but maybe the user missed something, I just added this link and it works. Sorry.

MrD 04-02-2004 10:24 AM

Hi,
i become an Error.
Fatal error: Call to undefined function: print_cp_header() in /home/www/web1/html/v3/local_links_install.php on line 44

Can anywhere Help ?

LoOnEyToOnZ 04-02-2004 04:31 PM

Does this allow people to submit their websites to be listed in the directory ? And require admin approval beforehand

brianstevz 04-03-2004 03:23 AM

Awesome hack. It's much better than drkfusion's imho. Clicks install.

AlexanderT 04-05-2004 01:56 PM

I installed the hack ( *installed* ) and am very happy with it. I have one question though:

I added a link to an external file (from another site). When a uses clicks on the link to download the file, he cannot see the original site. Fine. But does that mean that all filedownloads are "proxied" from the original site to my site and then from my site to the user? Like this:

file -> my site -> user

If this is the case, wouldn't it generate unnecessary traffic for my site on all external filedownloads?

CERTguide 04-05-2004 05:20 PM

I installed the hack and all looked good. I am trying to add files but it keeps telling me that they are not available:

checking 1 http://www.certguide.com/forums/guid...rplusguide.asp (force next): failed
checking 2 http://www.certguide.com/forums/guid...003aplusos.doc (force next)

If I paste the links in my browser the files open right up.

What am I doing wrong?

AndrewD 04-05-2004 05:59 PM

Quote:

Originally Posted by MrD
Hi,
i become an Error.
Fatal error: Call to undefined function: print_cp_header() in /home/www/web1/html/v3/local_links_install.php on line 44

Can anywhere Help ?

Are you sure you put the file in your admincp directory?

local_links.php and local_links_templatex.xml go into your main forum, local_links_install.php goes into the admincp directory.

AndrewD 04-05-2004 06:01 PM

Quote:

Originally Posted by LoOnEyToOnZ
Does this allow people to submit their websites to be listed in the directory ? And require admin approval beforehand

There is *no* moderation facility yet. The permission to add links is defined by the site admin by usergroups. If a usergroup has the relevant permission, then a user in that group can add their website.

AndrewD 04-05-2004 06:08 PM

Quote:

Originally Posted by AlexanderT
I installed the hack ( *installed* ) and am very happy with it. I have one question though:

I added a link to an external file (from another site). When a uses clicks on the link to download the file, he cannot see the original site. Fine. But does that mean that all filedownloads are "proxied" from the original site to my site and then from my site to the user? Like this:

file -> my site -> user

If this is the case, wouldn't it generate unnecessary traffic for my site on all external filedownloads?

It depends, and it also depends what you mean by unnecessary. If the entry has a recognised mimetype (recognised = defined in the main vb admincp), then the file is successively read and transferred on to the end user. If it does not have a recognised mimetype (e.g. is just a link), then the code executes a standard redirect, and there should be no traffic through your site.

As for unnecessary, I'm open to suggestions of other ways of handling the process in a way that will work reliably.

AlexanderT 04-05-2004 06:14 PM

Quote:

Originally Posted by AndrewD
It depends, and it also depends what you mean by unnecessary...As for unnecessary, I'm open to suggestions of other ways of handling the process in a way that will work reliably.

By unnecessary I mean a link to a file download where I don't mind whether the user finds out the direct file location or not. Perhaps one solution would be to offer a switch called "anti-leech on/off" when creating new links, and if the switch is on, follow your current procedure (stream the file through the site), and if it is off, redirect it (disregarding the vB minetypes).

AndrewD 04-05-2004 06:18 PM

Quote:

Originally Posted by CERTguide
I installed the hack and all looked good. I am trying to add files but it keeps telling me that they are not available:

checking 1 http://www.certguide.com/forums/guid...rplusguide.asp (force next): failed
checking 2 http://www.certguide.com/forums/guid...003aplusos.doc (force next)

If I paste the links in my browser the files open right up.

What am I doing wrong?

I don't know ;)

I tried adding these links to my test database and they work just fine for me. The links checking process simply tries to open a connection to the specified file. Maybe you had a very busy server?

AndrewD 04-05-2004 06:20 PM

Quote:

Originally Posted by AlexanderT
By unnecessary I mean a link to a file download where I don't mind whether the user finds out the direct file location or not. Perhaps one solution would be to offer a switch called "anti-leech on/off" when creating new links, and if the switch is on, follow your current procedure (stream the file through the site), and if it is off, redirect it (disregarding the vB minetypes).

Thanks - I'll think about this idea. But is bandwidth to your site more expensive than my time as a programmer? (smiling)


All times are GMT. The time now is 04:19 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.03390 seconds
  • Memory Usage 1,847KB
  • 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
  • (21)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