Re: Cache system do not work
Quote:
Originally Posted by grynmoors
how did you get rid of the weird date thing?
I have deleted a lot of template code,:D ( to make the script fast)
Quote:
Originally Posted by grynmoors
the polls get broken returning a smarty error!
I don't know. I have not putted polls to my site.
We can't do some changes due to the Zent Optimizer. OK Zent make the PHP fast but we can't make our own plugins and changes.
There is a website with vshare that is using this cache system. xhamster.com.
Re: Cache system do not work
OMG!!!! PLEASE WARN US ABOUT LINKS TO SMUT SITES!!!!!!!!!!!!!!
If they 're already using the cache system, ask their webmaster how they got the cache system to work.
Turning on the cache system breaks the polls, when you view "current status" it returns a smarty error! (I am advising you, not asking...if you try to put a poll, it will be broken).
I also still need to know how you got rid of the date thing. I understand you removed a lot of code, but which one, in particular, is creating the date that needs to be removed?
Re: Cache system do not work
I think script developers should look at this because they know what they have done. I cannot see the PHP script because is in zent. Maybe they gave the script to xhamster.com in PHP.
Note: If you want 30% more speed just :
1. Delete the info comments at files "include/smarty/libs/Smarty.class.php" & "include/smarty/libs/Smarty_Compiler.class.php"
2. Go to "public_html/include/player.inc" and add player settings from there not from admin panel..
Re: Cache system do not work
I would imagine that removing the comments from *everything* wouldn't hurt either!
UPDATE
Eliminating the comments in ALL the files in the 'libs' directory shrunk the size of the directory by nearly 100K!!!
I'll be going thru every uncoded file and eliminating every comment that I can find!
Re: Cache system do not work
Rammstein
Could you give me an example of the settings to use for the player? Every time I do something to it, it completely screws up the player. Let's say the player in admin is set for 440W x 360H...what would be the player settings I'd need to use in player.inc?
Re: Cache system do not work
Code:
<script type="text/javascript" src="http://yoursite.com/player/swfobject.js"></script>
<?php
$vshare_player = <<<EOT
<p id="vshare_player">Get Flash to see this player.</p>
<script type="text/javascript">
var so = new SWFObject("http://yoursite.com/player/player.swf","vshare_player","540","440","8");
so.addParam("allowfullscreen","false");
so.addVariable("file","{$file}");
so.addVariable("image","http://yoursite.com/thumb/$video_id.jpg");
so.addVariable("logo","http://yoursite.com/templates/images/watermark.gif");
so.addVariable("link","http://yoursite.com/index.php");
so.addVariable("width","540");
so.addVariable("height","440");
so.addVariable("displayheight","420");
so.addVariable("overstretch", "true");
so.addVariable("autostart", "false");
so.addVariable("bufferlength", "7");
so.write('vshare_player');
</script>
EOT;
You can make the settings you want. :wink:
Re: Cache system do not work
THANKS!!!!!!!!!!!!!!!!!!!!