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)

Hades-1 10-02-2006 05:09 PM

Quote:

Originally Posted by AndrewD
Have you given yourself *can_set_permissions* permission on the LDM/admin/permissions?

ok thanks i got it now

you said i cant make threads for existing uploads already easily.........well whats the hard way then?

obmob 10-02-2006 05:09 PM

Oh, can't wait for final 2.2.6 :D

Well, i can.. and i will :)

Slave 10-02-2006 05:17 PM

Quote:

Originally Posted by AndrewD
Yes, partly to make things easier for you :):), I moved the LDM Javascript into a file.

So you need the following statement in your wraparound:

Code:

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

That's great .. thanks :) :) .. works like a charm :D

AndrewD 10-02-2006 05:23 PM

Quote:

Originally Posted by Hades-1
ok thanks i got it now

you said i cant make threads for existing uploads already easily.........well whats the hard way then?

You really want to know??

Use something like phpmyadmin, browse to the local_linkslink table, and change all the linkmoderate fields to -2.

Go into LDM, select moderate, and then accept the entries.

Hades-1 10-02-2006 05:48 PM

Quote:

Originally Posted by AndrewD
You really want to know??

Use something like phpmyadmin, browse to the local_linkslink table, and change all the linkmoderate fields to -2.

Go into LDM, select moderate, and then accept the entries.

thats quite easy actually, thanks.

i was also thinking that this page looks plain

http://mmamedia.net//local_links.php

is there anyway i can put the most recent comments/rating people made next tot he stats?

ericgtr 10-02-2006 11:47 PM

Quote:

Originally Posted by AndrewD
Step 1: Installing the plugin

-> VB/admincp/plugins and products
Download/Upload plugins
Import either autocreate-plugin.xml or autocreate-2way-plugin.xml

The first plugin creates new threads with a message with a link to the new LDM entry. The second plugin does the same, but also modifies the LDM entry description to include a link to the thread.

Once installed, the plugin is active.

Step 2: Using the plugin

The plugin runs automatically whenever a new entry is created in LDM *provided* that entry is "associated" with a forum. Entries are either "associated" with a forum by default (if the admin has set the LDM setting default_forumid), implicitly by picking it up from the category's associated forum (Add/Edit category) or explicitly in the Add Entry form, by users who have the LDM permission *can_set_permissions*.

Forum associations are normally used in LDM to set up access permissions, but this association is picked up by the plugin to decide where to post the new thread.

If an entry is created without an associated forum, the plugin does nothing.


Step 3: Modifying the plugin (Advanced Use!!)

If you want the plugin only to fire in certain LDM categories, you can edit it. There are two lines in each plugin with the php code $limitcats = array(); You need to change the array statement to include a list of the category numbers where the plugin will fire. You can find the category numbers by looking for the "catid" that is shown when you hover the mouse over a link to the category.

Normally, you will not need to worry about this - just install the plugin and let it run.

Thanks for this detailed explanation. I have tried to get this to work with the two way plugin but can't get it, I've done everything explained above. Does this work on "scanned" directories?

AndrewD 10-03-2006 04:03 AM

Quote:

Originally Posted by ericgtr
Thanks for this detailed explanation. I have tried to get this to work with the two way plugin but can't get it, I've done everything explained above. Does this work on "scanned" directories?

It won't work when you do LDM/admincp/categories/scan, as that route through the code does not trigger the plugins.

The plugins fires in these two cases:

a) Normal "Add Entry" when moderation is off
b) Moderate "Accept Entry" when moderation is on

They only fire if the entry has been given an associated forum (explicitly or implicitly) which is open for posting.

ericgtr 10-03-2006 01:01 PM

Quote:

Originally Posted by AndrewD
It won't work when you do LDM/admincp/categories/scan, as that route through the code does not trigger the plugins.

The plugins fires in these two cases:

a) Normal "Add Entry" when moderation is off
b) Moderate "Accept Entry" when moderation is on

They only fire if the entry has been given an associated forum (explicitly or implicitly) which is open for posting.

Okay, that's what I figured. I have around 250 files that I scanned in, is there a query that I can run to associate these to make my life easier? :)

AndrewD 10-03-2006 03:54 PM

Quote:

Originally Posted by ericgtr
Okay, that's what I figured. I have around 250 files that I scanned in, is there a query that I can run to associate these to make my life easier? :)

Do I understand you right? You want to create 250 threads, each one pointing to one of your entries in LDM?

Funny thing is, I answered this same question two days ago - take a look at post 424 just above.

|oR|Greg 10-03-2006 04:24 PM

Made a new _greg template, and altered the _main to fit the various template column headings based on $catid. :D I'm quite proud.

For example, here you'll see that the headings are Download/File Information/Date/Downloads http://www.amacny.com/vb/local_links.php?catid=7

Whereas here you'll see the headings are Follow Link/Link Information/Date/Hits http://www.amacny.com/vb/local_links.php?catid=5

Here is a completely custom template with no column headers http://www.amacny.com/vb/local_links.php?catid=4

Any newly added categories would get the defaul column header that just says "Entries", unless included in the _main array.


All times are GMT. The time now is 06:04 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.02182 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)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
  • (4)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