Quick Reply Mod

  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 4:03 pm

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 9th, 2004, 4:03 pm

  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6396
  • Loc: unflux.net
  • Status: Offline

Post February 9th, 2004, 4:07 pm

i use dreamweaver to edit php docs...try that. I guarantee you
that you find it right away. ;)
UNFLUX.net Hosting | Foto
Quality Web Hosting
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5755
  • Loc: Sub-level 28
  • Status: Offline

Post February 9th, 2004, 4:09 pm

Or just use a text editor (Personally I like EditPlus cuz of its built-in FTP features).
John
» PHP Scripts & Resources » Free Photoshop Tutorials
» Anybody wanna pay my mortgage? PM me!
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 4:09 pm

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
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 5:21 pm

i think i got it... :lol:
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 5:24 pm

so i guess i must be opening the wrong file...idk but thats the only one dealing w/ viewtopic
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5755
  • Loc: Sub-level 28
  • Status: Offline

Post February 9th, 2004, 5:35 pm

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 :)
John
» PHP Scripts & Resources » Free Photoshop Tutorials
» Anybody wanna pay my mortgage? PM me!
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 5:44 pm

ahhh yes...i thought i had to look for each individual template/style. thx axe i tihnk i got it now
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 6:00 pm

yea...it works, now i just need to left align it, how ever i do that lol
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 6:48 pm

Code: [ Download ] [ 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
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 6:51 pm

nvm ignore comment above...
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 9th, 2004, 7:03 pm

well thanks for all your help...got it to work
http://www.jakowenko.com/forum
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6396
  • Loc: unflux.net
  • Status: Offline

Post February 9th, 2004, 9:46 pm

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.
UNFLUX.net Hosting | Foto
Quality Web Hosting
  • Jako
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 30, 2003
  • Posts: 227
  • Status: Offline

Post February 10th, 2004, 6:04 pm

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
  • Joined: Dec 20, 2002
  • Posts: 6396
  • Loc: unflux.net
  • Status: Offline

Post February 11th, 2004, 9:36 am

hehe ok. just wondering... :)
UNFLUX.net Hosting | Foto
Quality Web Hosting
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 11th, 2004, 9:36 am

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 249 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
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.