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: Where's the code for built-in blocks?  (Read 6188 times)

0 Members and 1 Guest are viewing this topic.

Offline Selroth

  • Posts: 2
  • Karma: 0
Where's the code for built-in blocks?
« on: February 12, 2012, 11:25:07 am »
This is probably a stupid question, and the answer is in front of my face, but I'm looking to debug/expand unto some existing ezblocks, or at least reference them as examples for building my own.  However, I'm only using Notepad++ and Chrome as my environment with limited debugging/tracing software.

I'm having trouble finding the code I'm looking for.  For example, the "poll" block - where do I go to find the code that goes inside that block?  And the "Who's Online" block - where would I go to turn the "X guests, Y users" text into a link (?action=who) like it is in the Info Center?

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Where's the code for built-in blocks?
« Reply #1 on: February 12, 2012, 12:52:43 pm »
All the builtin blocks are found in Sources/Subs-EzPortalMain.php they are php functions inside there for each block
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline Selroth

  • Posts: 2
  • Karma: 0
Re: Where's the code for built-in blocks?
« Reply #2 on: February 12, 2012, 01:32:56 pm »
Ah-HA!  I coulda sworn I looked in that file, but if I did I obviously wasn't paying the attention needed! 

Thank you so much for your help!  If I upgrade or create any blocks worth interest, I'll be sure to post them here :)

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Where's the code for built-in blocks?
« Reply #3 on: February 12, 2012, 03:01:06 pm »
Sounds good! Interested to see what you do/change.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
14931 Views
Last post November 18, 2009, 03:05:24 pm
by Eddy Matthews
4 Replies
9450 Views
Last post February 08, 2012, 10:46:02 pm
by EzPortal
0 Replies
8923 Views
Last post July 27, 2014, 10:09:25 am
by Maxx
3 Replies
11146 Views
Last post January 25, 2015, 05:54:23 am
by Maxx
0 Replies
64545 Views
Last post March 26, 2024, 11:15:32 pm
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal