| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 03.01.07 Prihlásený: 07.01.11 Príspevky: 242 Témy: 54 Bydlisko: Bardejov | Napísal t0ki: 03.02.2007 21:59 | |
|
Mam problém pri inštalácii modu Smilies Dropdown Menu Mod v1.05.
Pri template subSilver ide v pohode až na toto je to tam rozhadzane. A pri ostatných to vôbec neide.
tu je ten mod vieto dakto praviť? Kód: ######################################################### ## MOD Title: Smilies Dropdown Menu MOD ## MOD Author: Afkamm < phpbb@afkamm.co.uk > (N/A) http://mods.afkamm.co.uk ## ## MOD Description: Makes a dropdown menu which contains a list ## of all the smilies installed on your board. ## ## MOD Date: 03/10/06 ## MOD Version: 1.0.5 ## phpBB Version: 2.0.21 ## ## Installation Level: Easy ## Installation Time: 5 minutes ## ## Files To Edit: 3 ## includes/functions_post.php ## language/lang_english/lang_main.php ## templates/subSilver/posting_body.tpl ## ## Included Files: n/a ## ######################################################### ## Author Notes: ## ## Makes a dropdown menu which contains a list of all the smilies ## installed on your board. When you select a smiley, it appears ## next to the box. The code is then inserted like normal when you ## click on it. ## ## This MOD is loosely based on the Drop Down Smilie MOD by radmanics. ## ## Any problems or questions then please contact me. -- Marc :) ## ######################################################### ## Credits: ## ## radmanics < radmanics@dial.pipex.com > (David Race) http://members.lycos.co.uk/coolcodesportal/ ## ######################################################### ## MOD History: ## ## 2006-10-03 - version 1.0.5 ## - Tweaked the code some more. ## - Removed the separate function getting rid of 1 SQL query. ## ## 2006-09-18 - version 1.0.4 ## - Added code so the dropdown menu wont appear if there are no smilies. ## - Tested with 2.0.21 and works fine. ## ## 2005-01-30 - version 1.0.3 ## - You can now insert smilies anywhere in the textarea box. ## ## 2004-11-06 - version 1.0.2 ## - Corrected the blank line at the bottom of the menu. Thanks Ross. :) ## ## 2004-09-24 - version 1.0.1 ## - Corrected some html errors that I hadn't noticed. ## ## 2004-03-26 - version 1.0.0 ## - Initial release. ## ######################################################### ## This MOD is released under the GPL License. ## Intellectual Property is retained by the MOD Author(s) listed above ######################################################### ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD #########################################################
# #-----[ OPEN ]------------------------------------------- # includes/functions_post.php
# #-----[ FIND ]------------------------------------------- # $num_smilies = 0;
# #-----[ AFTER, ADD ]------------------------------------- # $filename_list = '';
# #-----[ FIND ]------------------------------------------- # $rowset[$row['smile_url']]['emoticon'] = $row['emoticon'];
# #-----[ AFTER, ADD ]------------------------------------- # if( $mode == 'inline' ) { $filename_list .= '<option value="' . $row['smile_url'] . '" id="' . $row['code'] . '"> ' . $row['code'] . '</option>'; if( !$num_smilies ) { $first_smile = $row['smile_url']; } }
# #-----[ FIND ]------------------------------------------- # $template->assign_vars(array( 'L_EMOTICONS' => $lang['Emoticons'], 'L_CLOSE_WINDOW' => $lang['Close_window'], 'S_SMILIES_COLSPAN' => $s_colspan) );
# #-----[ BEFORE, ADD ]------------------------------------ # if ($mode == 'inline') { $template->assign_vars(array( "L_SMILIES" => $lang['dropdown_title'], "L_SMILEY_MENU1" => $lang['dropdown_smilies1'], "L_SMILEY_MENU2" => $lang['dropdown_smilies2'], "SMILEY_IMG" => $board_config['smilies_path'] . '/' . $first_smile, "S_SMILEY_BASEDIR" => $board_config['smilies_path']) ); $template->assign_block_vars('smilies_dropdown', array( "S_SMILIES_DROPDOWN" => $filename_list) ); }
# #-----[ OPEN ]------------------------------------------- # language/lang_english/lang_main.php
# #-----[ FIND ]------------------------------------------- # $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
# #-----[ AFTER, ADD ]------------------------------------- # // Start Smilies Dropdown Menu MOD $lang['dropdown_title'] = 'Smilies'; $lang['dropdown_smilies1'] = 'Select a smiley.'; $lang['dropdown_smilies2'] = 'Click smiley to insert code.'; // End Smilies Dropdown Menu MOD
# #-----[ OPEN ]------------------------------------------- # posting_body.tpl
# #-----[ FIND ]------------------------------------------- # f_help = "{L_BBCODE_F_HELP}";
# #-----[ AFTER, ADD ]------------------------------------- # // Start Smilies Dropdown Menu MOD smile1_help = "{L_SMILEY_MENU1}"; smile2_help = "{L_SMILEY_MENU2}";
// This function was taken from phpBB smiley admin panel function update_smiley(newimage) { document.smiley_image.src = "{S_SMILEY_BASEDIR}/" + newimage; } // End Smilies Dropdown Menu MOD
# #-----[ FIND ]------------------------------------------- # <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr>
# #-----[ AFTER, ADD ]------------------------------------- # <!-- BEGIN smilies_dropdown --> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"><span class="genmed"> {L_SMILIES}: <select name="smile_url" onchange="update_smiley(this.options[selectedIndex].value);" onmouseover="helpline('smile1')"> {smilies_dropdown.S_SMILIES_DROPDOWN} </select> <img name="smiley_image" src="{SMILEY_IMG}" border="0" alt="" onmouseover="helpline('smile2'); this.style.cursor='hand';" onclick="emoticon(document.post.smile_url.options[document.post.smile_url.selectedIndex].id)" /> </span></td> </tr> <!-- END smilies_dropdown -->
# #-----[ SAVE/CLOSE ALL FILES ]--------------------------- # # EoM
_________________ My PC: :smoky:| CPU- Intel Celeron 2.4Ghz | RAM - DDR400 1GB | M.B. - Asus P4P800S SE | G.K. - GeForce FX 5500 | HDD - WD 80GB | Asus DVD-E616P| Asus DRW-1608P3S | Monitor - Samsung: SyncMaster T220HD | Linux user |
|
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|