EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: EzBlock Overview  (Read 6009 times)

0 Members and 1 Guest are viewing this topic.

Offline flea2010

  • Posts: 2
  • Karma: 0
EzBlock Overview
« on: February 20, 2009, 04:24:02 am »
Hello,

I liked to have a treek-view of the boards in a block on the portal-homepage.
Since I don't know how to create an EzBlock I used the following in a php-Block to do this, maybe you could create a EzBlock out of it:

Code: [Select]
$dbresult = db_query(" SELECT * FROM `smf_categories` ORDER BY catOrder ");
while ($row = mysql_fetch_assoc($dbresult))
{

echo "".$row['name']."<br />";

$dbresult2 = db_query(" SELECT * FROM `smf_boards` WHERE ID_CAT = ".$row['ID_CAT']." ORDER BY boardOrder ");
while ($row2 = mysql_fetch_assoc($dbresult2))
{
echo "--&nbsp;<a href=\"/index.php?board=".$row2['ID_BOARD'].".0\">".$row2['name']."</a><br />";
}
echo "<br />";

}
echo "<br />";

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: EzBlock Overview
« Reply #1 on: February 22, 2009, 09:54:37 pm »
Nice idea! I am working on getting the EzPortal ezBlock download zone setup so you can submit your own custom made EzBlocks in the format used by EzPortal
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
22 Replies
85712 Views
Last post April 23, 2015, 02:08:54 pm
by EzPortal
1 Replies
6274 Views
Last post January 18, 2009, 03:19:32 pm
by EzPortal
7 Replies
10717 Views
Last post February 16, 2009, 03:52:14 am
by rockas
0 Replies
4575 Views
Last post June 11, 2009, 11:29:39 am
by Andrew
0 Replies
5806 Views
Last post July 11, 2009, 03:29:50 pm
by YM

+-SMF Gallery

Quick Menu


Powered by EzPortal