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)

Gemma 12-23-2011 08:51 AM

Quote:

Originally Posted by LuDawgs (Post 2280257)
Crazy. I use the MGC Evo chat solution. It has the ability to respond to someone and it puts the @ symbol in front of who you're responding to. The Twitter pop up causes people's names to get underlined and the twitter pop up appears! LOL

If I put @tray...and I mouse over the name, some guy named "tray" has his twitter pop up LOL

In your headinclude template try adding <vb:if condition="THIS_SCRIPT == 'member'"> </vb:if> to the edit you made.

So it would be something like this (depending on which headinclude template edits you made)

Code:

<vb:if condition="THIS_SCRIPT == 'member'">
<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>
</vb:if>


tidus78 12-27-2011 12:12 AM

Installed,4.1.8. seems like working but when I roll-on my tweeter account in profile it says "Sorry, this does not appear to be an active Twitter account"

My account is here : https://twitter.com/#!/Console_Planet

Gemma 12-27-2011 03:05 AM

Do you have a link to your site so I can see what you mean?

Did you add Console_Planet or http://twitter.com/#!/Console_Planet in the profilefield?

tidus78 12-27-2011 10:51 AM

http://www.console-planet.it/members/tidus.html

Added http://twitter.com/#!/Console_Planet mmm

Gemma 12-27-2011 11:09 AM

You only need to add your username - Console_Planet

tidus78 12-27-2011 12:06 PM

:eek::p

Thanks Gemma

tidus78 12-27-2011 12:18 PM

Edit

Just last question : can I modify colour of link blue in orange?

Gemma 12-27-2011 12:27 PM

In the twitter.css file change:
Code:

#twitter_update_list li span a {
    /* links in tweet */
    color: #00f;
}

To something like this:
Code:

#twitter_update_list li span a {
    /* links in tweet */
    color: #fbb715;
}

If you want a different shade of orange change #fbb715

Abhik 01-01-2012 05:49 PM

Hi,
Do I have to put the codes in "memberinfo_block_statistics" template?
I tried to put this on a custom tab template, but nothing showing up.

http://www.getassisted.com/member.php?u=1

EDIT: Okay, I needed to register the userinfo variable. Now the plugin partially working.
It seems the embedded javascripts aren't working. Any solution?

Gemma 01-02-2012 02:20 PM

I've not tried it with a custom tab. Trying adding both template edits to your custom tab template (where the raw content code should go) so it looks like this:
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" type="text/css" href="twitter/twitter.css"/>
<img src="clear.gif" height="10" /><br />
<vb:if condition="$userinfo[fieldXX]">
<div class="blocksubhead subsectionhead userprof_headers userprof_headers_border" >
<h4 id="view-statistics" class="subsectionhead-understate"  style="width:100%">Twitter</h4><br />
</div>
<div class="blockbody subsection userprof_content userprof_content_border">
<h5 class="subblocksubhead subsubsectionhead"><u>Recent Updates:</u></h5>
<div id="twitter_div">
<ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="twitter/blogger.js"></script>
<script text="text/javascript" src="http://twitter.com/statuses/user_timeline/{vb:raw userinfo.fieldXX}.json?callback=twitterCallback2&count=5"></script>
<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>
</div></div>
</vb:if>



All times are GMT. The time now is 11:49 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.01354 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_code_printable
  • (1)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