Loading...
 
Skip to main content

Development


Shadowbox/ colorbox code tiki 4.0

Hello all,
I am trying to modify the tikicode so that you can keep shadowbox instead of colorbox in tiki 4.0. I cant quite figure where to modify the phplayers block, and the css menus block so that you can insert the code from this page :http://www.shadowbox-js.com/usage.html I have tried accessing the header.tpl file to track down how exactly the code is entered. I think I might need "johnbradley" help 😉

In Tiki 4, javascript, CSS, and so on can be added to HTML head without editing header.tpl. Just input it on the Look and Feel admin page's Custom HTML head Content textarea. It places lines at the end of the head section, so any required libraries will already be loaded. Script urls can be input as is, but script tags that contain script need to be wrapped in {literal}{/literal} tags.

Hope it works ok. I've been wanting to use Infinite Carousel and it was working fine up until about three weeks before 4.0 was released, but then some code change broke it and I have no idea what the problem is. The Javascript loads ok (if I recall correctly) but doesn't have an effect. Maybe the jonnyb help is needed here (he implemented jquery in Tiki).

-- Gary


Well I can now see it in the sourcecode of the site- so that trick worked. But still my images/ pages aren't loading in shadowbox....I have come to notice I still have my old version of shadowbox in there, as well as the new 3.0 version. Can this be causing hell, or should I be looking elsewhere. But good tip on that "custom HTML head area."

BTW hi Gary!!


Hi Brett,

As I mentioned, I've been having some trouble getting additional javascript to work, too. I just did a simple javascript alert test, and confirmed that the javascript entered in the L&F admin does work. But there is a breakdown somewhere with these more complex scripts (maybe something different in each case).

By the way, why do you want to use shadowbox instead of colorbox?

-- Gary