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 10-16-2011 09:01 PM

Quote:

I tried the Tweet box and it showed up for the first time and then disappeared when I tried to use it.
Looks like the code has change a little, try this.

In your memberinfo_block_statistics template find:

Code:

</div></div>
</vb:if>

Just above that add this (instead of using the code in post #45)
Code:

<div id="tbox"></div>
<script type="text/javascript">
twttr.anywhere(function (T) {
T("#tbox").tweetBox({
height: 100,
width: 400,
label: 'Got tips, suggestions or questions?',
});
});
</script>

Quote:

I got an error talking about the call back url as well.
Callback url errors usually occur if you haven't set up the application correctly in Twitter - https://dev.twitter.com/apps/new

Kingdombuilder 10-16-2011 09:59 PM

Thank you so much for the prompt reply. I added the code that you suggested and I entered a tweet and it worked but when i navigated away from the page and came back the tweet box was gone again.

I tried taking away one of the "</div>" and I noticed that my background did not go all the way down, so that was a plus. Now just getting the text box to stay... Thank you for all the help you have been giving. This is a great mod.

Gemma 10-16-2011 10:35 PM

Hmmmm,

Try adding this plugin. Go to AdminCP > Plugins & Products > Add New Plugin

Hook Location: member_build_blocks_start
Name: Load About Me Tab By Default
Execution Order: 5
Code:
Code:

if (!$vbulletin->GPC_exists['tab'])
{
    $vbulletin->GPC['tab'] = 'aboutme';
}

Plugin Is Active: Yes

Save.

Kingdombuilder 10-16-2011 11:57 PM

Thank you so much for the help. It seems to be working great accept when I navigate to the profile page "about me" tab is open first.

I went and made the plugin not active and the profile page loads as normal but when I go to the "About Me" tab the tweet box is gone again. And of course when I make it active again the tweet box shows back up.

sticky 10-17-2011 09:09 AM

Pretty cool, would be nice to have this in a sig.

Gemma 10-17-2011 11:07 AM

Quote:

Originally Posted by Kingdombuilder (Post 2257960)
Thank you so much for the help. It seems to be working great accept when I navigate to the profile page "about me" tab is open first.

I went and made the plugin not active and the profile page loads as normal but when I go to the "About Me" tab the tweet box is gone again. And of course when I make it active again the tweet box shows back up.

Sorry, unfortunately that is the only way I can get the Tweet Box to work, for some reason it needs to load before the Visitor Messages tab. I think there must be a conflict with the VM Editor :(

I'll have a proper look when I get some free time and see what I can come up with.

Filgga 12-10-2011 08:13 AM

Tried on vB 4.1.8 but looks like it's not working perfectly!

Gemma 12-10-2011 10:16 AM

Quote:

Originally Posted by Filgga (Post 2276460)
Tried on vB 4.1.8 but looks like it's not working perfectly!

In what way? :confused:

Bluefin221 12-20-2011 03:14 PM

Quote:

Originally Posted by Gemma (Post 2276476)
In what way? :confused:

I'm going to install it on 4.1.8 and will get back to you Gemma hopefully if any problems exist we can solve them?

Bluefin221 12-20-2011 04:33 PM

Gemma -

Everything works perfectly when using the basic version.

On the with CSS version it shows up like the basic version so you cannot see any recent updates on the profile.

I'm using CSS version check here: http://www.fpcforums.com/forums/members/1-FPC-Admin

I tried messing around with the code but got no where fast so put it back to the way you had it using CSS version. Do you have any ideas?


All times are GMT. The time now is 01:06 PM.

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.01122 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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