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
#2564
cyw1984 (Visitor)
Fresh Boarder
Posts: 12
graphgraph
User Offline
add book default set unpubish 5 Years, 2 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.
#2566
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:add book default set unpubish 5 Years, 2 Months ago Karma: 61  
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.
#2567
cyw1984 (Visitor)
Fresh Boarder
Posts: 12
graphgraph
User Offline
Re:add book default set unpubish 5 Years, 2 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.
#2574
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:add book default set unpubish 5 Years, 2 Months ago Karma: 61  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?