Verry desperate for help - been 4 months - warn @ PM

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Verry desperate for help - been 4 months - warn @ PM

Postby vrazvancristian » 05 Mar 2011, 07:26

Hello.

I am currently using this mod for warnings --> http://phpbb.com/community/viewtopic.php?f=70&t=598589

Is there any possibility to implement this into the private messages view?
I was able to implement it in memberlist, someone told me how, but i don't know where in the .php files to add these codes...


Code: Select all
$warnings = array('POSTER_WARNINGS'   => $user_cache[$poster_id]['warnings'],);




Code: Select all
'W_IMG' => '<img src="./styles/prosilver/imageset/warns/warn'.$warnings['POSTER_WARNINGS'].'.jpg" border="0"> ('.($warnings['POSTER_WARNINGS']*100/5).'%)',


Example:

http://razvancristian.info/capture.jpg

Someone tried to help me @ phpbb.com but

Ather wrote:Untested, so always make a backup first!

Open:
includes\ucp\ucp_pm_viewmessage.php

Find:
$template->assign_vars(array(

Add Before:
Code: Select all
$warnings = array('POSTER_WARNINGS'   => $user_cache[$poster_id]['warnings'],); 


Find:
$template->assign_vars(array(

Add After:
Code: Select all
'W_IMG' => '<img src="./styles/prosilver/imageset/warns/warn'.$warnings['POSTER_WARNINGS'].'.jpg" border="0"> ('.($warnings['POSTER_WARNINGS']*100/5).'%)', 



Now it shows the warnings but .. just a plain text because it doesn't work properly. I mean it shows 0% and no image but the user has 20%.

http://razvancristian.info/capture3.jpg
vrazvancristian    
Cadet I
Cadet I
 
Posts: 10
Joined: 14 Jul 2010, 18:29
Gender: Male
phpBB Knowledge: 5


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: Google Adsense [Bot] and 9 guests