News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[BBCode] Twitter

Started by Suki, May 16, 2010, 05:09:23 AM

Previous topic - Next topic

teos55

  Should I add it with the BBC Twitter mod installed or not ?

Suki

No...  please re read my previous post:

Quote from: Suki on February 10, 2012, 05:14:39 PM
You can also place this code before the </head> tag in your index.template.php:


<link rel="stylesheet" type="text/css" href="'. $settings['default_theme_url'] .'/tweet/tweetGrab.screen.css" />
<script type="text/javascript">
!window.jQuery && document.write(unescape(\'%3Cscript src="http://code.jquery.com/jquery.min.js"%3E%3C/script%3E\'))
</script>
<script src="'. $settings['default_theme_url'] .'/tweet/jquery.tweetGrab.pack.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function()
{
jQuery(\'.tweetGrab\').tweetGrab({
width:\'500px\',
center: true
});

jQuery(\'#tweetme\').tweetGrab({
width:\'500px\',
tweetCount:\'5\',
center: true
});

jQuery(\'#tweethash\').tweetGrab({
width:\'500px\',
tweetCount:\'3\',
center: true
});
});
</script>




just attach your theme's index.template.php file here...
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

teos55


Suki

use this one


clear your forums cache and make sure you have this files:

Themes/default/tweet/tweetGrab.screen.css
Themes/default/tweet/jquery.tweetGrab.pack.js
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

teos55

 Worked,  great ...
Thanks .

iMaNiac

Worked gr8 on my forum, just the bbc [tweet] isn't working. Get's error undefined

Suki

If you post the whole error I may be able to help...
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

iMaNiac

Here you have the SC i take:


Suki

I don't need an image...

I need the actual page where I can see the error.


What are you doing?

How are you using the tags?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

iMaNiac

I used the tags like are supposed i think.

[twitacc]@name_of_the_account[/twitacc]

[hashtag]iPhone[/hashtag]

[tweet]https://twitter.com/#!/untitledmage/status/168827294251630592[/tweet]


If you need access to the forum i can pm you the details of a test account to you to test as the forum is not open to the public.

Suki

if I use that link:

https://twitter.com/#!/untitledmage/status/16882729425163059


twitter says it doesn't exists...

thats why you get the undefined error, the mod can't access that status.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

iMaNiac

on the time the tweet is posted i click with the right button and open link in other window and copy the adress.

https://twitter.com/#!/Lord__stewie/status/169168270597951488 [nofollow]

https:// link

Suki

It's the same issue other have reported, I still need to figure it out why the regex for the single status is failing, maybe twitter changed the url, I dunno, it depends on the type of url and the actual profile, for some users it display the status just fine.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

iMaNiac

i'll disable the [tweet] tag atm, until you have that sorted.

Thanks for the help.

THE BRA1N


Timshel

Quote from: THE BRA1N on March 10, 2012, 07:08:55 PM
I think that Twitter did change the urls. For me, this doesn't work with the mod:

https://twitter.com/#!/Lord__stewie/status/169168270597951488 [nofollow]

But this link does:

https://twitter.com/Lord__stewie/status/169168270597951488 [nofollow]

Great! Works for me like that! Thanks dude :D

ozbob

Useful mod, thanks. 

Have encountered a problem though with [tweet][/tweet] code.  When I attempt to post a tweet I get a message subject empty error.

The url of the tweet is correct.

Is working fine for [twitacc][/twitacc]

Any clues?

Thanks.
Bob

Suki

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

shazoo!

Quote from: Suki on April 25, 2012, 08:10:31 AM
what's the exact error?

I think this is what he's referring to

Suki

It shouldn't happen since that tag is just an anchor tag, you can open $sourcedir/Post.php

find: <img>  and replace with <img><a>  to allow anchor tags
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: