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 03-29-2007 06:12 PM

Quote:

Originally Posted by maroceve (Post 1215217)
Hi there :)

2 BUGs : When i try to upload with a basic registered user it tells me that i the DATE IS WRONG ?

and also. The basic registered users don't have the option to change date when uploading the folder.

I am using the french translation.

Please test the basic account here are the login pass animal/animal

http://www.maroceve.com/forums/local_links.php

Thanks for the report. I thought I'd dealt with this problem, but obviously not. There's some code deep inside vb that catches and modifies time and date conversions.

Users can modify the time/date in LDM if you give them can_moderate_link permission.

AndrewD 03-29-2007 06:46 PM

Quote:

Originally Posted by Yorixz (Post 1215475)
Little support request in addition to the other 100 pages of this topic; Where would I need to alter the plugin code of automatic topic generation?

On my forum I don't want users to be able to manually post in the board I'm using for the automatically generated topics (spam related issues), but this is currently required for the plugin to work. I can't find where to alter this in order to remove this functionality though.

includes/local_links_misc.php, around line 1330, function ldm_create_thread

there's a sequence
Code:

        $forumperms = fetch_permissions($forumid);
        if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew'])) {
                return;
        }

If you want to post in a blocked forum, I suspect that you'll have to modify this code to temporarily give the current user permission to post, otherwise the subsequent call to build_new_post will probably fail

Demon fox 03-29-2007 06:49 PM

Any news on my prob?

Alfa1 03-29-2007 07:02 PM

Andrew,

I asked you this by PM as well, but I think the answer to this question will be usefull to others:

I am very thrilled about the new video features in LDM. How do I change the video entries that I have in my LDM so that they'll be played in LDM, instead of linking to youtube, etc?

Edit: I did install the Flash-Sites plug in BTW. And a few work.

AndrewD 03-29-2007 07:06 PM

Hang on guys :) I can only sort out one thing at a time.... There's a little problem with French date and time settings which is driving me crazy at the moment.

obmob 03-29-2007 10:40 PM

Quote:

Originally Posted by Demon fox (Post 1213953)
Hey is it possible to make it so that categorys have there own upload folder, so when a user uploads a file in a category it uploads into the folder set for it?

Sounds neat... i run something similar, of course i only allow my users to upload to one category, they i move everything one by one to the desired folder, not the best, but is working for me. :p

Quote:

Originally Posted by AndrewD (Post 1215512)
Hang on guys :) I can only sort out one thing at a time.... There's a little problem with French date and time settings which is driving me crazy at the moment.

Don't give up! :D

PitchouneN64ngc 03-29-2007 10:53 PM

Quote:

Originally Posted by AndrewD (Post 1215512)
Hang on guys :) I can only sort out one thing at a time.... There's a little problem with French date and time settings which is driving me crazy at the moment.

It's a problem with my translation or about your code Andrew? :)

For the date, the only thing I can give to you is the date function used. The locale is set to "french", and it use the strftime() PHP function. ( http://php.net/strftime ).

Maybe this can help you to understand the problem ;)

AndrewD 03-30-2007 04:16 AM

Quote:

Originally Posted by PitchouneN64ngc (Post 1215684)
It's a problem with my translation or about your code Andrew? :)

For the date, the only thing I can give to you is the date function used. The locale is set to "french", and it use the strftime() PHP function. ( http://php.net/strftime ).

Maybe this can help you to understand the problem ;)

It's not a problem with your translation - the difficulty has been to get my code to work correctly with the vb code for all combinations of timezone, language settings and daylight savings time. This has only just become an issue, because some boards want to be able to guarantee to the hour when an item will become visible, with submitting users working in different timezones. I've been relying too much on vbdate() to sort things out - I think I've got it sorted out in my mind now.

Yorixz 03-30-2007 06:56 AM

Quote:

Originally Posted by AndrewD (Post 1215500)
includes/local_links_misc.php, around line 1330, function ldm_create_thread

there's a sequence
Code:

        $forumperms = fetch_permissions($forumid);
        if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostnew'])) {
                return;
        }

If you want to post in a blocked forum, I suspect that you'll have to modify this code to temporarily give the current user permission to post, otherwise the subsequent call to build_new_post will probably fail

Thanks a lot for this help AndrewD, however, I'm still having one problem. Right now the threads are only generated when an administrator also fills in a valid forum. The feature I'm looking for is topic generation for everyone who submits a file (permissions should be handled now, but where can I find the code that handles what board to select (I want to change it to the one used for the view permissions). Thanks in advance.

AndrewD 03-30-2007 07:01 AM

Quote:

Originally Posted by Yorixz (Post 1215933)
Thanks a lot for this help AndrewD, however, I'm still having one problem. Right now the threads are only generated when an administrator also fills in a valid forum. The feature I'm looking for is topic generation for everyone who submits a file (permissions should be handled now, but where can I find the code that handles what board to select (I want to change it to the one used for the view permissions). Thanks in advance.


includes/local_links_misc.php

function announce_link_in_forum

First parameter is the forumid of the forum in which to create the thread.


All times are GMT. The time now is 04:19 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.03339 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (8)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