vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - Twitter Updates in Members Profile (https://vborg.vbsupport.ru/showthread.php?t=265541)

x YNWA x 07-06-2011 08:46 PM

Quote:

Originally Posted by Octavius. (Post 2212946)

How did u get it working? Im on 4.1.3 and not working for me, about to upgrade to 4.1.4 though... Still having the issue I mentioned above Thanks

x YNWA x 07-06-2011 08:48 PM

Quote:

Originally Posted by Gemma (Post 2214906)
Is your Twitter account set to private or can tweets be publicly viewed?


Nah mine isnt private, but other users could be? But isnt this supposed to be tweets per user?

Gemma 07-06-2011 08:57 PM

Quote:

Originally Posted by x YNWA x (Post 2217537)
Nah mine isnt private, but other users could be? But isnt this supposed to be tweets per user?

Yes this one is per user.

Quote:

Originally Posted by x YNWA x (Post 2217535)
How did u get it working? Im on 4.1.3 and not working for me, about to upgrade to 4.1.4 though... Still having the issue I mentioned above Thanks

Are the jscript and css files in the correct location? It should really work on any vB 4.x.x - is anything showing up in the profile?

Gemma 07-16-2011 09:50 PM

1 Attachment(s)
Updated

1.0.4 - Added twitter hovercards

Instruction on how to update are include in the OP

Gemma 07-17-2011 10:53 AM

1 Attachment(s)
And if you want to add a tweetbox to your feed:

Open your headinclude template
Find:
Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="twitter/jquery.twitter.js"></script>
 <script src="http://platform.twitter.com/anywhere.js?id=consumer_key&amp;v=1">
  </script>
  <script type="text/javascript">
    twttr.anywhere(function(twitter) {
            twitter.hovercards({ expanded: true });
    });
  </script>
<link rel="stylesheet" type="text/css" href="twitter/twitter.css"/>

Replace it with:
Code:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="twitter/jquery.twitter.js"></script>
<script src="http://platform.twitter.com/anywhere.js?id=consumer_key&amp;v=1">
  </script>
  <script type="text/javascript">
    twttr.anywhere(function(twitter) {
    twitter.hovercards({ expanded: true });
});
  twttr.anywhere(function (twitter) {
  twitter("#tbox").tweetBox({
  count: true,
  height: 100,
  width: 400,
  label: "Send a tweet",
      });
  });
        </script>
<link rel="stylesheet" type="text/css" href="twitter/twitter.css"/>

Remember to change the consumer_key. Save.

Open memberinfo_block_stats
Find:
Code:

<br><dt class="smallfont">You can follow me on Twitter, my username is <a class="twitter-anywhere-user" href="http://twitter.com/{vb:raw userinfo.fieldXX}">{vb:raw userinfo.fieldXX}</a></dt>
Below that add:
Code:

<img src="clear.gif" height="10" /><br />
<div id="tbox"></div>

Save.

Gemma 07-18-2011 11:19 PM

Made a small change to the headinclude template in the basic version, didn't realise the hovercards weren't expanded :o

CharlieDelta 07-19-2011 06:07 PM

Quote:

Originally Posted by Gemma (Post 2221436)
And if you want to add a tweetbox to your feed:

Open your headinclude template
Find:
Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="twitter/jquery.twitter.js"></script>
 <script src="http://platform.twitter.com/anywhere.js?id=consumer_key&amp;v=1">
  </script>
  <script type="text/javascript">
    twttr.anywhere(function(twitter) {
            twitter.hovercards({ expanded: true });
    });
  </script>
<link rel="stylesheet" href="twitter/twitter.css"/>

Replace it with:
Code:

<script src="http://platform.twitter.com/anywhere.js?id=consumer_key&amp;v=1">
  </script>
  <script type="text/javascript">
    twttr.anywhere(function(twitter) {
    twitter.hovercards({ expanded: true });
});
  twttr.anywhere(function (twitter) {
  twitter("#tbox").tweetBox({
  count: true,
  height: 100,
  width: 400,
  label: "Send a tweet",
      });
  });
        </script>

Save.

Open memberinfo_block_stats
Find:
Code:

<br><dt class="smallfont">You can follow me on Twitter, my username is <a class="twitter-anywhere-user" href="http://twitter.com/{vb:raw userinfo.fieldXX}">{vb:raw userinfo.fieldXX}</a></dt>
Below that add:
Code:

<img src="clear.gif" height="10" /><br />
<div id="tbox"></div>

Save.

Gemma this is a brilliant mod and I am really liking the additions.

When I try to add this I lose my spacing because I am using the css version and the link is replaced. The colors and fonts are not a concern.
What would be a work around to get some spacing between tweets.
Thanks

Gemma 07-19-2011 06:30 PM

Ooops sorry :o

In headinclude, find:
Code:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="twitter/jquery.twitter.js"></script>
 <script src="http://platform.twitter.com/anywhere.js?id=consumer_key&amp;v=1">
  </script>
  <script type="text/javascript">
    twttr.anywhere(function(twitter) {
            twitter.hovercards({ expanded: true });
    });
  </script>
<link rel="stylesheet" href="twitter/twitter.css"/>

Replace with:
Code:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="twitter/jquery.twitter.js"></script>
<script src="http://platform.twitter.com/anywhere.js?id=consumer_key&amp;v=1">
  </script>
  <script type="text/javascript">
    twttr.anywhere(function(twitter) {
    twitter.hovercards({ expanded: true });
});
  twttr.anywhere(function (twitter) {
  twitter("#tbox").tweetBox({
  count: true,
  height: 100,
  width: 400,
  label: "Send a tweet",
      });
  });
        </script>
<link rel="stylesheet" type="text/css" href="twitter/twitter.css"/>

I've also made it use the latest jquery

cloferba 07-20-2011 12:24 AM

i would like to see a demo :(

CharlieDelta 07-20-2011 01:14 PM

This is really strange, the tweetbox is not showing up for me. I was sure it was there yesterday.:confused:

UPDATE:
Works in all browsers except FF?


All times are GMT. The time now is 07:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01355 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete