Answer the question
In order to leave comments, you need to log in
How to make a picture-link in a post of classmates?
Good afternoon!
Faced with the task of posting on the user's page OK links + text + pictures (referral link - with a get parameter).
When implementing posting on the user's page, we encountered a problem.
Link for posting: tyk .
The problem is that after publication, if the user clicks on the "banner" on his page, he will be taken to the site without a get parameter. It is important for us that everyone who came through the banner should carry a get parameter with them, because. the project is built on a referral system.
Is it possible to solve this? Or is it not possible in OK?
var img = "http://oribinar.com" + elem.data("image");
var attach = {
"media": [
{
"type": "text",
"text": "Возможное для одного, возможно для всех!"
},
{
"type": "app",
"text": "Орибинар!",
"images": [
{
"url": img,
"mark": "ori",
"title": ""
}
],
"actions": [
{
"text": "Орибинар",
"mark": "ori"
}
]
},
{
"type": "link",
"url": "http://oribinar.com/?ref=123"
}
]
};
Answer the question
In order to leave comments, you need to log in
It turned out that there is a video, but nevertheless, if you have ideas for implementation with css and js, please unsubscribe.
I can’t answer about the link, but using rewrite-rule you can achieve the same effect:
1. publish a link like oribinar.com/ref/123
2. catch something like ^ref/([0-9]+) on the web server $ and rewrite to /?ref=$1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question