Current time: 11-22-2024, 12:16 PM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[3.145.97.235], connected from
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Tables
08-06-2011, 05:00 PM
Post: #3
RE: Custom Tables
(08-06-2011 04:54 PM)exdiogene Wrote:  This could be achieved with simple MyCodes, here is an example for a 2 columns table :
PHP Code:[Highlight]
\[table=(.*?)\](.*?)\[/table\]

<
table style="border: 1px solid; border-collapse:collapse;" width="90%" align="center"><tr><th colspan=2 align="center">$1</th></tr>$2</table

PHP Code:[Highlight]
\[row=(.*?),(.*?)\](.*?),(.*?)\[/row\]

<
tr style="vertical-align: top">
<
td style="border: 1px solid #000;" align="center"><div style="background:#c0c0c0; padding-bottom:4px; margin-bottom:8px;">$1</div>$3</td>
<
td style="border: 1px solid #000;" align="center"><div style="background:#c0c0c0; padding-bottom:4px; margin-bottom:8px;">$2</div>$4</td>
<
tr

Then in your post you only have to write :
PHP Code:[Highlight]
[table=table header]
[
row=left sub-header,right sub-header]left content,right content[/row]
[
row=left sub-header,right sub-header]left content,right content[/row]
[
row=left sub-header,right sub-header]left content,right content[/row]
[
row=left sub-header,right sub-header]left content,right content[/row]
[/
table

You can use 2 different row Mycodes for odd/even row colors or add a fifth parameter for the color. Wink

But would I be able to specify how many rows I want to show on one page? This information will be displayed on a single php page - not a post. Is a search field also possible? I thought a MYSQL database had to be used to retrieve this information.

A very similar table was designed for Wordpress under the name "WP-Tables Reloaded".

tacodelivery's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Messages In This Thread
Custom Tables - tacodelivery - 08-06-2011, 04:10 PM
RE: Custom Tables - exdiogene - 08-06-2011, 04:54 PM
RE: Custom Tables - tacodelivery - 08-06-2011 05:00 PM
RE: Custom Tables - exdiogene - 08-06-2011, 06:06 PM
RE: Custom Tables - tacodelivery - 08-06-2011, 06:51 PM
RE: Custom Tables - Midori - 04-27-2013, 04:21 PM
RE: Custom Tables - exdiogene - 04-28-2013, 07:42 AM
RE: Custom Tables - Midori - 04-29-2013, 02:56 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Custom Report Page tacodelivery 11 4,582 04-16-2012 11:00 PM
Last Post: Technoman

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com