fast reply editten

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
clipto
Berichten: 11
Lid geworden op: 28 nov 2004, 01:09

fast reply editten

Bericht door clipto » 18 jan 2005, 07:40

Even een (vast) simpele vraag voor de die-hards hier.
Hoe haal ik snel een aantal regels uit de uitgebreide fast-reply hack.
(officiele titel: Advanced Quick Reply Mod 1.1.1 van http://www.phpbbhacks.com)

Zie hieronder screenshot van hoe het nu is.
Ik wil dus de overbodige opties eruit halen, welke onnodig veel ruimte innemen, maar hóe doe ik dat.
Welke regels uit welke bestanden moet ik hiervoor deleten.

Alvast bedankt! :bier:

Afbeelding
I've got the need for speed
Afbeelding

Gebruikersavatar
clipto
Berichten: 11
Lid geworden op: 28 nov 2004, 01:09

Bericht door clipto » 20 jan 2005, 07:25

Iemand? :roll:
Zou het érg fijn vinden als er even iemand een reactie plaatst, dan heb ik dit probleem ook weer opgelost....

alvast bedankt! :D
I've got the need for speed
Afbeelding

Gebruikersavatar
clipto
Berichten: 11
Lid geworden op: 28 nov 2004, 01:09

Bericht door clipto » 20 jan 2005, 18:02

misschien dat dit nog helpt, uit install.txt file
zitten ook nog 2 files bij,
quick_reply.tpl
& quick_reply.php


Code: Selecteer alles

#################################################################
## Mod Title: Advanced Quick Reply Mod
## Mod Author: RustyDragon <dev@RustyDragon.com>  http://www.phpbbhacks.com
## Mod Version: 1.1.1
## Mod Description: This will allow users to use quick reply form 
##		which is placed below every topic.
##		It will only display when user has the Reply access
##		User have a option to quote the last message.
##      A list of 24 smilies is shown below input area.
##		Users can paste names of users just by clicking on it.
##      Also they can select any text on a page and quote it to the input area.
##
##      Last 3 options were absent in Quick Reply Mod with Quote on which
##      this mod is based.
##		Additional feature - uses of template for quick reply form.
##		So you can change a look of the mod to whatever you want.
##
## Installation Level: Very Easy
## Installation Time: 4 Minutes
##
## Files To Edit: 3
##	viewtopic.php,
##	language/lang_english/lang_main.php
##	templates/subSilver/viewtopic_body.tpl
##
## Included Files: quick_reply.php, quick_reply.tpl
#################################################################
##
## Author Note:
##  If you want to have different number of smilies displayed find a line
##  $max_smilies = 30;
##  in a file quick_reply.php and replace 30 with whatever you want. Setting this variable to zero 
##  will disable  smilies row.
##
##  This MOD is based on Quick Reply Mod with Quote from Smartor <smartor_xp@hotmail.com>
##  
##  This mod will increase the size of your topic page by approx 7kb 
##  and execute one additional (but simple) SQL query for every page load.
##
##	The Quick-Quote Feature was an idea from Nexialys (www.bebeabord.org)
##
##	You should change all your templates and language pack
##
##  Advanced Quick Reply Mod is Copyright © RustyDragon, 2002
##
##	Quick Reply Mod with Quote is Copyright © Smartor, 2002
##	updated to support phpbb 2.0.4 by danb00
##   
##	(Any changes to this MOD must retain these Copyright Notices)

#
#-----[ COPY ]------------------------------------------
#
copy quick_reply.php to /
copy quick_reply.tpl to templates/subSilver

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

#
#-----[ BEFORE, ADD ]------------------------------------
#
include($phpbb_root_path . 'quick_reply.'.$phpEx);

#
#-----[ OPEN ]------------------------------------------
#
lang/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------
#
// Advanced Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';
$lang['QuoteSelelected'] = 'Quote selected';
$lang['QuoteSelelectedEmpty'] = 'Select a text anywhere on a page and try again';
$lang['Quick_Reply_smilies'] = 'all';

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_NAME}

#
#-----[ REPLACE WITH ]------------------------------------
#
<a href="javascript:emoticon('[b]{postrow.POSTER_NAME}[/b], ')">{postrow.POSTER_NAME}</a>

#
#-----[ FIND ]------------------------------------------
#
<!-- END postrow -->

#
#-----[ AFTER, ADD ]------------------------------------
#
	<tr align="center"> 
		<td class="row1" colspan="2" >
		{QUICKREPLY_OUTPUT}
		</td>
	</tr>


#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
I've got the need for speed
Afbeelding

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 20 jan 2005, 18:47

Dan moet je denk ik quick_reply.tpl bewerken.
Afbeelding

Gebruikersavatar
clipto
Berichten: 11
Lid geworden op: 28 nov 2004, 01:09

Bericht door clipto » 21 jan 2005, 03:43

Die ziet er zo uit...
(ik zie 't niet :S wat eruit zou moeten)

Code: Selecteer alles

<!-- BEGIN quick_reply -->
<script language='JavaScript'>
        function openAllSmiles(){
                smiles = window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');
                smiles.focus();
                return false;
        }
        
        function quoteSelection() {

                theSelection = false;
                theSelection = document.selection.createRange().text; // Get text selection

                if (theSelection) {
                        // Add tags around selection
                        emoticon( '[quote]\n' + theSelection + '\n[/quote]\n');
                        document.post.message.focus();
                        theSelection = '';
                        return;
                }else{
                        alert('{L_NO_TEXT_SELECTED}');
                }
        }

        function storeCaret(textEl) {
                if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
        }

        function emoticon(text) {
                if (document.post.message.createTextRange && document.post.message.caretPos) {
                        var caretPos = document.post.message.caretPos;
                        caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
                        document.post.message.focus();
                } else {
                        document.post.message.value  += text;
                        document.post.message.focus();
                }
        }

        function checkForm() {
                formErrors = false;
                if (document.post.message.value.length < 2) {
                        formErrors = '{L_EMPTY_MESSAGE}';
                }
                if (formErrors) {
                        alert(formErrors);
                        return false;
                } else {
                        if (document.post.quick_quote.checked) {
                                document.post.message.value = document.post.last_msg.value + document.post.message.value;
                        } 
                        document.post.quick_quote.checked = false;
                        return true;
                }
        }
</script>
<!-- END quick_reply -->
I've got the need for speed
Afbeelding

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 21 jan 2005, 22:43

Wat is het url naar je forum, en wát wil je nu precies weg hebben?

Gebruikersavatar
clipto
Berichten: 11
Lid geworden op: 28 nov 2004, 01:09

Bericht door clipto » 24 jan 2005, 09:56

de volgende regels/opties moeten eruit, of niet zichtbaar gemaakt worden in de fast reply functie:
  • Opties:
    Quote laatste bericht
    Onderschrift gebruiken (onderschrift kan aangepast worden in je profiel)
    Waarschuwen als er gereageerd is
Zoals je in mijn 1e post kunt zien in het bijgevoegde plaatje.
I've got the need for speed
Afbeelding

Gebruikersavatar
clipto
Berichten: 11
Lid geworden op: 28 nov 2004, 01:09

Bericht door clipto » 09 mar 2005, 13:31

iemand? :cry:
I've got the need for speed
Afbeelding

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 09 mar 2005, 13:56

Zoek in viewtopic.php dit eens op: QUICKREPLY_OUTPUT

En dat stuk moeten we hebben.

Gesloten