Welcome to Geeklog, Anonymous Tuesday, November 05 2024 @ 07:52 am EST

Geeklog Forums

Two Things I Need Help With


Bradley

Anonymous
Click here to view a news article at my website; you will need this to answer my question.

Here it goes:
1.) In the What's Related block, how do I make the bullets like the rest of the bullets on the site, such as on the Leafs news block.

2.) How do I change the "contributed by-line" to saying the users full name rather than their username!

Thank you very much!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The What's Related block doesn't use the COM_makeList() function - that's an ommission, obviously. To fix that, you would have to change admin/story.php so that it adds all the related links to an array and then calls COM_makeList() with that (instead of using hard-coded <li> tags). You'll find examples of how to do that in lib-common.php. The "contributed by" is set in function COM_article() in lib-common.php and in article.php. If you search for "contributed" you'll find them easily. You will see a database query for the username there - changed that to query the full name. Be aware though that the full name is optional, i.e. not all your users will have set it. You'd better add a check for whether it's empty ... bye, Dirk
 Quote

All times are EST. The time is now 07:52 am.

  • 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