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-30-2004 12:26 AM

Quote:

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

Not sure what you mean - it's been kept fully up to date and runs correctly on 3.0.3. We are currently adding the feaatures requested in the last few posts.

aussiev8 12-06-2004 05:08 AM

**EDIT**

removed post!

AndrewD 12-07-2004 02:00 PM

Quote:

Originally Posted by aussiev8
when will the next update be avaliable, there are some security issues that i've mentioned to andrewD around 2 weeks ago and nothing has been done to update!

The next update, m8, will be after I've finished burying a relative, who has just died!

Hang in there.

welo 12-07-2004 04:35 PM

Aww, Andrew... My deepest condolences :(.

aussiev8 12-08-2004 08:33 AM

i didn't know andrew, my apologies.

CSS59 12-12-2004 05:21 AM

how long does it take to install this. Any live demos from anyone?

Sadie Frost 12-12-2004 05:41 AM

Quote:

Originally Posted by JonelZ
how long does it take to install this. Any live demos from anyone?

It doesn't take very long - 5 minutes or so. I have it here http://buffy-boards.com/local_links.php

:)

Spinball 12-12-2004 06:27 AM

Quote:

Originally Posted by JonelZ
how long does it take to install this. Any live demos from anyone?

Agree with Sadie - just a few minutes. Mine is at
http://www.avforums.com/links/

AndrewD 12-12-2004 10:53 AM

Quote:

Originally Posted by aussiev8
i didn't know andrew, my apologies.

Back in circulation. Aussiev8, please pm me with your email address, so that I can send you a beta upgrade for testing.

CSS59 12-12-2004 09:07 PM

thank you for the examples.

How do members subbmit a link? I want to use this for a link swap.
Any way to track links in/out?

steven s 12-13-2004 12:10 AM

Quote:

Originally Posted by Blam Forumz
Error when i update my links option (who can view, etc)


Warning: opendir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/blamina/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/blamina/public_html/forum/local_links.php on line 2630

Warning: opendir(/): failed to open dir: Operation not permitted in /home/blamina/public_html/forum/local_links.php on line 2630
The following setting(s) are invalid
file_icons_dir : /
Go back

I had the same problem.
I went to install 1.41 and got a warning message.
I went ahead with the install anyway and now no longer have that warning message.

AndrewD 12-13-2004 03:52 AM

Quote:

Originally Posted by 1996 328ti
I had the same problem.
I went to install 1.41 and got a warning message.
I went ahead with the install anyway and now no longer have that warning message.

Several of you have reported this problem, which is discussed in the documentation. Basically, your site's php installation has restrictions on which parts of the directory structure can be accessed by a php script. (This is the open_basedir setting in php.ini.) This error message is a consequence of that restriction. The next version will trap the message. It's nothing to worry about.

CSS59 12-13-2004 04:33 AM

is this normal as well?

Warning ==========================
open_basedir is set to /home/jonelz:/usr/lib/php:/usr/local/lib/php:/tmp in your PHP installation
Please refer to the hack instructions for information on this setting
========================== Warning


and then I get this when I try to save settings:

The following setting(s) are invalid
file_icons_dir : /
Go back

Quote:

Another setting that causes difficulties is *open_basedir*. If set, this
defines whereabouts in the directory tree files/directories can be opened
by php scripts. This causes problems in two situations:
a) if you offer file downloads and store these within a restricted part
of the directory tree; b) if you use the *file_icons_dir* facility to
add illustrative icons to downloads. The install script will warn you;
the workarounds are i) modify the setting of open_basedir;
ii) for case (a), use *local_file_root* setting to locate file
downloads in an accessible part of the directory tree;
iii) for case (b) point *file_icons_dir* at an accessible part of
the directory tree - otherwise, the hack will simply ignore the request
to display file icons.
I dont want to upload files but it wont let me save my admin settings cuz i keep getting that error and I really donno what to do


Help :(

AndrewD 12-13-2004 12:06 PM

Quote:

Originally Posted by JonelZ
is this normal as well?

Warning ==========================
open_basedir is set to /home/jonelz:/usr/lib/php:/usr/local/lib/php:/tmp in your PHP installation
Please refer to the hack instructions for information on this setting
========================== Warning


and then I get this when I try to save settings:

The following setting(s) are invalid
file_icons_dir : /
Go back



I dont want to upload files but it wont let me save my admin settings cuz i keep getting that error and I really donno what to do


Help :(

Have a look at my reply (above) to NightWalker on 28-11-2004, 08:46. That tells you how to get rid of this error.

CSS59 12-13-2004 01:51 PM

Thank you, this fixed it:

Quote:

b) Try setting this to a valid directory, e.g. admincp. It won't cause any difficulties because there are no icons there.

Now how can I make a custom field for "where can we find a link on your site?"

AndrewD 12-13-2004 01:56 PM

Quote:

Originally Posted by JonelZ
Thank you, this fixed it:




Now how can I make a custom field for "where can we find a link on your site?"

Sorry, you'll have to sort that out for yourself. I do the reasonable work for free, but also need to live a life.

CSS59 12-13-2004 05:04 PM

Quote:

Originally Posted by AndrewD
Sorry, you'll have to sort that out for yourself. I do the reasonable work for free, but also need to live a life.


I understand. Thank you for the help.

Anyone want to do this Reciprocal Link's URL field? I really dont know how, I am an accountant :lol:

ZnARk 12-15-2004 03:07 PM

First i want to say thanks for a great hack :)

I just wonder about one thing...
Is it possible to restrict the ability to add links in a certain category to just one usergroup without restricting viewing by the other groups?

I tried use the forumpermission function but it just seems just to restrict viewing permissions.

AndrewD 12-15-2004 03:17 PM

Quote:

Originally Posted by ZnARk
First i want to say thanks for a great hack :)

I just wonder about one thing...
Is it possible to restrict the ability to add links in a certain category to just one usergroup without restricting viewing by the other groups?

I tried use the forumpermission function but it just seems just to restrict viewing permissions.

You can restrict which usergroups can add links to any category using the admin page. You restrict which user(s)(groups) can see a category or a link using the forum permissions. But you can't have different "adding" privileges for different categories.

Spinball 12-15-2004 03:35 PM

Hi Andrew, hope you are well.
A couple of suggestions I hope might be of interest.
Firstly would it be possible to make rating links optional by forum?
We have a retailers forum and it is open to abuse by competitors leaving low ratings. I would like to disable ratings in this forum.
Secondly I re-submit the idea of being able to add links to a favourites category.
The Favourites category would contain user-specific links and appear in the same way as other categories. It would just contain duplicates of selected favourite links in the other categories.

AndrewD 12-16-2004 10:06 AM

Quote:

Originally Posted by Spinball
Hi Andrew, hope you are well.
A couple of suggestions I hope might be of interest.
Firstly would it be possible to make rating links optional by forum?
We have a retailers forum and it is open to abuse by competitors leaving low ratings. I would like to disable ratings in this forum.
Secondly I re-submit the idea of being able to add links to a favourites category.
The Favourites category would contain user-specific links and appear in the same way as other categories. It would just contain duplicates of selected favourite links in the other categories.

I'm in the middle of a whole set up improvements, so will see if these can be fitted in. I hadn't forgotten the "favourites" request.

Sovereign 12-16-2004 11:21 PM

*Sovereign clicks install* Just what I needed, but I'm getting this error...(I think it's an error anyway...see pic)

AndrewD 12-17-2004 05:38 AM

Quote:

Originally Posted by Sovereign
*Sovereign clicks install* Just what I needed, but I'm getting this error...(I think it's an error anyway...see pic)

No, that's a standard value - categories/links can be sub-grouped within their parent. By default this does not happen. This setting just controls the default subgrouping.

Tbird66 12-17-2004 11:18 PM

I have a couple of issues with my install:

1. From instructions.txt:

b. Unzip the files somewhere convenient. The templates and natch
subdirectories are for convenience only. You don't need these.

c. Upload local_links.php, local_links_template.xml and get_hotlinks.php
into your *main forum* directory

The only copy I could find of get_hotlinks.php was in the natch subdirectory. The other 2 files were in the root of the unzipped folder. Did I use the correct file?

2. I receive the following error while creating tables:

Database error in vBulletin 3.0.3:

Invalid SQL:
CREATE TABLE IF NOT EXISTS local_linkslink (
linkid int(11) NOT NULL auto_increment,
linkname varchar(255) NOT NULL,
linkdesc text NOT NULL,
linkurl text NOT NULL,
linkhits mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
linkforum smallint(5) NOT NULL,
linkcheck int(10) unsigned NOT NULL,
linkstatus int(10) DEFAULT '0' NOT NULL,
linkdate int(10) NOT NULL,
linkusername text NOT NULL,
linkuserid int(10) NOT NULL,
linkmoderate int(2) NOT NULL,
linkmoddate int(10) DEFAULT '0' NOT NULL,
linkreviewfreq smallint(5) DEFAULT '0' NOT NULL,
PRIMARY KEY (linkid),
FULLTEXT KEY namedesc (linkname,linkdesc)
)

mysql error: The used table type doesn't support FULLTEXT indexes

mysql error number: 1214

I can create the table using Execute SQL Query in AdminCP and putting the qualifier ENGINE = MYISAM; at the end of the CREATE() statement, but then when I re-run local_links_install.php it does not see the table (I can successfully execute a SELECT * FROM local_linkslink query). I've tried skipping the table verification step, but I receive array errors in step 3.

I'm running MySQL 4.1.7 with both MyISAM and InnoDB storage engines enabled. As I'm running on Windows, the InnoDB storage engine is the default instead of MyISAM. InnoDB doesn't support FULLTEXT indexes, thus the need for the qualifier ENGINE = MYISAM;

Any suggestions?

Thanks!

Sovereign 12-18-2004 02:22 AM

No, I meant the part circled in red. The default_cat_dseq. As in what appears to be a mssing variable in the language system (tried searching phrases for that, no luck)

AndrewD 12-18-2004 08:57 AM

Quote:

Originally Posted by Sovereign
No, I meant the part circled in red. The default_cat_dseq. As in what appears to be a mssing variable in the language system (tried searching phrases for that, no luck)

Sorry, one of us is confused ;) default_cat_dseq is the name I have given to one of the settings used by this hack. This variable simply defines the default sub-group that new categories are given within their parent category. There is normally no reason to change this setting.

Am I missing what you are trying to achieve?

AndrewD 12-18-2004 09:02 AM

Quote:

Originally Posted by Tbird66
I have a couple of issues with my install:

1. The only copy I could find of get_hotlinks.php was in the natch subdirectory. The other 2 files were in the root of the unzipped folder. Did I use the correct file?

2. I receive the following error while creating tables:

mysql error: The used table type doesn't support FULLTEXT indexes

You're right - get_hotlinks.php is only used for an integration of this hack with VBindex/VBadvanced developed by Natch. I'd forgotten that the code was a subdirectory deep. I'll update the instructions accordingly.

On the second point, I'll have a look how to adjust the installation script to deal with MySQL 4.1

AndrewD 12-18-2004 11:28 AM

Quote:

Originally Posted by AndrewD
You're right - get_hotlinks.php is only used for an integration of this hack with VBindex/VBadvanced developed by Natch. I'd forgotten that the code was a subdirectory deep. I'll update the instructions accordingly.

On the second point, I'll have a look how to adjust the installation script to deal with MySQL 4.1

It should be sufficient to add one line in the local_links_install.php script. Can you test and let me know? (you'll have to uninstall and reinstall)

Code:

        echo "--- Creating ".THIS_TABLE."linkslink if it does not exist<br />";

        $asb = $DB_site->query("
        CREATE TABLE IF NOT EXISTS ".THIS_TABLE."linkslink (
                linkid int(11) NOT NULL auto_increment,
                linkname varchar(255) NOT NULL,
                linkdesc text NOT NULL,
                linkurl text NOT NULL,
                linkhits mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
                linkforum smallint(5) NOT NULL,
                linkcheck int(10) unsigned NOT NULL,
                linkstatus int(10) DEFAULT '0' NOT NULL,
                linkdate int(10) NOT NULL,
                linkusername text NOT NULL,
                linkuserid int(10) NOT NULL,
                linkmoderate int(2) NOT NULL,
                linkmoddate int(10) DEFAULT '0' NOT NULL,
                linkreviewfreq smallint(5) DEFAULT '0' NOT NULL,
                PRIMARY KEY (linkid),
                FULLTEXT KEY namedesc (linkname,linkdesc)
        )
        TYPE = MYISAM
        ");


Sovereign 12-18-2004 09:10 PM

Quote:

Originally Posted by AndrewD
Sorry, one of us is confused ;) default_cat_dseq is the name I have given to one of the settings used by this hack. This variable simply defines the default sub-group that new categories are given within their parent category. There is normally no reason to change this setting.

Am I missing what you are trying to achieve?

I was wondering whether there was a language string. As in the vB Phrase system...cause I noticed that some of it was not expressed in variables...

Tbird66 12-18-2004 11:57 PM

Quote:

It should be sufficient to add one line in the local_links_install.php script. Can you test and let me know? (you'll have to uninstall and reinstall)
The database install completed successfully, and step 2 Set up templates completed successfully, but now I get the following message:

Step 2 - Template import complete
Run Step 3: Goto Links/Files AdminCP to check/initialise permissions?
Installation complete: Goto Links/Files main page
Delete this script when done
Go back to the start


If I click either Goto link then I get the follwing error:
PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Forum Site\includes\init.php on line 517 PHP Warning: Invalid argument supplied for foreach() in C:\Forum Site\includes\sessions.php on line 270 PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Forum Site\includes\functions.php on line 3615

Any ideas?

Thanks!

AndrewD 12-19-2004 04:08 AM

Quote:

Originally Posted by Sovereign
I was wondering whether there was a language string. As in the vB Phrase system...cause I noticed that some of it was not expressed in variables...

I have not used the VB phrase system. One of those things to do someday, but someday never comes...

AndrewD 12-19-2004 04:21 AM

Quote:

Originally Posted by Tbird66
If I click either Goto link then I get the follwing error:
PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Forum Site\includes\init.php on line 517 PHP Warning: Invalid argument supplied for foreach() in C:\Forum Site\includes\sessions.php on line 270 PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Forum Site\includes\functions.php on line 3615

Any ideas?

Thanks!

What version of PHP are you using? These messages come from the main VBulletin initialisation code, and I suspect it is telling us about some uninitialised variables.

AndrewD 12-19-2004 07:04 AM

Post removed - version 1.45 now available in first post in this thread.

Natch 12-19-2004 11:52 PM

A few things I have noticed mate:

1. When you set a valid monitor_catid, but invalid monitor_dir, the error msg states invalid monitor_catid.

2. A lot of the page titles in the local_links_admin.php section have EIRMA Web Site - Links Administration in the title tag.

3. If a link is added via the "monitor_dir" facility, and moderated as deleted, it's then added the next time you trawl the directory. I think that maybe it needs to flag that filename, or that entry as "deleted" rather than deleting it totally.

Other than that, once again, great work!

Tbird66 12-20-2004 04:22 AM

Quote:

What version of PHP are you using? These messages come from the main VBulletin initialisation code, and I suspect it is telling us about some uninitialised variables.
I'm using PHP 5.0.2

AndrewD 12-20-2004 04:55 AM

Quote:

Originally Posted by Tbird66
I'm using PHP 5.0.2

Suspected as much. Haven't tested anything with PHP5 - not even sure about the status of VB itself. Let me know how the fix suggested by PM goes.

Tbird66 12-20-2004 12:58 PM

Quote:

Suspected as much. Haven't tested anything with PHP5 - not even sure about the status of VB itself. Let me know how the fix suggested by PM goes.
VB works fine on 5.0.2, and I'm running vBadvanced CMPS, vbGarage, Dynamic Announcements, and Geek Articles. I only get errors when installing your hack, so I'm not sure what you're asking me.

AndrewD 12-20-2004 01:23 PM

Quote:

Originally Posted by Tbird66
VB works fine on 5.0.2, and I'm running vBadvanced CMPS, vbGarage, Dynamic Annonucements, and Geek Articles. I only get errors when installing your hack, so I'm not sure what you're asking me.

You've told me the first thing I wanted to know - that VB works with PHP5 - so I think my suspicions are correct about uninitiatialised variables. Can you either try the fix I suggested by PM, or alternatively just try installing the beta version of 1.45 (see a couple of posts up), in which I've tried to spot the problems.

Tbird66 12-20-2004 02:45 PM

Quote:

You've told me the first thing I wanted to know - that VB works with PHP5 - so I think my suspicions are correct about uninitiatialised variables. Can you either try the fix I suggested by PM, or alternatively just try installing the beta version of 1.45 (see a couple of posts up), in which I've tried to spot the problems.
Oops - missed the mention of the PM in your previous post. That fix did the trick, I'm up and running now - thanks so much!

Clicks Install

GiJoe 12-23-2004 07:10 PM

I'm having a VERY strange problem. No errors during install nor upgrade.

We had to change servers. Now that we have changed downloads (we use it for download links) will start but about half way through will just stop/pause. If we download directly from the server it works fine. It is only when downloading through Links 1.41 that this occurs.

PHP v 4.3.10
vBulletin 3.0.3

I looked through this thread alittle but with it being 50+ pages long it would take me days to look at all of them.


All times are GMT. The time now is 07:43 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.02544 seconds
  • Memory Usage 1,862KB
  • 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
  • (27)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