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)

obmob 10-03-2007 03:58 PM

About templates, is it possible to add more linkbits? :p

I modified the short and the normal linkbit, but i would like to use your current short also. :D

Greetings

AndrewD 10-03-2007 05:49 PM

Quote:

Originally Posted by obmob (Post 1352197)
About templates, is it possible to add more linkbits? :p

I modified the short and the normal linkbit, but i would like to use your current short also. :D

Greetings

This is possible but requires changes to the code. It is something that I have intended to make easily available via the LDM/admin pages at some stage, but never quite finished.

Basically, you do the following:

- create a new template within your vbulletin/admincp, for example called links_mylinkbit
- edit includes/local_links_admininclude.php
- find a group of lines (around line 550) which look like this:

PHP Code:

require_admin_row($seq++, 'links_linkbit'serialize(array("name"=>"Modern""collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>1"altbit"=>0)), 'define_linkbit'1); 

- add a new line with slightly changed values, e.g.

PHP Code:

require_admin_row($seq++, 'links_mylinkbit'serialize(array("name"=>"My Linkbit""collapse"=>"links_linkbit_short""defcol"=>1"maxcol"=>1"altbit"=>0)), 'define_linkbit'1); 

- if you take a look at the comments in the code, you can probably work out what the other parameters do.

- re-install the LDM product installer.
- the new template will then be available in the same way as other LDM linkbits

OK?

yahoooh 10-03-2007 07:17 PM

bug :
when synchronise category with folder and this folder contain subfolders , it will not add any entries from subfolders even i make the sync_depth = 2 or 3 or 100

i choose sync_populate_categories "no"

sync_populate_entries "yes"

it is only add entries from the folder but not subfolders under it

IrPr 10-03-2007 07:33 PM

Quote:

Originally Posted by obmob (Post 1352197)
About templates, is it possible to add more linkbits? :p

I modified the short and the normal linkbit, but i would like to use your current short also. :D

Greetings

Or just this simple query:
[SQL]INSERT INTO `FORUM`.`LOCAL_linksadmin` (`settingname`, `setting`, `sequence`, `rowtype`, `rowtitle`, `canoverride`, `catid`) VALUES ('links_linkbit_movie', 'a:4:{s:4:"name";s:5:"Movie";s:6:"defcol";i:1;s:6: "maxcol";i:4;s:6:"subbit";s:15:"links_subcatbit";} ', 50011, 'define_linkbit', '', 1, -1);
[/SQL]

Where FORUM is your forum table and LOCAL_ is your LDM table prefix
This query adds Movie template_linkbit which points to links_linkbit_movie template,
If you want to change your template_linkbit name you have to change 5 ( exact before :"Movie" ) to your template_linkbit display name's length

Edit: You have to add linksbit_linkbit_movie template manually
Please BACKUP your linksadmin table before executing this query or test on your local/test forum

yahoooh 10-03-2007 10:39 PM

also another bug :
duplicate entries when use manual synchronise , this occure sometimes !

AndrewD 10-04-2007 03:47 AM

Quote:

Originally Posted by yahoooh (Post 1352320)
bug :
when synchronise category with folder and this folder contain subfolders , it will not add any entries from subfolders even i make the sync_depth = 2 or 3 or 100

i choose sync_populate_categories "no"

sync_populate_entries "yes"

it is only add entries from the folder but not subfolders under it

I suppose this is a question of definition. It's doing what you told it to do. If sync_populate_categories is set to no, the synchronisation code resyncs the current directory/category but does not track through subdirectories/subcategories. If you have manually created synced subcategories (or created them automatically, then switch off sync_populate_categories), these are resynced when someone visits them.

AndrewD 10-04-2007 04:25 AM

Quote:

Originally Posted by IrPr (Post 1352331)
Or just this simple query:
[SQL]INSERT INTO `FORUM`.`LOCAL_linksadmin` (`settingname`, `setting`, `sequence`, `rowtype`, `rowtitle`, `canoverride`, `catid`) VALUES ('links_linkbit_movie', 'a:4:{s:4:"name";s:5:"Movie";s:6:"defcol";i:1;s:6: "maxcol";i:4;s:6:"subbit";s:15:"links_subcatbit";} ', 50011, 'define_linkbit', '', 1, -1);
[/SQL]

Where FORUM is your forum table and LOCAL_ is your LDM table prefix
This query adds Movie template_linkbit which points to links_linkbit_movie template,
If you want to change your template_linkbit name you have to change 5 ( exact before :"Movie" ) to your template_linkbit display name's length

Edit: You have to add linksbit_linkbit_movie template manually
Please BACKUP your linksadmin table before executing this query or test on your local/test forum

Be careful - patching the admin table will work but it's not guaranteed to continue to work following an upgrade.

AndrewD 10-04-2007 04:26 AM

Quote:

Originally Posted by yahoooh (Post 1352420)
also another bug :
duplicate entries when use manual synchronise , this occure sometimes !

I've never seen this. I'll be keen to see a reproducible case, if possible.

yahoooh 10-04-2007 12:43 PM

Quote:

Originally Posted by AndrewD (Post 1352567)
I suppose this is a question of definition. It's doing what you told it to do. If sync_populate_categories is set to no, the synchronisation code resyncs the current directory/category but does not track through subdirectories/subcategories. If you have manually created synced subcategories (or created them automatically, then switch off sync_populate_categories), these are resynced when someone visits them.

i want to explain more :

i have one category and i just need to enter all files that in a folder and about 100 subfolders in the same category , i did not need to make subcategory for each subfolder

so in this case it is not work

about duplicate content
when i wrote the folder as /folder/
it will not duplicate
but when i write /folder without training slash
it give me duplicate entries

also the template for description of the entries is not work to give automatic description for entries !


suggestion:
1.multiple templates for choose of them , for description of entries
2.specific template for specific category "show"

AndrewD 10-04-2007 01:36 PM

Quote:

Originally Posted by yahoooh (Post 1352780)
i want to explain more :

i have one category and i just need to enter all files that in a folder and about 100 subfolders in the same category , i did not need to make subcategory for each subfolder

so in this case it is not work

about duplicate content
when i wrote the folder as /folder/
it will not duplicate
but when i write /folder without training slash
it give me duplicate entries

also the template for description of the entries is not work to give automatic description for entries !


suggestion:
1.multiple templates for choose of them , for description of entries
2.specific template for specific category "show"

OK, these are extensions to the current functionality. I'll look into how they might be implemented and let you know.


All times are GMT. The time now is 06:47 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.03292 seconds
  • Memory Usage 1,767KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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