Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 11-17-2010, 01:42 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Removing MSN stuff

First of all I would like to take this opportunity to thank you all for reading my thread. Your time is greatly appreciated.

I am writing this as I, like I guess many of us, are sick of going to websites/forums and apart from colors and added modifications they are more or less exactly the same.

I know some administrators go the extra mile and add custom profile fields with images appearing in postbit for them etc however I am hoping someone here could help me take mine the little step further.

I have done a fair bit of research on forums in my niche, and have signed up on many to look at their postbits, their profile options etc and as predicted the majority of them are the same.

What I am trying to do:-
In the Profile section of vBulletin they have the profile fields of MSN, Yahoo Messenger, Skype etc - I am hoping to completely remove these from the profile fields and replace them with things like:
- Facebook, MySpace, Twitter, YouTube

Where the same functions will exist where if a member puts their information in there it will show it on the postbit etc.

I know there are current modifications out that adds, or helps you add these to the board however thats exactly what they do it adds them it doesn't remove the MSN stuff.

I have held a poll on my forum whether they wanted the things of FB, MS etc added or to take over the MSN stuff and 98% voted to replace MSN.

I know it's a big task as looking at all of the templates and files there is alot of code there to edit to edit the links that come up etc but I was wondering someone here would be kind enough to at least assist me in making these changes.

Any help is greatly appreciated.

I hope anyone reading this has a lovely day.
Reply With Quote
  #2  
Old 11-17-2010, 02:25 AM
JamesC70 JamesC70 is offline
 
Join Date: Jun 2007
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to me that the quickest way to do this would be to repurpose the Yahoo/MSN/ICQ/Skype fields already in vBulletin.

I'm figuring that this would involve phrase edits (change Yahoo to Facebook, MSN to Twitter, etc), code edits to the MEMBERINFO and possibly POSTBIT (or POSTBIT_LEGACY) templates, then removing the existing contact information in the member's records (probably easiest through phpMyAdmin). After this, it's simply a matter of replacing the Yahoo/MSN/ICQ/Skype icons with Facebook, Twitter, etc icons (for displaying on the postbit).

Now, packaging all this into a one-click mod.... that would require a better coder than I am. I'm more of a "hands-on, see where I screwed up" kind of guy.
Reply With Quote
  #3  
Old 11-17-2010, 07:10 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's the type of thing I was thinking however when clicking through everything I thought I saw some msn, yahoo type of thing in the actual php files - will have to double check though as i last looked at like 2:30am or something.
Reply With Quote
  #4  
Old 11-18-2010, 08:30 AM
DataHero DataHero is offline
 
Join Date: Jun 2009
Location: NL
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I understand you correctly, you want to completely remove the MSN (etcetera?) fields in the UserCP, as well as the icons and links in postbit. In that case, go to the modifyprofile template in your AdminCP. Near the bottom of said template, you'll find a fieldset. Place it between comment tags, or remove it (but make back-up unless you don't mind reverting the template in the (near-)future!):

HTML Code:
<fieldset class="fieldset">
				<legend>$vbphrase[instant_messaging]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td colspan="2">$vbphrase[may_enter_identity_for_im]</td>
				</tr>
				<tr>
					<td>$vbphrase[icq_number]<br />
						<img src="$stylevar[imgdir_misc]/im_icq.gif" alt="" />
						<input type="text" class="bginput" name="icq" value="$bbuserinfo[icq]" size="25" maxlength="30" dir="ltr" /></td>
					<td>$vbphrase[aim_screen_name]<br />
						<img src="$stylevar[imgdir_misc]/im_aim.gif" alt="" />
						<input type="text" class="bginput" name="aim" value="$bbuserinfo[aim]" size="25" maxlength="30" dir="ltr" /></td>
				</tr>
				<tr>
					<td>$vbphrase[msn_messenger_handle]<br />
						<img src="$stylevar[imgdir_misc]/im_msn.gif" alt="" />
						<input type="text" class="bginput" name="msn" value="$bbuserinfo[msn]" size="25" maxlength="50" dir="ltr" /></td>
					<td>$vbphrase[yahoo_messenger_handle]<br />
						<img src="$stylevar[imgdir_misc]/im_yahoo.gif" alt="" />
						<input type="text" class="bginput" name="yahoo" value="$bbuserinfo[yahoo]" size="25" maxlength="30" dir="ltr" /></td>
				</tr>
				<tr>
					<td>$vbphrase[skype_name]<br />
						<img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" />
						<input type="text" class="bginput" name="skype" value="$bbuserinfo[skype]" size="25" maxlength="32" dir="ltr" /></td>
					<td>&nbsp;</td>
				</tr>
				</table>
</fieldset>
That should have removed the fields in Edit Your Details. Now, although unnecessary, you could always remove the variables in the postbit(_legacy):

PHP Code:
$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon
If you want to add custom fields, go to said template (postbit(_legacy)) and add the following wherever you deem necessary:

(XX equals the field number found in the User Profile Fields category in AdminCP)
PHP Code:
$post[fieldXX
If you want to add a conditional on whether someone entered a value or not, and thus, display it or not:

PHP Code:
<if condition="$post['fieldXX']">$post[fieldXX]</if> 
You can also make custom phrases and add them prior to the field, e.g.:
[php]
$vbphrase[phrase_name]
[/php
Reply With Quote
  #5  
Old 11-18-2010, 10:23 AM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod adds Facebook, MySpace, Twitter, YouTube ect icons in your profile & postbit:
https://vborg.vbsupport.ru/showthread.php?t=230997

Dunno if you've seen it...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04389 seconds
  • Memory Usage 2,214KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete