![]() |
To cache templates in a plugin use the cache_templates hook and this code ;
PHP Code:
|
Quote:
|
hey gary when i try to add a link i get this error
Fatal error: Call to undefined function: handle_ed2k_links() in /kunden/137092_81737/www.e-paylas.de/forum/includes/class_bbcode.php on line 1071 |
check that you put the code in the class_bbcode.php file after this.
Code:
* Returns whether this parser is a WYSIWYG parser. Useful to change Code:
* Returns whether this parser is a WYSIWYG parser. Useful to change Code:
|
Quote:
|
The hack has now been updated again.
All templates are "cached" now in the "plug-in", no need to edit the global.php file, instuctions have been updated in download to reflect this change. Please re-download and install the hack via the plug-in (remove the other version first). And remove all edits to your global.php file if you made any to cache templates. |
Thanks
|
So why, after i gave you the code have you created two cache_template plugins, and used array_merge .......
|
Paul, not sure what you mean. You know a lot more than me and I had to look at another hack to see how they had cached the templates and followed there way. If you can do it a better way. Please feel to post the full plug-in code here with your cache template code added to do it a better way. And I will update the plug-in with your code posted.
Pretty new to this plug-in coding |
That's not the way its done. :)
You create/edit plugins in your ACP and then export the product as an XML file afterwards, not try and add them directly to the XML file. If you look in your plugins for this product, you will find you now have two associated with the cache_templates hook. Delete one, edit the other to contain the two lines of code I gave you, and then re-export it. |
All times are GMT. The time now is 01:56 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|