VaultWiki

VaultWiki [Paid] 4.1.7 Patch Level 1

No permission to buy ($15.00)
Just a few questions if you dont mind!

Is there a way to show more then 5 pages in a category? Ive tried looking though the settings but not having much luck.

Is there a way to place pages in a particular order - Maybe using a "Display Order - 10" etc?

Is it possible to insert an image into a page? I notice there was no bbcode button on the editor, so tried manually using
 
Last edited:
Yes, in Options > VaultWiki: Navigation > Number of Previewed Category Listings

Categories are always in alphabetical order. You can place pages in a particular order if they are members of a book. Create a new book, then use the "Add Chapter" button in that book.

You can insert images into pages using the IMG BB-Code. If it's not showing in the editor, or the BB-Code doesn't work, you might have images disabled in your Area settings.
 
Thanks @pegasus

Is there much difference between a book and a page? Pages seem to work ideal for what I want to do, the only thing is as I mentioned previously, I need to have them in a specific order.

Will have a look at image settings and see how I get on.

Any advice on the error listed in my previous post? At the moment I have a load of blank attachment pages showing because I can't delete them.
 
@pegasus

Ive just enabled page_img in the Area Manager - However no icon is showing on the editor.

Also, Ive just created to books, however when I click on manage chapter to put them in order, I cant see any options.

book.webp

If I click on Alphabetize or Update Order, it then throws this error

Fatal error: Call to a member function free() on null in /home/airportc/public_html/vault/core/controller/db/xf.php on line 350
 
Also, Ive just created to books, however when I click on manage chapter to put them in order, I cant see any options.

If I click on Alphabetize or Update Order, it then throws this error

Fatal error: Call to a member function free() on null in /home/airportc/public_html/vault/core/controller/db/xf.php on line 350
You must use the "Add Chapter" option to add your pages into the book. The book is a container that lets you put pages in order. If you don't see any options in "Manage Chapters" that means the book has no pages inside it.

In vault/core/controller/ui/book/vw.php, find:
Code:
        vw_DB::get()->func()->free_result($ibooks);
        unset($ibook);
Replace with:
Code:
        vw_DB::get()->func()->free_result($existing);
        unset($chapter);
 
In vault/core/controller/ui/book/vw.php, find:
Code:
        vw_DB::get()->func()->free_result($ibooks);
        unset($ibook);
Replace with:
Code:
        vw_DB::get()->func()->free_result($existing);
        unset($chapter);

Both of them? Theres one at line 107 and line 426

Ive just edited the one on line 107 and when I click on Alphabetize or Update Order it loads a page saying

vw_no_valid_chapters
 
@pegasus

Ive just edited the one on line 107 and when I click on Alphabetize or Update Order it loads a page saying

vw_no_valid_chapters
 
To restore deleting attachments, edit vault/core/controller/dm/attach/file/vw.php. Find and remove:
Code:
'filedata' => ''
Even if it was used, it's redundant here.
 
According to the image you posted above, there are no chapters in the book:
book-png.96893

Add some first.

You must use the "Add Chapter" option to add your pages into the book. The book is a container that lets you put pages in order. If you don't see any options in "Manage Chapters" that means the book has no pages inside it.
 
You must use the "Add Chapter" option to add your pages into the book. The book is a container that lets you put pages in order. If you don't see any options in "Manage Chapters" that means the book has no pages inside it.

Im getting confused now.

In Area Manager ive created an area called "Aircraft". Within "Aircraft" ive created a sub area called "Planes".

Within "Planes" I first created a page called "Jumbo", however as you said that cant be set a display order, I then created a book called "Jumbo"

This seems to be getting awfully complicated. So I would have to rearrange everything so that "Planes" instead of being a sub-area, would have to be a book? Then "Jumbo" would be a chapter within that book? :confused:

Is there no way at all I can do with the way I was - Area, Sub Area, Pages - but with someway of putting a display order on the pages?
 
To restore deleting attachments, edit vault/core/controller/dm/attach/file/vw.php. Find and remove:
Code:
'filedata' => ''
Even if it was used, it's redundant here.

Theres 3 of those in that file. Remove them all?
 
Yes, remove them all. Thanks for pointing that out.

Yes, in that case, if I really wanted the pages to be in a certain order: I would make Planes as a book, not a sub-area. Then I would make Jumbo, etc as chapters in the Planes book.

There is no way to add a display order to pages in an area/sub-area. That is only a feature of books.

Areas are meant to hold thousands of articles in no particular order.
Books are meant to hold articles that must be read in a defined (display)order.
Categories are meant to tag articles and show them in alphabetical order.
Feeds are meant for users to create custom lists of articles and show them in last-added order.

Compare areas: https://www.vaultwiki.org/pages/Help/VaultWiki-4-Manual/VW4:Wiki-Areas
To books: https://www.vaultwiki.org/pages/Help/VaultWiki-4-Manual/VW4:Introduction-to-Books
 
Thanks @pegasus

Ok, Instead of a sub area, I created a book called Planes.

Within Planes, I wish to create a chapter so I can put them in a display order. What option do I need to choose when I click on "Add New Chapter"?

chapter.webp
Also, What is vw_attach_new supposed to be?

Thanks
Dave
 
If the page you want to put in the book already exists, choose "Add Existing Page". If it doesn't "Add New Page".
vw_attach_new should say "Add New Attachment"
 
Thanks @pegasus

However I seem to be taking one step forward and two steps back. When I use pages, they look really nice with the thumbnails etc

book2.webp

However if I do it as a book, it looks really uninspiring.

book.webp

I think i'll stick with the Area, Sub Area and then page option. Looks a lot nicer.
 
Last edited:
@pegasus

As well as the above, I notice some of my pages are not auto linking.
The ones that wont link all seem to center around the same word.

Jet
Jet-S1
Jet-S2

However Ghost Jet does work.

Any idea on why it dosent like the word Jet for auto linking?
 
@pegasus

Sorry to be a pain! Just noticed ive got 7 pages of error logs.

error.webp

Code:
ErrorException: Undefined index: total - vault/core/view/ui/discussion/vw.php:604
Generated By: Dave, 37 minutes ago
Stack Trace

#0 /home/airportc/public_html/vault/core/view/ui/discussion/vw.php(604): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/airportc/...', 604, Array)
#1 /home/airportc/public_html/vault/core/controller/ui/discussion/vw.php(1757): vw_UI_Discussion_View->index(Object(vw_UI_Discussion_Controller_XF))
#2 /home/airportc/public_html/vault/core/controller/ui/discussion/vw.php(143): vw_UI_Discussion_Controller->view()
#3 /home/airportc/public_html/vault/core/controller/ui/discussion/xf.php(69): vw_UI_Discussion_Controller->execute()
#4 /home/airportc/public_html/vault/core/view/ui/page/vw.php(200): vw_UI_Discussion_Controller_XF->execute()
#5 /home/airportc/public_html/vault/core/view/ui/page/vw.php(119): vw_UI_Page_View->get_comments(Object(vw_UI_Page_Controller), false)
#6 /home/airportc/public_html/vault/core/controller/ui/page/vw.php(751): vw_UI_Page_View->view(Object(vw_UI_Page_Controller))
#7 /home/airportc/public_html/vault/core/controller/ui/stack/vw.php(304): vw_UI_Page_Controller->view()
#8 /home/airportc/public_html/vault/core/controller/ui/stack/vw.php(236): vw_UI_Stack_Controller->view()
#9 /home/airportc/public_html/library/vw/XenForo/ControllerPublic/Wiki.php(68): vw_UI_Stack_Controller->execute()
#10 /home/airportc/public_html/library/XenForo/FrontController.php(347): vw_XenForo_ControllerPublic_Wiki->actionIndex()
#11 /home/airportc/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /home/airportc/public_html/index.php(13): XenForo_FrontController->run()
#13 {main}

Request State

array(3) {
  ["url"] => string(63) "http://www.airportcitygame.com/wiki_index/?title=Common-Flights"
  ["_GET"] => array(1) {
    ["title"] => string(14) "Common-Flights"
  }
  ["_POST"] => array(0) {
  }
}
 
Ive tried that but not having much luck. This is what I have:

View attachment 96917
I want it increase it from showing 5 pages to 10.
There is a different "Number of Previewed" setting for each kind of page container. For areas, "Number of Previewed Area Contents". For books, "Number of Previewed Book Contents". etc.

As well as the above, I notice some of my pages are not auto linking.
The ones that wont link all seem to center around the same word.

Jet
Jet-S1
Jet-S2

However Ghost Jet does work.

Any idea on why it dosent like the word Jet for auto linking?
The word "Jet" is too short. The default setting for auto-links is only words at least 4 characters long, which significantly saves on performance. If you want to lower it to 3 characters, the threshold is a setting in VaultWiki: Wiki Links > Minimum Characters for Auto-Links. I'm not sure why Jet-S1 would not work.

For your other errors, I think this only occurs if the default "Main Discussion" is disabled for the area. In vault/core/view/ui/discussion/vw.php, find:
Code:
if ($this->limit['total'] > 1)
Replace with:
Code:
if ($commentbits AND $this->limit['total'] > 1)
 
Back
Top Bottom