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 10-31-2007 05:14 AM

Quote:

Originally Posted by CamJM (Post 1372542)
Hi Andrew, just one small question, if I set a condition so that only people who aren't logged in see it, it doesn't appear to work. here's what I edited, I have the condition working in other areas of the site..

Code:

<tr colspan="2">
<td align="center">
<if condition="$show['guest']">
Hello Hello Hello
</if>
</td>
</tr>


LDM doesn't (currently) set the $show array. You need another test, such as

Code:

<if condition="$vbulletin->userinfo['usergroupid'] > 1">
for logged in, and

Code:

<if condition="$vbulletin->userinfo['usergroupid'] <= 1">
for not

Willygsm 10-31-2007 01:17 PM

hi andrewD, after i change the sync path now it show this

Fatal error: Maximum execution time of 30 seconds exceeded in /home/XXXXXXX/public_html/forum/includes/local_links_include.php on line 3914

how to solve this??

AndrewD 10-31-2007 01:24 PM

Quote:

Originally Posted by Willygsm (Post 1372737)
hi andrewD, after i change the sync path now it show this

Fatal error: Maximum execution time of 30 seconds exceeded in /home/XXXXXXX/public_html/forum/includes/local_links_include.php on line 3914

how to solve this??

Directory synchronisation can be expensive, especially if you allow manual resyncs.

You must either allow php to spend more than 30 seconds running scripts or you must reduce the amount of time that LDM tries to spend on the task.

The first requires editing the server's php.ini configuration file, finding the *max_execution_time* parameter, increasing the value and restarting your web server.

The second requires visiting LDM/admin/settings and checking the sync_maxcpu_allowed and sync_maxcpu_allowed_manual settings, making sure that they are well below 30 seconds.

Willygsm 10-31-2007 01:32 PM

Quote:

Originally Posted by AndrewD (Post 1372739)
Directory synchronisation can be expensive, especially if you allow manual resyncs.

You must either allow php to spend more than 30 seconds running scripts or you must reduce the amount of time that LDM tries to spend on the task.

The first requires editing the server's php.ini configuration file, finding the *max_execution_time* parameter, increasing the value and restarting your web server.

The second requires visiting LDM/admin/settings and checking the sync_maxcpu_allowed and sync_maxcpu_allowed_manual settings, making sure that they are well below 30 seconds.

thanks for reply :)
ok, actually for 1st time i didnt set for more than 30 second and sync all the files and it work. after i change the sync path now it should this. can i delete the whole folder and resync? if yes, how to delete it?

AndrewD 10-31-2007 01:43 PM

Quote:

Originally Posted by Willygsm (Post 1372745)
thanks for reply :)
ok, actually for 1st time i didnt set for more than 30 second and sync all the files and it work. after i change the sync path now it should this. can i delete the whole folder and resync? if yes, how to delete it?

Actually, you shouldn't need to do/delete anything - it should work everything out for itself. But how many files are there in the directory that it is trying to read?

You can empty and delete entire folders (categories) in LDM by going to LDM/admin/categories, select the categor(y/ies) you want rid of, then select empty or delete

Willygsm 10-31-2007 01:50 PM

Quote:

Originally Posted by AndrewD (Post 1372750)
Actually, you shouldn't need to do/delete anything - it should work everything out for itself. But how many files are there in the directory that it is trying to read?

You can empty and delete entire folders (categories) in LDM by going to LDM/admin/categories, select the categor(y/ies) you want rid of, then select empty or delete

hi AndrewD, it have 14179 files and near 400GB.

i cant delete the categories coz when i click on categories, it show this
Fatal error: Maximum execution time of 30 seconds exceeded in /home/XXXXXXX/public_html/forum/includes/local_links_include.php on line 961

AndrewD 10-31-2007 02:16 PM

Quote:

Originally Posted by Willygsm (Post 1372753)
hi AndrewD, it have 14179 files and near 400GB.

i cant delete the categories coz when i click on categories, it show this
Fatal error: Maximum execution time of 30 seconds exceeded in /home/XXXXXXX/public_html/forum/includes/local_links_include.php on line 961

Ouch...

Perhaps the directory structure that you are scanning is simply too complex to process in the cpu time allowed. The problem is how to regain control.

Go to LDM/admin/settings and turn off category_jump_menu and turn off sync_enabled.

Then try to go to admin/categories again.

Is this a production site, or are you still trying to get things set up?

By the way, are you running the latest (2.2.8-post 1) version of LDM or an older version? (Just so that I know which code to look at.)

voter 10-31-2007 02:33 PM

Is there a way a SQL query, to generate a copy of entries of LDM as a threads of a forum?

Willygsm 10-31-2007 02:41 PM

Quote:

Originally Posted by AndrewD (Post 1372764)
Ouch...

Perhaps the directory structure that you are scanning is simply too complex to process in the cpu time allowed. The problem is how to regain control.

Go to LDM/admin/settings and turn off category_jump_menu and turn off sync_enabled.

Then try to go to admin/categories again.

Is this a production site, or are you still trying to get things set up?

By the way, are you running the latest (2.2.8-post 1) version of LDM or an older version? (Just so that I know which code to look at.)

hi andrewD thanks for reply, after i off the categories now i can go to here
http://www.sw-box.com/forum/local_links.php?catid=1365

but it show 2 folder now and when i go admin setting still cant go the categories setting there
Fatal error: Maximum execution time of 30 seconds exceeded in /home/XXXXXXXX/public_html/forum/includes/local_links_include.php on line 975

??

Willygsm 10-31-2007 03:19 PM

hi andrewD, how to delete whole categories? any code to modify?

Cannot delete a category which still contains entries or subcategories.


All times are GMT. The time now is 11:40 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.03256 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
  • (3)bbcode_code_printable
  • (7)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