cqpbert Posted April 29, 2022 Share Posted April 29, 2022 As the title says, I want to add a link to Discord servers in the footer where Facebook and such are. Is there a way to do this? Or will it require some code hacking Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 29, 2022 Share Posted April 29, 2022 (edited) 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 April 29, 2022 by bsmither Quote Link to comment Share on other sites More sharing options...
cqpbert Posted April 29, 2022 Author Share Posted April 29, 2022 Thanks as always!! I will see if I can sort it out Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 29, 2022 Share Posted April 29, 2022 Let us know if instruction on creating a Code Snippet will help. Quote Link to comment Share on other sites More sharing options...
cqpbert Posted April 30, 2022 Author Share Posted April 30, 2022 it would not hurt for sure. I was gonna try to see if looking at the existing code helped. But surely easier to get a head start. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 30, 2022 Share Posted April 30, 2022 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: add2social@cc6+ 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. Quote Link to comment Share on other sites More sharing options...
cqpbert Posted May 1, 2022 Author Share Posted May 1, 2022 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 Quote Link to comment Share on other sites More sharing options...
Tony Posted May 1, 2022 Share Posted May 1, 2022 Would using the Discord Invite link work? Quote Link to comment Share on other sites More sharing options...
cqpbert Posted May 2, 2022 Author Share Posted May 2, 2022 I suppose it could, but what I was hoping to do was be able to let someone DM me directly. Sort of like an old school AOL IM. I don't do tweeter/FB/instagram/... Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 2, 2022 Share Posted May 2, 2022 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. Quote Link to comment Share on other sites More sharing options...
cqpbert Posted May 3, 2022 Author Share Posted May 3, 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.