Jump to content

How can I add my discord to the footer social links?


Recommended Posts

In '/classes/gui.class.php', there is a hook offered at line 1648 that provides an easy way to add Social Links.

You would create the Code Snippet in admin.

 

Edited by bsmither
Link to comment
Share on other sites

In admin, Manage Hooks, Code Snippets tab, click the Add Snippet link.

The next page will include a form at the bottom of the list.

Enabled: checked
Unique ID: [email protected]+
Execution Order: 99
Description: Adds a custom social link to the list.
Trigger: class.gui.display_social
Version: 1.0
Author: https://forums.cubecart.com/topic/57797-how-can-i-add-my-discord-to-the-footer-social-links/
PHP Code:
<?php
  $vars[] = array(
  'url'  => 'http://www.discord.com/user/', // Put the complete URL here
  'name' => 'Discord', // Put the name of the social media platform here
  'icon' => 'discord' // assuming it exists
  );

Save the snippet.

Here is a site that has Discord SVG icons.

https://www.iconpacks.net/discord-icons.html

We will need to figure out which icon to use, and how to add it to the skin's /images/icon-sprites.svg file.

Link to comment
Share on other sites

Thanks B, it would seem that I may not be able to do what I want anyway. I have yet to find a way to provide a direct link to be able to DM me on Discord unless you are a Discord member, or something like that.

So I guess this will not be resolved despite your awesome help and example. On the bright side, I did learn a little more :)

Link to comment
Share on other sites

Is there a way to configure your Discord account to recognize a trusted email address, such that this email arriving to your account will get accepted as a DM message?

If so, the Contact Us page can be coded to send messages from this email account to be accepted by your Discord account.

 

Link to comment
Share on other sites

I am not sure if that can be done or not. But I don't think we could have a chat conversation that way. Maybe the simplest thing is to just put my Discord info up static. then people could at least get me that way if they wanted.

I will consider the invite link to join the server, but they are not my servers so I am not certain that would be ok. I will have to ask the admins first.

Again thanks for the help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...