OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
add book default set unpubish (0 viewing) 
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: add book default set unpubish
cyw1984 (Visitor)
Posts: 0
graphgraph
User Offline
add book default set unpubish 10 Years, 9 Months ago
Karma: 0  
I found that if I use admin page to add book or through website to add book, the book is deafult set to unpublished.
How to set defaut as pulished after add book.(for admin or publish)
I always need to set it from unpublished to published
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 7701
graph
User Offline Click here to see the profile of this user
Re:add book default set unpubish 10 Years, 9 Months ago
Karma: 93  
Default that created special - for admin review every book added to site

In Book library pro version - you have option in book library setting - for set published book or not after book add

In free version will need update code in save function

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
cyw1984 (Visitor)
Posts: 0
graphgraph
User Offline
Re:add book default set unpubish 10 Years, 9 Months ago
Karma: 0  
I am pro version, where can i set published book directly after add book? Thanks. I can not find the option
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 7701
graph
User Offline Click here to see the profile of this user
Re:add book default set unpubish 10 Years, 9 Months ago
Karma: 93  
Hello,

Sorry with option.

In Book library Pro for admin if Admin wish every new book will publish
he need go to
{yours site}/administrator/components/com_booklibrary/admin.booklibrary.php

find rows:
Code:

$book->published = 0;
$book->approved = 0;



and replace to
Code:

$book->published = 1;
$book->approved = 1;




For every book added from frontend if you wish publish it:
in file:
{yours site}/components/com_booklibrary/booklibrary.php
find code:
Code:

if (!$book->check()) {


and replace to
Code:


$book->published = 1;
$book->approved = 1;
if (!$book->check()) {

Logged Logged
The administrator has disabled public write access.
Go to top