Giter VIP home page Giter VIP logo

Comments (6)

danpros avatar danpros commented on August 28, 2024

Hello,

The CSS code for the built-in social icon is social-logos.css.

The function:

function social($class = null)

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.

ashraf21c avatar ashraf21c commented on August 28, 2024

Thank you very much for the reply.. I`ll have a look.

from htmly.

ashraf21c avatar ashraf21c commented on August 28, 2024

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"

= "mailto:[email protected]"

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.

danpros avatar danpros commented on August 28, 2024

Hello,

Please check this line:

PHP Warning: syntax error, unexpected '(' in config/config.ini on line 191

from htmly.

ashraf21c avatar ashraf21c commented on August 28, 2024

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.
image

(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.
image

(I use Notepad++)

from htmly.

danpros avatar danpros commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.