[SOLVED] Change Warnings Images To Text. »  Show posts from    to     

Icy Phoenix


Old Support Topics - [SOLVED] Change Warnings Images To Text.



cyber [ Thu 05 Apr, 2007 12:18 ]
Post subject: [SOLVED] Change Warnings Images To Text.
Is there any way to change the warning images to just like "Warnings: 1" etc ???


Zuker [ Thu 05 Apr, 2007 13:49 ]
Post subject: Re: Warnings Text??
yes... but there lot's of changes to do in viewtopic.php i think


cyber [ Wed 25 Apr, 2007 22:06 ]
Post subject: Re: Warnings Text??
Can you help me do the changes?

Maybe you can post a How to in the How to forum!


Looking forward to this!


Zuker [ Wed 25 Apr, 2007 22:25 ]
Post subject: Re: Warnings Text??
Try this on viewtopic.php

FIND
Code: [Hide] [Select]
$card_img .= ($user_warnings) ? '<img src="'.(( $user_warnings < $board_config['max_user_bancard']) ?
$images['icon_y_cards'] . '" alt="'. sprintf($lang['Warnings'], $user_warnings) .'" title="'. sprintf($lang['Warnings'], $user_warnings) .'" />' :
$images['icon_r_cards'] . '" alt="'. $lang['Banned'] .'" title="'. $lang['Banned'] .'" />') : '';
$card_img .= '&nbsp;';


REPLACE WITH

Code: [Hide] [Select]
$card_img .= ($user_warnings) ? (( $user_warnings < $board_config['max_user_bancard']) ? sprintf($lang['Warnings'], $user_warnings) :
$images['icon_r_cards'] . '" alt="'. $lang['Banned'] .'" title="'. $lang['Banned'] .'" />') : '';
$card_img .= '&nbsp;';


cyber [ Thu 26 Apr, 2007 13:04 ]
Post subject: Re: Warnings Text??
thats my darling!!!

thank you so much.... but first let me try if it works or not!


Zuker [ Thu 26 Apr, 2007 15:10 ]
Post subject: Re: Warnings Text??
cyber, it works
i've test it yesterday


cyber [ Fri 27 Apr, 2007 13:36 ]
Post subject: Re: Warnings Text??
Zuker wrote: [View Post]
cyber, it works
i've test it yesterday



no still doesnt work....the images show up!

i dont want the images to show up....i want it to be like the original mod like in text Warnings: 1


Zuker [ Fri 27 Apr, 2007 13:54 ]
Post subject: Re: Warnings Text??
Check this topic

http://www.superzuker.com.ar/icy/viewtopic.php?p=62#p62

See the test user?

It says Warnings: 1

It's working


cyber [ Sun 29 Apr, 2007 13:49 ]
Post subject: Re: Warnings Text??
Yeah!! I forgot to clear cache!

It works like charm!


toledo [ Wed 23 May, 2007 13:51 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
I tried this code on my test board....

but the problem is it shows

Warnings 1 for 1 warning ------ ok thats correct

but for 2 warnings it shows this thing twice!

Warnings:2 Warnings: 2 and so on...


whats wrng here?

And how about if i dont want the red card to show if the user reaches the max warnings....when he/she does...it should show the no. of warnings.

Please help Zuker!!


Zuker [ Wed 23 May, 2007 16:56 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Why u have got this spam account?

http://www.icyphoenix.com/profile.php?mode=viewprofile&u=1393#


toledo [ Wed 23 May, 2007 21:30 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Zuker wrote: [View Post]
Why u have got this spam account?

http://www.icyphoenix.com/profile.php?mode=viewprofile&u=1393#


Was that for me? Then you are wrong...i dont know any spam account neither i know how to create one!


Zuker [ Wed 23 May, 2007 23:44 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
it was registered using the same ip adress of your account


tonyf12 [ Thu 24 May, 2007 20:04 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Zuker wrote: [View Post]
it was registered using the same ip adress of your account



so the same person has unknown OS and unknown browser as has Win XP and FF2, (and that's just public info).


toledo [ Fri 25 May, 2007 13:56 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Zuker wrote: [View Post]
it was registered using the same ip adress of your account


I dont know....i live in a university...all pc's have same public IP's. I dont have time to use my own account...how can u expect me to make other?!?

Any ways....this little patch u gave doesnt work and i have that problem which i wrote in my post above.

Please try that on your test board....I really need this thing working...


Zuker [ Fri 25 May, 2007 15:01 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
OPEN

VIEWTOPIC.PHP

FIND

Code: [Hide] [Select]
$card_img .= '<img src="' . $images['icon_y_cards'] . '" alt="' . sprintf($lang['Warnings'], $user_warnings) . '" title="' . sprintf($lang['Warnings'], $user_warnings) . '" />&nbsp;';


REPLACE WITH
Code: [Hide] [Select]
$card_img = sprintf($lang['Warnings'], $user_warnings);


toledo [ Fri 25 May, 2007 19:27 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Thanks Zuker but i cant find that anywhere!

I have this somewhere near that:

Code: [Hide] [Select]
$card_img = ($user_warnings >= $board_config['max_user_bancard']) ? '<img src="'.$images['icon_r_cards'] . '" alt="'. $lang['Banned'] .'" title="'. $lang['Banned'] .'">' : '';
for ($n=0 ; $n<$user_warnings && $user_warnings < $board_config['max_user_bancard'];$n++)
{
$card_img .= ($user_warnings) ? '<img src="'.(( $user_warnings < $board_config['max_user_bancard']) ?
$images['icon_y_cards'] . '" alt="'. sprintf($lang['Warnings'], $user_warnings) .'" title="'. sprintf($lang['Warnings'], $user_warnings) .'" />' :
$images['icon_r_cards'] . '" alt="'. $lang['Banned'] .'" title="'. $lang['Banned'] .'" />') : '';
$card_img .= '&nbsp;';
}


Zuker [ Fri 25 May, 2007 19:33 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Arround line 2065 on viewtopic.php of last version of icy


toledo [ Fri 25 May, 2007 22:41 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Zuker wrote: [View Post]
Arround line 2065 on viewtopic.php of last version of icy


Er..sorry Zuker but im using ICY 1.0.11.11....i didnt upgrade because i modified this one so much that i dont have time to do it all over again. But i will upgrade later during my holidays next month.

So what to do for IP 1.0.11.11 ?


PS: You guys are the best in giving support here! I love ICY PHOENIX!!


Zuker [ Fri 25 May, 2007 23:26 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
You will have to upgrade to last version. I'm sorry
There are lots of things fixed


toledo [ Sat 26 May, 2007 18:53 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
Zuker wrote: [View Post]
You will have to upgrade to last version. I'm sorry
There are lots of things fixed


Thanx anyways Zuker. But if you have free time please tell me how to do this 1.0.11.11

It will be a month for me to upgrade to latest IP.


Zuker [ Sat 26 May, 2007 19:05 ]
Post subject: Re: [SOLVED] Change Warnings Images To Text.
There is no support for previous versions of release. Only for upgrading




Powered by Icy Phoenix