• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenCarta (Lite Wiki)

Status
Not open for further replies.
[Question]
I am using Wiki as an articles system. Sort of like the "Pages" built in to XenForo.
This achieves the results I am looking for in that I have a menu item - seperate from the forum - to take you to various static pages of content.
I have created all my pages (except for a few) and it seems to run fine.
I have a bit of difficulty figuring out the Parent Node and Index Weight purposes.
I fully understand the parent node and I began building my pages like:
ROOT (weight 0) aka index
--> Category (weight 1)
-----> Page (weight 2)
However, as a previous poster said, that throws all of the pages into the sidebar - without any organization.
But it does build a great chained page list right off of "root"
So following the guidance I switched.
ROOT (weight 0)
--> Category (weight 1)
Page (no parent, weight 0)
This renders properly in the side bars, but now I don't have the tree from root.
So I am curious how the weights and parents go together in this system?
 
The "parent" system defines the breadcrumbs, as well as which pages show up in the "Wiki Navigation" sidebar. The Wiki Navigation sidebar only shows on child pages and will not show up unless you are outside the root. The "index weight" system defines what pages show up on the "Wiki Index" sidebar, which appears on EVERY page.

Try this instead. Don't consider the index as a root. Instead treat the index as it's own page and put your categories as root nodes, instead of as children from the index. The Wiki Navigation tree shows all RELATED pages, if you make everything a child of Index, then you are making EVERY page related to each other; which is wrong.

Category (weight 1)
--> Page (weight 0)
Index (weight 0)
 
First paragraph of the Amy page is as follows:
[template=charBIG]
| name = Amy Sorel
| image = Amy/amySC4art1.jpg
| debut = Soulcalibur III
| voiceE = Heather Hogan (current)
| voiceJ = Hitomi Nabatame (current)
Kanako Tateno (SC3)
| age = Unknown
| bplace = Unknown
| bdate = Unknown
| blood = Unknown
| height = Unknown
| weight = Unknown
| family = Foster father / Raphael
Her real parents are unknown
| type = English Sword Rapier
| weapon = Albion
| style = La Rapière des Sorel
[/template]
Amy (エイミ, Eimi) made her first appearance in Soulcalibur II, albeit only in the opening video sequence. She appeared as a playable bonus character for Soulcalibur III and in Soulcalibur III: Arcade Edition she is included as one of the main characters. Amy returns in Soulcalibur IV with an updated costume which bears a similar style to the previous one. When Amy became an independent character, rather than a costume for the Rapier style, she gained her own, unique moveset which is based on her fighting style in Soulcalibur III: Arcade Edition.

As you can see, it calls a template called "charBIG"... contents of charbig are as follows:
Code:
<table style="float: right; margin: 0px 0px 5px 10px; width: 300px;">
	<tr>
		<td colspan="2" class="subHeading"><b>{{{name}}}</b></td>
	</tr>
	<tr>
		<td colspan="2"><img src="soulcalibur/{{{image}}}" alt="{{{image}}}" style="max-width: 300px;" /></td>
	</tr>
	<tr>
		<td colspan="2" class="subHeading"><b>Character</b></td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Debut:</b></td>
		<td class="primaryContent">{{{debut}}}</td>
	</tr>
	<tr>
		<td class="secondaryContent"><b>Voice (E):</b></td>
		<td class="secondaryContent">{{{voiceE}}}</td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Voice (J):</b></td>
		<td class="primaryContent">{{{voiceJ}}}</td>
	</tr>
	<tr>
		<td colspan="2" class="subHeading"><b>Biography</b></td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Age:</b></td>
		<td class="primaryContent">{{{age}}}</td>
	</tr>
	<tr>
		<td class="secondaryContent"><b>Birthplace:</b></td>
		<td class="secondaryContent">{{{bplace}}}</td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Birthday:</b></td>
		<td class="primaryContent">{{{bdate}}}</td>
	</tr>
	<tr>
		<td class="secondaryContent"><b>Blood:</b></td>
		<td class="secondaryContent">{{{blood}}}</td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Height:</b></td>
		<td class="primaryContent">{{{height}}}</td>
	</tr>
	<tr>
		<td class="secondaryContent"><b>Weight:</b></td>
		<td class="secondaryContent">{{{weight}}}</td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Family:</b></td>
		<td class="primaryContent">{{{family}}}</td>
	</tr>
	<tr>
		<td colspan="2" class="subHeading"><b>Fighting Style</b></td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Type:</b></td>
		<td class="primaryContent">{{{type}}}</td>
	</tr>
	<tr>
		<td class="secondaryContent"><b>Weapon:</b></td>
		<td class="secondaryContent">{{{weapon}}}</td>
	</tr>
	<tr>
		<td class="primaryContent"><b>Discipline:</b></td>
		<td class="primaryContent">{{{style}}}</td>
	</tr>
</table>
 
Okay... I think I've come up with a solution for PHP files... Users will no longer be given the option to create PHP pages. Now only Administrators will be able to create PHP pages, from the administration menu...

1.webp

The Create New PHP Page is slightly different from the Create New Page. This different page does not have a textarea box, instead it has a textinput box for the path to the PHP file on your server. You'll also notice that you will not be given the option to "Mark Page as Protected"; ALL PHP file pages will be considered protected and you will be unable to unprotect them (unless you do some SQL digging, but why would you want to do that?). This way, PHP pages will be locked to everyone except administrators.

2.webp

You will not be required to set your PHP file output to specific variables anymore. Now the system will automatically run "ob_start", "ob_get_contents" and "ob_end_clean" on your script. The output will be placed into the appropriate variables on their own.

3.webp

This example uses the following PHP file: http://www.8wayrun.com/test.php
 
How I can do that? I can´t see the difference.

Thanks!!!

Can you see "Template List" in the navigation bar? If you don't see that navigation option you don't have your permissions set up correctly. I had the same issue and fixed it by changing the moderators permissions for administrating wiki to default. I am guessing it has something to do with the fact that the super admin user has moderator set as a secondary group. I am not exactly sure if that is correct but it did display the new navigation options and the template list link.
 
Can you see "Template List" in the navigation bar? If you don't see that navigation option you don't have your permissions set up correctly. I had the same issue and fixed it by changing the moderators permissions for administrating wiki to default. I am guessing it has something to do with the fact that the super admin user has moderator set as a secondary group. I am not exactly sure if that is correct but it did display the new navigation options and the template list link.

Thanks for your answer!!!. Yes, I can see the Template List, but I can´t see the new navigation options. How can I select which pages to index?
frown.png
 
This platform works great as an Articles or CMS as well.
While I don't have a need to formatted wiki pages, I did have a need for a collection of static pages (like weather reports, glossary, radio procedures, etc....)
So I installed this add-on and begain building two things.
Page as a category with a Index Level of 1 and No Parent Node
Say I had a collection of weather related pages. I made a single Page called Weather Tools, Index Level of 1 and No Parent Node.
Then I created my pages and assigned them with an Index Level of 0 and the Parent Node of the category.
So
Weather (No Parent Node, Index =1)
--> Radar (Weather Parent Node, Index =0)
and so on...
Now what to do with the default load page - index?
I simply formated that page with urls to my categories like an index - essentually the same as the Pages List.
On lesson, some BBCode is still parsed and may confuse the saving of javascript calls. Just check for things like
Code:
Array[i] <-- Thats for italics right?
and other things if you have trouble with some specialized pages.
 
[8wayRun.Com] XenCarta (Lite Wiki) v1.2.1 CHANGELOG
  • [wiki] bbcode now builds a link in a post, [wiki=full] now builds the wiki page itself in a post.
  • [wiki=full] will properly handle permissions and revert to [wiki] if permissions are missing.
  • the "templates" page has been consolidated into a general "administrate" page.
  • regular users no longer have the ability to make pages based on php files (bbcode and html only).
  • administrators will be able to create pages based on php files in the general "administrate" page.
  • pages built on php files are always marked as protected and cannot be edited without permissions.
  • html pages will no longer automatically have their URLs formatted as if they were bbcode pages.
  • the text in table of contents anchors will now be generated outside of the anchor tag.
  • all pages, including archives, and previews will now render advanced bbcodes correctly.
 
This platform works great as an Articles or CMS as well.
XenCarta can have many many uses !
I did have a need for a collection of static pages (like weather reports)
I think you could also have a Dynamic Weather Page.
Write a PHP script that could pull weather data from a source and display it. Call the Page Weather.
put [wiki=full]Weather[/wiki] wherever you want to display the weather !
 
Actually...
I have a dynamic weather "module" on my portal page:
http://aquiacreek.com/portal/
These weather "pages" are also dynamic in that they pull in the Weather.com radar via javascript.
I do plan on reformatting my module to be something a bit more useful for others.
And if I figure it out, I'll post it.
The plan is to use the php scripts from http://saratoga-weather.org/scripts.php
Take the scripts and parse them out to functions as Jaxel suggested.
Then either have a set varible in the module or figure out how to read a user's profile for a custom weather setting.
then run the php file with the pass varible.
We'll see My wife already can't stand the time I spent on my computer so.... Don't hold your breath LOLOL
 
Idea: XenCarta Page as Home Page ?

Many users have XenCarta running on one Tab.
uses:
- as a wiki
- as a lite "Articles" section.

Can you run two XenCarta ?
one for a wiki, and another for an articles section.

Especially because there are so many possible uses for XenCarta ?
 
Status
Not open for further replies.
Top Bottom