It exists with a link to it in the 2nd post.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.
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:
[/CODE][/FONT][/COLOR][/quote]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
module_cache
- 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_template
- 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_stylesheet
- 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_settings
- 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" />
When we take all of this into account, we can easily construct an install file for this module...
- 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
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>
I think it would make a difference, but only slightly.Completely agree but being able to search XF easier within threads would make a big difference IMO.
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.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/
Yes.Is this as designed?
Yes.
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.comJaxel, 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!
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.It's phrased.
Salud2
Phrased means you can easily change the language and the Name of the item (in this case a Tab).Yeah, that's what I was asking. What is the phrase? I'm sorry if it sounds like a silly question.
The phrase name for "Home" is.... Home.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?
making it. Put Noticias (News in spanish) and save. See result.How to change size of News name? Anyone please help, thanks![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.