XF 1.5 Prefix ID or Name

rivacom

Active member
Is there a variable to use in templates that would call the id or name of the prefix?

What I'm trying to do is make a Frontpage that has a predefined image based on the prefix chosen(image is 200x200px) however if I try just making the prefix use the image via CSS, I get large prefix images in the forum which I don't want.

Ideally i'd like to be able to use something like http://domain/$thread.prefix_id.png

Or if that isn't possible, is it possible to grab the first attachment out of a post somehow?

This is all being done in the templates area.
 
If you have the thread data, it shouldn't be a problem pulling the prefix ID -- {$thread.prefix_id} should work.
 
Back
Top Bottom