Quick Reply Mod

  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

I'm trying to add the quick reply mod to my forums like the ones on here.

It said to open viewtopic.php etc....
and find $template->pparse('body');
i got confused

how do i open viewtopic, using what program...etc

need help

thanks
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

i use dreamweaver to edit php docs...try that. I guarantee you
that you find it right away. ;)
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Or just use a text editor (Personally I like EditPlus cuz of its built-in FTP features).
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

i went into what i thought was the view topic using dreamweaver but could never find $template->pparse('body');
or any of the other codes they were talking about...
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

i think i got it... :lol:
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

so i guess i must be opening the wrong file...idk but thats the only one dealing w/ viewtopic
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Yeah, I think there's two files... I'm not 100% sure, but I think there's one in template directory, and one in the main phpBB directory.

So, yeah, must be the wrong file :)
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

ahhh yes...i thought i had to look for each individual template/style. thx axe i tihnk i got it now
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

yea...it works, now i just need to left align it, how ever i do that lol
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

Code: [ Select ]
// Quick Reply Mod
//
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
{
    $quick_reply_form = "";
}
else
{
    $notify_user = (( $userdata['session_logged_in'] ) ? $userdata['user_notify'] : 0) ? '1' : '';
    $attach_sig = (( $userdata['session_logged_in'] ) ? $userdata['user_attachsig'] : 0) ? '1' : '';
    $quick_reply_form = "
        <script language='JavaScript' type='text/javascript'>
            function checkForm() {
                formErrors = false;
                if (document.post.message.value.length < 2) {
                formErrors = '" . $lang['Empty_message'] . "';
                }
                if (formErrors) {
                    alert(formErrors);
                    return false;
                } else {
                    return true;
                }
            }
        </script>
        <form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
        <span class='genmed'><b>".$lang["Quick_Reply"].":</b><br /><br />
    ";

    if (!$userdata['session_logged_in'])
    {
        $quick_reply_form .= $lang['Username'] . ":&nbsp;<input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
    }

    $quick_reply_form .= "
        <textarea class='post' name='message' rows='10' cols='50' wrap='virtual'></textarea><br />
        <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 . "' /><br />
        <input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />&nbsp;
        <input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
        </form></span>
    ";
}

$template->assign_vars(array(
    'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply Mod
  1. // Quick Reply Mod
  2. //
  3. if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
  4. {
  5.     $quick_reply_form = "";
  6. }
  7. else
  8. {
  9.     $notify_user = (( $userdata['session_logged_in'] ) ? $userdata['user_notify'] : 0) ? '1' : '';
  10.     $attach_sig = (( $userdata['session_logged_in'] ) ? $userdata['user_attachsig'] : 0) ? '1' : '';
  11.     $quick_reply_form = "
  12.         <script language='JavaScript' type='text/javascript'>
  13.             function checkForm() {
  14.                 formErrors = false;
  15.                 if (document.post.message.value.length < 2) {
  16.                 formErrors = '" . $lang['Empty_message'] . "';
  17.                 }
  18.                 if (formErrors) {
  19.                     alert(formErrors);
  20.                     return false;
  21.                 } else {
  22.                     return true;
  23.                 }
  24.             }
  25.         </script>
  26.         <form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
  27.         <span class='genmed'><b>".$lang["Quick_Reply"].":</b><br /><br />
  28.     ";
  29.     if (!$userdata['session_logged_in'])
  30.     {
  31.         $quick_reply_form .= $lang['Username'] . ":&nbsp;<input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
  32.     }
  33.     $quick_reply_form .= "
  34.         <textarea class='post' name='message' rows='10' cols='50' wrap='virtual'></textarea><br />
  35.         <input type='hidden' name='attach_sig' value='" . $attach_sig . "' />
  36.         <input type='hidden' name='mode' value='reply' />
  37.         <input type='hidden' name='sid' value='" . $userdata['session_id'] . "' />
  38.         <input type='hidden' name='t' value='" . $topic_id . "' />
  39.         <input type='hidden' name='notify' value='" . $notify . "' /><br />
  40.         <input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />&nbsp;
  41.         <input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
  42.         </form></span>
  43.     ";
  44. }
  45. $template->assign_vars(array(
  46.     'QUICK_REPLY_FORM' => $quick_reply_form)
  47. );
  48. //
  49. // END Quick Reply Mod



i want it left alligned, but now cant figure that out...i basically want it like these forums quick reply
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

nvm ignore comment above...
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

well thanks for all your help...got it to work
http://www.jakowenko.com/forum
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

you did? :scratchhead:
Quote:
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

ya, i did, it worked and i modded something else lol and kinda messed it up so i deleted all my forums and are going to re do them...
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

hehe ok. just wondering... :)

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 86 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.