X-Fire problem

Forum_easyUCP_Desc

Beitragvon jeepguy_1980 » 19. Jul 2007 06:58

I am having a similar problem. However, it is only affecting one field. I am unable to save changes to my X-Fire field. The X-Fire field is a profile modification that allows a user to enter their X-Fire information, just as they would ICQ or MSN.

What Do I need to change?


Ich habe ein Ähnliches Problem. Jedoch beeinflußt es nur ein Feld. Ich bin nicht imstande, Änderungen an meinem X-Feuer (X-Fire) Feld zu sparen. Das X-Feuer Feld ist eine Profiländerung, die einem Benutzer erlaubt, ihre X-Feuer Informationen einzubringen, gerade wie sie ICQ oder MSN wurden.

Was muss ich ändern?

Caused after further 30 minutes:

I am now able to add the Xfire to the profile and save it. However, the Xfire image is not seen when viewing the profile.

What should I look for?

Ich in der Lage bin jetzt, das Xfire dem Profil hinzuzufügen und es zu speichern. Jedoch gesehen das Xfire Bild nicht, wenn man das Profil ansieht.

Nach was sollte ich suchen?
jeepguy_1980
 
Beiträge: 13
Registriert: 19. Jul 2007 02:34

Beitragvon AmigaLink » 19. Jul 2007 12:11

Is the data stored in the database?
If, then you have a bug ist the usercp_viewprofile.php or you have not place the profile_view_body.tpl entrys in the easyucp_body.tpl

The profile_view_body.tpl is no more needed and can be deleted. If a MOD say you are done anything in that file. You must do that in the easyucp_body.tpl :!:
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon jeepguy_1980 » 19. Jul 2007 17:07

Editing easyucp_body.tpl fixed the problem. However, the icons are not spacing evenly. Unless I fill out every field (ICQ, AIM, YIM, XFIRE), the gaps between each icon varies.

Das Redigieren von easyucp_body.tpl regelte das Problem. Jedoch sperren die Ikonen nicht gleichmäßig. Es sei denn ich jedes Feld (ICQ, AIM, YIM, XFIRE) ergänze, unterscheidet die Abstände zwischen jeder Ikone.
Dateianhänge
jeepguy_1980
 
Beiträge: 13
Registriert: 19. Jul 2007 02:34

Beitragvon AmigaLink » 19. Jul 2007 18:16

However, the icons are not spacing evenly. Unless I fill out every field
That is a "bug" which comes from the original phpBB profile. :?
I have fix that in the easyUCP but new icons return the problem again because the guy who has prgramm the hack for the new icon uses the original phpBB code and not mean. ;)

Take a look at the code in usercp_viewprofile.php.
In example I show you the fix for the WWW Icon.
The original phpBB code is:
Code: Alles auswählen
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '&nbsp;';
The fixed code is:
Code: Alles auswählen
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
Note the missing &nbsp; at the end of the line.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon jeepguy_1980 » 19. Jul 2007 20:23

This is the X-Fire code from my usercp_viewprofile.tpl

Dieses ist der X-Fire Code von meinem usercp_viewprofile.tpl

Code: Alles auswählen
// XFire MOD by Chris Weidert
if ( !empty($profiledata['user_xfi']) )
{
   $xfi_add_img  = '<a href="xfire:add_friend?user=' . $profiledata['user_xfi'] . '">' . '<img src="' . $images['icon_xfi_add']  . '"' . ' alt="' . sprintf($lang['XFI_ADD'], $profiledata['user_xfi']) . '" title="' . sprintf($lang['XFI_ADD'], $profiledata['user_xfi']) . '" border="0" /></a>';
   $xfi_img = '<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=' . $profiledata['user_xfi'] . '"><img src="' . $images['icon_xfi'] . '" alt="' . $lang['XFI'] . '" title="' . $lang['XFI'] . '" border="0" /></a>';
   $xfi =  '<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=' . $profiledata['user_xfi'] . '">' . $lang['XFI'] . '</a>';
}
else
{
   $xfi_add_img = '&nbsp;';
   $xfi_img = '&nbsp;';
   $xfi = '&nbsp;';
}
// END XFire MOD by Chris Weidert


This is the code from my easyucp_body.tpl

Dieses ist der Code von meinem easyucp_body.tpl

Code: Alles auswählen
<td class="row1" align="left">&nbsp;{PM_IMG} {EMAIL_IMG} {AIM_IMG} {YIM_IMG} {MSN} {XFI_IMG}{XFI_ADD_IMG} {ICQ_IMG} {U_NICKPAGE}&nbsp;


I tried this, but it didn't work.

Ich versuchte dieses, aber es funktionierte nicht.
Code: Alles auswählen
<td class="row1" align="left">{PM_IMG} {EMAIL_IMG} {AIM_IMG} {YIM_IMG} {MSN} {XFI_IMG}{XFI_ADD_IMG} {ICQ_IMG} {U_NICKPAGE}
jeepguy_1980
 
Beiträge: 13
Registriert: 19. Jul 2007 02:34

Beitragvon AmigaLink » 19. Jul 2007 20:50

Do not confound .php and .tpl files. ;)

This solves the "bug":
Code: Alles auswählen
#
#-----[ OPEN ]----------------------------------------------------------------
#

includes/usercp_viewprofile.php

#
#-----[ FIND ]----------------------------------------------------------------
#

else
{
   $xfi_add_img = '&nbsp;';
   $xfi_img = '&nbsp;';
   $xfi = '&nbsp;';
}
// END XFire MOD by Chris Weidert

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

else
{
   $xfi_add_img = '';
   $xfi_img = '';
   $xfi = '';
}
// END XFire MOD by Chris Weidert

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------
#
# EoM
:D
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon jeepguy_1980 » 19. Jul 2007 21:06

That worked, but I had to fix it for every field in my usercp_viewprofile.php

Thank you

Das arbeitete, aber ich musste es für jedes Feld in meinem usercp_viewprofile.php regeln

Danke
jeepguy_1980
 
Beiträge: 13
Registriert: 19. Jul 2007 02:34

Beitragvon AmigaLink » 19. Jul 2007 22:43

That worked, but I had to fix it for every field in my usercp_viewprofile.php
I know :D
Thank you
No Problem :)
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW


Zurück zu easy UCP



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 9 Gäste

cron