Benutzername    Passwort    Autologin    
  Passwort vergessen       Registrieren  
beeForum Foren-übersicht » hal9000 » mod support
Neues Thema eröffnen   Neue Antwort erstellen Hervorhebung entfernen


Quick Reply
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
phpBB





Titel: Quick Reply
Verfasst am: Mo, 20 Feb 2006, 13:35
Beitrag
Antworten mit Zitat

Zitat:
This hack can be made compatible with the Quick Reply Hack.

But how? In my forum works Quick Reply Hack 1.0.9 by Smartor. How edit files?

Nach oben
Rang:
boris



Beiträge: 11154

Titel: Re: Quick Reply
Verfasst am: Mo, 20 Feb 2006, 13:48
Beitrag
Antworten mit Zitat

phpBB @ Mo, 20 Feb 2006, 13:35 gab folgendes von sich:
ut how? In my forum works Quick Reply Hack 1.0.9 by Smartor. How edit files?

Read the FAQ (here), chapter III. 5.

(please do NOT use the phpBB-account to post and don't change the profile as it is only a test-account !)


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Mike_PL





Titel: (Kein Titel)
Verfasst am: Mo, 20 Feb 2006, 14:03
Beitrag
Antworten mit Zitat

I read FAQ, but I don't understand...

Code:
#
#-----[ FIND ]------------------------------------------
# NOTE: the line is much longer
#
   $quick_reply_form .= "<textarea


In my viewtopic.php dont this code. I had only

Code:
$quick_reply_form = '';


Sad

Nach oben
Rang:
boris



Beiträge: 11154

Titel: (Kein Titel)
Verfasst am: Mo, 20 Feb 2006, 14:10
Beitrag
Antworten mit Zitat

Mike_PL @ Mo, 20 Feb 2006, 14:03 gab folgendes von sich:
In my viewtopic.php dont this code. I had only

Check for a line with "<textarea" in it - that's where the input field will show up in the page. If you add the UploadPic-bit before that line, you should be ok.

Sorry, can't tell you more about it as I don't use the QuickReply MOD myself. I published the change for the most recent version a couple of weeks ago, I don't know if there are newer versions available now and if the code has changed - that's why I added the text at the end of chapter III. 5.


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Mike_PL





Titel: (Kein Titel)
Verfasst am: Mo, 20 Feb 2006, 14:30
Beitrag
Antworten mit Zitat

Hmm... whats wrong:

Code:
// Start Add - Quick Reply Mod
if ( ( !$is_auth['auth_reply'] || $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) && $userdata['user_level'] != ADMIN )
{
   $quick_reply_form = '';

   $template->assign_vars(array(

// create switch for UploadPic
if (($userdata['user_allow_uploadpic'] == 1) && ($userdata['user_posts'] >= intval($board_config['uploadpic_minposts'])))
{
   $template->assign_block_vars('switch_uploadpic', array());
}

      'QUICK_REPLY_FORM' => $quick_reply_form)
   );

   $template->assign_var_from_handle('', 'quick_reply_body');
}
else
{
   if ( $can_watch_topic && $is_watching_topic )
   {
      $notify_user = '1';
   }
   else
   {
      $notify_user = $userdata['user_notify'];
   }
   $attach_sig = (( $userdata['session_logged_in'] ) ? $userdata['user_attachsig'] : 0) ? '1' : '';
   $quick_reply_form = '
      <input type="hidden" name="attach_sig" value="' . $attach_sig . '" />
      <input type="hidden" name="mode" value="reply" />
      <input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />
      <input type="hidden" name="t" value="' . $topic_id . '" />
      <input type="hidden" name="notify" value="' . $notify_user . '" />';

   $template->assign_vars(array(
      'S_QUICK_REPLY_ACTION' => append_sid("posting.$phpEx"),

      'L_QUICK_REPLY' => $lang['Quick_Reply'],
      'L_USERNAME' => $lang['Username'],
      'L_SUBMIT' => $lang['Submit'],
      'L_PREVIEW' => $lang['Preview'],
      'L_EMPTY_MESSAGE' => $lang['Empty_message'],
      'L_SMILIES' => $lang['Smilies'],
      'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies"),

      'QUICK_REPLY_FORM' => $quick_reply_form)
        'S_UPLOADPIC' => append_sid('uploadpic.'.$phpEx.'?inputname=NAME_OF_INPUT_FIELD&formname=  NAME_OF_FORM'),
        'L_UPLOADPIC' => (file_exists($images['uploadpic_button'])) ? '<img src="'.$images['uploadpic_button'].'" name="upbutton" alt="'.$lang['UploadPic'].'" title="'.$lang['UploadPic'].'" border="0">' : $lang['UploadPic'],
        'L_UPHELP' => $lang['UP_Help'],
   );

   $template->assign_var_from_handle('QUICK_REPLY_BODY', 'quick_reply_body');
}
// End Add - Quick Reply Mod


Sorry for my question and my english Wink

Nach oben
Rang:
boris



Beiträge: 11154

Titel: (Kein Titel)
Verfasst am: Mo, 20 Feb 2006, 14:50
Beitrag
Antworten mit Zitat

Mike_PL @ Mo, 20 Feb 2006, 14:30 gab folgendes von sich:
Hmm... whats wrong:

It seems you're not using the Quick Reply MOD I was using - you should probably use the other code in the FAQ (first one in III. .5) to get that working with UploadPic.

What I can see in your code from here:

Code:
// create switch for UploadPic (...)

I don't know how that got there and I don't think it should be there ...

Code:
(...)      'QUICK_REPLY_FORM' => $quick_reply_form)
        'S_UPLOADPIC' => (...)

You're adding the UploadPic-variables after the array for the variables has been closed - that won't work.

Code:
append_sid('uploadpic.'.$phpEx.'?inputname=NAME_OF_INPUT_FIELD&formname=  NAME_OF_FORM'),

'NAME_OF_INPUT_FIELD' and 'NAME_OF_FORM' have to be replaced with the correct names, see FAQ.

Code:
   $template->assign_var_from_handle('QUICK_REPLY_BODY', 'quick_reply_body');

The textarea (or whatever input field) could be in 'quick_reply_body' - whatever that is, seems to be coming from "assign_var_from_handle" which I have never seen before.

There's just too much not right with your file, you might have to use the other code or get somebody else to install it for you.
Sorry, but I already spend too much time to support UploadPic, I can't fix problems with other MODs as well.


____________
beehave - home of humbug ... [we can't afford to be neutral]

Nach oben
Private Nachricht senden Website dieses Benutzers besuchen Rang:godmode methusalem 3. platz professioneller Sportangler Profi-Winzer (7x Hamm) Arcade-Meister, Rang 16 rainbow-cup
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    beeForum Foren-übersicht » hal9000 » mod support Seite 1 von 1
Gehe zu:  



ähnliche Beiträge
Thema Autor Forum Antworten Verfasst am
Keine neuen Beiträge Quick Reply? Tribun mod support 1 Fr, 30 Mai 2008, 10:49 Letzten Beitrag anzeigen
Keine neuen Beiträge Uploadpic und Quick Post ES kombinieren? Holger mod support 2 Do, 13 Sep 2007, 18:45 Letzten Beitrag anzeigen


Schreiben: nein. Antworten: nein. Bearbeiten: nein. Löschen: nein. Umfragen: nein.
phpBB © phpBB Group | impressum