vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post / Edit code help (https://vborg.vbsupport.ru/showthread.php?t=74531)

rjordan 01-17-2005 04:49 PM

Post / Edit code help
 
I am looking for the following in the vB code, but for some reason I am getting twisted around. I am not the best with PHP either, so that is a big help.
  1. Where is the bit of code that handles displaying of each post before it is handed to the template?
  2. Where is the bit of code that handles displaying of each post before it is handed the "print this page" template?
  3. Where is the bit of code that handles displaying of a post preview before it is handed to the template?
  4. Where is the bit of code that handles displaying of a post being edited before it is handed to the template?
  5. Where is the bit of code that handles putting an edited post in the database?
Every time I think I have found the above, I get thrown a curveball looking at another section of code that looks like it does the same thing.

Any help is appreciated!

Xenon 01-17-2005 07:59 PM

you have to look at the function-files.
functions_newpost for post inserting
functions_bbcodeparse for parsing
and functions_showthread for the postbit design

rjordan 01-17-2005 09:45 PM

I thought functions_newpost only handled... well... new posts. I never looked at it because what I am looking to do is make changes to posts that are displayed and posts that are edited. I will have to look at that, then. As for the rest, I have been looking.

Thanks, Xenon!

I will continue to look and hope to find what I am looking for. I am attempting to look at some hacks that deal with the same areas I am trying to alter for the hack I am writing.


All times are GMT. The time now is 01:22 PM.

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.01029 seconds
  • Memory Usage 1,708KB
  • 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
  • (3)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