Help with smileys - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help with smileys (/showthread.php?tid=49464) |
Help with smileys - El Forum - 02-20-2012 [eluser]capypara[/eluser] Hi, I have 2 buttons for 2 separate sets of smileys. Button1 will load smiley set 1, and Button 2 will load smiley set 2. How can i implement this? Currently my buttons are loading all the smileys that i have in both sets. I assume this is because i included all the smileys in the default array in the smileys.php file. Is it possible me to have more than 1 array in the smileys.php file? Or would i have to have 2 different files for each smiley set and change the links in smiley_helper.php? Thank you for taking the time to read this. Help with smileys - El Forum - 02-21-2012 [eluser]capypara[/eluser] Anyone? Help with smileys - El Forum - 02-21-2012 [eluser]InsiteFX[/eluser] Not without extending the smiley_helper It only uses one array. Help with smileys - El Forum - 02-21-2012 [eluser]capypara[/eluser] Thank you for the reply. So i have to create a new helper file that extends the original smiley_helper? Help with smileys - El Forum - 02-22-2012 [eluser]InsiteFX[/eluser] MY_smiley_helper.php and place it in ./application/helpers Help with smileys - El Forum - 02-22-2012 [eluser]capypara[/eluser] Thanks again, i will try it out =) Help with smileys - El Forum - 02-22-2012 [eluser]capypara[/eluser] I got this error. Cannot redeclare _get_smiley_array()(previously declared in /myurl/system/helpers/smiley_helper.php:232) I thought that i could just write another function with the same name and my method will override the default function. So am I doing this wrong? |