Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Tweet Widget in userprofile

  • dimitri9
  • dimitri9
  • OFFLINE
  • Posts: 42
  • Thanks: 1
  • Karma: 0
11 years 6 months ago - 11 years 6 months ago #224577 by dimitri9
[SOLVED] Tweet Widget in userprofile was created by dimitri9
Dear all,

I want to use the Tweet Widget with the username.

Now the tweet looks like:

Username www.mywebsite/myprofile/user.html

Because I would like to add tekst next to "Username", can you tell me what location it is?

Or what is the default code of it, so I can add a custom code?

I was looking on the twitter developer page, but couldn't find it.

Hope you can help.

Best, Dimitri
Attachments:
Last edit: 11 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224581 by krileon
Replied by krileon on topic Tweet Widget in userprofile
Not sure I understand the question. You want their Twitter username? The tweet button is just their share widget, whatever you type in the tweet is entirely up to you.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: dimitri9

Please Log in or Create an account to join the conversation.

  • dimitri9
  • dimitri9
  • OFFLINE
  • Posts: 42
  • Thanks: 1
  • Karma: 0
11 years 6 months ago #224633 by dimitri9
Replied by dimitri9 on topic Tweet Widget in userprofile
Hi,

I want to twitter there profile link. ( www.mywebsite/myprofile/user.html )
The setting User > Tweet button works perfect, but I want to add some extra tekst.

On the twitter development I can create a code, and looks like: www.mywebsite/myprofile

So it doesn't link to the user.

Best, Dimitri

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224702 by krileon
Replied by krileon on topic Tweet Widget in userprofile
When a user views their own profile it always has a URL to ones own profile. If you need the URL to a users profile then you have to construct it manually. Example as follows.

site/index.php?option_comprofiler&task=userprofile&user=USER_ID

If you're adding the custom widget using the widget field then you can just use the below custom substitution.

[profile_url]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • dimitri9
  • dimitri9
  • OFFLINE
  • Posts: 42
  • Thanks: 1
  • Karma: 0
11 years 6 months ago - 11 years 6 months ago #224722 by dimitri9
Replied by dimitri9 on topic Tweet Widget in userprofile
Thanks for you reply. Think I was not clear enough .... :-)

I just need the script (see screen shot above #224577). Tweet button -> user
From there the user-profile and user-name are send.
Just want to add some text to that tweet, that's all.

The tweet will look like this;

My name is dimitri9 Check out my profile here: www.treinlink.com/profiel/userprofile/dimitri9.html

Thanks in advance!
Last edit: 11 years 6 months ago by dimitri9.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago - 11 years 6 months ago #224741 by krileon
Replied by krileon on topic Tweet Widget in userprofile
You can specify default text using data-text. The below custom widget should do what you're wanting.
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-url="[profile_url]" data-count="horizontal" data-text="My name is [username] Check out my profile here: [profile_url]"></a>

You can find more information regarding the Tweet button below.

dev.twitter.com/docs/tweet-button


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 6 months ago by krileon.
The following user(s) said Thank You: dimitri9

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum