Custom javascript code to footer - Page 2 Custom javascript code to footer - Page 2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Custom javascript code to footer

Started by mykee, August 14, 2013, 10:01:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

I haven't noticed any issues yet (have used that approach in some plugins so far).

mykee

Ok, here is my plugin latest version.

Try these:
- check in Plugin Manager my Isotope liines. This ok.
- open codebase.php
- find this:
if (file_exists("./plugins/isotope/lang/{$CONFIG['lang']}.php")) {
  require "./plugins/isotope/lang/{$CONFIG['lang']}.php";
} else {require "./plugins/isotope/lang/english.php";}

- replace with:
require('./plugins/isotope/include/init.inc.php');
- go to Plugin Manager, and see Isotope section. You will not see anything from language strings.
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mykee

(I cannot edited my previous post.)
Check global $lang_plugin_isotope in footer functions, like this:

function isotope_footer_addons($html) {

global $CONFIG,$ISOTOPESET,$CPG_PHP_SELF,$lang_plugin_isotope;

print_r ($lang_plugin_isotope); exit;

Will not get anything! Like $lang_plugin_isotope is empty.
But this working under this:
function isotope_mainpage($matches)
{
global $CONFIG,$lang_plugin_isotope,$FORBIDDEN_SET,$ISOTOPESET,$lang_meta_album_names,$lang_common,$META_ALBUM_SET, $CPG_PHP_SELF,$matches,$html;

print_r ($lang_plugin_isotope); exit;

::)
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Αndré

If it works as expected in the plugin manager, why do you want to replace it?

It probably doesn't work in the footer as I haven't found where you made that array global.

mykee

My plugin working now correctly, what I uploaded at latest time.
If you not found any bug or error in this, then goes to plugins, if JQuery licenses has enable this.  :)
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Αndré

I haven't tested your plugin nor had a closer look at its files. If you think your plugin is ready for public, please start a new thread that describes what your plugin does etc. and attach your plugin file.