OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: Auto publish
#762
cipa@cipanb.ca (Visitor)
Fresh Boarder
Posts: 2
graphgraph
User Offline
Auto publish 6 Years, 4 Months ago Karma: 0  
How can I let my users autopublish their books (on the frontend) without me having to approve them on the backend. Thanks
 
Logged Logged  
  The administrator has disabled public write access.
#765
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Auto publish 6 Years, 4 Months ago Karma: 61  
Hi,

In BookLibrary pro for now you can add auto publish for book only through code hack.

please go to file: "booklibrary.php"
find function "save_book_fe"
and after rows
Code:

if(get_magic_quotes_gpc()) {

$book->comment = stripslashes($book->comment);

}




Please add code:
Code:


$book->published = 1;



Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#768
cipa (Visitor)
Fresh Boarder
Posts: 2
graphgraph
User Offline
SOLVED: Auto publish 6 Years, 4 Months ago Karma: 0  
Great!!! Thanks for giving this hack. You've been much help...
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?