Page 1 of 1

Trying to make my own [quote], can't wrap my head around it.

Posted: Tue Jan 06, 2009 11:11 am
by Mightywayne
Basically I've made my own forum system, and I have a [ quote ] function like BBCode for it, but it just looks sloppy and unprofessional.

What I want is to have it so they click the button to quote, and it's like "[ quote=(message id) ](message)[/quote]", but I can't figure out how to get the numbers to be in the [ quote ] part and still have the script pick up the [ quote ] as bbcode. I tried looking through PHPBB but it's like learning another language.

Re: Trying to make my own [quote], can't wrap my head around it.

Posted: Tue Jan 06, 2009 11:53 am
by andyhoneycutt
It would help a lot if you could post some code showing us how you are going about doing this. As your forum is custom scripted, this is impossible to troubleshoot without more information.

-Andy

Re: Trying to make my own [quote], can't wrap my head around it.

Posted: Wed Jan 07, 2009 3:29 am
by mattpointblank
Broadly, you'll need to use some code that when you click the quote button, takes the user to a page with a link like: postreply.php?mode=quote&id=123

Then on that page, if the mode is set to 'quote', query the posts table for ID 123, and prepopulate the textarea with the code you posted, with variables in the relevant places.