-
AuthorPosts
-
February 9, 2016 at 7:18 pm #880163
Hi,
I am trying to insert PHP CODE into a box in my landing page but when I insert de code my index page shows me in white.I use the same code in a "article" and the article shows me ok.
What must I do to insert php code?
Adicional information:
Template: uber – [Medicare] Home
Module: JoomlArt Advanced Custom Module (Features Intro : style-11)
BOX: Feature Description
CODE: the code that I want to show is<?php $query = $db->getQuery(true); $query->select($db->quoteName(array('FARMACIA', 'DIRECCION'>); $query->from($db->quoteName('guardias'>; // $query->where($db->quoteName('FECHA') . ' LIKE "'. date('Y-m-d') . '"' ); $query->where($db->quoteName('FECHA')." = ".$db->quote(date('Y-m-d'>); $db->setQuery($query); $row = $db->loadRowList(); echo $row['0']['0']; echo $row['0']['1']; ?>
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 10, 2016 at 3:26 am #880443Hi,
Try to add that code above to templates/uber/acm/features-intro/tmpl/style-11.php file
Regards
February 10, 2016 at 6:10 am #880520Hi Ninja Lead,
This file (templates/uber/acm/features-intro/tmpl/style-11.php) show the code, but I try to add my PHP-CODE in one of the boxes (columms).You can show it in the URL: goo.gl/eJPtAY
I try to add in the box where now you can read "FARMACIA DE GUARDIA Hoy es Miercoles 10 de Febrero del 2016"Can you help me?
Thanks.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 11, 2016 at 1:15 pm #881352February 11, 2016 at 9:59 pm #881586Hi,
I would like insert the PHP-CODE in the box. I attach an image (BOX_SCREAN.png) where I am trying the pgp-code.Now, I insert the code in a new module, but I need insert in the box.
Can you help me?
Thanks
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 15, 2016 at 5:47 am #883141Below solution should help you to add the code above into latest block
templates/uber/acm/features-intro/tmpl/style-11.php file
<?php if ($i==$count-1) { $query = $db->getQuery(true); $query->select($db->quoteName(array('FARMACIA', 'DIRECCION'>); $query->from($db->quoteName('guardias'>; // $query->where($db->quoteName('FECHA') . ' LIKE "'. date('Y-m-d') . '"' ); $query->where($db->quoteName('FECHA')." = ".$db->quote(date('Y-m-d'>); $db->setQuery($query); $row = $db->loadRowList(); echo $row['0']['0']; echo $row['0']['1']; } ?>
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 5 replies, has 2 voices, and was last updated by Ninja Lead 8 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum