vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto post headers and footers (https://vborg.vbsupport.ru/showthread.php?t=47442)

Abbas 01-06-2003 04:03 PM

Auto post headers and footers
 
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


All times are GMT. The time now is 07:15 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
  • Page Generation 0.01076 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete