Discord Table of Contents - hyperlink

I'm trying to create a how-to on my discord server with a table of contents.
I know how to use an embed to get named links, but I can't figure out how to make those links point to other specific locations within the channel. I found this post that looks like what I want, but there is no description about how it was accomplished. They need to link back and forth, so I can't just post the first message and then copy a link to that.

Related

Can I create a Branch link and then immediately parse it for data without leaving the app?

In my app, a user taps a button and generates a branch link. Elsewhere in the app, I want to provide them the ability to paste that link and then to parse that link for its data, do an appropriate API call to get more data and then show the user some additional screen.
Is this possible in Parse? All of the stuff I've seen before has to do with unpacking a Branch link in didFinishLaunching rather than any random view controller in the app.
Thanks
The use case is possible using any of the two following methods:
1) Using the Branch SDK to parse the link and present the link data for routing. Docs: https://docs.branch.io/pages/apps/ios/#handle-links-in-your-own-app
2) Using Branch Link Read API to manually read the link and then display the link data in the app. Docs: https://docs.branch.io/pages/apps/api/#link-read
Both the methods can be used to read/process the link to get the link data.
Please feel free to reach out us at integrations#branch.io in case of any further questions!

What is the easiest way to send a tweet when a row is updated in a Google Spreadsheet?

So, I have a digital tap list for a bar and I'm using Google Spreadsheets as a back end for the data. When a keg runs out I want for the bar staff to be able to copy and paste the oncoming beer over the row of cells corresponding to the keg that just ran out. What would be the best way to automate a tweet when this happens? So when they change the keg, and once they update the spreadsheet that a tweet is automatically sent out saying what new beer has been put on tap.
As far as connecting to twitter, which uses OAuth, from Apps Script, you'll need to:
reference the sample OAuth1 apps script library. This github repo has the info on how to reference that library, along with sample code for reference.
wire up to Twitter. That repo also has a sample showing integration with Twitter.
The other code you'll need in Apps Script should implement onEdit(e), to handle the edit event. You'll have to do some work to inspect the range to make sure the edit is one you care about.

Double action links

I am building business websites for multiple clients and I would like to be able to create links that do two things at once. Specifically, when visitors click an image on the website, in addition to going to the location the link specifies, I would also like to send a pre-determined text to the business owner's cell phone. Is this possible.
It is indeed possible. You'll need to call a php file with two parameters. One parameter should be the link where the user should be redirected, the other parameter would need to be the message you want to send to the owner.
i.e. your link would need to look like this:
link text or image
Then you need to prepare your php to get these parameters. First you need to send the text message, (tutorial for this can be found on this link: http://davidwalsh.name/send-text-message , and after the message is sent you need to redirect to the link you've got from the parameter. In php, you can read the above sent parameters like
$redirectlink = $_GET['url];
$message = $_GET['message'];
I hope this helps you resolve your issue.

Opencart: Remove page ID path from URL

I'm trying to make my site more SEO friendly and I' noticing that whenever I go to an product through either a tag or a different page (2,3,4 ect) that it adds it to the URL.
For example:
www.wisdomsurvival.com/Guardian-Survival-kit/culinary-can-of-preparedness-seeds.html?page=2
I would like to remove ?page=2 from the path
Opencart 1.5.4
Any help would be greatly appreciated.
EDIT: My main goal is to have one URL for each page instead of multiple paths. For example:
http://www.wisdomsurvival.com/person-guardian-preparedness-package-camping-bug-out
http://www.wisdomsurvival.com/camping-and-bug-out/person-guardian-preparedness-package-camping-bug-out
The first URL is a direct link, the second comes from clicking from a category, the third (not shown because I can only post 2 links) comes from clicking from a subcategory and the fourth (also not shown) from a manufacturer list.
I need to have them all either redirect to the first URL or just go directly to the first URL without redirecting, along with any other URLS such as the ones that have the page ID path or tag path.
I recognise that theme :-)
Where is the ?page=2 coming from as the link works perfectly without it. You need to trace the source of the link. First try the template views and see if it is a simple link edit in the layout that will accomplish what you need.
If not you may find the information is coded in the controller if it is being dynamically generated. Again you should be able to edit the code that generates the link there.
If not you may find that it is in a model that is being called. Again, just find the model and edit the link structure you find there.
The url on your page will only be a reflection of the url you generated somewhere else in order for the link to be followed in the first place.
Usually when I am building with opencart I find the theme modules are often not coded very well in terms of SEO. Fortunately with opencart these things are usually very easy to remedy.
Top trick -> I often stick additional bits into my urls that have no impact on the page generated but Google picks up on as keywords anyway.
If you post your code if you are having problems reformatting the link formats I will have a look for you,
Hope that helps,
Paul.

Ruby on Rails 3 search external website source based on top google result

I'm having a hard time finding out where to start with this one. I pull information from an external website and put some of the content on my page. I think I need two things done. 1. A google search that takes the url of the top search given a name of my current object. 2. A way to examine the source of the result and output the information of a tag with a specific class.
To better explain this, I'll create a hypothetical situation: Say I have a website that lists mattresses and gives reviews. Say I want to add other websites reviews and in this website there's a tag like 3.5/5. Then I want to display this review along with a link to the external page. Is there a way to search the site like "site:http://mattressreviewsite/ #matress.name", pull that top url, and then search the source for the string "class='rating'" and display this in my view?
Thanks for any help or guidance. I'm using Rails 3.
You need an HTTP client (httparty, net/http-default) for that and do some parsing to get the required results.
Go study the url patterns of google (as far as I remember it was google.com?q=search_string) and use the http client for requests (get/post). Parse the result (there are many HTML parser gems available too) to get what you need and for any subsequent HTTP requests. And don't forget the 'I am feeling lucky' feature of google which returns only one result.
All the best!

Resources