SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Support / Adding "Quote" Button To Each Individual Post For Easier Replies
Posted:  28 Sep 2009 19:57
Greetings --

I'm comfortable with PHP and MySQL and have
thoroughly searched the forum for any clues
regarding the topic that I am bringing up in
this post.

I'd like to add a "Quote" button to each post
(including the original post) in any given topic.

By pressing this button, a user will be transported
to the "Post Your Reply" box.

Where it gets tricky is here... I'd like for
the message content of the post where the
"Quote" button was pushed to be placed within
the "Post Your Reply" box.

The bulk of this already occurs when we are
signed in and choose to "Edit" a post. The
contents of the post we want to edit is placed
within a "box" similar to the one used for the
"Post Your Reply" box.

I'll happily make my finished modification
available to the entire SEO Board community
once I figure out how to implement this. Right
now I just need a little bit of guidance.

For example, this appears to be the relevant
"edit post" code found in vtopic.php:

Code:


[ <a href="'.$forumscript.'?a=editpost&amp;p='.$p_id.'">'.$lang['edit'].'</a> ]


I suppose I'll need to create a function
called "quotepost" instead of "editpost"
and essentially duplicate most of what is
happening within the "editpost" function?

Any guidance would be appreciated!
Posted:  29 Sep 2009 08:48
You are on the right track, if you want this. The quote would need to reload the page though, while currently you just type into the message box.
Posted:  01 Oct 2009 17:49
Update --

I'm making good progress. So far, I have basically
created a copy of the "editpost.php" and have called
it "quotepost.php" -- I am making changes within
that file. Also, I am carefully editing "vtopic.php"
as well as adding new entries to the "eng.php" file.
Oh, and I also created a new template file called
"userquotepost.htm" so that I could add the "quote"
bbcode to the textarea html section as well as to
change some of the wording references.

To be honest, I am trying to keep track of all the
various changes that are being made, but regardless,
I will certainly provide the raw source files to it
all when I am finished and am assured it works --
and I will document every change so others can see
what modifications were made, etc.

The only possibly "bloat" related issue that I can
see occurring is when someone replies and "quotes"
the entire message that they are responding to as
opposed to certain lines/sentences. This could (in
the long run) take up more MySQL database space --
are there any other possible "bloat" issues that I'm
forgetting or not aware of?
Posted:  13 Oct 2009 01:25   Last Edited By: NXN
UPDATE: I'm still tweaking things. The more I look
at the mess of code I've created, the less enthusiastic
I am about pushing forward. There comes a point where
so many random little edits add up to a potentially
unstable code foundation. The good news is that I've
become *extremely* familiar with SEO Board's code and
really thing it's AMAZING. Easily the most incredible
forum platform I've played around with from a coding
standpoint -- and I think it's because everything is
so incredibly organized!
Posted:  07 Nov 2009 09:24   Last Edited By: bdkekos
Quote:
The good news is that I've
become *extremely* familiar with SEO Board's code and
really thing it's AMAZING. Easily the most incredible
forum platform I've played around with from a coding
standpoint -- and I think it's because everything is
so incredibly organized!


I agree.