• 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] XenPorta (Portal)

Status
Not open for further replies.
I agree that a FAQ is needed here, but also a repository for all the add-ons for this Portal. Jaxel has listed them here, but there are no links to where we can download them (?). The default installation didn't include them all.
 
I agree that a FAQ is needed here, but also a repository for all the add-ons for this Portal. Jaxel has listed them here, but there are no links to where we can download them (?). The default installation didn't include them all.
It exists with a link to it in the 2nd post.

This mod comes with a few modules. Only the first EIGHT are installed by default. If you wish to install the other moduels, they are located in the /library/EWRporta/XML_Addons/ folder. If you wish to install them, just go to your modules page on your browser at /portal/modules/ and import the XML files you wish to use. You can find additional modules in this thread:
Guide on constructing your own Sidebar Modules:
Modules are handled through XML files which have a specific structure:
Code:
<?xml version="1.0" encoding="utf-8"?>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]<module>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_name></module_name>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_cache></module_cache>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_settings></module_settings>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_template><![CDATA[]]></module_template>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_stylesheet><![CDATA[]]></module_stylesheet>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]</module>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]

module_name
  • REQUIRED unique name to your module (ex: AdSense)
  • If you want, you can create a callback class called "EWRporta_Block_AdSense" with an function called "getModule" in order to retrieve relevant data. Obviously, by the class name, the file should be in /library/EWRporta/Block/AdSense.php.
module_cache
  • REQUIRED cache time for your module (ex: +10 minutes)
  • This is based on PHP's StrToTime function. Any value you can use in that function could be usable here... such as +10 minutes, +10 days, +10 months, +1 week 2 days 4 hours 2 seconds, 10 September, next thursday, etc...
  • If you set an invalid value, there will simply not be a cache for your module...
  • If you set a negative value (as in a time that is already passed), there will not be a cache...
  • If you wish to explicitly set your module not to have a cache, use the setting "now"
module_template
  • REQUIRED content of the module's template
  • When you add a module, it will automatically create a template with this as it's content. The template will be called "EWRporta_Block_AdSense". Notice that this information is in a <![CDATA[]]> enclosure! Anything you would use in a normal skin template you could use here. Not only that but any values you return in the module's callback class can be accessed as an arrayed variable based on the module_name.
module_stylesheet
  • NOT required
  • If this option is set, the contents of the <![CDATA[]]> enclosure will be placed into a css template with the same name as the module template. Naturally, you will still have to include the css template into your module template with the appopriate codes... <xen:require css="EWRporta_Block_AdSense.css" />
module_settings
  • NOT required
  • You can declare custom variables specific to a module. Additional settings would be stored in a new nested XML construct called based on the name of the setting.
  • [CODE <client desc="AdSense Client ID" format="string" options="">ca-pub-</client>[/CODE]
  • the UNIQUE name of the setting
  • desc: the description to what this variable does
  • format: a format type (string, number, check, dropdown, textarea, forums)
  • options: different formats have different options, separated with commas
    • string: a single line text box
      • width=<value>
    • number: an integer spinbox
      • min=<value>,max=<value>,step=<value>
    • check: a checkbox
      • no options
    • dropdown: a dropdown list of keys and values
      • <key>=<value>
    • textarea: a text area box
      • rows=<value>
    • forums: a multi-select box of forums
      • size=<value>
  • value: the default value that will be set when you install the module
When we take all of this into account, we can easily construct an install file for this module...
Code:
<?xml version="1.0" encoding="utf-8"?>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]<module>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_name>AdSense</module_name>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_cache>+1 days</module_cache>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_settings>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]    <client desc="AdSense Client ID" format="string" options="">ca-pub-</client>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]    <adslot desc="AdSense Ad Slot ID" format="string" options=""></adslot>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]    <width desc="Advertisement Width?" format="number" options="">200</width>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]    <height desc="Advertisement height?" format="number" options="">200</height>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  </module_settings>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_template><![CDATA[<div class="section">[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]    <div class="secondaryContent" id="adSense">[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]        <h3>Advertisement</h3>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]        <script type="text/javascript"><!--[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]            google_ad_client = "{$option.client}";[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]            google_ad_slot = "{$option.adslot}";[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]            google_ad_width = {$option.width};[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]            google_ad_height = {$option.height};[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]        //-->[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]        </script>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]        <div>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]            <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]        </div>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]    </div>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]</div>]]></module_template>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]  <module_stylesheet><![CDATA[#adSense div { text-align: center; }]]></module_stylesheet>[/FONT][/COLOR]
[COLOR=#141414][FONT=Georgia]</module>
[/CODE][/FONT][/COLOR][/quote]
 
i have never understood why a changelog and solutions to common questions arent simply dealt with in post one.
if he really hates all the same support issues coming up perhaps that is something he should think about.
 
I think it would make a difference, but only slightly.
It is the lack of structure that prevents the organization of the information.

A very simple tweak here at xenforo would be able to accomplish this option for thread searching.
http://xenforo.com/community/threads/suggestion-use-google-search-to-search-within-a-thread.17941/
It would make a HUGE difference to me.. I looked for a way to search within threads for a few days, before coming upon realization it didn't exist.

You probably wouldn't even see my posts hardly ever if I could search within a thread. One perk that vBulletin.org has.

Also, in reference to your google search within a thread, what if google hasn't indexed the thread and it is new? Or what if the admin hasn't submitted a sitemap? Overall I believe that the core functionality would work loads better.
 
There have been almost 25 posts now on this side discussion so it's time to get back to the thread subject.

Everyone has had their say so further off topic posts will be deleted.
 
Hi Jaxel,

Does the News/Slider section take into account user permissions? I have a staff section that I would like new posts etc to show up in the slider/news blocks but only be visible to those that have permission to see them.

As it stands right now people without permission are able to view the text preview/image even though clicking the message link gives them a "no permission" error.

Is this as designed?

Regards,
Renada :)
 
Hi all, can anyone help me to get a block displaying Teamspeak 3 server information in a sideblock?

I stumbled across this post, but cant seem to get it working.

Im not the greatest coder in the world, but usually manage to "muddle" on if nudged in the right direction.

Any help or pointing me in the right direction would be great.

Thanks in advance
 
Jaxel, is there a way I can make the images I post on the news forum get showin within the article resume and my avatar as the image on the side? I want the war images as inpost images: http://gunero.com/ <-- see there

Thanks in advanced!
 
Jaxel, is there a way I can make the images I post on the news forum get showin within the article resume and my avatar as the image on the side? I want the war images as inpost images: http://gunero.com/ <-- see there

Thanks in advanced!
See in http://www.xenfacil.com/threads/módulo-xenfacil-del-recentnews-de-xenporta.748/ (I know you speak Spanish) and demo: http://www.xenfacil.com

Post in http://xenforo.com/community/threads/8wayrun-com-xenporta-module-add-ons.7611/page-27#post-243389, http://xenforo.com/community/threads/8wayrun-com-xenporta-module-add-ons.7611/page-27#post-243390 and http://xenforo.com/community/threads/8wayrun-com-xenporta-module-add-ons.7611/page-27#post-243391 (sorry for 3 posts but I limit to 10000 characters by post)

Salud2
 
I think you are all confused... This mod displays attachments embedded before the break without any issue... as long as the image you are embedded is not the FIRST attachment.

So its simple, just make whatever image you want as the news icon as the first attachment, then full embed the SECOND attachment and it will show up just fine. This is not complicated stuff.
 
Dear Jason,

If I were to change the text "Home" in the home tab that this addon creates to something else, what phrase would I need to edit?
 
Yeah, that's what I was asking. What is the phrase? I'm sorry if it sounds like a silly question.
Phrased means you can easily change the language and the Name of the item (in this case a Tab).
Items that are hard-coded (non-phrased) can't easily be changed.
 
Dear Jason,

If I were to change the text "Home" in the home tab that this addon creates to something else, what phrase would I need to edit?
The phrase name for "Home" is.... Home. ;)

ACP => Appearance => Phrases => {In the search box type in "home" and the phrase will come up in the results.} home => Phrase Text => {new value}
 
Status
Not open for further replies.
Back
Top Bottom