Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Plugin Based Template Cache Details »»
Plugin Based Template Cache
Version: 1.0.3, by orban orban is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.0 Rating:
Released: 07-22-2006 Last Update: Never Installs: 153
Uses Plugins
Additional Files  
No support by the author.

Removed on author's request.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 10-12-2006, 04:00 PM
mrcrx mrcrx is offline
 
Join Date: Jun 2004
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im very new at this so how do I chmod 777 a folder since my host said I have to do it. thanks.
Reply With Quote
  #123  
Old 10-12-2006, 04:04 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have FTP or SSH access to your server?

FTP: Right click on the folder and select something like "Properties", "Options", "Permission" and set it to 777.

SSH: chmod 777 /path/to/the/folder
Reply With Quote
  #124  
Old 10-12-2006, 04:22 PM
mrcrx mrcrx is offline
 
Join Date: Jun 2004
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I did that and everything is working but the shoutbox. I did the mod to it but I dont understand where to put the shoutbox code within the forumhome templete. I would like it where it was on the top. thanks for the quick responce.
Reply With Quote
  #125  
Old 10-12-2006, 04:25 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ask in the shoutbox thread I didn't make that mod
Reply With Quote
  #126  
Old 10-12-2006, 04:28 PM
mrcrx mrcrx is offline
 
Join Date: Jun 2004
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL thats not good. Whats the reason in post 34 to mod it? should I put it back or is this worth it to try and figure it out.
Reply With Quote
  #127  
Old 10-12-2006, 04:39 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pardon?
Reply With Quote
  #128  
Old 10-12-2006, 04:44 PM
mrcrx mrcrx is offline
 
Join Date: Jun 2004
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orban
Glad to hear!

-----

vBShout:

https://vborg.vbsupport.ru/showthrea...hlight=vbshout

I assume you mean this vBShout version.

Edit the plugin "vBShout [Template Alteration]" and comment out this line:

Code:
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);
Code:
/*$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);*/
Then modify the template "FORUMHOME" and add

Code:
$Shoutbox
where you want to have the shoutbox.

This of course disables the placement using the "vBShout Position" option in the admincp.

sorry my questions is, Is the above needed? Right now im running your code without it.
Reply With Quote
  #129  
Old 10-12-2006, 04:47 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it works then you don't need it...?
Reply With Quote
  #130  
Old 10-16-2006, 07:55 PM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sometimes I received this error

Quote:
Warning: include(/home/xxxx/public_html/satforum/templates/8808.php) [function.include]: failed to open stream: No such file or directory in /includes/class_postbit.php(300) : eval()'d code(1) : eval()'d code on line 1

Warning: include() [function.include]: Failed opening '/home/xxxxx/public_html/satforum/templates/8808.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /includes/class_postbit.php(300) : eval()'d code(1) : eval()'d code on line 1
This error also create segfault in my system than after this error load goes high load.When this error occured manualy delete include /templates folder.

Normaly this error occured showthread pages...

Thanks
Reply With Quote
  #131  
Old 10-16-2006, 07:57 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you try to add a "slam protection"? Like a if (rand()<0.1) or something before locking and creating the file. Let me know if you want me to add it

Might be too many users trying to create the file and/or users accessing parts of template cache when not all files are yet created.

This is of course not a real solution but will just lower the chance it will happen...

For a real solution...m..that's tough.

An option would be to limit the creating of template files to a certain userid, and then you just browse all the pages, so the cache gets created, and only then it will be available for all users....but it's kinda hard to browse all pages. I dunno

Line 51 to:

Code:
if (rand() < 0.1 && $vbulletin->options['pbtc_seperate'] && strlen($temp['template']) > intval($vbulletin->options['pbtc_limit']) && !in_array($temp['title'], $exclude)) {
Line 75-81:

Code:
			if (rand() < 0.1)
			{
				$fp = fopen($templatefile, 'w+');
				if ($fp && flock($fp, LOCK_EX))
				{
					fwrite($fp, '<?php '.$cache_to_save.' ?>');
					flock($fp, LOCK_UN);
					fclose($fp);
				}
			}
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08723 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete