Twitter button

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/70260?pagenum=1
05 November 2025, 06:47

Topic


Zenfor
Twitter button
07 August 2012, 14:52


I am trying to put a twitter button on my forum inside inc_header and keep getting errors of course. I know enough asp to just get by but this has got me stumped. I have done other modifications but can't seem to get by this one. Appreciate any suggestions. thanks!
Twiiter code:
"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
" <tr align=center colspan=4>" & vbNewLine & _
" <td valign=""top"" width=""25%""><a href=rss.asp target= _blank><img src=images/rssfeed.jpg border=0></a></td>" & vbNewLine & _
" <td valign=""top"" width=""25%""><img src=questions.gif></td>" & vbNewLine & _
" <td valign=""top"" width=""25%"">TWITTER BUTTON GOES HERE</td>" & vbNewLine & _
" <td valign=""top"" width=""25%"">" & vbNewLine & _
" </td></tr></table><br><hr noshade>" & vbNewLine & _

 

Replies ...


Webbo
07 August 2012, 17:21


Try:

"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
" <tr align=center colspan=4>" & vbNewLine & _
" <td valign=""top"" width=""25%""><a href=""rss.asp"" target="" _blank""><img src=""images/rssfeed.jpg"" border=""0""></a></td>" & vbNewLine & _
" <td valign=""top"" width=""25%""><img src=""questions.gif""></td>" & vbNewLine & _
" <td valign=""top"" width=""25%"">TWITTER BUTTON GOES HERE</td>" & vbNewLine & _
" <td valign=""top"" width=""25%"">" & vbNewLine & _
" </td></tr></table><br><hr noshade>" & vbNewLine & _


If that doesn't work I'm sure Carefree will be along at some point smile
Zenfor
07 August 2012, 17:50


There's nothing to try, that's exactly what I quoted. I need to insert the twitter code where I marked it to go. Thanks!
Webbo
08 August 2012, 02:37


Try:

Create a new file and call it inc_twitter.asp

Within the new blank file paste the following, save and upload to your forum directory:

<td valign="top" width="25%">
<a href="https://twitter.com/EastonMass" class="twitter-follow-button" data-show-count="false">Follow @EastonMass</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</td>


Then use the following code inside inc_header,asp:

"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _
" <tr align=center colspan=4>" & vbNewLine & _
" <td valign=""top"" width=""25%""><a href=""rss.asp"" target="" _blank""><img src=""images/rssfeed.jpg"" border=""0""></a></td>" & vbNewLine & _
" <td valign=""top"" width=""25%""><img src=""questions.gif""></td>" & vbNewLine
%>
<!--#INCLUDE FILE="inc_twitter.asp"-->
<%
ResponseWrite " " <td valign=""top"" width=""25%"">" & vbNewLine & _
" </td></tr></table><br><hr noshade>" & vbNewLine & _



I haven't tested it but should work


PS Your original code missed out a lot of ' " 's
Zenfor
08 August 2012, 06:43


Microsoft VBScript compilation error '800a0401'

Expected end of statement

/forum/inc_header.asp, line 310

ResponseWrite " " <td valign=""top"" width=""25%"">" & vbNewLine & _
----------------------^

Bythe way, the twitter code is exactly what came from twitter, I didn't remove anything. Thank you very much for your help.
Webbo
08 August 2012, 17:44


My bad, change:
ResponseWrite " " <td valign=""top"" width=""25%"">" & vbNewLine & _


to:
Response.Write " " <td valign=""top"" width=""25%"">" & vbNewLine & _
Carefree
08 August 2012, 17:56


Originally posted by Webbo
My bad, change:
ResponseWrite " " <td valign=""top"" width=""25%"">" & vbNewLine & _


to:
Response.Write " " <td valign=""top"" width=""25%"">" & vbNewLine & _


Duplicated the error. Remove the first quotation mark, thus:

Code:
Response.Write " <td valign=""top"" width=""25%"">" & vbNewLine & _
Webbo
08 August 2012, 17:58


Cheers Cf smile

I'm tired lol
Zenfor
08 August 2012, 19:40


Response.Write instead of ResponseWrite
Webbo
09 August 2012, 02:15


No problem glad to help

(I corrected the lack of dot in my third post but it went un-noticed smile)
© 2000-2021 Snitz™ Communications