Development BlogColor settings

Post Reply
User avatar
Topic Starter
Restless Rancor
Great Britain

Site Admin
New Member
Posts: 48
Joined: October 15th, 2018, 3:14 pm
Age: 25
Location: Hampshire, England
Contact:

Color settings

#1

Post by Restless Rancor » October 28th, 2018, 6:12 pm

I had a little trouble getting a text input box configured properly for use as a HTML color setting for the shields in Attachment Shields.

It wasn't too difficult getting it working within the ACP:

Code: Select all

$this->config->set('ashields_color', trim($this->request->variable('ashields_color', $this->config['ashields_color'])));

Code: Select all

'ASHIELDS_COLOR'	=> $this->config['ashields_color'],
... and I could call {{ S_ASHIELDS_COLOR }}, which would show the saved result, but it wasn't being assigned to the global templates correctly.

What I had:

Code: Select all

'S_ASHIELDS_VERSION_ENABLE'	=> $this->config['ashields_version_enable'] ? true : false,
... should have been:

Code: Select all

'S_ASHIELDS_COLOR'	=> $this->config['ashields_color'],
... I was trying to assign a Boolean 1 or 0/yes or no value to something that was not a Boolean value.


These aren't the droids you're looking for.

Post Reply

Topic Subscribers

1 user subscribed to this topic: Restless Rancor