[8WR] XenCarta (Wiki)

[8WR] XenCarta (Wiki) 1.3.9a

No permission to download
Hello,
So I am trying to get the PREMIUM BBCODE addon to work with Wiki and it doesn't work. It would seem that this is because you only look at the censor strings it uses upon EDITING content. Why I came to this conclusion is that the BBCode actually works, but it renders the content based on the user that edited it.

This is what I mean. The Add-On is meant so you can type [premium]CONTENT[/premium] and it will only show "CONTENT" to members who have been set in the options. Otherwise it will show a "PREMIUM CONTENT" bar. I have it currently set so that ONLY Administrators can see Premium Content. I then approved a "Regular" user to Edit Wiki data.

If the Administrator edits the Wiki, everyone can see the premium data. If the Regular User edits the Wiki, no one can see the premium content (including Administrators).

Do you only render the text from BBCode upon a edit and this is why this is happening? Can you think of any way to resolve this? I really need this feature! :)

Update: this note is on the PREMIUM BB site about working with addons:



Guessing that means this addon does parse tags? Is this something I can stop from happening?

I've replied to that "problem" which is not one. Because you need dynamic content and not static content, just set up correctly the cache with the option "now" as Jaxel wrote it in his addon options.

Code:
Will only work if those external addons don't parse tags and use the XenForo censorString feature
It has nothing to do with it. It's just a way to hide none-parsed content from premium bbcodes. Any way it isn't needed for XenCarta.
 
Here is a new template I put together (not done yet) for product descriptions:

http://ceintegrator.com/wiki/total-control-ios-application/

Add CSS to Extra.CSS:

Code:
.ProductWrapper{
    width: 100%;
    position: relative;
}
.ProductImageContainer{
    text-align: center;
    background: #e5f2fb;
    padding: 2px;
}
.ProductSidebar{
float: right;
margin: 5px;
padding: 5px;
width: 350px;
overflow: visibile;
        border: 1px solid #000000;
        background: #eeeeee;
}
.sidebarleftcolumn{
float:left;
width:100px;
}

Create Template: pdetails-str
Code:
<div class="productwrapper">

Create Template: pdetails-sidebar

Code:
<div class="ProductSidebar">
<div class="ProductImageContainer"><img src="images/productimages/{{{slug}}}.png" alt="{{{imagealt}}}" /></div>
<div class="secondaryContent" style="text-align: center;"><b>{{{caption}}}</b></div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>MSRP:</b></span>{{{msrp}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>COST:</b></span>{{{cost}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Availability:</b></span>{{{availability}}}</div>
</div>

Create Template: pdetails-end

Code:
</div>

Here is example of use:

Code:
[template=pdetails-str]title=Page Title[/template]
[template=pdetails-sidebar]slug=site link and image url (in/images/) | alt=AltImageText | caption=CAPTION | msrp=MSRP | cost=Cost | availability=Availability [/template]
Product Information / Paragraphs
 
[template=pdetails-titlebar]name= iPhone, iPod Touch Screenshots[/template]
[ATTACH]27[/ATTACH][ATTACH]28[/ATTACH][ATTACH]29[/ATTACH][ATTACH]30[/ATTACH][ATTACH]31[/ATTACH]
[template=pdetails-titlebar]name= iPad Screenshots[/template]
[ATTACH]32[/ATTACH][ATTACH]33[/ATTACH][ATTACH]35[/ATTACH]
[template=pdetails-end][/template]

I have a bunch to change which is why I have str and end when it isn't needed in its current form... just wanted to share!

P.S: This should be pretty easy to edit to your own needs. Just add to the DIV's and change the wording for what you need. I changed this for an AVR in about 3 minutes:



http://ceintegrator.com/wiki/total-control-dms-av/

Here is the -content template for that

Template Name: pdetailsavr-sidebar

Code:
<div class="ProductSidebar">
<div class="ProductImageContainer"><img src="images/productimages/{{{slug}}}.png" alt="{{{imagealt}}}" /></div>
<div class="secondaryContent" style="text-align: center;"><b>{{{caption}}}</b></div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>MSRP:</b></span>{{{msrp}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>COST:</b></span>{{{cost}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Channels:</b></span>{{{channels}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Power:</b></span>{{{power}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>HDMI:</b></span>{{{hdmi}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Component:</b></span>{{{component}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Optical:</b></span>{{{optical}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Dig. Coaxial:</b></span>{{{coaxial}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>RCA In:</b></span>{{{rca}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Availability:</b></span>{{{availability}}}</div>
</div>
 
Well, I seem to be the only one posting here - but I added "Schema" tags to my template and wanted to share. Schema tags will help with SEO and allows Google, Bing, Yahoo, and others to understand your content better. The problem with my current content is that since the sidebar is the first "div" it is what google sees as the first content on the site (and the product descriptions, thus, are terrible).

Schema tags make things better.

Template: pdetails-str

Code:
<div class="productwrapper" itemscope itemtype="http://schema.org/Product">

Schema Tag here will tell the search engine "Hey, this is a PRODUCT"

Template: pdetails-sidebaravr
(Note that you can make multiple versions and use the same "str" template as I am doing - this is my most complex one so I am showing this one)

Code:
<div class="ProductSidebar">
<div class="ProductImageContainer"><img itemprop="image" src="images/productimages/{{{slug}}}.png" alt="{{{imagealt}}}" /></div>
<div class="secondaryContent" style="text-align: center;"><b><span itemprop="name">{{{caption}}}</span></b></div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Brand:</b></span><span itemprop="brand">{{{brand}}}</span></div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Model:</b></span><span itemprop="model">{{{model}}}</span></div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>MSRP:</b></span><span itemprop="price">{{{msrp}}}</span></div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>COST:</b></span>{{{cost}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Channels:</b></span>{{{channels}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Power:</b></span>{{{power}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>HDMI:</b></span>{{{hdmi}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Component:</b></span>{{{component}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Optical:</b></span>{{{optical}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Dig. Coaxial:</b></span>{{{coaxial}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>RCA In:</b></span>{{{rca}}}</div>
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>Availability:</b></span>{{{availability}}}</div>
</div>

Schema Tags here tell the search engine what the brand is, the model, the "name" (Caption), the "image", the "price" (which I don't think is the proper way to implement this tag as it's meant for actual selling of products), the "brand", and finally the "description" span which will describe what the product is AFTER the sidebar tag. Because we do this span, we need to close the span later in the document (the "end" template).

Template: pdetails-end

Code:
</span></div>

Example of Use: (Copy of: CE Integrator - DMS-AV)
Code:
[template=pdetails-str]title=DMS-AV - 7.2 Surround Processor[/template]
[template=pdetailsAVR-sidebar] slug=total-control-dms-av | brand=URC | model=DMS-AV | alt=URC DMS-AV | caption=7.2 Surround Processor | msrp=$1,499.99 | cost=[dealers]N / A[/dealers] | power=125 Watts | hdmi= 5 In/1 Out (ARC) | component= 2 In/1 Out | channels=7.2 | optical=2 In/1 Out | coaxial= 2 In | rca= 6 + Phono | availability=[dealers]Direct Dealer Only[/dealers][/template]
The URC DMS-AV is a 7.2 Analog (Class A/B) Processor & Amplifier. This is the first Surround Sound Amplifier that URC has released meant to officially bridge the gap between Distributed Stereo Audio and Home Theater Systems.
 
Pumping out an impressive 125w/Channel at 8 Ohms and 145w/Channel at 4 Ohms, the 7.2 Analog processor is priced competitively while offering a unique feature set when specified into a Total Control System.
 
When combined with a Total Control System, the DMS-AV is capable of receiving completely uncompressed audio streams from other streaming products within the family. These products currently include the DMS-1200 (8 Zones), DMS-100 (1 Zone), and SNP-1 (Web Audio), and of course other DMS-AV's on the network. It is also capable of streaming any two analog inputs out (again without compression).
 
The real benefit of the DMS-AV comes into play when programming and setting up the system. As a URC product, it is programmed within the Accelerator software natively which speeds up integration time significantly. Some dealers have reported saving 30 minutes to a hour on every job while using the DMS-AV.
 
A streaming product such as the DMS-AV requires the presence of a MFS Ethernet Switch such as the MFS-8 or MFS-POE8 in order to keep the network from slowing down to a crawl.
 
[I][B]Note:[/B][/I] [I]7.2 means that it has 7 powered speaker outputs and 2 passive subwoofer outputs.[/I]
 
[template=pdetails-titlebar]name= Dealer-Only Restricted Information[/template]
[dealers]
There is currently not any Dealer-Only Restricted Information to Share. Check back in the future for updates or request information from one of the site Administrators.
[/dealers]
[template=pdetails-titlebar]name=DMS-AV Product Images (Click to Enlarge)[/template]
[ATTACH]37[/ATTACH]
[template=pdetails-end][/template]


Google Reads it like this:

Item
Type: http://schema.org/product
image = http://ceintegrator.com/images/productimages/total-control-dms-av.png
name = 7.2 Surround Processor
organization = URC
model = DMS-AV
price = $1,499.99
description = The URC DMS-AV is a 7.2 Analog (Class A/B) Processor & Amplifier. This is the first Surround Sound Amplifier that URC has released meant to officially bridge the gap between Distributed Stereo...


Edit: Ok the next problem I came to is - what if someone writes two lines of text. I want those two lines of text to be indented so they match the indent on the previous line.


Aka:


Model: Hello how are you
doing today?

Should be:

Model: Hello how are you
doing today?

(Err pretend like the second line matches up with "Hello")

to solve this problem (if you want to):

Add CSS to Extra.CSS:

Code:
.pdetails-block {
margin-left: 130px;
}

Edit Old CSS from previous steps ( not necessary, just for cleanliness):
Code:
.sidebarleftcolumn{
float:left;
}
(took out the width: 130px)

Add to DIV's in SideBar:

Code:
<p class="pdetails-block">{{{template_text}}}</P>

Example:

Code:
<div class="secondaryContent"><span class="sidebarleftcolumn"><b>RCA In:</b></span><p class="pdetails-block">{{{rca}}}</P></div>
 
Would it be possible to add to the next version so content posted on the wiki would need approval? I run a forum dedicated to my minecraft server, and people enjoy writing tutorials for other members so they know what to to, and what they can do, as well as how to use certain plugins, etc..

I would like to have the ability to remove some content from the wiki before anyone even gets a chance to see it, in the event that someone decides to post something such as pornography, spam or anything of that nature, i would be able to remove it before anyone saw it.
 
Would it be possible to add to the next version so content posted on the wiki would need approval? I run a forum dedicated to my minecraft server, and people enjoy writing tutorials for other members so they know what to to, and what they can do, as well as how to use certain plugins, etc..

I would like to have the ability to remove some content from the wiki before anyone even gets a chance to see it, in the event that someone decides to post something such as pornography, spam or anything of that nature, i would be able to remove it before anyone saw it.
Doesn't the current version have a moderation system? Or did I not implement that?
 
Doesn't the current version have a moderation system? Or did I not implement that?
i looked everywhere for that, cant find anything that has to do with moderation, i did see that i have the ability to revert back to old content but i would rather have the ability to review content before it's available to public.
 
Edit: Figured out the culprit... http://xenforo.com/community/resources/message-auto-save-drafts.244/ was conflicting / messing it up. I'll leave my original post below in case anyone else comes across this issue themselves.

I have an issue with the TinyMCE editor with this addon. Not sure if it's just me, but it seems the editor can't grab the CSS rules defined in editor_contents.css (body, body.mceForceColors class rules more specifically), thus instead it defaults to black text, times new roman font, et cetera.

Here's how it looks:
IAAFl.png


How it should look (and how it looks everywhere else on the site):
f4X6Q.png


I noticed in the browser source that everywhere on the site where the editor does have the proper styling, the TinyMCE javascript uses ctrl_message, whereas in this addon this is set to ctrl_page_content, from the $this->_params['editorTemplate'] line in ViewPublic PageCreate/Edit.php
PHP:
        $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate(
            $this, 'page_content', $this->_params['page']['page_content'], array('disable' => $disable)
        );


Some snippets from the rendered browser source for comparison (I was just looking for anything that indicated a change with any rendered code related to the editor between the site and this addon):

Editor loading with ctrl_message which seems to load the body, body.mceForceColors class rules in editor_contents.css, thus everything looks as it should:
PHP:
var $editor = $("#ctrl_message_html").hide();
  console.info('XenForo editor %s, %o', 'ctrl_message', $editor);

Editor loading via 'Create Page' on the wiki which seems to cause TinyMCE to fail to load the body, body.mceForceColors class rules:
PHP:
    var $editor = $("#ctrl_page_content_html").hide();
    console.info('XenForo editor %s, %o', 'ctrl_page_content', $editor);

Any idea how I might go about fixing this so that the editor is able to load the CSS rules that give it its default 'message text styling'? This issue is also present in other addons by Jaxel, namely the Events addon (and perhaps the media addon if its page create/edit viewpublic files are coded similarly but I don't use that so I wouldn't know).

Any insight from anyone would be greatly appreciated.

Thanks
 
Greetings,

Is there anyway to configure the limit of the wiki post (decrease/increase caracters)

Regards
 
So I use your portal plugin which has a slugit.js and this plugin also has a slugit.js, as well as a variety of matching files do I replace them or what?
 
Just found a bug in the usage of Xencarta :
I made a a page of around 400 lines, when saving the template, system returns a blank page.
When trying to display the page > blank page.
How can i now delete this page ?
 
Hello, can you help ?
I have two pages i am not able to edit or delete as it displays blank.
How can i delete them ?
 
Hi, every time I try to get to the Wiki, it brings up the following error: "You do not have permission to view this page or perform this action."

How do I fix this?
 
Top Bottom