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)

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 01:28 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.03146 seconds
  • Memory Usage 1,760KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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