vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Using the vBulletin "Preview Post" functionality on a custom page? (https://vborg.vbsupport.ru/showthread.php?t=185078)

abjds.com 07-12-2008 04:13 AM

Using the vBulletin "Preview Post" functionality on a custom page?
 
Hiya,

We are using a mod on our forum which is a custom page that allows users to post classified ads. The custom mod uses the inbuilt vBulletin editor in order to allow users to post their ads, however there's no "preview" functionality -- when they click "Post Ad" it just goes ahead and posts it.

I was hoping to add the inbuilt vBulletin "preview post" functionality, as a lot of our users have asked for it. Unfortunately the custom mod is largely unsupported by the original creator and any changes to it I've had to do myself.

I have some basic grasp of php and can figure my way around making simple changes, but although I've looked through the files, I think that figuring out how to add the preview function is a bit beyond me.

Would anyone be able to give me a headsup on how to go about doing this? I would be very grateful!

Dismounted 07-12-2008 04:43 AM

The "preview post" feature simply takes the "BB coded" text, and parses it like it would when it is being displayed. Instead of inserting it into the database, the script goes back to the editor page, while displaying the parsed data.


All times are GMT. The time now is 05:06 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.02062 seconds
  • Memory Usage 1,703KB
  • 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
  • (2)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