Comments (6)
Hello,
The CSS code for the built-in social icon is social-logos.css.
The function:
htmly/system/includes/functions.php
Line 2392 in 5c45a61
To include the new link using social()
function than we need to modify the core (not recommended).
Try to create custom config in dashboard, example social.codepen
than print it in layout.html.php
:
<?php echo config('social.codepen');?>
from htmly.
Thank you very much for the reply.. I`ll have a look.
from htmly.
Hello, I tried doing as instructed, but the website halted (HTMLy is not installed)
I did this edit in layout.html.php, and did the requcired change inside the dashboard. (added the code "" (No quotes) and the value "mailto:[email protected]".
This (automatically) caused this change in config.ini
; Framework config. No need to edit.
views.layout = "layout"
As a result, the website halted. (HTMLy is not installed)
The problem persists, even after undoing the change and restoring the original file.
I added the last line (below), in config.ini
; Social account
social.twitter = ""
social.facebook = "https://www.facebook.com/eesoo.e?mibextid=hIlR13"
social.instagram = ""
social.linkedin = ""
social.github = ""
social.youtube = ""
social.mastodon = ""
social.tiktok = ""
social.email = "mailto:[email protected]"
The error log says:
[21-May-2024 13:23:20 America/Chicago] PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
in /home2/prizesciedu/public_html/sch/sites/israa-mohammed/system/includes/dispatch.php on line 104
[21-May-2024 13:23:26 America/Chicago] PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
in /home2/prizesciedu/public_html/sch/sites/israa-mohammed/system/includes/dispatch.php on line 104
[21-May-2024 13:25:19 America/Chicago] PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
in /home2/prizesciedu/public_html/sch/sites/israa-mohammed/system/includes/dispatch.php on line 104
[21-May-2024 13:25:22 America/Chicago] PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
in /home2/prizesciedu/public_html/sch/sites/israa-mohammed/system/includes/dispatch.php on line 104
[21-May-2024 13:25:31 America/Chicago] PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
in /home2/prizesciedu/public_html/sch/sites/israa-mohammed/system/includes/dispatch.php on line 104
I had a look
Lines 99-109:
function config($key, $value = null)
{
static $_config = array();
if ($key === 'source' && file_exists($value))
$_config = parse_ini_file($value, true);
elseif ($value == null)
return (isset($_config[$key]) ? $_config[$key] : null);
else
$_config[$key] = $value;
}
The line #104 is
$_config = parse_ini_file($value, true);
Note 1: I tried both "mailto:......." version and "just the email address" version.
The problem persists (HTMLy is not installed).
Note2: If it matters, this time the theme is Papermod.
from htmly.
Hello,
Please check this line:
PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
from htmly.
Yes, this is what the log says, but there is none!
(1) PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191
There is no ' in line #191 of config.ini.
(2) PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191 in /system/includes/dispatch.php on line 104
There is no ' in line #104 of dispatch.php.
(I use Notepad++)
from htmly.
No you should just put:
social.config = "[email protected]"
The <?php echo config(social.email);?>
it should paste in template file and not in config file or even in custom config page.
So when adding custom config, you just need to fill social.email
for the key and [email protected]
for the value. Please read the hint on the page.
from htmly.
Related Issues (20)
- [QUESTION] Theme Issue HOT 1
- [QUESTION] Sitemap.xml - is listing only my current year OR max 39 rows HOT 3
- Errror On Installation HOT 2
- Ukrainian language HOT 1
- Subscribe Module HOT 3
- Hello, there is some error on the sitemap HOT 6
- [FEATURE REQUEST] Menu editor, supports relative URL HOT 1
- May be we should not put tags in the markdown file title HOT 1
- [BUG REPORT] Attribute charset not allowed on element meta at this point. HOT 1
- [FEATURE REQUEST]How to integrate into root domain? HOT 2
- [QA] page break (pagination), blogroll not on home page, multimedia dir tree, relative urls etc. HOT 9
- Link previews not reflecting the real logos or the favicon - HTMLY/Ignite HOT 3
- Supporting Arabic commas under "tags"[FEATURE REQUEST] HOT 2
- draft posts pooled after common publish article click HOT 5
- [FEATURE REQUEST] STATUS heading/column in posts list HOT 1
- [FEATURE REQUEST] QOL features: splitting lang, visits counter HOT 5
- [QA] How can we list the blog (latest blog snippets) on the homepage which is outside the htmly folder? HOT 1
- Sub sub menu ? HOT 3
- [FEATURE REQUEST] Disable comments per-post
- [NO Sub dirs]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmly.