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.
Trying to make my own [quote], can't wrap my head around it.
Moderator: General Moderators
-
Mightywayne
- Forum Contributor
- Posts: 237
- Joined: Sat Dec 09, 2006 6:46 am
- andyhoneycutt
- Forum Contributor
- Posts: 468
- Joined: Wed Aug 27, 2008 10:02 am
- Location: Idaho Falls
Re: Trying to make my own [quote], can't wrap my head around it.
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
-Andy
-
mattpointblank
- Forum Contributor
- Posts: 304
- Joined: Tue Dec 23, 2008 6:29 am
Re: Trying to make my own [quote], can't wrap my head around it.
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.
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.