Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 6
Seite [1]
scennative


Poststar




Beiträge: 640
# Thema - 29.03.2009 um 01:52 Uhr
Hallo vergebens versucht den Skype Zustand im Profil in der Navonline reinzustellen...

Hier meine navonline.tpl:
mehr... +-
table cellpadding="0" cellspacing="0" style="width:95%">{loop:users}
<tr>
<td>{users:countryicon} {users:nick} {users:skype}</td>
<td style="text-align:right;"><a href="{users:messageurl}">{icon:mail_send}</ a></td>
</tr>{stop:users}
</table>


Das Ergebnis schaut so aus:
(Landsymbol) Scennative {users:skype} (Mailsymbol)

Kann mir einer helfen.

Ich komm nicht drauf

www.multi-clans.de
Inaktiv
fay-pain


Specialist




Beiträge: 2006
# Antwort: 1 - 29.03.2009 um 01:51 Uhr
Ja, wenn du den Php Code dazu postest, sollte das kein Problem sein


------------------
Manchmal hast du fay und machmal pain.
- hajo

Inaktiv
|
scennative
Thread-Ersteller


Poststar




Beiträge: 640
# Antwort: 2 - 29.03.2009 um 04:06 Uhr
Öh...

ich hab einfach aus dem profil den code rausgesucht:

navonline.php:
mehr... +-
<?php
// ClanSphere 2009 - www.clansphere.net
// $Id: navonline.php 2266 2009-03-21 10:37:39Z duRiel $

$cs_lang = cs_translate('users');

$five_min = cs_time() - 300;
$select = 'users_id, users_nick, users_country, users_active, users_invisible';
$upcome = "users_laston > " . $five_min . " AND users_active = '1' AND users_invisible = '0'";
$order = 'users_laston DESC';
$cs_users = cs_sql_select(__FILE__,'users',$select,$upcome,$order,0,8);
$data = array();

if(empty($cs_users)) {

$data['lang']['no_users'] = $cs_lang['no_data'];

echo cs_subtemplate(__FILE__,$data,'users','no_users');

} else {

$count_users = count($cs_users);
for ($run = 0; $run < $count_users; $run++) {
$data['users'][$run]['nick'] = cs_user($cs_users[$run]['users_id'], $cs_users[$run]['users_nick'], $cs_users[$run]['users_active']);
$data['users'][$run]['countryicon'] = cs_html_img('symbols/countries/'.$cs_users[$run]['users_country' ].'.png');
$nick = str_replace(' ', '%20', cs_secure($cs_users[$run]['users_nick']));
$data['users'][$run]['messageurl'] = cs_url('messages','create','to='.$nick);
}
echo cs_subtemplate(__FILE__,$data,'users','navonline');
}

?>




view.php
mehr... +-
<?php
// ClanSphere 2009 - www.clansphere.net
// $Id: view.php 2266 2009-03-21 10:37:39Z duRiel $

$cs_lang = cs_translate('users');

$users_id = $_GET['id'];
settype($users_id,'integer');
$cs_user = cs_sql_select(__FILE__,'users','*',"users_id = '" . $users_id . "'");

if(empty($cs_user['users_active'])) {
$data['head']['action'] = $cs_lang['profile'];
$data['head']['body_text'] = $cs_lang['not_active_text'];

echo cs_subtemplate(__FILE__,$data,'users','head');

$data['lang']['not_active'] = $cs_lang['not_active'];
echo cs_subtemplate(__FILE__,$data,'users','not_active');
}
elseif(!empty($cs_user['users_delete'])) {
$data['head']['action'] = $cs_lang['profile'];
$data['head']['body_text'] = $cs_lang['delete_text'];

echo cs_subtemplate(__FILE__,$data,'users','head');

$data['lang']['delete'] = $cs_lang['delete'];
echo cs_subtemplate(__FILE__,$data,'users','delete');
}
else {
$data['head']['action'] = $cs_lang['profile'];
$data['head']['body_text'] = cs_addons('users','view',$users_id,'users');

echo cs_subtemplate(__FILE__,$data,'users','head');

$hidden = explode(',',$cs_user['users_hidden']);
#$allow = $users_id == $account['users_id'] OR $account['access_users'] > 4 ? 1 : 0;
$allow = 0;
if($users_id == $account['users_id'] OR $account['access_users'] > 4) {
$allow = 1;
}

$data['if']['own_profile'] = $users_id == $account['users_id'] ? true : false;
$data['url']['picture'] = cs_url('users','picture');
$data['url']['profile'] = cs_url('users','profile');

$data['users']['nick'] = cs_secure($cs_user['users_nick']);
$data['url']['buddy_create'] = cs_url('buddys','create','id=' . $cs_user['users_id']);
$data['url']['message_create'] = cs_url('messages','create','to=' . cs_secure($cs_user['users_nick']));
if(empty($cs_user['users_picture'])) {
$data['users']['picture'] = $cs_lang['nopic'];
} else {
$place = 'uploads/users/' . $cs_user['users_picture'];
$size = getimagesize($cs_main['def_path'] . '/' . $place);
$data['users']['picture'] = cs_html_img($place,$size[1],$size[0]);
}

$content = cs_secure($cs_user['users_name']);
if(in_array('users_name',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['name'] = empty($cs_user['users_name']) ? '--' : $content;

$content = cs_secure($cs_user['users_surname']);
if(in_array('users_surname',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['surname'] = empty($cs_user['users_surname']) ? '--' : $content;

$data['lang']['sex'] = $cs_lang['sex'];
if(empty($cs_user['users_sex'])) { $data['users']['sex'] = '--'; }
if($cs_user['users_sex'] == 'male') { $data['users']['sex'] = $cs_lang['male']; }
if($cs_user['users_sex'] == 'female') { $data['users']['sex'] = $cs_lang['female']; }

$data['lang']['birth_age'] = $cs_lang['birth_age'];
if (!empty($cs_user['users_age'])) {
$content = cs_date('date',$cs_user['users_age']);
$birth = explode ('-', $cs_user['users_age']);
$age = cs_datereal('Y') - $birth[0];
if(cs_datereal('m')<=$birth[1]) { $age--; }
if(cs_datereal('d')>=$birth[2] AND cs_datereal('m')==$birth[1]) { $age++; }
$content .= ' (' . $age . ')';
}
if(in_array('users_age',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['age'] = empty($cs_user['users_age']) ? '--' : $content;

$content = empty($cs_user['users_height']) ? '--' : $cs_user['users_height'] . ' cm';
if(in_array('users_height',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['height'] = empty($cs_user['users_height']) ? '--' : $content;

$content = cs_secure($cs_user['users_adress']);
if(in_array('users_adress',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['adress'] = empty($cs_user['users_adress']) ? '--' : $content;

$data['lang']['postal_place'] = $cs_lang['postal_place'];
if(empty($cs_user['users_postalcode']) AND empty($cs_user['users_place'])) {
$data['users']['postal_place'] = '--';
}
else {
$content = cs_secure($cs_user['users_postalcode']) . ' - ' . cs_secure($cs_user['users_place']);
if(in_array('users_place',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['postal_place'] = $content;
}

if(empty($cs_user['users_country'])) {
$data['users']['country'] = '-';
}
else {
$url = 'symbols/countries/' . $cs_user['users_country'] . '.png';
$data['users']['country'] = cs_html_img($url,11,16);
include_once('lang/' . $account['users_lang'] . '/countries.php');
$country = $cs_user['users_country'];
$data['users']['country'] .= ' ' . $cs_country[$country];
}

$data['users']['registered'] = cs_date('unix',$cs_user['users_register'],1);
$data['users']['laston'] = !empty($cs_users['users_invisible']) ? '--' : cs_date('unix',$cs_user['users_laston'],1);

$content = cs_html_mail($cs_user['users_email']);
if(in_array('users_email',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['email'] = empty($cs_user['users_email']) ? '--' : $content;

$cs_user['users_url'] = cs_secure($cs_user['users_url']);
$content = cs_html_link('http://' . $cs_user['users_url'],$cs_user['users_url']);
if(in_array('users_url',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['url'] = empty($cs_user['users_url']) ? '--' : $content;

$cs_icqstart = 'http://web.icq.com/whitepages/online?icq=';
$content = cs_html_link('http://www.icq.com/' . $cs_user['users_icq'],$cs_user['users_icq']);
$content .= ' ' . cs_html_img($cs_icqstart . $cs_user['users_icq'] . '&amp;img=22','16','15');
if(in_array('users_icq',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['icq'] = empty($cs_user['users_icq']) ? '--' : $content;

$cs_user['users_msn'] = cs_secure($cs_user['users_msn']);
# $content = cs_html_link('http://members.msn.com/' . $cs_user['users_msn'],$cs_user['users_msn']);
$content = cs_html_msnmail($cs_user['users_msn']);
if(in_array('users_msn',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['msn'] = empty($cs_user['users_msn']) ? '--' : $content;

$cs_user['users_skype'] = cs_secure($cs_user['users_skype']);
$content = cs_html_link('skype:' . $cs_user['users_skype'] . '?userinfo', $cs_user['users_skype']);
$skype_url = 'http://mystatus.skype.com/smallicon/' . $cs_user['users_skype'];
$content .= ' ' . cs_html_img($skype_url,'16','16');
if(in_array('users_skype',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['skype'] = empty($cs_user['users_skype']) ? '--' : $content;

$content = cs_secure($cs_user['users_phone']);
if(in_array('users_phone',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['phone'] = empty($cs_user['users_phone']) ? '--' : $content;

$content = cs_secure($cs_user['users_mobile']);
if(in_array('users_mobile',$hidden)) {
$content = empty($allow) ? '--' : cs_html_italic(1) . $content . cs_html_italic(0);
}
$data['users']['mobile'] = empty($cs_user['users_mobile']) ? '--' : $content;

$data['users']['info'] = empty($cs_user['users_info']) ? '&nbsp;' : cs_secure($cs_user['users_info'],1,1);

/* Users View Update */
/* $users_view['users_view'] = $cs_user['users_view'] + 1;
$users_cells = array_keys($users_view);
$users_save = array_values($users_view);
cs_sql_update(__FILE__,'users',$users_cells,$users_save,$cs_user[' users_id']);
$data['users']['view'] = $users_view['users_view'];*/

echo cs_subtemplate(__FILE__,$data,'users','view');
}

?>





Inaktiv
|
SCHIRI ClanSphere Team


Weltmeister



Herkunft: Hamburg
Beiträge: 5299
# Antwort: 3 - 29.03.2009 um 13:31 Uhr
in der 8. Zeile der navonline.php steht:

$select = 'users_id, users_nick, users_country, users_active, users_invisible';

daraus musst du das machen:

$select = 'users_id, users_nick, users_country, users_active, users_invisible, users_skype';

In der 5. Zeile von unten steht dann noch das:

$data['users'][$run]['messageurl'] = cs_url('messages','create','to='.$nick);

Daunter musst du ne neue Zeile machen und das dazu reinschreiben:

$data['users'][$run]['skype'] = cs_secure($cs_users[$run]['users_skype']);


------------------
www.laszlokorte.de

Inaktiv
|
scennative
Thread-Ersteller


Poststar




Beiträge: 640
# Antwort: 4 - 29.03.2009 um 14:35 Uhr
das funktioniert. und wie schaffe ich dass das nur das Skype-symbol kommt. und wenn ich rauf klicke den einen befehl ausführt, der gleiche wenn man auf den skype namen klickt.

Aber danke!



Inaktiv
|
SCHIRI ClanSphere Team


Weltmeister



Herkunft: Hamburg
Beiträge: 5299
# Antwort: 5 - 29.03.2009 um 14:39 Uhr
die URL zu dem Skype Bild beitet Skype selbst an:

http://mystatus.skype.com/smallicon/USERNAME

und der link um skype zu starten ist:

skype:USERNAME?userinfo

als brauchst du so einen html code:

<a href="skype:{users:skype}?userinfo"><img src="http://mystatus.skype.com/smallicon/{users:skype}" alt="Skypename: {users:skype}"/></a>


------------------
www.laszlokorte.de

Inaktiv
|
scennative
Thread-Ersteller


Poststar




Beiträge: 640
# Antwort: 6 - 29.03.2009 um 14:45 Uhr
PERFEKT!!!!!!!!

DANKE DANKE ;D ^^ d=)



Inaktiv
|

Dieses Thema wurde von Denni PM geschlossen.

Antworten: 6
Seite [1]