Guest aleahl213 Posted February 25, 2013 Share Posted February 25, 2013 I made a new skin based on the defult skin for IB.Board 3.4. I importat my profile design from my 3.2 design and there I had a small snipped that would extratct what games a user had from custom profilefilds. Here is my code: <if test="hasContactFields:|:$this->memberData['g_access_cp'] == 1 || is_array( $member['custom_fields']['games'])"> <if test="member_contact_fields:|:is_array( $member['custom_fields']['games'])"> <foreach loop="cfields:$member['custom_fields']['games'] as $field"> {$field} </foreach> </if> </if> But I only get blank... Can someone help me extract the image from the "games" custom profilefield group? Link to comment Share on other sites More sharing options...
0 Guest aleahl213 Posted February 25, 2013 Share Posted February 25, 2013 From that code I get forbidden in the theme file. Can't save Link to comment Share on other sites More sharing options...
0 Guest aleahl213 Posted February 25, 2013 Share Posted February 25, 2013 I could save it now but I get this nasty error now: Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 114Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 127Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 136Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 137Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 141 Link to comment Share on other sites More sharing options...
0 Lock Down Posted February 25, 2013 Share Posted February 25, 2013 (edited) That's ok. It is because of those lines. Did you get anything else at the top of the screen? If not change the code to this<php>echo '<pre>';print_r($member['custom_fields']);echo '</pre>';</php> Edited February 25, 2013 by Lock Down Link to comment Share on other sites More sharing options...
0 Guest aleahl213 Posted February 25, 2013 Share Posted February 25, 2013 Now it's giving me all of this... I want teh custom fields in the group with Group Reference Key of "games".Array( [contact] => Array ( [msn] => [website] => [skype] => ) [profile_info] => Array ( [gender] => Ikke valgt [location] => ))Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 114Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 127Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 136Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 137Warning: Cannot modify header information - headers already sent by (output started at /home/aleahl/public_html/forum/cache/skin_cache/cacheid_9/skin_profile.php:981) in /home/aleahl/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 141 Link to comment Share on other sites More sharing options...
0 Lock Down Posted February 26, 2013 Share Posted February 26, 2013 (edited) You can remove it. It is saying that you do not have an array element called games. What template is that from and what version of IPB? Edited February 26, 2013 by Lock Down Link to comment Share on other sites More sharing options...
0 Guest aleahl213 Posted February 26, 2013 Share Posted February 26, 2013 Version I use: IP.Board 3.4.1Version template is from: IP.Board 3.4.2 Link to comment Share on other sites More sharing options...
0 Guest aleahl213 Posted February 26, 2013 Share Posted February 26, 2013 Well, yes I do have a group with that ID: Link to comment Share on other sites More sharing options...
0 Guest aleahl213 Posted February 26, 2013 Share Posted February 26, 2013 I may sound stupid but how do I do that?Because when I switch to my old theme ment for 3.2 I can see the games.. Link to comment Share on other sites More sharing options...
Question
Guest aleahl213
I made a new skin based on the defult skin for IB.Board 3.4. I importat my profile design from my 3.2 design and there I had a small snipped that would extratct what games a user had from custom profilefilds. Here is my code:
<if test="hasContactFields:|:$this->memberData['g_access_cp'] == 1 || is_array( $member['custom_fields']['games'])"> <if test="member_contact_fields:|:is_array( $member['custom_fields']['games'])"> <foreach loop="cfields:$member['custom_fields']['games'] as $field"> {$field} </foreach> </if> </if>But I only get blank... Can someone help me extract the image from the "games" custom profilefield group?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts