help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Forum | maybe an update / or layout isse. (code block formatting)
Forum | maybe an update / or layout isse. (code block formatting)
2 months 3 weeks ago
Hi there,
as this is the general section.
Is it possible that someone takes a look at the styling or issue that's with the code block? Did try it a few days ago and displaying php was not possible without weird formatting etc.
There are other things too but but well just wondering this one first.
as this is the general section.
Is it possible that someone takes a look at the styling or issue that's with the code block? Did try it a few days ago and displaying php was not possible without weird formatting etc.
There are other things too but but well just wondering this one first.
JEM 5.1.0 + Joomla 6
Please Log in or Create an account to join the conversation.
Re: Forum | maybe an update / or layout isse. (code block formatting)
2 months 3 weeks ago - 2 months 3 weeks ago
You mean something like:
?
For me the only strange thing is the huge "Code:" as label, this could be removed
Code:
<?php
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Table\Table;
use Joomla\Registry\Registry;
use Joomla\CMS\Version;
use Joomla\Filesystem\File;
use Joomla\Filesystem\Folder;
use Joomla\Filesystem\Path;
For me the only strange thing is the huge "Code:" as label, this could be removed
Happy with the support?
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Last edit: 2 months 3 weeks ago by hekla.
Please Log in or Create an account to join the conversation.
Re: Forum | maybe an update / or layout isse. (code block formatting)
2 months 3 weeks ago - 2 months 3 weeks ago
that but also coloring.
hmm will test a bit
piece of model | php
===============
javascript
hmm will test a bit
piece of model | php
===============
Code:
defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\MVC\Model\AdminModel; use Joomla\CMS\Table\Table; use Joomla\CMS\Language\Text; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseDriver; use Joomla\Registry\Registry; require_once JPATH_SITE . '/components/com_jem/classes/customfields.class.php'; /** * JEM Component Settings Model * */ class JemModelSettings extends AdminModel { /** * Constructor */ public function __construct($config = array(), $factory = null) { parent::__construct($config, $factory); // Set the dispatcher for Joomla 6 compatibility if (method_exists($this, 'setDispatcher')) { $this->setDispatcher(Factory::getApplication()->getDispatcher()); } } /** * Method to get the record form. * * @param array $data Data for the form. * @param boolean $loadData True if the form is to load its own data (default case), false if not. * @return mixed A JForm object on success, false on failure */ public function getForm($data = array(), $loadData = true) { // Get the form. $form = $this->loadForm('com_jem.settings', 'settings', array('control' => 'jform', 'load_data' => $loadData)); if (empty($form)) { return false; } return $form; }
javascript
Code:
[color=#073642]function[/color] [color=#268bd2]initialize[/color]() { [color=#93a1a1]/* coordinates */[/color][color=#073642]var[/color] [color=#268bd2]lat[/color] [color=#859900]=[/color] [color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'latitude'[/color]).[color=#268bd2]value[/color];[color=#073642]var[/color] [color=#268bd2]long[/color] [color=#859900]=[/color] [color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'longitude'[/color]).[color=#268bd2]value[/color]; [color=#93a1a1]/* address */[/color][color=#073642]var[/color] [color=#268bd2]title[/color] [color=#859900]=[/color] [color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'venue'[/color]).[color=#268bd2]value[/color];[color=#073642]var[/color] [color=#268bd2]city[/color] [color=#859900]=[/color] [color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'city'[/color]).[color=#268bd2]value[/color];[color=#073642]var[/color] [color=#268bd2]postalCode[/color] [color=#859900]=[/color] [color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'postalCode'[/color]).[color=#268bd2]value[/color];[color=#073642]var[/color] [color=#268bd2]street[/color] [color=#859900]=[/color] [color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'street'[/color]).[color=#268bd2]value[/color]; [color=#073642]var[/color] [color=#268bd2]myLatlng[/color] [color=#859900]=[/color] [color=#859900]new[/color] [color=#268bd2]google[/color].[color=#268bd2]maps[/color].[color=#268bd2]LatLng[/color]([color=#268bd2]lat[/color], [color=#268bd2]long[/color]); [color=#073642]var[/color] [color=#268bd2]myMapOptions[/color] [color=#859900]=[/color] {zoom: [color=#d33682]16[/color], center: [color=#268bd2]myLatlng[/color], mapTypeId: [color=#268bd2]google[/color].[color=#268bd2]maps[/color].[color=#268bd2]MapTypeId[/color].[color=#cb4b16]ROADMAP[/color], disableDefaultUI: [color=#b58900]false[/color]}; [color=#073642]var[/color] [color=#268bd2]map[/color] [color=#859900]=[/color] [color=#859900]new[/color] [color=#268bd2]google[/color].[color=#268bd2]maps[/color].[color=#268bd2]Map[/color]([color=#268bd2]document[/color].[color=#268bd2]getElementById[/color]([color=#2aa198]'map-canvas'[/color]), [color=#268bd2]myMapOptions[/color]); [color=#93a1a1]// check for zero[/color][color=#859900]if[/color] ([color=#268bd2]lat[/color] [color=#859900]==[/color] [color=#d33682]0.000000[/color]) {[color=#268bd2]lat[/color] [color=#859900]=[/color] [color=#b58900]null[/color];} [color=#859900]if[/color] ([color=#268bd2]long[/color] [color=#859900]==[/color] [color=#d33682]0.000000[/color]) {[color=#268bd2]long[/color] [color=#859900]=[/color] [color=#b58900]null[/color];}
JEM 5.1.0 + Joomla 6
Last edit: 2 months 3 weeks ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: Forum | maybe an update / or layout isse. (code block formatting)
2 months 3 weeks agoCode:
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Model\AdminModel;
use Joomla\CMS\Table\Table;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\Database\DatabaseDriver;
use Joomla\Registry\Registry;
require_once JPATH_SITE . '/components/com_jem/classes/customfields.class.php';
/**
* JEM Component Settings Model
*
*/
class JemModelSettings extends AdminModel
{
/**
* Constructor
*/
public function __construct($config = array(), $factory = null)
{
parent::__construct($config, $factory);
// Set the dispatcher for Joomla 6 compatibility
if (method_exists($this, 'setDispatcher')) {
$this->setDispatcher(Factory::getApplication()->getDispatcher());
}
}
/**
* Method to get the record form.
*
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
* @return mixed A JForm object on success, false on failure
*/
public function getForm($data = array(), $loadData = true)
{
// Get the form.
$form = $this->loadForm('com_jem.settings', 'settings', array('control' => 'jform', 'load_data' => $loadData));
if (empty($form)) {
return false;
}
return $form;
}
Happy with the support?
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Please Log in or Create an account to join the conversation.
Re: Forum | maybe an update / or layout isse. (code block formatting)
2 months 3 weeks ago
Works fine here, I think this is an issue with your editor or with copy/paste on you computer.
Happy with the support?
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Consider a donation: www.joomlaeventmanager.net/project/donate
– We are all volounteers, investing time and money to keep JEM runnung and evolving, With your donation we cover our expenses –
Thank you.
Please Log in or Create an account to join the conversation.
Re: Forum | maybe an update / or layout isse. (code block formatting)
2 months 3 weeks ago - 2 months 3 weeks ago
what happens if you try to post javascript?
I'm using Firefox and did copy code from php eclipse
I'm using Firefox and did copy code from php eclipse
JEM 5.1.0 + Joomla 6
Last edit: 2 months 3 weeks ago by Bluefox.
Please Log in or Create an account to join the conversation.
Time to create page: 0.567 seconds