PDA

View Full Version : Auto post headers and footers


Abbas
01-06-2003, 04:03 PM
I haven't found a hack like this or seen a request for it.

Basically, a lot of my users like to make their posts unique by coming up with weird and wonderful ways of displaying their posts.

Some people like to apply IE text filters, or make their text centred. However, to do this they must paste or type the code to do that everytime.

It would be really great if a hack could be made that allows users to have a header and a footer that is automatically inserted when they post. The header can then contain all the opening tags for their effects e.g. centre, font color etc... and the footer could contain the closing tags e.g. /centre, /font...

what do you guys think? possible?

thanks! :)

Xenon
01-06-2003, 08:00 PM
easy doable by custom profilefields :)

create two fields, header and footer, then edit your postbit template and put
$post[fieldX] and $post[fieldY] around $post[message]
replace X and y with the field ids :)

also don't make these fields to long to prevent javascript codings ....

Abbas
01-07-2003, 09:45 AM
cool thanks!

Would a template modification be required to allow users to change their headers and footers in their settings?

If so, anyone feel up to the job? :)

Xenon
01-07-2003, 03:55 PM
nope, changing the custum fields is included automatically by vb :)

Abbas
01-07-2003, 07:27 PM
thanks Xenon! :)

Xenon
01-08-2003, 04:16 PM
you're welcome