vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Postbit mod. (https://vborg.vbsupport.ru/showthread.php?t=179723)

EGF_Mafia 05-18-2008 09:18 PM

Postbit mod.
 
Will i was just wondering, if someone could make a postbit mod for me.
I need this for vb 3.7 gold

What i want is the first post to be the regular postbit BUT the rest of the posts to be postbit_legacy.

If anyone can do that for me :)

Sorry if this is in wrong section :(

EGF_Mafia 05-20-2008 01:37 AM

bump,,
anyone?

Lynne 05-20-2008 02:45 AM

Do a search on Chief First Post (I think that's what it's called - it does have Chief in the title).

EGF_Mafia 05-20-2008 03:11 AM

Thanks but thats not what im looking for,

:(

I dont want people to be able to change it or anything, i want it at default to be the regular postbit for the first post and legacy for the rest

GameWizard 05-20-2008 07:16 AM

Gotta find a hack that changes the first post then only. You could modify the hack suggsted, but remove the selection altogether and fix to use a template of your choice, in this case it's the default postbit template.

Lynne 05-20-2008 02:11 PM

hook: postbit_display_complete:

Code:

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


EGF_Mafia 05-20-2008 06:48 PM

Confused, what do i do with that?

Lynne 05-20-2008 07:28 PM

Create a plugin using the hook 'postbit_display_complete' and put that code in there.

EGF_Mafia 05-20-2008 07:56 PM

:( not working

Lynne 05-20-2008 08:28 PM

Quote:

Originally Posted by EGF_Mafia (Post 1526059)
:( not working

Hmmm, don't know why. It works just fine on my forum. It only changes the template of the very first post, not the first post on every page of the thread.


All times are GMT. The time now is 11:14 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.01311 seconds
  • Memory Usage 1,727KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete