• 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.
Nice!

What was the problem, if I might ask?
As it turns out, when you run a string through the XenForo BBcode Parser, it doesn't actually return a string back. What it does is return an object class; and the class has a __toString magic method for handling the string return for when you use it as a string. However, with the preg_match and preg_match_all functions I was using for the parser, for some reason it didn't type cast the object as a string as it would normally.

So instead I forced the type casting myself with:
Code:
$this->_params['page']['HTML'] = (string) $this->_params['page']['HTML'];
 
Ok, here is a basic gallery that I quickly knocked out, to highlight how you do it, without tables, with captions. You can obviously style your own backgrounds, borders, etc, as you see fit... even mix in the default if you like. If you don't want captions, then edit the galleria template appropriately to remove them completely, and the CSS height for the p.

Oh... this is using the highslide opener for easy viewing. You will obviously need to change the image folder location to suit what you use.

Thank you very much Anthony, this is much appreciated :)

Regards,
Renada
 
Your welcome.

Hey Jason,

I am noticing that quote bbcode on the WYSIWYG editor isn't functioning correctly with the wiki only. I quote a paragraph, hit save, it shows up correctly using the XF CSS quote. Refresh or CTRL F5 to rid existing CSS, and it shows nothing. Tested this across several browsers, same result.

Other features seem to work fine, ie. image, media, lists, etc... not quote though.

The HTML it is rendering is:

HTML:
<div class="bbCodeBlock bbCodeQuote">
	<aside>
		<blockquote>Text in here....</blockquote>
	</aside>
</div>

It doesn't seem to be correctly cacheing the CSS. On save it renders:

HTML:
.bbCodeQuote blockquote {
    -moz-border-radius: 4px 4px 4px 4px;
    background: url("styles/default/xenforo/gradients/category-23px-light.png") repeat-x scroll center top #FFF4E5;
    font-size: 9pt;
    font-style: italic;
    padding: 10px;
}.bbCodeBlock pre, .bbCodeBlock blockquote {
    margin: 0;
}
On refresh, it seems to be dumping the CSS.
 
Jason, you have an issue if a user hits save on a new wiki page with nothing, or only [NOSIDEBAR] in it, and it breaks the page, having to go into the DB in order to add text too it so to remove the error page.

Try and view the page and all you get is: An unexpected error occurred. Please try again later.

White page of death.
 
That would be nice...

I've created an FTP account for my wiki group that goes into an isolated wiki folder, so they can all manage images for any given page. If anyone got creative and deleted anything, it is automatically backed up every 24hrs with the server... so no real issues.
 
Is it possible to improve the wiki bbcode tag slightly, so that it can be manually used to go around similar terms / plurals, etc, when written within another wiki page?

You have: [wiki]url-term-here[/wiki] that will pull that pages title, you have the [wiki=full] to pull the entire page, so how about something similar, [wiki=url-term-here]plural or similar word entered here[/wiki] so that such words / phrases can also be redirected to the appropriate page!!! :D
 
Another thought... I was testing out the error page, when someone hits the wrong URL, it presents the automatic link to Search Wiki: URL phrase. That is kind off useless isn't it, because it includes the hypens, which will always return a zero result as its determining it as a single word, instead of multiple words, which is what you want it to do.

I think title would be a better auto fill than url.
 
Are there any plans to build a citation system into this? Something that will automatically reference to the footer reference? ie. this text is some complicated-word [1] that without a citation referenced, would otherwise be made-up!

References
[1] - Merriam-Webster's collegiate dictionary (10th ed.). (1993). Springfield, MA: Merriam-Webster.
 
Citations are good, and would very important for certain pages.
I think that putting them in manually might be the way to go for now.
I wonder if you could put [[1]] in the text and it would "auto"-hyperlink to the manual entry below ?
Internal hyperlinking could make reading longer posts quite interesting.
 
Gallery is great!

I would like for a way to moderate a message post and have an image file attachment added to gallery via moderation tool.
 
Numbered lists are an issue, as you haven't included them within your CSS... I changed your list CSS around a little, to more reflect exactly what the rest of XF by default uses, being:

HTML:
.wikiPage ul, .wikiPage ol { margin: 1em; }
.wikiPage ul li { list-style: disc outside none; margin-left: 1.5em; }
.wikiPage ol li { list-style: decimal outside none; margin-left: 1.5em; }

I think you under use the default CSS method, ie. @property "messageContent", which keeps your CSS then exactly identical if a person styles their message text or such... obviously you need to also reflect the XF message classes within your divs.
 
Hey Jason,

Slight issue with the "recent activity" button being present for unregistered viewers.... being you are feeding search engines all the compare versions of the pages, which is bad. Can we have an option or default, get rid of that please, as that will cause a whole lot of problems for search listings.

Can't even just wipe it out via robots.txt, as its page specific...
 
Using an Alternative Page Container

Add-on developers will likely have noticed that (almost) all XenForo output for the public-facing side of the application is contained within a single template, called PAGE_CONTAINER.

Individual page templates only allow you to build the HTML within the content area, though there are various XenForo template syntax systems that allow you to pass commands and data to the container, the most obvious of which is the ubiquitous <xen:title>Page Title Here</xen:title> here construction.

However, as time goes on and add-on applications grow more complex, you are likely to find that you want to output your data into your own custom container. The good news is, it's easy to do so. All you need to do it pass a containerTemplate variable to your view layer.

More at:
http://xenforo.com/community/threads/using-an-alternative-page-container.11465/

How would this impact XenCarta ?
 
Jason, you have an issue if a user hits save on a new wiki page with nothing, or only [NOSIDEBAR] in it, and it breaks the page, having to go into the DB in order to add text too it so to remove the error page.

Try and view the page and all you get is: An unexpected error occurred. Please try again later.

White page of death.

Oh - I'm not alone
tongue.png
.. Have seen this alot of time on my install. Hope for a fix coming - but this is a so nice scripts.. Keep Up .. When finished with implement I will indeed donate to Jaxel for the superb work..
 
Oh - I'm not alone :p .. Have seen this alot of time on my install. Hope for a fix coming - but this is a so nice scripts.. Keep Up .. When finished with implement I will indeed donate to Jaxel for the superb work..
Fixed for next version... although you don't actually need to go into the database, you can just go to /edit
 
Status
Not open for further replies.
Back
Top Bottom