PDA

View Full Version : Location of $post[message]


rharbison
08-13-2004, 04:24 AM
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 :)