The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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:
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 & _
Postet den
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
"<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
Postet den
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!
Postet den
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
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
Sist redigert av
Postet den
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.
Postet den
My bad, change:
ResponseWrite " " <td valign=""top"" width=""25%"">" & vbNewLine & _
to:
Response.Write " " <td valign=""top"" width=""25%"">" & vbNewLine & _
ResponseWrite " " <td valign=""top"" width=""25%"">" & vbNewLine & _
to:
Response.Write " " <td valign=""top"" width=""25%"">" & vbNewLine & _
Postet den
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 & _
Postet den
Cheers Cf
I'm tired lol
I'm tired lol
Postet den
Response.Write instead of ResponseWrite
Postet den
No problem glad to help
(I corrected the lack of dot in my third post but it went un-noticed
)
(I corrected the lack of dot in my third post but it went un-noticed
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...