Log in

View Full Version : How do i use Postbit and postbit legacy to gether ?


Subah
01-30-2009, 04:10 PM
Hello every one
i want the user how write the thread is with postbit
and the users how reply on the thread with postbit legacy
i hope it was clear what iam asking to :)

Lynne
01-31-2009, 01:24 AM
Find a mod called Chief First Post. It allows you to have a different postbit for the first post in a thread.

Subah
01-31-2009, 09:26 AM
Thank you Lynne , but this mod make the first post in every page and i don`t want this !
i just want the first post by as postbit and every post else it postbit legacy

Lynne
01-31-2009, 03:43 PM
I think you can just write a plugin then. Perhaps using postbit_display_complete:

if ($post['postid']==$this->thread['firstpostid'])
{
$this->templatename = 'postbit';
}

Subah
01-31-2009, 09:01 PM
Thank you Lynne for trying to help me , but i am so sorry because i am Zerro in PHP , so how can i do this plugin ?!

Lynne
01-31-2009, 09:04 PM
Take a look at the manual - Adding or Editing a Plugin (http://www.vbulletin.com/docs/html/add_plugin)

Subah
01-31-2009, 09:18 PM
Ok what about:
1- Product
2-Hook location
3-Execution Order
what should i write here ?

Lynne
01-31-2009, 09:27 PM
1- Leave as default unless you are making a product also
2- I gave it to you - postbit_display_complete
3- leave as default unless you have problems with it as default

Subah
01-31-2009, 10:04 PM
not work :(

Lynne
01-31-2009, 10:31 PM
Do you have a modification installed that allows users to pick their postbit style? I use a modification to do that and if I have it enabled, this won't work. If I disable it, it works just fine.

Subah
02-01-2009, 08:18 AM
No i do not have this kind of mod :s

Lynne
02-01-2009, 03:25 PM
You have the postbit_legacy set as the default? If so, then I'm not sure what else to suggest. It does work on my test site. It's also the same code that they use in Chief First Post (with a bit more to the condition than the one above so it happens on every page, not just the first page).

Subah
02-01-2009, 04:16 PM
thanks again :(