Jump to content

Guest name when adding topic/post via external script

The Krotek

Recommended Posts

I've tried to create a topic/post from guest with certain display name, but it seems, that right now it's not possible since setAuthor($member) function accepts only member's ID, and if it is empty or zero nothing displays. At the end you'll have ** as topic/post author, where asterisks are just enclosure to empty name. So I'd like to suggest you to add an extra check like this:

If $member is not integer - use $member value as guest name.

For example, I can use setAuthor("GuestDude") and it'll display *GuestDude* as topic/post author. Very simple and can save a bunch of time for those, who want to use names for guests when posting via external script.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...