1
setaside
Hacking WFSection's Recent Sections Block
  • 2003/11/20 19:56

  • setaside

  • Just popping in

  • Posts: 28

  • Since: 2002/9/24


I'd like to hack WFSection's Recent Sections block (or just make a simple php block) so that it would display the category name, the poster's name (with link), as well as the summary in the block.

So the output would look something like this:

Category : Title
by Name [Date]
Summary Text...

Now I'd also like to throw in an if statement so I can exclude it from displaying articles that are in specific categories because I have created custom html blocks to display certain categories in a nice graphical layout. So if it skips that article, it would like increment the loop or something so that it still would display X articles and not one less.

I'm sure this all would be rather easy to do, I'm just no good when it comes to database queries and php.

2
setaside
Re: Hacking WFSection's Recent Sections Block
  • 2003/11/20 20:03

  • setaside

  • Just popping in

  • Posts: 28

  • Since: 2002/9/24


Speaking of those custom graphical blocks that I made, if they could be made into a php script instead of a html block that would rock. I'd like to do something very similar to what I wrote above but it would only grab the X recent topics from a specific category.

So I'd have the output look like this...

<IMG> Title
by Name [Date]
Summary Text...

The image would just be an image found in /images/<id#>.jpg or something or it could be the categories default image.

Also, if we could display the # of comments in both of these scripts below the summary text that would be great.

So yeah, if anyone can help me out I'd greatly appreciate it!

3
setaside
Re: Hacking WFSection's Recent Sections Block
  • 2003/11/21 22:24

  • setaside

  • Just popping in

  • Posts: 28

  • Since: 2002/9/24


bump

Login

Who's Online

171 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits