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




