13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

748 Chapter 31 Building <strong>Web</strong> Forums<br />

In this case, you have a number of options.The menu bar lets you add a new post <strong>and</strong><br />

exp<strong>and</strong> or collapse your view of the articles.<br />

To underst<strong>and</strong> what these options mean, look at the posts. Some of them have plus<br />

symbols next to them.This means that these articles have been replied to.To see the<br />

replies to a particular article, you can click the plus symbol.The result of clicking one of<br />

these symbols is shown in Figure 31.5.<br />

Figure 31.5<br />

The thread of discussion about persistence has been exp<strong>and</strong>ed.<br />

As you can see, clicking the plus symbol displays the replies to that first article.The plus<br />

symbol then turns into a minus symbol. If you click this symbol, all the articles in this<br />

thread will be collapsed, returning you to the initial view.<br />

You might also notice that one of the replies in Figure 31.5 has a plus symbol next to<br />

it.This means that there are replies to this reply.The level of replies can continue to an<br />

arbitrary depth, <strong>and</strong> you can view each reply set by clicking on the appropriate plus<br />

symbol.<br />

The two menu bar options Exp<strong>and</strong> <strong>and</strong> Collapse exp<strong>and</strong> all possible threads <strong>and</strong> collapse<br />

all possible threads, respectively.The result of clicking the Exp<strong>and</strong> button is shown<br />

in Figure 31.6.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!