Advertisement:

Author Topic: Alternate User Posting  (Read 35116 times)

Offline shadav

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Female
Re: Alternate User Posting
« Reply #60 on: October 02, 2019, 09:24:23 AM »
thank you....
well it installed without any errors but if I go to make a post i get
Code: [Select]
syntax error, unexpected 'array' (T_ARRAY)

Offline shadav

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Female
Re: Alternate User Posting
« Reply #61 on: October 02, 2019, 09:28:15 AM »
1.
Code: (Search) [Select]
'current_member' => $original_id,
Code: (Replace) [Select]
'current_member' => !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id,,
2.
Code: (Search) [Select]
array($topicOptions['id'], $original_id, $msgOptions['id']),
Code: (Replace) [Select]
$topicOptions['id'], !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id, $msgOptions['id'])
Haven't tested it tho
I think i got it :)

Code: [Select]
array($topicOptions['id'], !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id, $msgOptions['id']),
at least everything seems to be working, I could be wrong

Offline Diego Andrés

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 3,361
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Alternate User Posting
« Reply #62 on: October 03, 2019, 10:21:17 PM »
Sorry wasn't around, I supposed you'd do these edits after installing? Maybe I misread :P

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline shadav

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Female
Re: Alternate User Posting
« Reply #63 on: October 04, 2019, 11:01:58 AM »
no you read fine :)
using your codes I was able to install it but then had an error when trying to use

you posted
Code: [Select]
$topicOptions['id'], !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id, $msgOptions['id'])
but, I could be wrong, it needed to be
Code: [Select]
array($topicOptions['id'], !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id, $msgOptions['id']),this got rid of the error so I think it was correct hehehe (until it stops working at least)