Thread: Profile Enhancements - Extra IM Fields GTalk and Jabber
View Single Post
  #16  
Old 04-26-2009, 05:41 AM
bbcentral's Avatar
bbcentral bbcentral is offline
 
Join Date: Apr 2006
Location: Australia
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a good mod, but I don't need GTalk and Jabber. So I modified the product XML to add Twitter support. (Essentially I just replaced GTalk with Twitter and removed all the Jabber code, plus made a few other minor code changes).

If someone can design a mod which allows people to customise their IM networks instead of finding a mod to do each one, it will be VERY popular. But I don't see that happening any time soon, so for now we have to install one mod to do GTalk/Jabber, another one for Facebook/MySpace, and another one for Twitter.

Thanks for creating this mod though, it was the only one I could find which was coded well enough that I could adapt it for my needs

Marked as installed!

Edit: I've added some new features which I'd love to contribute back to the developer.
Firstly, I've fixed some bugs in the code, mainly a few spelling mistakes, but also:
Inside extra_im_fields_profiletab the image points to 'images/misc/' instead of '$stylevar[imgdir_misc]/'.

Secondly, the profile and postbit both link back to the twitter profile now.

Finally, I've added data validation, so that no matter what format my members enter their Twitter username it will always be inserted correctly.
If they enter:
http://twitter.com/thebluesbros
http://www.twitter.com/thebluesbros
@thebluesbros
twitter.com/thebluesbros
www.twitter.com/thebluesbros
All of these will be converted into 'thebluesbros' before being inserted into the MySQL table.
This is much easier than trying to explain to people exactly how they should format their username

Seriously, DragonMasterNYC, I think if you're able to modify your product to include Twitter (and possibly Facebook), you're going to have an EXTREMELY popular mod!

I'll happily PM you my code changes if you like, 90% of it is identical to what you already have.

I even think I've worked out how to support multiple custom IM networks (without ending up with a messy database and huge numbers of extra fields).
This is what I picture:
You install the product
You go to the Extra IM Fields settings page
You tick the boxes next to the networks you want to enable
Your members can start updating their profiles!

I'd create my own mod to do this, but I'm too honest to "borrow" someone else's code :P
If you want to code it yourself let me know and I'll send you everything I have.
If you want me to do it, that's fine too. This is something I know I need on my own forum. I'd give full credit of course.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01038 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete