Media Box on appsprotech

Create fresh and professional look of personal or blog websites with AppsPro Tech
GK User
Mon Oct 01, 2012 11:46 pm
Hi
I'm tryng yo use the media box from appsite in appsprotech.

- I've copy gk.video.js file from AppSite js directory and paste it on ../gk_appsprotech/js/gk.video.js
- Add this code on gk_stuff.css that its on this link; https://www.gavick.com/forums/123/how-t ... -8291.html
- ../gk_appsite/images/video_frame.png
../gk_appsite/images/style1/video_icon.png

and copy to appsprotech
../appsprotech/images/video_frame.png
../appsprotech/images/video_icon.png

but i cannot paste the code "<script type="text/javascript" src="<?php echo $this->templateurl() . '/js/gk.video.js'; ?>"></script>" in the head.php.

It gives an error and the site doesnt open.

What now?
The site is http://tinyurl.com/bw3cedg

Thanks
User avatar
Expert Boarder

GK User
Tue Oct 02, 2012 7:50 am
Please paste here the code that you've added to head.php file - I'll check this.
User avatar
Platinum Boarder

GK User
Tue Oct 02, 2012 10:06 am
The same that its in this link, in the position it says there.
https://www.gavick.com/forums/123/how-t ... -8291.html
But its not there by now, cause it gives an erro page.
User avatar
Expert Boarder

GK User
Tue Oct 02, 2012 11:11 pm
Hmm... maybe this is stupid question but did you add include declaration for gk.video.js script in template head area ?
User avatar
Platinum Boarder

GK User
Tue Oct 02, 2012 11:19 pm
Didn't understand your question...
i had this:

<script type="text/javascript" src="<?php echo $this->templateurl() . '/js/gk.video.js'; ?>"></script>

before this

<?php if($this->getParam('css_override')) $document->addStylesheet($this->templateurl() . '/css/override.css'); ?>

in the head.php
User avatar
Expert Boarder

GK User
Wed Oct 03, 2012 10:05 am
Please send me ftp details via PM with link to forum topic - I'll look whether the library is correctly included to site because I can't see it via firebug so probably simply the script is not added to head.
User avatar
Platinum Boarder

GK User
Thu Oct 04, 2012 4:05 am
Off course is not added to the head.php, because if i add, the site wont work.
It show a blank page saying theres an error on head.php in the line i added the script above!
User avatar
Expert Boarder

GK User
Thu Oct 04, 2012 9:43 am
So if there is an error you have wrongly include script - that's all. I don't see any PM message from you so I can't check code.
User avatar
Platinum Boarder

GK User
Tue Oct 09, 2012 7:59 pm
i have sent the PM.
Thanks
User avatar
Expert Boarder

GK User
Thu Oct 11, 2012 9:54 am
I don't get any message from you, if you can't send it via PM please use this mail
bkrztuk[at]gavick.com
User avatar
Platinum Boarder

GK User
Fri Oct 12, 2012 10:42 am
Why do my PM stays in the Outbox and dont send??
User avatar
Expert Boarder

GK User
Mon Oct 15, 2012 2:48 am
Resolved
User avatar
Expert Boarder

GK User
Tue Oct 16, 2012 9:42 am
For other users - moving some part of script from another template demands including this script in head area of new template (file layouts/blocks/head.php).
User avatar
Platinum Boarder


cron