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)

Tim Wheatley 03-02-2002 10:48 AM

There is definately a bug with this of some sort, it's that to see the 1st post on my board, you have to click 'contract all' :)

So I just have to edit my template. Maybe you could mention this in your first post Firefly? :) Thanks to the guy who said about this ;)

SirSteve 03-02-2002 02:24 PM

I have the same hack installed (contract/expand) and mine works just fine. I do have another bug though...

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

amykhar 03-02-2002 04:04 PM

Gang, this is a very easy hack to do but it can take hours of work to get the templates right - depending on what you want to do with it. If these directions aren't quite right, check out the original instructions on vbulletin.com.

Amy

SirSteve 03-02-2002 04:19 PM

Quote:

Originally posted by amykhar
Gang, this is a very easy hack to do but it can take hours of work to get the templates right - depending on what you want to do with it. If these directions aren't quite right, check out the original instructions on vbulletin.com.

Amy

Can you provide the direct link? Thanks.

Tim Wheatley 03-02-2002 06:06 PM

Thanks Amy. :) It took me a while to figure out that the invisble post was because it was 'minimised', to only visible when I clicked expand all. Then I had to setup the template to counter this. Once I did it now works like a dream. :)

Tim Wheatley 03-02-2002 06:17 PM

If anyone wants the template I've used to make this:
http://www.racesimcentral.com/images/news.gif

Use and modify this: (NOTE: this uses the expand/contract hack!)
Code:

<table bgcolor="{pagebgcolor}" width="90%" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<DIV id="p$post[postid]h" style="display:$ph">
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="$post[backcolor]" valign="top" nowrap><nobr>$plusimg <normalfont>This news item was posted at <a href="http://www.racesimcentral.com" target="_blank">Racesim Central</a> or <a href="http://www.gplea.org" target="_blank">GPLEA.org</a> at
      $post[posttime] $post[postdate]</nobr></td>
</tr>
</table>
</DIV>

<DIV id="p$post[postid]e" style="display:$pe">
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="$post[backcolor]" valign="top" nowrap>
    <p align="left">
        <a name="post$post[postid]"></a>
    $post[firstnewinsert] <nobr>$minusimg <normalfont>This news item was posted at <a href="http://www.racesimcentral.com" target="_blank">Racesim Central</a> or <a href="http://www.gplea.org" target="_blank">GPLEA.org</a> at
    $post[posttime] $post[postdate]</nobr>
    <p align="center"><nobr> </normalfont></nobr></p>
      <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td><normalfont><b>News:</b></normalfont></td></tr><tr><td style="BORDER: #000000 1px solid; COLOR: black; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #D0D0D0;"><normalfont>$post[message]</normalfont></td></tr></table>
      <p align="center"><br><smallfont>News Item: $usertherdcoun | Forum News Views: $personal<br>
<b>ADMIN:</b> <smallfont><a href="http://www.racesimcentral.com/news.html" target="_blank">POST RSC</a> | <a href="http://gplea.racesimcentral.com/news.html" target="_blank">POST GPLEA</a> | <a href="editpost.php?s=$session[sessionhash]&amp;action=editpost&amp;postid=$post[postid]">EDIT</a>
      $post[iplogged]<br><b>USERS:</b> <a href="http://forum.racesimcentral.com/newthread.php?s=$session[sessionhash]&action=newthread&forumid=122" target="_blank">SUPPLY RSC NEWS</a> | <a href="mailto:kotr@gmx.net">SUPPLY GPLEA NEWS</a> | <a href="search.php?s=$session[sessionhash]&amp;action=finduser&amp;userid=$post[userid]">SEARCH</a>&nbsp;|
      <a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]">QUOTE</a></p>
    </td>
       
</tr>
</table>
</DIV>
</td></tr></table>

<!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>


SirSteve 03-02-2002 07:27 PM

Is your style still showing the other forum options like Author, New Thread and Post/Reply buttons?

Tim Wheatley 03-03-2002 01:10 PM

Yes it is - but I need it to anyway :D

SirSteve 03-03-2002 01:14 PM

Do you see a way of getting rid of it?

Tim Wheatley 03-16-2002 05:01 PM

No because the first post hack this is just edits what's shown on my screenshot, and then only on the first post. But what you want to do can be done (VERY EASILY).

Create another set of templates, edit the showthread and postbit templates, then under 'Forums & Moderators' click modify, then edit the forum you want to use those templates, and simply under 'Style Options' select the style you want it to use then 'yes' to 'Override users custom styles'...

There ya go. ;)

I'm sure someone with a bigger talkin tongue can type this out for more of an explanation. ;)


All times are GMT. The time now is 06:22 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.01110 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)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