vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

AndrewD 02-17-2007 03:02 PM

Quote:

Originally Posted by civil78 (Post 1183729)
I was searching the extras and I see that.

If i put this on the URL of my browser.

Code:

http://www.yoursite.com/local_links.php?action=addlink&url=URLINK&name=NAMETEXT&description=DESCRIPTIONTEXT
It will fill all the fields. I am wondering if you have a guide or a list of all the supported URL actions somewhere.

And finaly if I can create and submit a new link from URL (not from button in the form)

Thank's

I'll try to document these in the wiki - I haven't given much time to that.

Currently, it isn't possible to process full submissions/edits/etc from the url - I think this would be a security risk?

obmob 02-17-2007 03:30 PM

Quote:

Originally Posted by AndrewD (Post 1184603)
I've uploaded the release candidate of 2.2.7 in the first post in this thread.

Reports please.

I'd very much appeciate it if the translators can now start work - there are some new phrases that need attention. Thanks.

Downloaded :D

I''l take a look at phrases a little later. :cool:

Slave 02-18-2007 07:46 AM

Hi Andrew :)

I've just updated my install to 2.2.7 RC and I get the following error when I click on the "Suggest other entries" link ..

Code:

Warning: Wrong parameter count for array_slice() in /local_links_search.php on line 303

Warning: array_keys(): The first argument should be an array in /local_links_search.php on line 306

Warning: implode(): Bad arguments. in /local_links_search.php on line 306
        Database error
The Yaxley Village database has encountered a problem.
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the www.yaxleyvillage.com home page, then try to open another page.
Click the Back button to try another link.
The www.yaxleyvillage.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.

Database error in vBulletin 3.6.0:

Invalid SQL:

                SELECT
                        link.linkid AS linkid, link.linkname AS linkname, link.linkdoi AS linkdoi,
                        link.linkuserid AS linkuserid, link.linkusername AS linkusername,
                        link.linkurl AS linkurl, link.linkimg AS linkimg,
                        link.linkimgthumb AS linkimgthumb, link.linkimgthumbsize AS linkimgthumbsize, link.linkforum AS linkforum,
                        link.linkdesc AS linkdesc, link.numrate AS numrate, link.totrate AS totrate,
                        link.linkhits AS linkhits, link.linksize AS linksize, link.linkstatus AS linkstatus,
                        link.linkdate AS linkdate, link.linkmoderate AS linkmoderate, link.linkmoddate AS linkmoddate,
                        link.linkreviewfreq AS linkreviewfreq,
                        ltoc.catid AS linkcatid, ltoc.displayorder AS linkdorder
                       
                        , ltoc2.catid AS linkcatid2
                       
                       
                        FROM local_linkslink AS link
                        LEFT JOIN local_linksltoc AS ltoc ON link.linkid = ltoc.linkid
                       
                       
                       
       
                        LEFT JOIN local_linksltoc AS ltoc2
                        ON link.linkid = ltoc2.linkid
                WHERE link.linkid IN ();

MySQL Error  : You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 23
Error Number : 1064
Date        : Sunday, February 18th 2007 @ 09:41:04 AM
Script      : http://www.yaxleyvillage.com/local_links_search.php?action=like&linkid=167&catid=10
Referrer    : http://www.yaxleyvillage.com/local_links.php?catid=10
Classname    : vb_database


Any ideas? :)

AndrewD 02-18-2007 09:19 AM

Quote:

Originally Posted by Slave (Post 1185134)
Hi Andrew :)

I've just updated my install to 2.2.7 RC and I get the following error when I click on the "Suggest other entries" link ..

Code:

Warning: Wrong parameter count for array_slice() in /local_links_search.php on line 303
Warning: array_keys(): The first argument should be an array in /local_links_search.php on line 306
Warning: implode(): Bad arguments. in /local_links_search.php on line 306

Any ideas? :)


I can see where this happens - it is a bug which is easy to fix - but I'm surprised - it seems to suggest an unexpected mixture of access permissions (basically, LDM seems to be discovering that all its suggested entries are blocked from the current user). Is this happening with all the 'suggest similar' buttons?

Slave 02-18-2007 10:23 AM

Seems to be .. yes.

I only get the big mysql error as admin, with my test users I just get the standard vb "A database error" page.

NiteRidah 02-18-2007 02:24 PM

Hey,

LDM always creates a directory named 2 into specified upload directory and stores all files there. Is this the way it's supposed to be, or am I missing something here? :)

AndrewD 02-18-2007 02:57 PM

Quote:

Originally Posted by NiteRidah (Post 1185305)
Hey,

LDM always creates a directory named 2 into specified upload directory and stores all files there. Is this the way it's supposed to be, or am I missing something here? :)

Yes, this is correct.

It creates subdirectories in the upload directory, of the form /each/digit/of/your/user/id, and then places the uploaded files there

This is the same behaviour as vbulletin, and is done to try to avoid having directories with vast numbers of files in them.

NiteRidah 02-18-2007 03:03 PM

Ah, ofcourse. Thank you for the quick reply :)

Slave 02-18-2007 10:07 PM

Quote:

Originally Posted by AndrewD (Post 1185191)
Can you try the attached file in your main forums directory.

Sorry for the delay Andrew .. been out for the day ..

Just tried the new file and got the following error ..

Code:

Warning: Wrong parameter count for array_slice() in /local_links_search.php on line 311

Warning: array_keys(): The first argument should be an array in /local_links_search.php on line 314

Warning: implode(): Bad arguments. in /local_links_search.php on line 314


obmob 02-18-2007 10:48 PM

Hmm... i must remake all my templates and test the new features... here, 2.2.7 spanish translations... ;)

AndrewD 02-19-2007 04:51 AM

Quote:

Originally Posted by Slave (Post 1185587)
Sorry for the delay Andrew .. been out for the day ..

Just tried the new file and got the following error ..

Code:

Warning: Wrong parameter count for array_slice() in /local_links_search.php on line 311

Warning: array_keys(): The first argument should be an array in /local_links_search.php on line 314

Warning: implode(): Bad arguments. in /local_links_search.php on line 314


How irritating... PHP goes and changes function calls... I guess you are using a version of php below 5.0.2?

Will post the fix this evening. Sorry for this.

AndrewD 02-19-2007 04:53 AM

Quote:

Originally Posted by obmob (Post 1185608)
Hmm... i must remake all my templates and test the new features... here, 2.2.7 spanish translations... ;)

Thanks, Obmob.

Everyone - please beware - the new "suggest entries like this one" feature (it's a mirror icon in the linkbit) is broken in the RC release and can generate database warning errors. I imagine I will fix it this evening

Slave 02-19-2007 07:14 AM

Quote:

Originally Posted by AndrewD (Post 1185772)
How irritating... PHP goes and changes function calls... I guess you are using a version of php below 5.0.2?

Will post the fix this evening. Sorry for this.

Yep .. I've got PHP 4.3.2 at the moment.

Oh .. and I'm using the Tabular linkbit at the mo and I'm not seeing the mirror icon .. how would I add this?

AndrewD 02-19-2007 09:55 AM

Quote:

Originally Posted by Slave (Post 1185816)
Oh .. and I'm using the Tabular linkbit at the mo and I'm not seeing the mirror icon .. how would I add this?

It should look like the attachment (third icon along). If you only seeing a text message, then resync your icons directory with the release zip.

AndrewD 02-19-2007 04:16 PM

Quote:

Originally Posted by Slave (Post 1185816)
Yep .. I've got PHP 4.3.2 at the moment.

Oh .. and I'm using the Tabular linkbit at the mo and I'm not seeing the mirror icon .. how would I add this?


Here's another attempt at the local_link_search code. I haven't got a server running php 4 any longer, so can't test - grateful for assistance.

berayiwu5 02-19-2007 05:14 PM

Quote:

Originally Posted by berayiwu5 (Post 1170200)

Second, is there a way to display all the images that a user has ever uploaded using LDM all in one place?


Quote:

Originally Posted by AndrewD (Post 1170320)

You can do it directly with the urls

Code:

local_links_search.php?action=show&user=username
Code:

local_links_search.php?action=show&userid=userid
or you can go to search/advanced search and enter the username

or (with the standard linkbit) you can find an extry by the user of interest and click on the magnifying glass just to the right of the username

Andrew, I hope you got a relaxing break. I was going to ask you about this but decided to put the question off until after your vacation. I am wondering if you could implement a user profile integrated with vB, so that the user can easily view and manage his or her files and images all in one place--instead of having to do a search? It also makes it more convenient for other vB users to see what images or files a user has uploaded.

The reason why I request this enhancement is because I'm debating whether to buy Photopost Pro instead. For Photopost, the downside is that it lacks the kind of sophisticated bandwidth control that LDM has. Even though they claim to support video files, the absence of bandwidth restriction features makes multimedia broadcast infeasible. Moroever, Photopost seems to be an overkill for my site at this point with about 300 members. I would greatly appreciate it if you could implement a user profile integrated with vB. :)

AndrewD 02-19-2007 07:31 PM

Quote:

Originally Posted by berayiwu5 (Post 1186155)
Andrew, I hope you got a relaxing break. I was going to ask you about this but decided to put the question off until after your vacation. I am wondering if you could implement a user profile integrated with vB, so that the user can easily view and manage his or her files and images all in one place--instead of having to do a search? It also makes it more convenient for other vB users to see what images or files a user has uploaded.

The reason why I request this enhancement is because I'm debating whether to buy Photopost Pro instead. For Photopost, the downside is that it lacks the kind of sophisticated bandwidth control that LDM has. Even though they claim to support video files, the absence of bandwidth restriction features makes multimedia broadcast infeasible. Moroever, Photopost seems to be an overkill for my site at this point with about 300 members. I would greatly appreciate it if you could implement a user profile integrated with vB. :)

Send me a PM with more exact details of what you want/how you want things to function - if it's easy, I'll do it.

obmob 02-19-2007 08:27 PM

Oh i guess he means something similar to the hack made for vbgallery, you can put a line that counts the user entries, it displays a number and a link to the user's uploads or links. :)

A pic, this shows the link to gallery items for this user inside postbit template.

mauro1947 02-19-2007 09:05 PM

I'm installing version 2.2.7...
I will tell you how it works later.
Thanks a lot AndrewD
Bye!

Slave 02-19-2007 11:32 PM

Quote:

Originally Posted by AndrewD (Post 1185871)
It should look like the attachment (third icon along). If you only seeing a text message, then resync your icons directory with the release zip.

Sussed it .. thanks. I don't remember the icons being there :p

Slave 02-19-2007 11:37 PM

Quote:

Originally Posted by AndrewD (Post 1186124)
Here's another attempt at the local_link_search code. I haven't got a server running php 4 any longer, so can't test - grateful for assistance.

That seems to have worked .. thanks :)

Although I have noticed another problem .. whenever I click on a link that is using the "Short (Title + Thumb)" linkbit which then goes to the "Modern" linkbit it comes up with the following error ..

Code:

Fatal error: Call to undefined function: vbphrase() in /home/virtual/site101/fst/var/www/html/local_links.php on line 526
This is an override of the normal linkbit as it's the bit that I'm using as a contact directory.

berayiwu5 02-20-2007 02:03 AM

Quote:

Originally Posted by AndrewD (Post 1186252)
Send me a PM with more exact details of what you want/how you want things to function - if it's easy, I'll do it.

Quote:

Originally Posted by obmob (Post 1186287)
Oh i guess he means something similar to the hack made for vbgallery, you can put a line that counts the user entries, it displays a number and a link to the user's uploads or links. :)

A pic, this shows the link to gallery items for this user inside postbit template.

Andrew, I hope I'm not missing something here. When I click on the user name link in "Submitted by XYZ" for any given entry, it only leads to the vB stock "View Profile" page. I was hoping to see all the images or files (or at least a thumbnail of all the images or files) that XYZ has submitted. Now instead, I have to do a search to get a list of all the files XYZ has uploaded.

I guess what I want is that by clicking the username link in "Submitted by XYZ," I want to go to the local_links page of XYZ to see what images and files he/she has uploaded. If you could also implement what obmob has suggested, that'd be great too.

Oh. One more thing. Please correct me if I am wrong. I suppose I can't do multiple file or image upload at one time with LDM, correct? Many users, especially webmasters like myself, would like to upload multiple images or files all at once. If you have photos taken on a trip for instance, you don't want to upload them one by one. It would come in as very handy if users are allowed to upload multiple files all at once.

Thanks again Andrew for considering to incorporate these features into LDM.

AndrewD 02-20-2007 04:23 AM

Quote:

Originally Posted by Slave (Post 1186396)
That seems to have worked .. thanks :)

Although I have noticed another problem .. whenever I click on a link that is using the "Short (Title + Thumb)" linkbit which then goes to the "Modern" linkbit it comes up with the following error ..

Code:

Fatal error: Call to undefined function: vbphrase() in /home/virtual/site101/fst/var/www/html/local_links.php on line 526
This is an override of the normal linkbit as it's the bit that I'm using as a contact directory.

Sorry about that. Edit local_links.php, go to line 526 and put a dollar sign in front of vbphrase and change the parentheses
Code:

                $hit = record_hit($vbulletin->GPC['linkid'], construct_phrase(vbphrase('ll_null_link', $viewlinkname)), $LINK_OK);
should be

Code:

                $hit = record_hit($vbulletin->GPC['linkid'], construct_phrase($vbphrase['ll_null_link'], $viewlinkname), $LINK_OK);

If only I had such Slaves in the office :)

AndrewD 02-20-2007 04:37 AM

Quote:

Originally Posted by berayiwu5 (Post 1186463)
Andrew, I hope I'm not missing something here. When I click on the user name link in "Submitted by XYZ" for any given entry, it only leads to the vB stock "View Profile" page. I was hoping to see all the images or files (or at least a thumbnail of all the images or files) that XYZ has submitted. Now instead, I have to do a search to get a list of all the files XYZ has uploaded.

I guess what I want is that by clicking the username link in "Submitted by XYZ," I want to go to the local_links page of XYZ to see what images and files he/she has uploaded. If you could also implement what obmob has suggested, that'd be great too.


In the 2.2.7 releases, there is a little magnifying glass just to the right of the username link in the main linkbits (see image). Clicking this takes you directly to a full list of all the entries submitted by that user.

Clicking on the username link itself in the linkbit does (as you say) go to the profile. However, if you enable *profile_ldmactivity* in the LDM settings, then the user's profile will include a list of recent hits and uploads (see second image).

So I guess all that's missing is to add another item as ObMob suggests in the postbits, and this would be a simple icon + url. The required url is "local_links_search.php?action=show&userid=N&sort= desc"


Quote:

Originally Posted by berayiwu5 (Post 1186463)
Oh. One more thing. Please correct me if I am wrong. I suppose I can't do multiple file or image upload at one time with LDM, correct? Many users, especially webmasters like myself, would like to upload multiple images or files all at once. If you have photos taken on a trip for instance, you don't want to upload them one by one. It would come in as very handy if users are allowed to upload multiple files all at once.

Thanks again Andrew for considering to incorporate these features into LDM.


The standard add entry form only allows one upload at a time. I haven't added the possibility to upload multiple entries, partly because it's not clear what that should do - create one entry associated with several files (which some people have asked for) or create multiple entries that have the same description and other information.

By far the easiest way to handle regular multiple uploads is as follows:
- use an FTP client to upload the files into a subdirectory on your server
- set up an LDM category to autosynchronise with that directory
- turn on synchronisation on the LDM admin settings page

You can, by the way, set things up to synchronise a whole directory tree with categories and subcategories.

TheWhite 02-20-2007 10:15 AM

Urgent help needed

I've installed Version 2.2.6 a couple of months ago but only tested it now because i had to upload all the files first anyway i have just 1 problem and here it is:

I have set the download limit to 1 file, I have set the download limit at 100mbs but whichever one the two limits that i use the users continue to have unlimited download capabilities meaning the bandwidth and/or file limit are not being considered at all, can someone please help me?

Best Regards

mauro1947 02-20-2007 11:37 AM

Hi!
We are working with limits and have no problem.
Do you tick the checkboxes near the limits?
Thanks
Bye!

TheWhite 02-20-2007 02:51 PM

yes sir, i wrote it above.

TheWhite 02-20-2007 02:56 PM

Urgent help needed

I've installed Version 2.2.6 a couple of months ago but only tested it now because i had to upload all the files first anyway i have just 1 problem and here it is:

I have set the download limit to 1 file, I have set the download limit at 100mbs but whichever one the two limits that i use the users continue to have unlimited download capabilities meaning the bandwidth and/or file limit are not being considered at all, can someone please help me?

Best Regards



https://vborg.vbsupport.ru/

AndrewD 02-20-2007 03:25 PM

Quote:

Originally Posted by TheWhite (Post 1186760)
Urgent help needed

I've installed Version 2.2.6 a couple of months ago but only tested it now because i had to upload all the files first anyway i have just 1 problem and here it is:

I have set the download limit to 1 file, I have set the download limit at 100mbs but whichever one the two limits that i use the users continue to have unlimited download capabilities meaning the bandwidth and/or file limit are not being considered at all, can someone please help me?

Best Regards



http://img250.imageshack.us/img250/8278/testyoc6.jpg


Am happy to take a look at your site if you wish - send me a PM with details - I will need an admin account that has permission to add new plugins, so that if necessary I can install a debugger.

Mupetz 02-20-2007 03:32 PM

Can anybody make a short tutorial on HOW TO set the mod_rewrite to the script ?
The steps you made to make it work.
Please

Following the wiki instructions doesn't give me any positive results.
Yes, again, i'm using vbseo but the vbseo has nothing to do with this.

Andrew, the Bold quote didn't helped me at all.

AndrewD 02-20-2007 03:53 PM

Quote:

Originally Posted by Mupetz (Post 1186779)
Can anybody make a short tutorial on HOW TO set the mod_rewrite to the script ?
The steps you made to make it work.
Please

Following the wiki instructions doesn't give me any positive results.
Yes, again, i'm using vbseo but the vbseo has nothing to do with this.

Andrew, the Bold quote didn't helped me at all.

Sorry you are having problems.

This is what I do:

- ensure that mod_rewrite is loaded and enabled in Apache (see Apache documentation)

- include a set of lines like the following in the Apache httpd.conf file (I'm using Virtual servers, so if you are not, you'd move these lines into the main body of the apache config, also ignore the 'server name' and document root lines)

Code:

<VirtualHost *>
        ServerName vb36
        DocumentRoot "r:/websites/vb36"
        RewriteEngine on
        RewriteRule local_links/links/(.+)/(.+) local_links.php?catid=$1&linkid=$2 [R]
        RewriteRule local_links/links/(.+)      local_links.php?catid=$1 [R]
        RewriteRule local_links/jump/(.+)/(.+)  local_links.php?action=jump&id=$1&catid=$2 [R]
        RewriteRule local_links/jump/(.+)      local_links.php?action=jump&id=$1 [R]
        RewriteRule local_stream/(.+)          local_stream.php?action=stream&id=$1 [R]
</VirtualHost>

Once this is done, LDM will accept urls like yoursite/local_links/link/2/1 to go to category 2, id 1

- Go into LDM admin/settings and turn on seo_friendly. ow LDM will also generate these urls.


OK?

TheWhite 02-20-2007 04:49 PM

Quote:

Originally Posted by AndrewD (Post 1186776)
Am happy to take a look at your site if you wish - send me a PM with details - I will need an admin account that has permission to add new plugins, so that if necessary I can install a debugger.


You have a PM

Regards

AndrewD 02-20-2007 05:44 PM

I think you meed to add mimetype info for rars to your vb filetype table

AndrewD 02-20-2007 06:12 PM

Apologies to anyone who has experienced problems with the "suggest entries like" feature in the 2.2.7 RC.

To fix these, replace local_links_search.php in your main forums directory.

akulion 02-20-2007 07:11 PM

i tried using this
but its just too complicated :p for a simpleton like me

AndrewD 02-20-2007 07:54 PM

Quote:

Originally Posted by akulion (Post 1186938)
i tried using this
but its just too complicated :p for a simpleton like me

What's the problem? How can we help?

Slave 02-21-2007 01:38 AM

Quote:

Originally Posted by AndrewD (Post 1186517)
Sorry about that. Edit local_links.php, go to line 526 and put a dollar sign in front of vbphrase and change the parentheses
Code:

                $hit = record_hit($vbulletin->GPC['linkid'], construct_phrase(vbphrase('ll_null_link', $viewlinkname)), $LINK_OK);
should be

Code:

                $hit = record_hit($vbulletin->GPC['linkid'], construct_phrase($vbphrase['ll_null_link'], $viewlinkname), $LINK_OK);

If only I had such Slaves in the office :)

Sorted .. thanks :)

Slave 02-21-2007 01:39 AM

Quote:

Originally Posted by AndrewD (Post 1186896)
Apologies to anyone who has experienced problems with the "suggest entries like" feature in the 2.2.7 RC.

To fix these, replace local_links_search.php in your main forums directory.

Any difference to the one before that worked for me Andrew?

AndrewD 02-21-2007 04:10 AM

Quote:

Originally Posted by Slave (Post 1187157)
Any difference to the one before that worked for me Andrew?

No - they are the same. Currently, the final 2.2.7 will include this fix and also minor changes on the admin page/mass edit

Mupetz 02-21-2007 08:13 AM

Your support is way to kind Andrew, thank you.

I don't have access to the apache configuration, i'm running on normal godaddy hosting plan.
I can assure You that the mod_rewrite is activated, vbseo and vblogetin seo are working good with .htaccess commands ; i don't see why LDM shouldn't.

Normally, the mod_rewrite commands you quoted should work with the .htaccess file, but it doesn't. When i'm clicking some LDM category shown as /local_links/jump/1/1 , i'm getting "No input file specified".

Inside the LDM admin settings there is an option :
Quote:

mod_rewrite
File containing LDM mod_rewrite definitions. See manual: this is not a general-purpose replacement for the apache mod_rewrite facility.
I'm thinking this may be the problem if the error is "No input file specified"
I also made a text file with the mod_rewrite rules and added the path to this mod_rewrite setting, getting the same error.

I had this problem with 2.2.6 , update to 2.2.7 didn't do any good :)
The script is running well, i'm not complaining, but if i could make the seo links it would be better.
Thanks again.


All times are GMT. The time now is 04:25 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.03477 seconds
  • Memory Usage 1,904KB
  • 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
  • (14)bbcode_code_printable
  • (28)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