vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change Style of First Post (https://vborg.vbsupport.ru/showthread.php?t=35191)

mas404 03-18-2002 06:31 AM

it is not working
same problem wich SirSteve had !!!

also i have expand/contract hack installed .. what i should do now?

Tim Wheatley 03-18-2002 07:30 AM

HOW is it not working? SOME details might help :)

For example, if it's showing no post, and just showing the reply/post bars above and below where the post should be then your postbit_first template needs to be expanded due to the expand/contract hack. So just redo the template. If that's not your problem, give us some info :)

TECK 05-01-2002 07:33 PM

great hack. thanks firefly. i needed exacly this.

The Piper 06-04-2002 02:47 AM

I was trying to do as SirSteve suggested, to remove the Author/Thread/New Thread/Post Reply bit in the beginning of the post, and to have it only after the first post. So, I thought I could modify showthread.php like this:

Original Code:
Code:

  eval("dooutput(\"".gettemplate("showthread")."\");");
Modified Code:
Code:

if ($counter==1 and $pagenumber==1 and ($thread['forumid']==6 or $thread['forumid']==7 or $thread['forumid']==8 or $thread['forumid']==4)) {
  eval("dooutput(\"".gettemplate("showthread_first")."\");");
} else {
  eval("dooutput(\"".gettemplate("showthread")."\");");
}

Then I created a template called showthread_first which did not have that table cell with such things as author, thread, etc.

Unfortunately, that didn't work. I'm a newbie in PHP, but that seemed to have been a good solution for what I was trying to achieve. I'd appreciate any input on this...

Thanks a lot!

Paulo

hamoe 07-27-2002 01:22 AM

For those who had a problem like this one:

Warning: Missing argument 2 for getpostbit() in /usr/www/users/gandalf/starwarsguide.com/forums/admin/functions.php on line 57


It is an easy fix. and maybe firefly can update his hack with this if he feels like it :). He has you change the following:

function getpostbit($post) {

To the following:

function getpostbit($post,$templatename) {

How about instead of that, you change it to the following:

function getpostbit($post,$templatename='postbit') {

That makes it so that second argument is optional, and if its not used, it defaults its value to postbit. That means that if any other calls are made to getpostbit() expecting the unhacked version of the function, they will operate as expected :)

P45.net 11-03-2002 04:27 PM

Cool.... added this for a book review section on my architecture site...

Ian Cunningham 09-02-2003 07:21 PM

Is there any way to get this to work on 2.3.2?

Hooper 04-05-2005 05:08 AM

Has anything like this been released for vB3?

Hooper 04-05-2005 05:30 AM

Something else I thought might work would be to allow the first post to use the postbit vb3 while the rest use legacy postbit. This would be sufficiant. Anything like this?

index 04-11-2005 07:57 PM

Hi There,

also I liked this hack a lot and I want to know if there's a hack like this made for 3.0.7 ?

waiting a reply

Thanks a lot

Destroyed Soul 04-12-2005 09:27 PM

Do we have to make our own postbit for it? are there any that people would like to donate?


All times are GMT. The time now is 04:21 AM.

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.01330 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_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
  • (11)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