1
allnewtome
xfsection: "The selected article does not exist" when user submits article
  • 2005/12/8 22:09

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Xoops 2.2.3 & xfsection 1.1

I'm not sure where on the forums to put this, as it's a solution to a problem which I was ALMOST going to ask about...

When xfsection is set so that users CAN submit articles but they are NOT automatically approved, the message "The selected article does not exist" is displayed after submission of an article. This is becuase xfsection tries to jump to the newly submitted article (which cannot yet be displayed).

Near the bottom of submit.php you'll find a comment "jump new article". The next line needs to be added to as follows:

Quote:
// jump new article
// if ($newid != 0) <---- ADDING TO THIS, SO THAT IF NOT AUTOAPPROVE THEN DON'T TRY TO JUMP TO ARTICLE! JW 8/12/05
if ( ($newid != 0) && ($wfsConfig['autoapprove'] == 1) )


Hope this helps someone. If it's already on the forums (I couldn't find it) then I apologise, and feel free to delete this.

Login

Who's Online

140 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

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

Latest GitHub Commits