The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change Style of First Post (from vb2 hack)
For vb2, Chen created the very useful "Change Style of First Post" hack that allowed you to create a unique look for the first post in a thread. This gave you the option of making the first post appear more like an article, or even just an image, with the replies within that thread simply look like regular posts. (You could also restrict this layout change to specific forums only, so the rest of your forums could have the regular thread style.)
Here's an example from my site. Only the threads in my "article" forum use this hack. I know that with the creation of the Articles hack, this may not have as much of a following, but what I liked about this hack was that since these first posts are regular forum posts (just with different template style), they appear within searches. Is there any interest in creating something like this for vb3, assuming it seems like a useful hack to others? Or is there some other hack that has these capabilities? Many thanks. |
#2
|
||||
|
||||
You don't need to hack that at all anymore, as it's doable with a postbit template modification
just use HTML Code:
<if condition="$post['postid'] == $threadinfo['firstpostid']"> first post bit in here <else /> normal postbit here </if> |
#3
|
|||
|
|||
you can even do a little change in showthread to select a different template of your choice when doing the first post...
-- maybe someone can do a hack of that kind.. |
#4
|
|||
|
|||
Ooh! Thank you, Xenon. So what I'd do is create a new style for that forum, add that conditional to the postbit template, and voila?
I'm sorry to be so needy. I'm so damn lame when it comes to conditionals and understanding what the various bits of code mean -- like, "firstpostid," I never would've thought of that, even though it seems so obvious. Do the vbulletin documentation pages have a reference section explaining how all these bits and pieces come together? I do agree with Nexialys, though -- that "template switch" would be a very cool option to offer people. Anyway, thanks again Xenon. |
#5
|
||||
|
||||
this not tested but it should work ^_^
in showthread.php find: PHP Code:
PHP Code:
|
#6
|
|||
|
|||
I'm a bit confused as to how to do this; how exactly do I get/make a template for use in a specific forum, and consequently have the first post in that forum look as it does in kira's example?
I can't really use the articles hack since I have a lot of current "threads" which I would need to be made into articles, and apparently there's no way to do that. So changing the templates of that forum would really work well for me. h |
#7
|
|||
|
|||
how do i get the template used here on vb. the first post on on a thread thats hosting a hack. . i want to the bold text options on top... etc.
|
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
And my question.....?
h |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|