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)

58D 01-08-2007 03:06 AM

Also, I'm running the VB links 2.0. hack on a 2.2.9 site. I'm upgrading to 3.6.4 and would like to upgrade to LDM as well. Is there a way to import or otherwise keep my links and categories while moving to LDM?

Looks like a great mod! Thanks.

Jake

AndrewD 01-08-2007 03:41 AM

Quote:

Originally Posted by icemanic (Post 1152809)
is it possible to have local_links.php and other files in its own directory?

i wish to have it like this: http://forum.com/forum/directory

so it is in its own directory subdirectory....

This is not something I have tested/set up. It's certainly possible but the code would need a bit of modification - I don't think it would be a lot.

AndrewD 01-08-2007 03:43 AM

Quote:

Originally Posted by 58D (Post 1153166)
Don't know how I missed them.....Oh wait, yeah I do....Im an Idiot! :D

Anyway, I was also wondering if the file upload and download can be turned off? I only need a simple links manager at the moment. Is this the right plug-in for me? Thanks.

Jake

Upload is off by default and has to be switched on.

Difference between *links* and *downloads* management is purely the filetype of the link you are managing. If it has a filetype that appears in your main VB attachment table, it's a download. Otherwise it's a link. Simple as that. Do you don't really need to turn off downloads.

AndrewD 01-08-2007 03:44 AM

Quote:

Originally Posted by Zowners (Post 1153254)
Is it possible to make a mirror link for for any links added, which will show for certain member groups.

Or possibly making it so different usergroups get a different link for example. registered user clicks on music.wmv and downloads from a public server where as a premimum member clicks it and downloads from a private server.

Not currently. It's been on the list for a long time (multiple urls per entry), but requires a basic change in the database structure.

AndrewD 01-08-2007 03:46 AM

Quote:

Originally Posted by 58D (Post 1153261)
Also, I'm running the VB links 2.0. hack on a 2.2.9 site. I'm upgrading to 3.6.4 and would like to upgrade to LDM as well. Is there a way to import or otherwise keep my links and categories while moving to LDM?

Looks like a great mod! Thanks.

Jake

LDM can certainly import entries - there are two forms - a simple csv file format, which brings in the main material, and an xml format which imports everything that matters. So the question is whether you can export easily from your 2.2.x site. I've forgotten all my vb2 coding...

rolandogomez 01-08-2007 07:50 AM

Andrew,

Nice hack, finally figured how to install it. Question though, it comes with all those nice extra plugins, but none say what "hook" to select from the drop down menu. Being a non-coder, could you clarify the proper hooks for

add-this-link
autocreate-threads
force-mp3-to-m3u
jukebox-enhancements
kill-LDM
lightbox
limit-uploads
limit-useraccess
patch-forumhome
patch-forumhome-newlinks
patch-forumhome-thumbs
patch-showthread
readme.txt
rss2
sample-avi-image
stream-mms-videos
versionist
wimpy-player
xml-import

Also, where can we get this plugin, "To add new filetypes, use VB->Admincp->Attachments->Attachment Manager->Add New Extension. (NB: With effect from version 2.2.7 of LDM, there is an 'add-mimetypes-plugin' extra in the release .zip file, which will 'auto-install' all the common media file extensions into your vb tables.)"

Thanks a bunch! Looking forward to the update. Rolando.

AndrewD 01-08-2007 09:31 AM

Quote:

Originally Posted by rolandogomez (Post 1153389)
Andrew,

Nice hack, finally figured how to install it. Question though, it comes with all those nice extra plugins, but none say what "hook" to select from the drop down menu. Being a non-coder, could you clarify the proper hooks for

add-this-link
autocreate-threads
force-mp3-to-m3u
jukebox-enhancements
kill-LDM
lightbox
limit-uploads
limit-useraccess
patch-forumhome
patch-forumhome-newlinks
patch-forumhome-thumbs
patch-showthread
readme.txt
rss2
sample-avi-image
stream-mms-videos
versionist
wimpy-player
xml-import

Also, where can we get this plugin, "To add new filetypes, use VB->Admincp->Attachments->Attachment Manager->Add New Extension. (NB: With effect from version 2.2.7 of LDM, there is an 'add-mimetypes-plugin' extra in the release .zip file, which will 'auto-install' all the common media file extensions into your vb tables.)"

Thanks a bunch! Looking forward to the update. Rolando.

There's two ways of installing plugins - either by selecting a hook ("Add Plugin") or by Uploading a plugin xml file. The extras you mention are usually designed to be uploaded - go to your vb admincp/products and plugins/download and upload and simply upload the relevant xml file. It knows where to hook itself. (If you want, take a look inside the various xml files - you'll see how they are laid out.)

Your question 2) - again, you currently go to the vb admincp/attachments/attachment manager, and you add the new extension. As I noted, with 2.2.7, I'll provide an add on that will do this automatically, but I recommend that you try to understand how to do it manually - because you are fundamentally changing what types of file people can place on your board.

butty 01-08-2007 09:38 AM

have ya got any further with this one at all mate?.

ps i thought id logged onto the wrong site a min ago lol. this is gonna take a bit of getting used to

Quote:

Originally Posted by butty (Post 1149591)
many thanks for the reply andrew and for looking into this for us. i have tried the wimpy jukebox already but i was hitting problems with that too. il explain these problems to you as it may be something you will be able to help me with as its more to do with ldm rather than wimpy

basically i have my vbadvanced set so that it shows my left vbadvanced column to the left of the ldm. i have done this by adding this to the top of local_links.php as instructed by vbadvanced

<?php
define('VBA_PORTAL', true);
define('VBA_PAGE', 'tunearchive');

and then i added the page in vbadvanced named tunearchive and specified it to show the left navigation column - this is something i need to have on my forum or i can see people getting awfulley confused while navigating the link directory

and so this brings with it its own problem. when you click a link to play it in the jukebox it opens another window. when it opens this new window it also adds the navigation panel and so opens pretty much a full size screen. ive changed it over now so you can see for yourself what its doing.

http://www.oldskoolanthemz.com/forum...s.php?catid=13

if i could get it going so that it opened another small window with the player in it then that would be great.

the other problem with this way of having the links is that i would like the jukebox to open up when the mp3 is clicked on from the list of mp3's in the archive. the way the ldm system currently works in this state is that you click the link then go to another page and click the link again to open in the jukebox. i would rather it have a play button (like the wimpy button system) from the main list of mp3's in that category that would then open the jukebox and play the file.

i hope this makes sense as its hard to explain lol. many thanks once again andrew for your time its greatly appreciated :)


AndrewD 01-08-2007 05:47 PM

Quote:

Originally Posted by butty (Post 1153452)
have ya got any further with this one at all mate?.

ps i thought id logged onto the wrong site a min ago lol. this is gonna take a bit of getting used to

I just took a look at your site - nice.

I think part of your problem is that you've wrapped LDM in the vbadvanced code without including all the key bits from the links_header template. Others have made that mistake too. You've lost the LDM javascript, so (for example) popup windows don't work.

You need these two lis in your hearer:

Code:

<script type="text/javascript" src="clientscript/ldm_global.js"></script>
<script type="text/javascript" src="clientscript/ldm_ajax_keysugg.js"></script>


rolandogomez 01-08-2007 08:46 PM

Thanks, I goofed, I was looking at "add new plug-in" instead of "upload plug-in." That's what happens when you run on fumes for lack of sleep. (grin). Thanks a bunch, looking forward to your new product updates. Thanks, rg.

butty 01-08-2007 10:23 PM

Quote:

Originally Posted by AndrewD (Post 1153821)
I just took a look at your site - nice.

I think part of your problem is that you've wrapped LDM in the vbadvanced code without including all the key bits from the links_header template. Others have made that mistake too. You've lost the LDM javascript, so (for example) popup windows don't work.

You need these two lis in your hearer:

Code:

<script type="text/javascript" src="clientscript/ldm_global.js"></script>
<script type="text/javascript" src="clientscript/ldm_ajax_keysugg.js"></script>


ive done this now. i presume you mean the header template under style manager?

it seems to have made a difference but hasnt fixed it. it opens the rest of the page with it still when it opens up the wimpy player popup. it does though now open up a smaller box rather than full window

many thanks for your time and glad ya like the site :)

rolandogomez 01-09-2007 03:41 AM

Andrew,

1. I've got it all working, plays wmv & mov play perfect, but when I try mp3, wav, doesn't play, those were files I had so not able to test any more.

2. I've uploaded a thumbnail with all files, see nothing displayed though they uploaded.

3. When I hit the download arrow, I get a new window open with this garble (whole page)

I'm running my own Unix server, fyi, VB 3.6.4 with Vbadvanced latest version. This is a brand new site I'm working on, so not a lot on it right now as we haven't broadcast it. Thanks, rg.

AndrewD 01-09-2007 03:47 AM

Quote:

Originally Posted by rolandogomez (Post 1154269)
1. I've got it all working, plays wmv file perfect, but when I try mp3, wav, wma, mov, doesn't play, those were files I had so not able to test any more.

Have you set up entres for wmv, mp3, wav, wma, mov in your vbulletin attachments table (vb/admincp/attachments/attachmemnt manager)? You need definitions for each of these filetypes plus mimetype info. Choose from the following:

"asf" => "Content-type: video/x-ms-asf"
"avi" => "Content-type: video/avi"
"bmp" => "Content-type: image/bmp"
"divx" => "Content-type: video/divx"
"doc" => "Content-type: application/vnd.msword"
"flv" => "Content-type: application/x-shockwave-flash"
"gif" => "Content-type: image/gif"
"jpe" => "Content-type: image/jpeg"
"jpeg" => "Content-type: image/jpeg"
"jpg" => "Content-type: image/jpeg"
"m3u" => "Content-type: application/m3u"
"mov" => "Content-type: video/quicktime"
"mpg" => "Content-type: video/mpeg"
"mpeg" => "Content-type: video/mpeg"
"mp3" => "Content-type: audio/mpeg"
"pdf" => "Content-type: application/pdf"
"png" => "Content-type: image/png"
"pps" => "Content-type: application/vnd.ms-pps"
"ppt" => "Content-type: application/vnd.ms-ppt"
"qt" => "Content-type: video/quicktime"
"ram" => "Content-type: audio/x-pn-realaudio"
"ra" => "Content-type: audio/vnd.rn-realaudio"
"rm" => "Content-type: audio/x-realaudio"
"rv" => "Content-type: video/vnd.rn-realvideo"
"rmvb" => "Content-type: video/x-realaudio"
"rpm" => "Content-type: audio/x-pn-realaudio-plugin"
"swf" => "Content-type: application/x-shockwave-flash"
"txt" => "Content-type: plain/text"
"wav" => "Content-type: audio/wave"
"wma" => "Content-type: video/x-ms-wma"
"wmv" => "Content-type: video/x-ms-wmv"
"xls" => "Content-type: application/vnd.msexcel"
"zip" => "Content-type: application/zip"

Quote:

Originally Posted by rolandogomez (Post 1154269)
2. I've uploaded a thumbnail with all files, see nothing displayed though they uploaded.

set ldm/settings/link_imagesize

Quote:

Originally Posted by rolandogomez (Post 1154269)
3. What template can we modify to remove the "jukeboxes" if we want or replace them with another image?

the jukebox.gif file in the icons directory

Quote:

Originally Posted by rolandogomez (Post 1154269)
4. When I hit the download arrow, I get a new window open with this garble (whole page)

??

AndrewD 01-09-2007 04:07 AM

Quote:

Originally Posted by butty (Post 1154065)
it seems to have made a difference but hasnt fixed it. it opens the rest of the page with it still when it opens up the wimpy player popup. it does though now open up a smaller box rather than full window

Yes, my difficulty is that I don't know exactly what changes you've made. The standard vb release opens a correctly sized jukebox window with none of the extra material you've added.

rolandogomez 01-09-2007 04:16 AM

Andrew,

Thanks for your help. I double checked 1, 2, & 3, all done. Though on one you say "definitions." I basically put the file extension in the box, i.e., mp3 (with no period) then in the mime box, audio/mpeg if that's what you mean?

On #4, not sure. I've sent you a pm with info to check if you have time. Thanks, rg.

AndrewD 01-09-2007 04:26 AM

Quote:

Originally Posted by rolandogomez (Post 1154295)
Andrew,

Thanks for your help. I double checked 1, 2, & 3, all done. Though on one you say "definitions." I basically put the file extension in the box, i.e., mp3 (with no period) then in the mime box, audio/mpeg if that's what you mean?

On #4, not sure. I've sent you a pm with info to check if you have time. Thanks, rg.

Not quite: in the mime box, you put "Content-type: audio/mpeg" etc

rolandogomez 01-09-2007 04:44 AM

Working now, on images, thumbs, etc., can get them on any browser type, will check file paths, etc., though they uploaded fine. Did get this error message when I try and open up image link in another window:

Notice: Undefined index: HTTPS in /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php on line 1575

Notice: Undefined index: HTTPS in /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php on line 1575

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php:1575) in /local_resize.php on line 167

Thanks, rg.

AndrewD 01-09-2007 05:18 AM

Quote:

Originally Posted by rolandogomez (Post 1154310)
Working now, on images, thumbs, etc., can get them on any browser type, will check file paths, etc., though they uploaded fine. Did get this error message when I try and open up image link in another window:

Notice: Undefined index: HTTPS in /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php on line 1575

Notice: Undefined index: HTTPS in /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php on line 1575

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php:1575) in /local_resize.php on line 167

Thanks, rg.

Rolando, I think you missed out the url in the pm you sent me.

AndrewD 01-09-2007 05:43 AM

Quote:

Originally Posted by rolandogomez (Post 1154310)
Working now, on images, thumbs, etc., can get them on any browser type, will check file paths, etc., though they uploaded fine. Did get this error message when I try and open up image link in another window:

Notice: Undefined index: HTTPS in /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php on line 1575

Notice: Undefined index: HTTPS in /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php on line 1575

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domainremoved.com/htdocs/forums/includes/class_core.php:1575) in /local_resize.php on line 167

Thanks, rg.

Sorry about that, can you upload the attached modified file into your forums directory

rolandogomez 01-09-2007 05:47 AM

Darn you're good! Works like a charm! Thanks, rg.

butty 01-09-2007 11:54 AM

Quote:

Originally Posted by AndrewD (Post 1154292)
Yes, my difficulty is that I don't know exactly what changes you've made. The standard vb release opens a correctly sized jukebox window with none of the extra material you've added.

the changes i made were to the local_links.php page so that it adds the vbadvanced navigation menu to the left of the page. this is what i did:

Quote:

basically i have my vbadvanced set so that it shows my left vbadvanced column to the left of the ldm. i have done this by adding this to the top of local_links.php as instructed by vbadvanced

<?php
define('VBA_PORTAL', true);
define('VBA_PAGE', 'tunearchive');
it is because it is opening the page with the navigation menu to the left on still on the popup media player box that is causing the problems. is there anyways that the popupplayer can be not called from that local_links.php page at all as thats what is causing the problems

AndrewD 01-09-2007 12:45 PM

Quote:

Originally Posted by butty (Post 1154509)
the changes i made were to the local_links.php page so that it adds the vbadvanced navigation menu to the left of the page. this is what i did:



it is because it is opening the page with the navigation menu to the left on still on the popup media player box that is causing the problems. is there anyways that the popupplayer can be not called from that local_links.php page at all as thats what is causing the problems

Try the following:

Code:

<?php
if ($_GET['action']=="" or $_GET['action']=="links")) {
  define('VBA_PORTAL', true);
  define('VBA_PAGE', 'tunearchive');
}


butty 01-09-2007 03:49 PM

Quote:

Originally Posted by AndrewD (Post 1154530)
Try the following:

Code:

<?php
if ($_GET['action']=="" or $_GET['action']=="links")) {
  define('VBA_PORTAL', true);
  define('VBA_PAGE', 'tunearchive');
}


i do believe i want to have your babies!

:D lol

top man. respect for ya help its not bringing up the rest of the page now when its opening the pop up box.

can you think of a easy way to get the popup media box to stay on top all the time? as when you load up a song. then click back on the page and play another it disapears to the back of that page if u get me. i can live with that though if it isnt something simple ya could point out. you have done enough work for one day go n put ya feet up :D

Ophelia 01-10-2007 02:34 AM

Hi Andrew.. tis me again.

How would it be possible for those who are downloading to figure out the full path of a download via the download manager.

We noticed that files that are hidden and scheduled for a later date were being downloaded. Not mass, just 2 or 3 hits. I took a look and it's the same 2 individuals doing the download.

How are they doing this, but still triggering hits on the files via the download manager? If they know the direct path and are just changing the date of the download (example file one is 010107.zip and the second one is 010207.zip) then it wouldn't logically show up in the download manager as they are going directly to the file and totally bypassing the download manager.

AndrewD 01-10-2007 03:36 AM

Quote:

Originally Posted by Ophelia (Post 1155157)
Hi Andrew.. tis me again.

How would it be possible for those who are downloading to figure out the full path of a download via the download manager.

We noticed that files that are hidden and scheduled for a later date were being downloaded. Not mass, just 2 or 3 hits. I took a look and it's the same 2 individuals doing the download.

How are they doing this, but still triggering hits on the files via the download manager? If they know the direct path and are just changing the date of the download (example file one is 010107.zip and the second one is 010207.zip) then it wouldn't logically show up in the download manager as they are going directly to the file and totally bypassing the download manager.

If the problem is as described in my PM to you, then it is fixed in the forthcoming 2.2.7.

rolandogomez 01-10-2007 04:34 AM

What would be cool if we could take uploaded video files and incorporate transcoding on the downloads into flash like YouTube, some great articles out there, http://blog.go4teams.com/?p=56 and http://willy.boerland.com/myblog/you...ur_drupal_site (drupal) with other software doing this. It would save a bunch on bandwidth. Here is a great wiki entry, http://videotranscoding.wikispaces.com/

I've installed your program which I think rocks, but I'd consider paying someone to modify it so videos can be converted on the down load like Youtube and where we can use the Amazon.com S3 for storage and bandwidth, very inexpensive.

Edit--I have found a great encoder for under $40 that will encode just about any video or audio file into .flv format like YouTube. I actually took a 299MB video and encoded it to 1.2MB flash file, works beautiful in a flash player with the encoder from http://www.on2.com/ You can also download 30-day trial versions for free at http://www.on2.com/downloads/flix-demo-software/ for windows and mac.

I then added the mime type of flv Content-type: application/x-shockwave-flash to VB attachments parameters and it would not do anything, when I changed it to Content-type: video/x-shockwave-flash it allowed me to download the file on my desktop. However your player would not launch it. Anyone? I would love to be able to use LDM where members could take practically any video or audio type, transcode it on the upload and then when downloaded it would play via flash like YouTube. With on2 they also sell over 130 skins for the players for under $30. Any ideas how LDM could go one step further? Thanks, rg.

AndrewD 01-10-2007 06:10 AM

Quote:

Originally Posted by rolandogomez (Post 1155228)
What would be cool if we could take uploaded video files and incorporate transcoding on the downloads into flash like YouTube, some great articles out there, http://blog.go4teams.com/?p=56 and http://willy.boerland.com/myblog/you...ur_drupal_site (drupal) with other software doing this. It would save a bunch on bandwidth. Here is a great wiki entry, http://videotranscoding.wikispaces.com/

I've installed your program which I think rocks, but I'd consider paying someone to modify it so videos can be converted on the down load like Youtube and where we can use the Amazon.com S3 for storage and bandwidth, very inexpensive.

Edit--I have found a great encoder for under $40 that will encode just about any video or audio file into .flv format like YouTube. I actually took a 299MB video and encoded it to 1.2MB flash file, works beautiful in a flash player with the encoder from http://www.on2.com/ You can also download 30-day trial versions for free at http://www.on2.com/downloads/flix-demo-software/ for windows and mac.

I then added the mime type of flv Content-type: application/x-shockwave-flash to VB attachments parameters and it would not do anything, when I changed it to Content-type: video/x-shockwave-flash it allowed me to download the file on my desktop. However your player would not launch it. Anyone? I would love to be able to use LDM where members could take practically any video or audio type, transcode it on the upload and then when downloaded it would play via flash like YouTube. With on2 they also sell over 130 skins for the players for under $30. Any ideas how LDM could go one step further? Thanks, rg.


The flash player will be integrated in version 2.2.7. There is already a 'Wimpy addon' in 2.2.6.

I'd spotted on2.

Ideally, this is going to need server-side transcoding, and java-based uploading. Otherwise, it will be an excellent tool for the site administrator. Let's think about options.

rolandogomez 01-10-2007 06:23 AM

Andrew, I'm open for ideas, wish I was a coder and I'd help you the best I could. I'm more of a visionary (grin). I'll check "Wimpy" but I love the idea we could have a VB "YouTube" capability without being a "YouTube" clone that are out there.

If you need server testing, let me know, I have that site which you are now familiar with that we can play with. Thanks, rg.

|oR|Greg 01-10-2007 01:04 PM

I used the free FLVPLAYER.swf to play my FLV's inline, the problem of course is the transcoding. Users just want to upload stuff and be done, they don't care, and don't want to bother with saving the site space, or re-encoding their files. For my uploads I used the Riva encoder for mine.

This site does the online conversion, and you DL the output, it would be excellent to get a hold of the technololgy they're using http://media-convert.com/

|oR|Greg 01-10-2007 01:10 PM

This is also a great read. In the beginning it states that those with shared hosting need not bother because the transcoding is too cpu intensive.

http://gallery.menalto.com/node/41056

Ignicoccus 01-10-2007 02:13 PM

Thanks for this great mod !

I installed it yesterday and it ist working like a charm, except ...

Users with special characters in their username (e.g. 'A&J') get a "Unknown username" message when submitting a new link. I use the german translation.

How do I solve this ?

AndrewD 01-10-2007 02:46 PM

Quote:

Originally Posted by Ignicoccus (Post 1155502)
Thanks for this great mod !

I installed it yesterday and it ist working like a charm, except ...

Users with special characters in their username (e.g. 'A&J') get a "Unknown username" message when submitting a new link. I use the german translation.

How do I solve this ?

Thanks for reporting this - I'll check and give you a fix.

updated...

if you are comfortable editing the code, I think this should do the trick..

take a copy of includes/local_links_include.php and edit.
go to line 1670

Code:

function lookup_userids($usernames) {
        global $vbulletin;

        $ids = array();
        foreach ($usernames as $k=>$v) {
                $usernames[$k] = trim($vbulletin->db->escape_string($v));
                $ids[$k] = 0;
        }

change to

Code:

function lookup_userids($usernames) {
        global $vbulletin;

        $ids = array();
        foreach ($usernames as $k=>$v) {
                $usernames[$k] = trim($vbulletin->db->escape_string(htmlspecialchars_uni($v)));
                $ids[$k] = 0;
        }


obmob 01-10-2007 04:21 PM

So much info @.@

HAHA, greetings everyone ^^,

WebmasterSimds 01-10-2007 07:22 PM

Andrew,

I know your a busy person, but I have a question for you, when i went to upgrade to the last version, I didnt realize till someone pointed it out to me, that when someone makes a "download" that it is not posting it into the forum topics anymore.

I looked all over your site to find out how to make it all happen again, but for some reason when I do as it says in your site manual. it will not work correctly, I pulled out all other mod's because this one is the major I need. bt cant figure out what I may be doing wrong.

Can you help me in this. I did follow the direction on your site to try to make it work.

Thanks In Advance

Ignicoccus 01-10-2007 07:23 PM

Quote:

Originally Posted by AndrewD (Post 1155530)
Thanks for reporting this - I'll check and give you a fix.

updated...

if you are comfortable editing the code, I think this should do the trick..

take a copy of includes/local_links_include.php and edit.
go to line 1670

Code:

function lookup_userids($usernames) {
    global $vbulletin;

    $ids = array();
    foreach ($usernames as $k=>$v) {
        $usernames[$k] = trim($vbulletin->db->escape_string($v));
        $ids[$k] = 0;
    }

change to

Code:

function lookup_userids($usernames) {
    global $vbulletin;

    $ids = array();
    foreach ($usernames as $k=>$v) {
        $usernames[$k] = trim($vbulletin->db->escape_string(htmlspecialchars_uni($v)));
        $ids[$k] = 0;
    }


Hi Andrew,

thank you very much for your quick reply. Your code change did the trick, everything ist working fine now !!!!

AndrewD 01-11-2007 04:15 AM

Quote:

Originally Posted by WebmasterSimds (Post 1155696)
Andrew,

I know your a busy person, but I have a question for you, when i went to upgrade to the last version, I didnt realize till someone pointed it out to me, that when someone makes a "download" that it is not posting it into the forum topics anymore.

I looked all over your site to find out how to make it all happen again, but for some reason when I do as it says in your site manual. it will not work correctly, I pulled out all other mod's because this one is the major I need. bt cant figure out what I may be doing wrong.

Can you help me in this. I did follow the direction on your site to try to make it work.

Thanks In Advance

Am not clear which feature you are using. Are you talking about the autocreate-plugin.xml? You say "when someone makes a download, it's not posting into the forum topics" - the autocreate doesn't post a thread in this situation - it creates the thread, when someone adds a new entry (upload or link).

Happy to help get this working

WebmasterSimds 01-11-2007 01:15 PM

Andrew,

Sorry about me not posting it fully last night, was tired as all get out and forgot to give the full info. ok

The autocreate-plugin.xml, autocreate-2way-plugin.xml, are not working corectly I have tried them both, followed your directions on our site, and somehow it just semd to stop working. one of my forums managers spoke to me about it. , this is how i noticed it.

Now if I am not mistaken, when a catagor is made, and you set the settings up for the catagory, in there you specify that it should go to a certian topic area. not permissions. I understand that part. but the other one. Again it was working perfectly till the last release of your LDM system, then for some reason it stopped.

I did go back into it, after the upgrade, and re loaded all the xml files again, let it overwrite it, because I know sometimes when you do a upgrade you have to re load the extras that were set when you set it up the first time. but it didnt correct this problem. I also thought that maybe with the actual forums upgrade itself to 3.6.4 that maybe someting may have gotten messed up as well. Unfortunatly I can not un install it then re install it because of the thousands of downloads that are in there already. is there someting that maybe I missed ? or didnt do a correct configuration somewhere? I am pretty good at coding. but to a point. so if there is someting that you wish for me to try I will be happy to try it to resolve this. I would not use any other mod for downloads because yours is the best there is for VB.

Thanks In Advance

AndrewD 01-11-2007 01:34 PM

Quote:

Originally Posted by WebmasterSimds (Post 1156218)
Andrew,

Sorry about me not posting it fully last night, was tired as all get out and forgot to give the full info. ok

The autocreate-plugin.xml, autocreate-2way-plugin.xml, are not working corectly I have tried them both, followed your directions on our site, and somehow it just semd to stop working. one of my forums managers spoke to me about it. , this is how i noticed it.

Now if I am not mistaken, when a catagor is made, and you set the settings up for the catagory, in there you specify that it should go to a certian topic area. not permissions. I understand that part. but the other one. Again it was working perfectly till the last release of your LDM system, then for some reason it stopped.

I did go back into it, after the upgrade, and re loaded all the xml files again, let it overwrite it, because I know sometimes when you do a upgrade you have to re load the extras that were set when you set it up the first time. but it didnt correct this problem. I also thought that maybe with the actual forums upgrade itself to 3.6.4 that maybe someting may have gotten messed up as well. Unfortunatly I can not un install it then re install it because of the thousands of downloads that are in there already. is there someting that maybe I missed ? or didnt do a correct configuration somewhere? I am pretty good at coding. but to a point. so if there is someting that you wish for me to try I will be happy to try it to resolve this. I would not use any other mod for downloads because yours is the best there is for VB.

Thanks In Advance

Hi. Basically, the autocreate plugin creates threads when *new* items are added to LDM, not when there's a download (which is what confused me in your first message). However, it *only* creates the thread if the new entry is given an *associated forum* on the *add entry* page. (This may happen by default if the category into which it's put has an associated forum.)

You should not need to uninstall/reinstall anything.

I'm very happy to take a look myself, if you want - just send me a PM with your site details and an admin account.

obmob 01-11-2007 04:28 PM

Awesome Andrew... i'll test it this week, thanks!

Demon fox 01-11-2007 08:06 PM

Excellent hack deserves a nomination for hack of the month.


All times are GMT. The time now is 03:41 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.02902 seconds
  • Memory Usage 1,931KB
  • 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
  • (8)bbcode_code_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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