![]() |
if [quote], prepend \n\n to $newpost[message]
heya!
i'd like to prepend Code:
$newpost[message] Code:
$newpost[message] [/code][quote...[/code] thus, when someone clicks 'quote' and it goes to the editor to type in your message, the quote is 2 or 3 lines down rather than on the 1st line. any tips on where i might be able to edit this variable: Code:
$newpost[message] |
Think you would best of by hacking the functions_bbcodeparse.php for that.
|
would that then induce the new lines on all quotes? (as opposed to just the first one when a user clicks 'quote')
i.e. if someone quotes 5 things in one reply, come parse time, wouldn't each of the 5 quotes have extra carriage returns? |
Probably yes, unless you code a test for it.
|
oh geez. the solution was VERY simple if anyone else wants to do this. i betcha it's on the forums somewhere, i just didn't know what to search for and it's difficult searching for array variables w/ how the search engine parses them...
at any rate, edit template: newpost_quote from: Code:
Code:
then when anyone hits 'quote' or replies to a PM w/ a quote, the quote starts however many lines down u entered above. edit: yikes... the code/quote combo freaks out my reply... just edit that tempate and add carriage returns as you see fit... really easy! :) |
All times are GMT. The time now is 02:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|