Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Very new at PHP
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #13
RE: Very new at PHP
(05-17-2011 07:08 PM)ZiNgA BuRgA Wrote:  Only put PHP code within <?php ... ?> tags.  In other words, do not put <?php ... ?> tags around your <template ...> call.

All right. Next time i will double check before asking for help. Thank you ZiNgA BuRgA Biggrin

Edit:
I want to show different content for the fist post, so that it looks different.

I tryed this at potbit:

PHP Code:
<if $post['pid'] == 1 then>
first post
<else>
any reply
</if>


I worked, but it is possible to do it so that the first post, third one, 5th and so on... have opposite look that any other?

Something like this:

PHP Code:
<if $post['pid'] == odd# then>
first post
<else>
any reply
</if>


Thanks.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 05-17-2011 11:56 PM by Sama34.)
05-17-2011 07:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Very new at PHP - Sama34 - 05-13-2011, 09:34 PM
RE: Very new at PHP - ZiNgA BuRgA - 05-13-2011, 10:08 PM
RE: Very new at PHP - Sama34 - 05-13-2011, 10:58 PM
RE: Very new at PHP - RateU - 05-14-2011, 03:16 AM
RE: Very new at PHP - Sama34 - 05-14-2011, 05:24 AM
RE: Very new at PHP - ZiNgA BuRgA - 05-14-2011, 09:20 AM
RE: Very new at PHP - Gypaete - 05-16-2011, 12:41 AM
RE: Very new at PHP - Sama34 - 05-16-2011, 06:30 PM
RE: Very new at PHP - Gypaete - 05-17-2011, 01:57 AM
RE: Very new at PHP - ZiNgA BuRgA - 05-17-2011, 07:49 AM
RE: Very new at PHP - Sama34 - 05-17-2011, 06:19 PM
RE: Very new at PHP - ZiNgA BuRgA - 05-17-2011, 07:08 PM
RE: Very new at PHP - Sama34 - 05-17-2011 07:24 PM
RE: Very new at PHP - RateU - 05-18-2011, 04:45 AM
RE: Very new at PHP - Sama34 - 05-18-2011, 09:14 PM
RE: Very new at PHP - Gypaete - 05-18-2011, 09:19 PM
RE: Very new at PHP - Sama34 - 05-25-2011, 11:36 PM
RE: Very new at PHP - RateU - 05-26-2011, 01:56 AM
RE: Very new at PHP - Sama34 - 05-26-2011, 03:26 AM
RE: Very new at PHP - Sama34 - 06-19-2011, 08:51 PM
RE: Very new at PHP - ZiNgA BuRgA - 06-19-2011, 10:34 PM
RE: Very new at PHP - Sama34 - 06-19-2011, 11:07 PM
RE: Very new at PHP - leefish - 06-19-2011, 11:49 PM
RE: Very new at PHP - Sama34 - 06-20-2011, 02:51 PM
RE: Very new at PHP - leefish - 06-21-2011, 12:18 AM
RE: Very new at PHP - brad-t - 03-08-2012, 02:33 AM
RE: Very new at PHP - leefish - 03-08-2012, 04:59 AM
RE: Very new at PHP - brad-t - 03-13-2012, 05:18 AM
RE: Very new at PHP - leefish - 03-18-2012, 10:33 PM
RE: Very new at PHP - ZiNgA BuRgA - 03-19-2012, 09:07 AM
RE: Very new at PHP - leefish - 03-19-2012, 07:52 PM
RE: Very new at PHP - Sama34 - 03-20-2012, 10:12 AM
RE: Very new at PHP - leefish - 03-27-2012, 11:43 AM
RE: Very new at PHP - ZiNgA BuRgA - 03-27-2012, 12:31 PM
RE: Very new at PHP - leefish - 03-28-2012, 12:21 AM
RE: Very new at PHP - RateU - 03-28-2012, 01:51 AM
RE: Very new at PHP - leefish - 03-28-2012, 02:25 AM
RE: Very new at PHP - RateU - 03-28-2012, 05:45 AM
RE: Very new at PHP - leefish - 03-28-2012, 06:31 AM
RE: Very new at PHP - RateU - 03-28-2012, 06:41 AM
RE: Very new at PHP - leefish - 03-28-2012, 08:00 AM
RE: Very new at PHP - ZiNgA BuRgA - 03-28-2012, 08:59 AM
RE: Very new at PHP - leefish - 03-28-2012, 09:43 AM
RE: Very new at PHP - brad-t - 05-16-2012, 08:07 AM
RE: Very new at PHP - ZiNgA BuRgA - 05-16-2012, 12:12 PM
RE: Very new at PHP - brad-t - 05-17-2012, 12:54 AM
RE: Very new at PHP - brad-t - 06-09-2012, 12:46 AM
RE: Very new at PHP - RateU - 06-09-2012, 05:56 AM
RE: Very new at PHP - brad-t - 06-13-2012, 08:23 AM
RE: Very new at PHP - brad-t - 06-15-2012, 11:29 PM
RE: Very new at PHP - ZiNgA BuRgA - 06-16-2012, 12:00 PM
RE: Very new at PHP - brad-t - 06-16-2012, 02:00 PM
RE: Very new at PHP - brad-t - 06-21-2012, 02:36 AM
RE: Very new at PHP - ZiNgA BuRgA - 06-21-2012, 09:20 AM
RE: Very new at PHP - brad-t - 06-21-2012, 10:25 AM
RE: Very new at PHP - brad-t - 07-16-2012, 03:06 AM
RE: Very new at PHP - Sama34 - 07-16-2012, 04:17 AM
RE: Very new at PHP - brad-t - 07-17-2012, 01:37 AM

 Standard Tools
Forum Jump: