Welcome to Geeklog, Anonymous Tuesday, January 07 2025 @ 04:58 pm EST

Geeklog Forums

Customize the Forumposts Block?


Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Is it easily possible to customize the look fo the forumposts block? Right now it's a title/link, author, date, and views/replies. I would like to change it to Forum Category and title/link.

www.antisource.com
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
I don't currently set the forum category as a template variable that could be used in the layout. You do mean Category and not Forum Name correct?


Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Quote by Blaine: I don't currently set the forum category as a template variable that could be used in the layout. You do mean Category and not Forum Name correct?



Actually I meant the Forum Name. So under my Category of Malware Removal Help, I have a forum called Spyware Cleaners. So in the forumposts block, you would see Spyware Cleaners, break, The Name of the Topic.
www.antisource.com
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
And you don't want to use the Centerblock as it's setup that way now ?
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
I guess you're right, the center block is basically the format I already want. Can I force that to the bottom of the page?
www.antisource.com
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Yep - that is an option in the settings of the forum.

With the newposts block, the forum name is a template variable so you can customize the display line if you want for that block. Look at the template file block_displayline.thtml under the forum folder in your theme. It may not be currently but {forum_name} is the template variable and it's set for each post line in the block.

[Edit] I was looking at the centerblock function. I'm not setting forum_name for the newposts block. You would have to modify the block function but thats not a biggie.

Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Thanks Blaine, I decided to go ahead and use the center block. Probably a better use of space too - and I like having it just appear on the front page. Smile

I haven't decided whether or not I want to make the Forum Names in the center block a hyperlink to the forum list itself, but I think I can figure that out at this point if I go ahead and do that.
www.antisource.com
 Quote

All times are EST. The time is now 04:58 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content