xoops forums

gpl13

Just popping in
Posted on: 2004/6/18 0:50
gpl13
gpl13 (Show more)
Just popping in
Posts: 33
Since: 2004/3/5 1
#1

Gadu-Gadu PL Hack

Hi,

I need to do my gg: link :) but i dont know how :) I know only, that this is resposible for this :P

userinfo.php

Quote:


if (is_object($xoopsUser)) {
$xoopsTpl->assign('user_icq', " <img src=\"http://www.gadu-gadu.pl/users/status. ... uot;.$thisUser->getVar(

'icq_user')."&styl=1\" alt=\"".sprintf(_SENDGG,$thisUser->getVar('icq_user'))."\" /><a RAZ DWA TRZY</a>");
} else {
$xoopsTpl->assign('user_icq', '');
}


I wish,that user_icq will be entered after: http://www.gadu-gadu.pl/users/status.asp?id=then after that &styl=1. this is for graphicas status of my messanger :) Next after that image i wish that the ICQ Number will be viewed linked to:

gg: and by icq number !! Some one can help me ??

gpl13

Just popping in
Posted on: 2004/7/5 22:24
gpl13
gpl13 (Show more)
Just popping in
Posts: 33
Since: 2004/3/5 1
#2

Re: Gadu-Gadu PL Hack

Okay, Moderator can close this topic - no one can helps me :( buu ;P

MacDada

Just popping in
Posted on: 2005/5/24 17:20
MacDada
MacDada (Show more)
Just popping in
Posts: 2
Since: 2005/5/24
#3

Re: Gadu-Gadu PL Hack

I want to now it too...

Please! Help us!

KubaZ

Just popping in
Posted on: 2005/5/29 22:43
KubaZ
KubaZ (Show more)
Just popping in
Posts: 37
Since: 2002/10/9
#4

Re: Gadu-Gadu PL Hack - solved

It is very simple. You have to edit your template (because XOOPS uses Smarty Engine), which is located in :

modules/system/templates/system_userinfo.html.

There you have something like this:

<tr valign="top">
          <
td class="head"><{$lang_icq}></td>
          <
td class="odd"><{$user_icq}></td>
        </
tr>


so, you localized where you have to change
So introduce changes :

<tr valign="top">
          <
td class="head"><{$lang_icq}></td>
          <
td class="odd">
<
img src="http://www.gadu-gadu.pl/users/status.asp?id=<{$user_icq}>&styl=1">
<
a href="gg:"><{$user_icq}></a></td>
        </
tr>


to give output <img of status><gg:your gg number>

it's all :P