XF2 [8WR] XenCarta 2 (Wiki) PRO

XF2 [8WR] XenCarta 2 (Wiki) PRO [Paid] 2.2.0.2

No permission to buy ($30.00)
Just had a play and I notice that if I type the name in, then it auto links. However, I have three planes I want to link to:

Jumbo (jumbo)
Jumbo S1 (jumbo_s1)
Jumbo S2 (jumbo_s2)

If I type Jumbo in, it works fine. However if I type Jumbo S1 in, the Jumbo part becomes the link, not the full Jumbo S1. I've tried using jumbo_s1, but no joy.
Can you open EWR\Carta\Repository\Parser.php and replace line 159:
$pages = $this->repository('EWR\Carta:Page')->findPage()
With:
$pages = $this->finder('EWR\Carta:Page')
Tell me if that fixes it.
 
Can you open EWR\Carta\Repository\Parser.php and replace line 159:
$pages = $this->repository('EWR\Carta:Page')->findPage()
With:
$pages = $this->finder('EWR\Carta:Page')
Tell me if that fixes it.

Superb, that fixed it!

Thanks you :D
 
One more quick question. I'm using one of the templates from your site @Jaxel and was wondering how I could make it wider. I have all this spare space, yet it's causing some text to go underneath when I would prefer it next to it. (Such as the top seldom and bottom very seldom)

wiki2.webp

This is the template code that i'm using:

Code:
<table class="carta-info-box">
    <tr>
        <td colspan="2" class="block-header"><b>{{{name}}}</b></td>
    </tr>
    <tr>
        <td colspan="2" class="dataList-cell">{{{image}}}</td>
    </tr>
    <tr>
        <td colspan="2" class="dataList-cell block-minorHeader"><b>Flight Details</b></td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Level Required: </b><img src="https://www.airportcitygame.com/images/wiki/level.png"></td>
        <td class="dataList-cell">{{{level}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Stars Required: </b><img src="https://www.airportcitygame.com/images/wiki/runway.png"></td>
        <td class="dataList-cell">{{{stars_required}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Plane Required: </b><img src="https://www.airportcitygame.com/images/wiki/plane.png"></td>
        <td class="dataList-cell">{{{plane_required}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Buildings Required: </b></td>
        <td class="dataList-cell">{{{buildings_required}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Items Required: </b></td>
        <td class="dataList-cell">{{{items_required}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Fuel Required: </b><img src="https://www.airportcitygame.com/images/wiki/fuel.png"></td>
        <td class="dataList-cell">{{{fuel_required}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Passengers Required: </b><img src="https://www.airportcitygame.com/images/wiki/passengers.png"></td>
        <td class="dataList-cell">{{{passengers_required}}}</td>
    </tr>
    
    
    <tr>
        <td colspan="2" class="dataList-cell block-minorHeader"><b>Flight Duration</b></td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Flight Time: </b><img src="https://www.airportcitygame.com/images/wiki/time.png"></td>
        <td class="dataList-cell">{{{flight_time}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Catalyst Acceleration: </b><img src="https://www.airportcitygame.com/images/wiki/catalyst.png"></td>
        <td class="dataList-cell">{{{catalyst_acceleration}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Fuel Speed Up: </b><img src="https://www.airportcitygame.com/images/wiki/fuel.png"></td>
        <td class="dataList-cell">{{{fuel_speed_up}}}</td>
        
        </tr>
    
    
    <tr>
        <td colspan="2" class="dataList-cell block-minorHeader"><b>Skill Levels</b></td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Specialist: </b><img src="https://www.airportcitygame.com/images/wiki/star.png"></td>
        <td class="dataList-cell">{{{specialist}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Master: </b><img src="https://www.airportcitygame.com/images/wiki/star.png"><img src="https://www.airportcitygame.com/images/wiki/star.png"></td>
        <td class="dataList-cell">{{{master}}}</td>
    </tr>
    
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Expert: </b><img src="https://www.airportcitygame.com/images/wiki/star.png"><img src="https://www.airportcitygame.com/images/wiki/star.png"><img src="https://www.airportcitygame.com/images/wiki/star.png"></td>
        <td class="dataList-cell">{{{expert}}}</td>
        
            </tr>
    
    
    <tr>
        <td colspan="2" class="dataList-cell block-minorHeader"><b>Flight Rewards</b></td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Gold Coins: </b><img src="https://www.airportcitygame.com/images/wiki/coins.png"></td>
        <td class="dataList-cell">{{{gold_coins}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Experience: </b><img src="https://www.airportcitygame.com/images/wiki/experience.png"></td>
        <td class="dataList-cell">{{{experience}}}</td>
    </tr>
    <tr class="dataList-row">
        <td class="dataList-cell"><b>Common Items: </b></td>
        <td class="dataList-cell">{{{common_items}}}</td>
        </tr>
        <tr class="dataList-row">
        <td class="dataList-cell"><b>Special Items: </b></td>
        <td class="dataList-cell">{{{special_items}}}</td>
    
        
</table>
 
Can you open EWR\Carta\Repository\Parser.php and replace line 159:
$pages = $this->repository('EWR\Carta:Page')->findPage()
With:
$pages = $this->finder('EWR\Carta:Page')
Tell me if that fixes it.
Since making that edit, I have this showing up in my ACP


[8WR] XenCarta 2 (Wiki) PRO
src/addons/EWR/Carta/Repository/Parser.php Unexpected contents
 
Does anyone know how to get an item to link twice in the same article?
link.webp

As Chinese Shop and Puppet Theatre are linked in the Event Description, it won't link again under Event Buildings. If I remove them from the Event Description, then the ones under Event Buildings link.

Hoping there may be a work around.
 
Does anyone know how to get an item to link twice in the same article?
View attachment 216982

As Chinese Shop and Puppet Theatre are linked in the Event Description, it won't link again under Event Buildings. If I remove them from the Event Description, then the ones under Event Buildings link.

Hoping there may be a work around.
@Jaxel , Along with the above, I wonder if you could shed any light on this issue.

I have:
Eagle
Raven
Guest Eagle
Guest Raven

Eagle and Guest Eagle auto link correctly. However Guest Raven only autolinks the Raven part.

Here is an example. I've been through and everything is correct name wise, so not sure why it's working for some and not others. Also noticed that if you put something in brackets ( ) it won't link. Not sure whether a design feature or not?
guest.png

This one is working:
eagle.webp

This one isnt:
raven.webp

Any ideas here at all?
 
Last edited:
Is there a way to turn off html as an option for creating pages for the users and only allow it to be bb code? I didn't see this as an option on the admin end.
 
Is there a way to turn off html as an option for creating pages for the users and only allow it to be bb code? I didn't see this as an option on the admin end.
Only those who have the "manage pages" permission, can make HTML pages.
 
Last edited:
Jaxel updated XF2 [8WR] XenCarta 2 (Wiki) PRO with a new update entry:

2.1.0.5 - CHANGELOG

  • A new page specific option has been added to show/hide that page's attachment gallery.
  • A page's attachment gallery has been moved from below the page, to it's own tab.
  • You can now define a limit to the "Auto-link Pages" function. Previously, the system would auto-link only the first instance of a page's name. Now, you can have it link multiple instances.
  • The auto-link pages function has been changed a bit to better detect page names with longer names, which share words...

Read the rest of this update entry...
 
Only those who have the "manage pages" permission, can make HTML pages.

Currently, only admins and moderators have "manage pages" permission. However, normal members still are able to select html as a page option even after confirming that the user permission and the users do not have the Xencarta "manage pages" selected.

Permissions:

c2045b33fbca963237f1be89fd4dfbf1.png


When that account is creating a page it still shows HTML option.

6d7786f71f52ca69764787927e6bab0a.gif
 
A brillaint update, thank you Jaxel.

Noticed 4 server error logs in my ACP this morning:

Code:
    ErrorException: Template error: htmlentities() expects parameter 1 to be string, array given src/addons/EWR/Carta/BbCode/Wiki.php:11

    Generated by: Unknown account 29 January 2020 at 02:52
    
    Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'htmlentities() ...', '/home/davelegg/...', 11, Array)
#1 src/addons/EWR/Carta/BbCode/Wiki.php(11): htmlentities(Array)
#2 [internal function]: EWR\Carta\BbCode\Wiki::bbcode(Array, NULL, Array, Array, Object(XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, NULL, Array, Array, Object(XF\BbCode\Renderer\Html))
#4 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#5 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#6 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XF\BbCode\RuleSet), Array)
#7 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('SiInce the prop...', Object(XF\BbCode\Parser), Object(XF\BbCode\RuleSet), Array)
#8 src/XF/Template/Templater.php(2035): XF\SubContainer\BbCode->render('SiInce the prop...', 'html', 'post', Object(XF\Entity\Post), Array)
#9 [internal function]: XF\Template\Templater->fnBbCode(Object(XFA\CustomUsernameIcons\XF\Template\Templater), false, 'SiInce the prop...', 'post', Object(XF\Entity\Post))
#10 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#11 internal_data/code_cache/templates/l1/s15/public/post_macros.php(134): XF\Template\Templater->func('bb_code', Array, false)
#12 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XFA\CustomUsernameIcons\XF\Template\Templater), Array, Array)
#13 internal_data/code_cache/templates/l1/s15/public/thread_view.php(621): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#14 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XFA\CustomUsernameIcons\XF\Template\Templater), Array)
#15 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#16 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#18 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#21 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#22 src/XF.php(391): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state

array(4) {
  ["url"] => string(37) "/threads/weekend-code-for-10-04.7803/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Has anyone managed to implement a search box into their wiki that just searches the wiki only?
 
Top Bottom