Current time: 11-25-2024, 10:04 AM 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.135.194.138], connected from
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Tables
08-06-2011, 04:10 PM
Post: #1
Custom Tables
I've been searching for a plugin that would allow me to create custom tables with my own data. Some features I'm looking for include:
  • A search function
  • Option to show certain number of rows on one page
  • Different colored rows
  • Supports HTML

tacodelivery's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
08-06-2011, 04:54 PM (This post was last modified: 08-06-2011 04:55 PM by exdiogene.)
Post: #2
RE: Custom Tables
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

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
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
08-06-2011, 06:06 PM
Post: #4
RE: Custom Tables
When you do a search, all posts are searched!

This seemed to be the easiest way to achieve what you need, if you have more specific needs you would have to tell me.

If you need a multi-page system for a specific display of content, this would be a personal plugin and would need to be done only for you. I hope you understand that this would need to be charged separately... Wink

Send me a PM with the specifics if you want a quote...

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
08-06-2011, 06:51 PM
Post: #5
RE: Custom Tables
(08-06-2011 06:06 PM)exdiogene Wrote:  When you do a search, all posts are searched!

This seemed to be the easiest way to achieve what you need, if you have more specific needs you would have to tell me.

If you need a multi-page system for a specific display of content, this would be a personal plugin and would need to be done only for you. I hope you understand that this would need to be charged separately... Wink

Send me a PM with the specifics if you want a quote...

PM sent! Shy
Visit this user's website Find all posts by this user
Quote this message in a reply
04-27-2013, 04:21 PM (This post was last modified: 04-27-2013 04:26 PM by Midori.)
Post: #6
RE: Custom Tables
Hi
how can I do for three row please
3 columns table

Midori's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
04-28-2013, 07:42 AM
Post: #7
RE: Custom Tables
You will simply need to expand your row MyCode like this :
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>$4</td>
<
td style="border: 1px solid #000;" align="center"><div style="background:#c0c0c0; padding-bottom:4px; margin-bottom:8px;">$2</div>$5</td>
<
td style="border: 1px solid #000;" align="center"><div style="background:#c0c0c0; padding-bottom:4px; margin-bottom:8px;">$3</div>$6</td>
</
tr


And use it like this :
PHP Code:[Highlight]
[row=left sub-header,middle sub-header,right sub-header]left content,middle content,right content[/row

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
04-29-2013, 02:56 PM
Post: #8
RE: Custom Tables
Thanks for my supporting

Midori'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

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