vb.org Archive

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

m002.p 07-22-2008 08:55 AM

I would love to use this mod. However ive tried two times and couldnt get it working on each due to the dir root errors etc, no doubt due to the php.ini settings.

However, I have a question; is it possible to install this mod on one domain, and have the uploads folder on another?

I ask this because like I say my domain has problems with the directories (probably as it is windows too), but my friend has a linux domain which would be worth a shot using.

Any help appreciated

Matt

IrPr 07-22-2008 08:20 PM

Quote:

Originally Posted by m002.p (Post 1581253)
I would love to use this mod. However ive tried two times and couldnt get it working on each due to the dir root errors etc, no doubt due to the php.ini settings.

However, I have a question; is it possible to install this mod on one domain, and have the uploads folder on another?

I ask this because like I say my domain has problems with the directories (probably as it is windows too), but my friend has a linux domain which would be worth a shot using.

Any help appreciated

Matt

You can upload your files in second server/domain and submit thats url instead of uploading

Sycoloco1212 07-24-2008 12:39 AM

when ever i try todo something or goto the page i get this

Code:

Sycoloco, you do not have permission to access this page. This could be due to one of several reasons:

  1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


obmob 07-25-2008 02:49 AM

Quote:

Originally Posted by josiespencer (Post 1580605)
My registered users are restricted to 2 downloads a day. I have a user who belongs to no other user group:

http://www.uber-goober.com/myPictures/LDMX.png

The Registered group is set to 2:

http://www.uber-goober.com/myPictures/LDMY.png

And yet he can download many more than that:

http://www.uber-goober.com/myPictures/LDMZ.png

Any clue?

:p
http://www.eirma.org/wikis/index.php...rch=allowances

Quote:

Originally Posted by Sycoloco1212 (Post 1582735)
when ever i try todo something or goto the page i get this

Code:

Sycoloco, you do not have permission to access this page. This could be due to one of several reasons:

  1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


Hmm... don't forget to set your member's permissions :D

sparklywater 07-25-2008 09:35 AM

Is it not possible to moderate user-comments before they are displayed on the website?

sparklywater 07-25-2008 06:56 PM

Someone please help, I'm trying to include some HTML formatting in my entry layout, and although the formatting does correctly display the first time it is submitted and applied, the HTML code reverts back to bbCode format and the HTML code does not show up in the editer window when the same entry is edited again. For example if I apply the bold attribute in HTML around a text like this: <b>This text is bold</b>, when the entry is edited again the HTML code does not remain in this way but changes to bbCode format: [ b] This text is bold [/b]. This causes problems because I need the HTML code to remain in the exact way I enter them in order to apply the required formatting to the entry using HTML. I've checked my LDM settings and HTML input is enabled in entries. If anyone has any idea what I am talking about and can offer some advice on how to solve this, please let me know. How can I prevent the WYSYWIG editer from automatically converting HTML code into bbCode?

EDIT: I've just noticed that this problem only accurs with the Advanced WYSIWYG editor but not the Standard editor, so switching to the standard version solves the problem.

stwilson 07-26-2008 05:42 PM

I noticed one small issue for the Attributes option. The Attributes display order works for the presentation of the link but does not order correctly in Add Entry form. I don't know what the order is for the Add Link form but it is not consistent with the Display Order identified in the Admin Panel.

One other suggestion for Attributes, allow for adding a required option per attribute. I find that Attributes will be very powerful for me but there is no way for me to identify specific attributes (not all of them) that I would like my members to enter.

Sycoloco1212 07-27-2008 06:38 AM

Quote:

Originally Posted by obmob (Post 1583539)
:p
http://www.eirma.org/wikis/index.php...rch=allowances


Hmm... don't forget to set your member's permissions :D

i still need help, when i click Links and Downloads and try to click anything in that category like as in "permissions"

i get this still, on everthing under Downloads and Links

Code:

Sycoloco, you do not have permission to access this page. This could be due to one of several reasons:

  1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


sparklywater 07-27-2008 08:13 AM

Quote:

Originally Posted by Sycoloco1212 (Post 1585079)
i still need help, when i click Links and Downloads and try to click anything in that category like as in "permissions"

i get this still, on everthing under Downloads and Links

Code:

Sycoloco, you do not have permission to access this page. This could be due to one of several reasons:

  1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.



are you logged in as an admin and have you reviewed the permission-settings for that category? There are general/global permissions and also category-specific permissions.

derfelix 07-28-2008 01:24 PM

Maybe its only me.. but probably I am doing something wrong....

Talking about Keywords..
(this is only theoretical.. but i plan to have it running in couple of weeks)

I set up LDM as a simple link directory with 16 categories...
Users add links with title, description AND Keywords..
Suppose every user adds 5 keywords.. some are double.. some not..
so if i plan to have about 5000 links.. that makes 25000.. keywords.. no.. because of doubles etc.. but lets say about 5000 in total..

--------
Now on the display links page for example and in other places I have the "Filter" (a dropdown that shows all keywords).. that would be a dropdown with 5000 fields?????
I know this is theoretical only, but realistic is to have about 1000 keywords after 5000 links.. (specially if you have very different categories)
even a the 1000 keywords loaded every page would slow down the system.. or am I wrong..
Ok the filter is limited to keywords by category.. but still.. we dont know how big we get..
I would suggest an option to turn the keyword filter off.. specially to save ressources on bigger board

Thats only an idea... but maybe i'm totally wrong..

Felix

obmob 07-29-2008 01:05 AM

Arent's keywords shown while you type them? :confused:

I get a popup while writing the keyword.

yahoooh 07-29-2008 02:34 AM

i suggest :
comments be in the same shownig page of link or download
like vbulletin threads

derfelix 07-29-2008 07:58 AM

Quote:

Originally Posted by obmob (Post 1586349)
Arent's keywords shown while you type them? :confused:

I get a popup while writing the keyword.

@obmob
yes thats when you add or modify.. but if you are in a category just browsing the links, i have (top left) a dropdown "sort by" and just below that a second dropdown called "filter".. thats the one i meant.
----------
@Andrew..
just found a little (for me) bug in ratings...
If 3 people rate a link.. lets say:
user 1 rates 5
user 2 rates 3
user 3 rates 4
(total 12 => average 4 ... works fine)

now 2 things can happen:
1. another user comments.. but does NOT rate..
2. user 3 clicks on "Clear ratings"

in my understanding the average should still be 4.. because only 2 users have rated.. (users 1 and 2 .. total 8.. average 4)

But its different.. if 1. happens.. rating becomes 8/3 => ~3
if 2. happens rating becomes 12/4 => 3
and if 1. AND 2 happen.. then rating becomes 8/4 => 2!

Maybe its supposed to be like that..but
Personally i dont want users that have commented but NOT rated to be counted in ratings..
so i made myself a little fix:

open: local_links_actions.php
in function ldm_fix_rating_counts find:
PHP Code:

    foreach ($rates as $r) {
        
$numrate += 1;
        
$totrate += $r;
    } 

replace with
PHP Code:

    foreach ($rates as $r) {
        if(
$r>0)
        {
            
$numrate += 1;
            
$totrate += $r;
        }
    } 

of course on live sites this will not be an ideal solution.. because it will only fix the rating of a link as soon as somebody either rates or comments..
if the site is still small.. admin can modify (open and save) 1 comment/rating in each existing link.. .. if a link is commented/rated for the first time.. there is no problem..

[EDIT] AHHHHHHH... drawback.. now the the number of comments (as it is the same number will only show the amount of ratings.. (not counting the number of comments that have no vote) :([/EDIT]
...

-------------
A yes another harder to fix issue..
in the dropdown where you preview the comments (in the linkbit).. IF the site is running in UTF-8 there are some issues (strange characters appearing) sometimes..
I found the problem..
its in the function ldm_cleantext_to_width_rows
IF you run UTF8 and have a special character where the line is supposed to stop.. substr can truncate a non ascii character.. because the count is wrong.. returning the string but the last character is truncated.. showing a weird sign..
The only fix I know of is to use mb_strlen and mb_substr instead of strlen and substr..
I did some test by replacing substr(....) by mb_substr(.....,"UTF-8") in that function.. (also the strlen)
IT WORKS for me.. BUT..
if the mb_substr exists since php 4.06 not all providers have the php multi-byte extension installed.. (i had to activate them on my localhost)
so a fix would only be for those who have it installed.. and are using UTF-8 .. but it still is a a pain.. because you have to specify the encoding every time... AND you DONT always need the mb_substr.. only sometimes.. like here.
maybe there is another workaround???

Felix





..

IrPr 07-29-2008 06:57 PM

Quote:

Originally Posted by derfelix (Post 1586497)
@obmob
yes thats when you add or modify.. but if you are in a category just browsing the links, i have (top left) a dropdown "sort by" and just below that a second dropdown called "filter".. thats the one i meant.
----------
@Andrew..
just found a little (for me) bug in ratings...
If 3 people rate a link.. lets say:
user 1 rates 5
user 2 rates 3
user 3 rates 4
(total 12 => average 4 ... works fine)

now 2 things can happen:
1. another user comments.. but does NOT rate..
2. user 3 clicks on "Clear ratings"

in my understanding the average should still be 4.. because only 2 users have rated.. (users 1 and 2 .. total 8.. average 4)

But its different.. if 1. happens.. rating becomes 8/3 => ~3
if 2. happens rating becomes 12/4 => 3
and if 1. AND 2 happen.. then rating becomes 8/4 => 2!

Maybe its supposed to be like that..but
Personally i dont want users that have commented but NOT rated to be counted in ratings..
so i made myself a little fix:

open: local_links_actions.php
in function ldm_fix_rating_counts find:
PHP Code:

    foreach ($rates as $r) {
        
$numrate += 1;
        
$totrate += $r;
    } 

replace with
PHP Code:

    foreach ($rates as $r) {
        if(
$r>0)
        {
            
$numrate += 1;
            
$totrate += $r;
        }
    } 

of course on live sites this will not be an ideal solution.. because it will only fix the rating of a link as soon as somebody either rates or comments..
if the site is still small.. admin can modify (open and save) 1 comment/rating in each existing link.. .. if a link is commented/rated for the first time.. there is no problem..

[EDIT] AHHHHHHH... drawback.. now the the number of comments (as it is the same number will only show the amount of ratings.. (not counting the number of comments that have no vote) :([/EDIT]
...

-------------
A yes another harder to fix issue..
in the dropdown where you preview the comments (in the linkbit).. IF the site is running in UTF-8 there are some issues (strange characters appearing) sometimes..
I found the problem..
its in the function ldm_cleantext_to_width_rows
IF you run UTF8 and have a special character where the line is supposed to stop.. substr can truncate a non ascii character.. because the count is wrong.. returning the string but the last character is truncated.. showing a weird sign..
The only fix I know of is to use mb_strlen and mb_substr instead of strlen and substr..
I did some test by replacing substr(....) by mb_substr(.....,"UTF-8") in that function.. (also the strlen)
IT WORKS for me.. BUT..
if the mb_substr exists since php 4.06 not all providers have the php multi-byte extension installed.. (i had to activate them on my localhost)
so a fix would only be for those who have it installed.. and are using UTF-8 .. but it still is a a pain.. because you have to specify the encoding every time... AND you DONT always need the mb_substr.. only sometimes.. like here.
maybe there is another workaround???

Felix





..

Awesome!
thanks Felix ;)

chickendippers 07-31-2008 10:32 AM

Hi there,
Great script, but my server keeps killing processes because they're running too long. Here's the report form the server, I don't suppose anyone could shed some light on the problem?
Quote:

lfd on sh2.valcatohosting.com: Excessive resource usage: ***** (29021)

Time: Mon Jul 28 11:18:56 2008
Account: ****
Resource: Process Time
Exceeded: 601 > 600 (seconds)
Executable: /usr/bin/php
Command Line: /usr/bin/php /home/f****/public_html/new/local_links.php
PID: 29021
Killed: Yes

sparklywater 07-31-2008 05:02 PM

Quote:

Originally Posted by yahoooh (Post 1586374)
i suggest :
comments be in the same shownig page of link or download
like vbulletin threads

That's Exactly what I need. Can someone please let me know how I can make the full list of comments appear right below the playbit, instead of on a separate page ie. like YouTube comments I want the comments table to appear right below the video / media. I tried to swap over the codes but the content of the comments does not appear in the new page. Someone please help... ?

derfelix 07-31-2008 05:34 PM

hmmm... we must have different configuration.. mine looks like that.. ( in some way)

one page has the listing of 20 items per page..
and if i click on one item.. a separate page opens (like youtube) where i have the item.. and below the comments..

:eek:

(my items are not videos.. but that doesnt matter ... can be anything)

Felix

sparklywater 08-01-2008 02:51 AM

Quote:

Originally Posted by derfelix (Post 1588532)
hmmm... we must have different configuration.. mine looks like that.. ( in some way)

one page has the listing of 20 items per page..
and if i click on one item.. a separate page opens (like youtube) where i have the item.. and below the comments..

(my items are not videos.. but that doesnt matter ... can be anything)


Let me know if you can get that layout with an embedded video, I don't think it will work. Opening up a video or audio in an embedded player opens up a different template such as 'links_playerbit_RealPlayer' and I think the problem is with these specific templates for embedded multimedia. The comments do not appear displayed just below the multimedia; instead, a link is displayed below the multimedia which takes you to a different page which shows all the comments correctly. Please let me know if there is a way to have the comments directly on the embedded player page instead of having links to other pages.

sparklywater 08-01-2008 03:44 AM

How come some variables like the following list don't work in templates such as 'links_play_embedded', but at the same time other variables like '$linkratebit' do work??

$linkfavbit
$linksendtofriendbit
$linkreportlinkbit
$linklikebit
$linkstarbit
$linknewbit


How can I get these variables to work in the 'links_play_embedded' template too?

stwilson 08-02-2008 03:35 PM

Quote:

Originally Posted by derfelix (Post 1588532)
hmmm... we must have different configuration.. mine looks like that.. ( in some way)

one page has the listing of 20 items per page..
and if i click on one item.. a separate page opens (like youtube) where i have the item.. and below the comments..

:eek:

(my items are not videos.. but that doesnt matter ... can be anything)

Felix

I have the same issue. My lists of links do not work like you suggest either. I have a page of 10 links but clicking on the link title fires off the action of opening a new browser and taking me to that link. I would prefer to have the clicking take the user to the link's detail, including the comments. I have tried every possible configuration but cannot get it to work this way. The fact that yours works like you posted gives me hope.

Stilgar 08-04-2008 08:43 PM

Is anyone else having problems showing Thimbnails on Links using Version 2.2.9-post2?

Ever since upgrading to this version, I have not been able to make Thumbnails show.

Added:

The Thumbnails do show when viewing the Category in the "Short Entries" version.

Delazar 08-06-2008 07:59 AM

Hi,

wenn ich versuche eine Kategorie zu erstellen, bekomme ich folgende Meldung:
Quote:

Warnung: Invalid argument supplied for foreach() in [path]/includes/local_links_misc.php (Zeile 74)
Ich habe schon mal alles deinstalliert und wieder Installiert, immer noch das gleiche.

Was kann es sein?

Gru?
Delazar

gamextract 08-06-2008 02:59 PM

I've just installed the 2.2.9 version on my 3.7 vbulletin, and I'm getting this security token error. Any help on how to fix this would be great.

Quote:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
I checked the local_links.php
and local_links_actions.php

and both already have the define('CSRF_PROTECTION', true);

I'm confused as to what I'm missing

I've even gone through all my template files and made sure the
Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
was included where needed

gamextract 08-06-2008 07:59 PM

Edit-sorry for the double/new post

AndrewD 08-11-2008 04:08 AM

Quote:

Originally Posted by yahoooh (Post 1573114)
still wait : timer to download to prevent hotlinking
i still prefer timer than any other way
or also verification by image

Sorry for the long delay... needed my rest :)

There is an LDM add-on, secure-urls, in the release/extras directory which provides timer- and user- based locks on LDM urls.

AndrewD 08-11-2008 04:15 AM

Quote:

Originally Posted by evildream (Post 1573556)
Using vb 3.6.4 and LDM 2.2.9 post2 and having this problem that's been frustrating me for hours because it should be simple.

local_file_root is set to Yes
local_file_root is set to /attachments/
sync_enabled is set to Yes
sync_populate_categories is set to Yes
sync_populate_entries is set to Yes

I uploaded the files into /attachments/songs/mp3/
set chmod 777 to all directories

When adding a category I set this:
Synchronise with... songs/mp3/

And gives me this error:
Cannot synchronise category with songs/mp3/ - directory not found.

What on earth am I doing wrong??

Did you get to the bottom of this?

local_file_root set to 'yes' means 'look for the files outside your website, starting at the root of the file structure. So with (I presume you mean) local_file_root_prefix set to 'attachments', LDM will try to find your songs in the directory /attachments/songs/mp3/.. at the root of the file system.

Also worth checking that your site's php settings allow this access, particularly, is open_basedir set? You can find this information on the LDM admin pages, on the left side.

AndrewD 08-11-2008 04:17 AM

Quote:

Originally Posted by IrPr (Post 1581045)
Hi Mr Andrew;

Bug report:
With can_edit_link and no can_select_category and no can_admin_links permission, when local_links.php generates editlink form ldm_construct_category_list() returns null, so no $optbit, so no pcatid[] input array in form, so ll_error_category standard error will be returened when form submitted.

How to fix:
local_links.php (line 1328) in "editlink" area
"can_add_link" permission should be "can_edit_link"

Thanks - that bug has been there for a long, long time.

AndrewD 08-11-2008 04:20 AM

Quote:

Originally Posted by sparklywater (Post 1584089)
Someone please help, I'm trying to include some HTML formatting in my entry layout, and although the formatting does correctly display the first time it is submitted and applied, the HTML code reverts back to bbCode format and the HTML code does not show up in the editer window when the same entry is edited again. For example if I apply the bold attribute in HTML around a text like this: <b>This text is bold</b>, when the entry is edited again the HTML code does not remain in this way but changes to bbCode format: [ b] This text is bold [/b]. This causes problems because I need the HTML code to remain in the exact way I enter them in order to apply the required formatting to the entry using HTML. I've checked my LDM settings and HTML input is enabled in entries. If anyone has any idea what I am talking about and can offer some advice on how to solve this, please let me know. How can I prevent the WYSYWIG editer from automatically converting HTML code into bbCode?

EDIT: I've just noticed that this problem only accurs with the Advanced WYSIWYG editor but not the Standard editor, so switching to the standard version solves the problem.

The code uses vbulletin wysiwyg textbox forms. I imagine that the html/bbcode handling is built into the handling of these forms.

AndrewD 08-11-2008 04:22 AM

Quote:

Originally Posted by derfelix (Post 1585959)
Maybe its only me.. but probably I am doing something wrong....

Talking about Keywords..
(this is only theoretical.. but i plan to have it running in couple of weeks)

I set up LDM as a simple link directory with 16 categories...
Users add links with title, description AND Keywords..
Suppose every user adds 5 keywords.. some are double.. some not..
so if i plan to have about 5000 links.. that makes 25000.. keywords.. no.. because of doubles etc.. but lets say about 5000 in total..

--------
Now on the display links page for example and in other places I have the "Filter" (a dropdown that shows all keywords).. that would be a dropdown with 5000 fields?????
I know this is theoretical only, but realistic is to have about 1000 keywords after 5000 links.. (specially if you have very different categories)
even a the 1000 keywords loaded every page would slow down the system.. or am I wrong..
Ok the filter is limited to keywords by category.. but still.. we dont know how big we get..
I would suggest an option to turn the keyword filter off.. specially to save ressources on bigger board

Thats only an idea... but maybe i'm totally wrong..

Felix

Thanks, will check if I've beem that stupid (highly likely) and provide the option to turn this off. There have been similar problems with other drop-down menus during development.

AndrewD 08-11-2008 04:24 AM

Quote:

Originally Posted by stwilson (Post 1584752)
I noticed one small issue for the Attributes option. The Attributes display order works for the presentation of the link but does not order correctly in Add Entry form. I don't know what the order is for the Add Link form but it is not consistent with the Display Order identified in the Admin Panel.

One other suggestion for Attributes, allow for adding a required option per attribute. I find that Attributes will be very powerful for me but there is no way for me to identify specific attributes (not all of them) that I would like my members to enter.

I added attributes earlier this year, and the code is still rather raw and buggy. I'll check and also see how to deal with your good suggestion.

RikiB 08-11-2008 08:32 AM

Quote:

Originally Posted by AndrewD (Post 1595961)
Sorry for the long delay... needed my rest :)

Its good to see you back!

Just a reminder how nice it would be to have the new JW Player (version 4). :)

Also, do you think it would be possible to expose all the flash variables? The one I am most interested in is the streamscript variable that allows pseudo-streaming and extra security.

Thanks!

Delazar 08-11-2008 02:51 PM

Quote:

Originally Posted by Delazar (Post 1592464)
Hi,

wenn ich versuche eine Kategorie zu erstellen, bekomme ich folgende Meldung:
Quote:

Warnung: Invalid argument supplied for foreach() in [path]/includes/local_links_misc.php (Zeile 74)
Ich habe schon mal alles deinstalliert und wieder Installiert, immer noch das gleiche.

Was kann es sein?

Gru?
Delazar

Hat keiner eine Ahnung was das sein k?nnte?

obmob 08-11-2008 03:40 PM

Andrew speaks german? :eek:

Welcome!

AndrewD 08-11-2008 04:18 PM

Quote:

Originally Posted by Delazar (Post 1596277)
Hat keiner eine Ahnung was das sein k?nnte?

I don't speak (or read) German, but I understand enough to see an error message :)

After you install LDM, does anything work at all, or do you always get this message?

Are you sure that you have uploaded all the files into the correct directories?

AndrewD 08-11-2008 04:28 PM

A rather unpleasant soul who has clearly been checking the LDM code in some depth has started throwing occasional SQL injection hacks at our website. So far this has not caused anything more serious than SQL errors, but it highlights a potential security bug in the LDM code. I will include the fix in the next upload - in the meantime if anyone else if being hit, let me know and I'll explain how to prevent the problem.

derfelix 08-11-2008 04:30 PM

talking about german.. just found a search bug..:eek:

difficult to explain..
the word Austria is "?sterreich" in german..

I have several links containing "?sterreich" in link title or keyword...
i do a search.. get 5 results.. ==> it works fine..

NOW i change to sortorder...
and get NO Result !!!!
Quote:

Search Results
Searching for entries matching %C3%B6sterreich, looking in keywords for any words
Found 0 matching entries
Why? because in the sort order form.. there the word ?sterreich is suddenly urlencoded.. giving: %C3%B6sterreich and it tells me.. No result found for %C3%B6sterreich!!! This is true because %C3%B6sterreich does not exist.. it is ?sterreich.

here part of the page sourcecode:
HTML Code:

<td align="right">
                <form action="local_links_search.php" method="get">
                <span class="smallfont">
                <input type="hidden" name="action" value="show" /><input type="hidden" name="page" value="1" /><input type="hidden" name="pp" value="20" /><input type="hidden" name="search" value="%C3%B6sterreich" /><input type="hidden" name="literal" value="1" /><input type="hidden" name="keys" value="1" /><input type="hidden" name="beforeafter" value="1" /> Sort by <!-- BEGIN TEMPLATE: links_catsortbit -->

<span class="smallfont">

<select class="select" name="sort" onchange="this.form.submit();" size="1" style="width:200px">
<optgroup label="Sort by">

<option value="N" >Title (ascending)</option>
<option value="n" >Title (descending)</option>
<option value="h" >Hits (overall)</option>

i think.. ( not sure.. ) it should be urlencoded when passed through the form but then urldecoded before searching the database... it should be urldecoded before being displayed...
or
not urlencoded at all.. but then i think you need it for spaces.. hmmm not sure..

Felix

AndrewD 08-11-2008 06:14 PM

Quote:

Originally Posted by derfelix (Post 1596340)
talking about german.. just found a search bug..:eek:

difficult to explain..
the word Austria is "?sterreich" in german..

thanks - I found a similar bug within the search/sort order code when there is a space in the search string. I suspect it is the same problem, but will check.

edited - try editing local_links_search.php, round about line 1150, there's a sequence

Code:

                $search['string'] = $vbulletin->GPC['search'];
                $search['literal'] = $vbulletin->GPC['literal'] ? $vbulletin->GPC['literal'] : 1;
                $search['keys']  = $vbulletin->GPC['keys'];
                $search['desc']  = $vbulletin->GPC['desc'];

change the first line:

Code:

                $search['string'] = urldecode($vbulletin->GPC['search']);
                $search['literal'] = $vbulletin->GPC['literal'] ? $vbulletin->GPC['literal'] : 1;
                $search['keys']  = $vbulletin->GPC['keys'];
                $search['desc']  = $vbulletin->GPC['desc'];


AndrewD 08-11-2008 06:58 PM

Quote:

Originally Posted by RikiB (Post 1596081)
Its good to see you back!

Just a reminder how nice it would be to have the new JW Player (version 4). :)

Also, do you think it would be possible to expose all the flash variables? The one I am most interested in is the streamscript variable that allows pseudo-streaming and extra security.

Thanks!

I've run a few tests with the new JW player, and got it doing the basics with LDM. I can't figure out how to make the streamscript variable work - seems it should accept the standard ldm streamer, but nothing happens. However, file=LDM streamer script does work fine for both video and music.

I'm sure I can expose the rest of the flash variables via a plugin

RikiB 08-11-2008 08:13 PM

Ahh great. I was hoping to find a way that prevented people from downloading an FLV file.

The only way I have discovered to protect FLV files from download is to pay for a real streaming service which is very expensive. There is also lightppd but Im not sure if that would even help.

Perhaps this is impossible currently, let me know if this will be a waste of time.

Thanks again!

vbboarder 08-12-2008 01:12 AM

Hi Andrew, welcome back from your vacation/ break! Hope you are well rested.:)
I have 3 bugs to report:

1. When editing an entry, the user is able to upload another file (the file is saved in the upload directory), but the new file does not show (file is not linked to in the entry) and his upload allowance is not updated.

2. The category of a forum is not replaced in the phrase when using {4} in ldm_thread_create_body. Instead, the LDM database name is always shown.

3. The "Add LDM to VB navbar" plugin link does not work if vbAdvanced is installed and not located at the forum root. Solution, find:
Quote:

'<td class="vbmenu_control"><a href="local_links.php">'
And replace that with:
Quote:

'<td class="vbmenu_control"><a href="' . $vbulletin->options['bburl'] . '/local_links.php">'


All times are GMT. The time now is 04:37 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.05894 seconds
  • Memory Usage 1,938KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_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