MyBB Community Forums

Full Version: Postbit Link w/ dropdown?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, going to try and make this brief yet informative:

We've got a custom postbit section that's been recoded from the ground up, and it's worked great for 8 months. I recently went in to add an on-click drop-down of a specific FID: basically if you click the text of that FID on the postbit, info pops up underneath it.

No harm, no foul, it works great.

However. It only works on the first post of the thread; not on any of the others.

Thoughts?

Here is the code itself, maybe someone can identify an error.

<table class="authorstats">
								<tr>
									<td class="authorstatscell" width="100%">
										<a onclick="toggle_visibility('basernature');" title="Click for more info!"><font style="text-transform: uppercase; font-weight: bold;">{$post['fid23']}</font></a>
										<div id="basernature" style="display:none; position: static; width: 188px; height: 170px; padding-top: 10px; background-color: #ddd; padding: 5px; border-radius: 5px;">
											
											<div align="center"><b><u>ONCLICK TITLE</u></b></div><br><br>
												INFORMATION GOES HERE FOR ONCLICK
											
										</div>
									</td>
								</tr>
							</table>
There can only be a single HTML entity with a given id on a page. You need to dynamically modify that id (don't forget to match it up with the onclick).