• Resolved foxtangocharlie

    (@foxtangocharlie)


    I would like to make sure that my twitter name gets added automatically to the share text box for twitter when a person wants to tweet my article. This will help in social engagement.

    I have some experience with php and can dig down into the code.

    Is there a way to make this happen by editing code?

    https://www.ads-software.com/plugins/quickshare/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nick Halsey

    (@celloexpressions)

    I don’t use twitter, but would you say that this is something that should be done by default (it seems like it is)? You certainly could hard-code it in, but then you’d have to re-do this every time you update.

    If you do want to edit the code, it’s line 616 of quickshare.php.

    Thread Starter foxtangocharlie

    (@foxtangocharlie)

    I couldn’t get that to work. In fact, I believe it should be further up in the code, though I am not a great php programmer. I am thinking it should be around line 593. Get the data.

    You will need to have a section in the backend to include your handles (twitter and Google+ at least). Then include that data in the shared post.

    This would be huge because if someone with 500000 followers shares my content, I want to have my twitter handle @jasontlancaster in that post so that all 500000 can have the option to follow me.

    I couldn’t get it to work. I will try later.

    Plugin Author Nick Halsey

    (@celloexpressions)

    No, that’s the right place, I just didn’t look closely enough at the Twitter API there. There needs to be a separate url query parameter for the username, called via. (the code at 593 is getting the data for all of the platforms, then it’s formatted for each platform below)

    I noticed that I can and should also include the title of the post in the tweet by default, and looking into it more, I think this makes sense to add to the plugin, with a field for the twitter username.

    I’ve published the changes to the development version of QuickShare, if you have a chance to confirm that they work as intended that would be great (I plan to push the update on Monday)! Unfortunately Google+ doesn’t have a similar functionality available in their API (yet).

    Development version download: https://downloads.www.ads-software.com/plugin/quickshare.zip

    Also, sidenote, I noticed that you have arrows showing up over QuickShare on your site; you can fix that by pasting this into the custom css field in QuickShare settings (your theme’s doing something weird):

    .quickshare-container ul li i {
    background: transparent;
    }

    viki

    (@sheoran8210)

    This widget is fulfilling my requirement. But one more thing I want to know about this is, I want to display this widget at the beginning of my blog post. As of know this is showing at the bottom of the post. Is that possible to use it at the top of the post?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Twitter Handle to share dialog box’ is closed to new replies.