vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Location of $post[message] (https://vborg.vbsupport.ru/showthread.php?t=68284)

rharbison 08-13-2004 04:24 AM

Location of $post[message]
 
In the postbit template it calls this bit of code:

<!-- message -->
<div>$post[message]</div>
<!-- / message -->

Where is the code that it's calling located? Is that in a template or is it something hard coded in the php?

I've come across a way to allow users to select whether they want to view thumbnails or full size images. I've almost got it working, but I need to modify whether or not it shows the [img] images inline. That's what I'm trying to find the message code for...

Zachery 08-13-2004 04:30 AM

$post[message] pulls the info from the database, try looking at functions_showthread.php or showthread/showpost.php

rharbison 08-13-2004 04:46 AM

> try looking at functions_showthread.php

I think that may be where it is, but I can't seem to find it. Anyone know where it determines if it shows an img called by the [img] tag as an inline image or a link? It allows you to select if you want to show images in the CP, so it must look for that variable somplace...

> or showthread/showpost.php

I don't think it's there. That calls the postbit templates, which in turn call the message thing I referenced above. If I delete those 3 lines, the body of the message won't appear, so it appears $post[message] is what I need to figure out how to modify.

AN-net 08-13-2004 04:51 AM

i believe it is in /includes/functions_showthread.php as postbits are assembled via function which i believe is in that file:)

and this for beta releases, please move to general code discussion:D

Dean C 08-13-2004 08:37 AM

Please don't post questions in the releases forum next time. Thankyou :)


All times are GMT. The time now is 01:01 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.00925 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
  • (5)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