News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

BBC User Info V2

Started by vbgamer45, February 01, 2013, 04:20:24 PM

Previous topic - Next topic

SSimple Team

The mod doesn't have that option




Mi Web: SMFSimple.com -

Skaty

i know but is it possible to do with these codes?


$msn = !empty($memberContext[$member_id]['msn']['link']) ? $memberContext[$member_id]['msn']['link'] : '';

Skaty

Quote from: Skaty on April 03, 2013, 06:10:15 AM
i know but is it possible to do with these codes?


$msn = !empty($memberContext[$member_id]['msn']['link']) ? $memberContext[$member_id]['msn']['link'] : '';


Sorry for keep asking but if it is easy can you explain me quckly how to do it ?

Arantor

The point is that it doesn't sound like it can be done particularly easily or quickly.

Skaty

i think it is calling the codes from profile (msn,icq et.) in the same way maybe it can call the custom profile things.  i'm not sure, what is the gimmick about it ?

Arantor

The custom profile things are very, very differently handled. They're just not stored in $memberContext the same way.

knksyon29

it seems its not working on me, no windows appear when i click to the username..

all settings shows are check..

4Kstore

Hello, could you give me the topic url where I can see the mod working? (in your site)

¡¡NEW MOD: Sparkles User Names!!!

knksyon29

http://42.61.208.184/pg/index.php?topic=32 [nofollow]

@4kstore

please advise if you have an access.. thanks.

4Kstore

Please try this:

Edit: ./Sources/UserInfo.php

Code (search) Select

<script type="text/javascript">window.jQuery || document.write(unescape(\'%3Cscript src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"%3E%3C/script%3E\'))</script>


Code (replace with) Select

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>


Code (search) Select

$context['html_headers'] .= "

<script type=\"text/javascript\">
$(document).ready(function()
{

var loading = '".$txt['uic_loading']."'; //The script don't work if this is empty..
var uic_style = '".$modSettings['uic_style']."';

$('a.user_info[rel]').each(function()
{
var username = this.id.replace('ui_','');
// We make use of the .each() loop to gain access to each element via the \"this\" keyword...
$(this).qtip(
{
content: {
// Set the text to an image HTML string with the correct src URL to the loading image you want to use

text: loading,
ajax: {
url: $(this).attr('rel'), // Use the rel attribute of each element for the url to load
type: 'POST',

data: 'user='+username
},
title: {
text: $(this).text(), // Give the tooltip a title using each elements text
button: true
}
},
position: {
at: 'bottom center', // Position the tooltip above the link
my: 'top center',
viewport: $(window), // Keep the tooltip on-screen at all times
effect: false // Disable positioning animation
},
show: {
event: 'click',
solo: true // Only show one tooltip at a time
},
hide: 'unfocus',
style: {
classes: uic_style+' qtip-rounded'
}
})
})

// Make sure it doesn't follow the link when we click it
.click(function(event) { event.preventDefault(); });
});
</script>";


Code (replace with) Select

$context['html_headers'] .= "

<script type=\"text/javascript\">
var ui = jQuery.noConflict();
ui(document).ready(function()
{

var loading = '".$txt['uic_loading']."'; //The script don't work if this is empty..
var uic_style = '".$modSettings['uic_style']."';

ui('a.user_info[rel]').each(function()
{
var username = this.id.replace('ui_','');
// We make use of the .each() loop to gain access to each element via the \"this\" keyword...
ui(this).qtip(
{
content: {
// Set the text to an image HTML string with the correct src URL to the loading image you want to use

text: loading,
ajax: {
url: ui(this).attr('rel'), // Use the rel attribute of each element for the url to load
type: 'POST',

data: 'user='+username
},
title: {
text: ui(this).text(), // Give the tooltip a title using each elements text
button: true
}
},
position: {
at: 'bottom center', // Position the tooltip above the link
my: 'top center',
viewport: ui(window), // Keep the tooltip on-screen at all times
effect: false // Disable positioning animation
},
show: {
event: 'click',
solo: true // Only show one tooltip at a time
},
hide: 'unfocus',
style: {
classes: uic_style+' qtip-rounded'
}
})
})

// Make sure it doesn't follow the link when we click it
.click(function(event) { event.preventDefault(); });
});
</script>";


Save, reupload and try again please..

¡¡NEW MOD: Sparkles User Names!!!

knksyon29

@4kstore..

thanks man.. it now works...

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

Advertisement: