Pagina 1 van 1
fast reply editten
Geplaatst: 18 jan 2005, 07:40
door clipto
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!

Geplaatst: 20 jan 2005, 07:25
door clipto
Iemand?
Zou het érg fijn vinden als er even iemand een reactie plaatst, dan heb ik dit probleem ook weer opgelost....
alvast bedankt!

Geplaatst: 20 jan 2005, 18:02
door clipto
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 ]--------------------------
Geplaatst: 20 jan 2005, 18:47
door Luuk
Dan moet je denk ik quick_reply.tpl bewerken.
Geplaatst: 21 jan 2005, 03:43
door clipto
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 -->
Geplaatst: 21 jan 2005, 22:43
door mosymuis
Wat is het url naar je forum, en wát wil je nu precies weg hebben?
Geplaatst: 24 jan 2005, 09:56
door clipto
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.
Geplaatst: 09 mar 2005, 13:31
door clipto
iemand?

Geplaatst: 09 mar 2005, 13:56
door Stef
Zoek in viewtopic.php dit eens op: QUICKREPLY_OUTPUT
En dat stuk moeten we hebben.