Sociobox Twitter Widget ID
- Posted by outtherechris (16) Offline
Hi, it seems Twitter have all but removed their widgets and replaced with a publish page which generates embed code and does not create a widget or a widget ID. I am hoping to have twitter feeds in the Sociobox module but it requires a widget ID at present.
Is there a workaround for this?
Thanks
Regards
Chris
7 years 10 months ago #1
by outtherechris
Is there a workaround for this?
Thanks
Regards
Chris
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi Can you try to open file ../tpmodules/mod_sociobox/tmpl/default.php with your php editor and change the lines 137-138 below :
with the code in the attached file below
7 years 10 months ago #2
by TemplatePlazza
<a class="twitter-timeline" width="284" height="150" data-theme="light" data-chrome="nofooter noborders noscrollbar " href="https://twitter.com/<?php echo $twitteracc; ?>" data-widget-id="<?php echo $twitterwid; ?>">Tweets by @<?php echo $twitteracc; ?></a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
with the code in the attached file below
Please Log in or Create an account to join the conversation.
- Posted by outtherechris (16) Offline
Thanks that has worked when I leave the widget ID out and just enter the twitter name in the module back end. Thanks for the help much appreciated!
Regards
Chris
7 years 10 months ago #3
by outtherechris
Regards
Chris
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline