After first post

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

After first post

Post by antonio_424 »

Hmm......I'm trying a few different things out and would like to know if anyone here knows how to make something appear after the first post of each topic. I know how to do it to show up after EVERY post, but I would like to figure out how to make it after the first only.

I'm testing something out :mrgreen:

harmlessgoat22
Posts: 108
Joined: Sun Nov 27, 2005 12:25 am

Re: After first post

Post by harmlessgoat22 »

You mean having kinda similar to a blog/comments thing?

Have one post, the main one, then have responces to it?

eg
Topic
_____
_____

Responce 1

_____

Reponce 2

_____

Responce 3


No, I don't know, just clarifieing for other people..
alphaPORTAL
phpBB3 Integration MOD:
Create Pages in phpBB3
Portal
Many Modules including Login, Welcome, Search, Top Posters, Online Now, Menu, Offsite Links, and more

antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Re: After first post

Post by antonio_424 »

No I mean like having the regular first post, but then something comes next, and then the actual rest of the replies afterward in line.

You know how like the in line banner mod thing works? Like that. I made it show up after every post, but I was wondering if anyone know's the code to make it show up only after the FIRST post.

I'm just messing with things a bit right now and seeing what I can do :mrgreen:

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: After first post

Post by Highway of Life »

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->
Image

antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Re: After first post

Post by antonio_424 »

Wow thanks :D I'll give it a go and hopefully it works 8)

Thanks man! :D

EDIT: I get this error:

Code: Select all

Parse error: syntax error, unexpected $end in /home/name/public_html/forums/includes/template.php(150) : eval()'d code on line 1417
EDIT:

I put this in now :

Code: Select all

<!-- ENDIF -->
At the end to see if that would fix it, but nothing happens :?

----------------------------------------------------------------------------------------


EDIT AGAIN LOL:

Well I did it :D Thanks man 8)

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: After first post

Post by Highway of Life »

Sure! glad it worked. ;)

Hmm... isn't this error anyoing?

Code: Select all

[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1085: Undefined variable: time
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 2891: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2460)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 2892: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2460)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 2893: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2460)
Image

antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Re: After first post

Post by antonio_424 »

I don't seem to be getting that error :?

This is what I was trying to do :mrgreen:

Image

Just messing around with this forum. Basically I just kept messing around with it and I ended up making it look like vBulletin :lol: lol

The things that are circled I'm going to fix lol

Like the orange text I'll make blue (if you know how to do this can you tell me how?)

And the Post Details thing has no icon right now so I'm going to put an Icon :p

But basically I was just trying out a few things and wanted to make ads appear after the first post of each page :) And it works now :) No errors or nothing :)

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: After first post

Post by Highway of Life »

Look in your stylesheet... line 168, I believe.
its the
th {
-------
}
class.
Change the "color:#xxxxxx" to something other than orange, like: #000566 etc...

The error WAS on area51 yesterday, on just about every page. ;)
The reason you are getting the TH for the ads header to display to the left of the others, is because it does not have another cell to it's left.
Add some padding or create an empty cell there, and make the TD colspan="2", but make the TH border: none;
Image

antonio_424
Posts: 13
Joined: Fri Aug 04, 2006 5:45 pm

Re: After first post

Post by antonio_424 »

Awesome man. You sure know a lot about all this :mrgreen: Thanks for your help :mrgreen:

Post Reply