XF2 [8WR] XenCarta 2 (Wiki) PRO

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

No permission to buy ($30.00)
2.3 only.

XF2.3 requires a lot of rewrites with JS. So they can't be backwards compatible.
Thanks,
For those of us who cannot upgrade to 2.3 at this time can the following be applied to a fix for 2.2?
  • BUG FIX: Fixed a bug where attachment formatting would be lost on page edits.
If not, it's understood as I know the work around... ;)
 
Last edited:
Thanks,
For those of us who cannot upgrade to 2.3 at this time can the following be applied to a fix for 2.2?
  • BUG FIX: Fixed a bug where attachment formatting would be lost on page edits.
If not, it's understood as I know the work around... ;)
In the template: EWRcarta_page_edit_macros

Replace:
Code:
            <xf:editorrow name="content" value="{$wiki.page_content}"
                rowtype="fullWidth noLabel mergePrev"
                label="{{ phrase('content') }}"
                data-preview-url="{{ link('ewr-carta/preview', $wiki) }}" />
With:
Code:
            <xf:editorrow name="content" value="{$wiki.page_content}"
                attachments="{$attachmentData.attachments}"
                rowtype="fullWidth noLabel mergePrev"
                label="{{ phrase('content') }}"
                data-preview-url="{{ link('ewr-carta/preview', $wiki) }}" />
 
In the template: EWRcarta_page_edit_macros

Replace:
Code:
            <xf:editorrow name="content" value="{$wiki.page_content}"
                rowtype="fullWidth noLabel mergePrev"
                label="{{ phrase('content') }}"
                data-preview-url="{{ link('ewr-carta/preview', $wiki) }}" />
With:
Code:
            <xf:editorrow name="content" value="{$wiki.page_content}"
                attachments="{$attachmentData.attachments}"
                rowtype="fullWidth noLabel mergePrev"
                label="{{ phrase('content') }}"
                data-preview-url="{{ link('ewr-carta/preview', $wiki) }}" />
Hmm. In 2.2.02
Code:
            <xf:editorrow name="content" value="{$wiki.page_content}"
                rowtype="fullWidth noLabel mergePrev"
                label="{{ phrase('content') }}"
                data-preview-url="{{ link('ewr-carta/preview', $wiki) }}" />
Does not exist:
This what is there:
Code:
        <xf:if is="$wiki.page_type == 'bbcode'">
            <xf:editorrow name="content" value="{$wiki.page_content}"
                rowtype="fullWidth noLabel mergePrev"
                label="{{ phrase('content') }}" />
        <xf:elseif is="$wiki.page_type == 'html'" />
 
Replace the editor row.
In the replace section you reference, this part of the code does not exist.
data-preview-url="{{ link('ewr-carta/preview', $wiki) }}" />

Note: Figured it out. The above REPLACE line referenced in THIS POST must be a typo. Works as expected now. :)
 
Last edited:
Navigation is built progmatically. So no.
I developed an alternative solution.
As a work around I created a HTML Wiki page and placed a meta redirect in the text field so it redirects on page load. Not perfect but it gets the job done.
<meta http-equiv="refresh" content="0; url=http://example.com/" />
 
Last edited:
I developed an alternative solution.
As a work around I created a HTML page and placed a meta redirect in the text field so it redirects on page load. Not perfect but it gets the job done.
<meta http-equiv="refresh" content="0; url=http://example.com/" />
It would probably be faster to do a PHP page and do a PHP redirect.
 
It would probably be faster to do a PHP page and do a PHP redirect.
I agree but I couldn't get the code to insert. I wasn't sure how it handles reading a PHP file. I could only get is to attach for download. Is this an absolute path?
No matter what path - Error example = Could not find PHP file: /home/****/public_html/*****/redvin.php
Or HTML path - Error example = Could not find PHP file: https://jeep-cj.com/*****/redvin.php
Do you have any hints?

gsr3.webp
 
Last edited:
@Jaxel I still cannot get this path statement to work as shown ABOVE. Can you tell how the path to a PHP file should be formatted? Thanks.

gsr3.webp

EDIT: Figured out it is the relative path to the XF root - XF_root/php_file.php
 
Last edited:
Thanks for the help.

Is this possible (references / side column) in this Wiki (like wikipedia)? I'm guessing I need to create custom bbcodes for the reference superscript link and pass info to the wiki templates to insert into the page (some thing like THIS) but can this be done?
I know how to pass page variables to a template via this example [template=jwp]name=hello|contents=goodbye[/template] but would it be possible to increment it?
Any suggestions on what you would consider the best approach?

Regards,

wr1.webp

wr2.webp

Side column:
wc1.webp
 
Last edited:
Back
Top Bottom