• 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 (Module Add-Ons)

How do I change the wiki module from 3 columns to 2 columns, as 3 overlap unless really short terms are used, 2 would be better.
In EWRcarta.css... first line...
Code:
.wikiNav li { margin-bottom: 5px; float: left; width: 33.3%; text-align: center; white-space: nowrap; }
Change the width to whatever you want. 50% would make it 2 per line. This will change it in BOTH the wiki, and the wiki xenporta module block.
 
Here is a random quote module that pulls the quote from a text file. Open the package and upload the "RandomQuote" folder to the data directory. There is a quotes.txt to get you started so you can see how it works.

To create a random quotes file, simple add a quote and end the line with @. After each quote @ should be used to end the line or quote, EXCEPT FOR THE LAST LINE.

For example:
The sky is blue, the grass is green - unkown@
Life is like a box of chocolates, you never know what your gonna get. - Forest Gump@
This is the last quote, so it doesn't need a @.

Also, look at the quotes.txt file to see an example. Also, the file must be named "quotes.txt" in order for it to work. Everyone is welcome to share their quote files.

To be truthful, this can be used for a number of things. Like Random facts, etc...

If you like this module, please like this post.

Thank You.

EDIT: spruced up a new package, version 1.1View attachment 7031 . See screenshot.
EDIT #2: updated package.
EDIT #3: updated package.

Is there any way to add this to your forum if you're not using the portal?
 
SUGGESTION:
To those making additional modules, maybe it would be best to start your own thread that way you can edit the first post with the latest version and a change log. Also include references to Jaxel's XenPorta.

Otherwise this thread will get out of hand, especially since we can't search within a thread [yet].

And maybe as the subject [XenPorta Module: My module name]
I was looking for a module and have found at least two versions.

That is all and thank you everyone for your contributions.
I agree,

This thread is getting messy
 
Is there any way to add this to your forum if you're not using the portal?

Like to the sidebar? Just just anywhere in the template?

For anywhere....
Place this code in the header:
Code:
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($) {
    $.get('./data/RandomQuote/quotes.txt', function(data) {
        var quotes = data.split("\@");
        var idx = Math.floor(quotes.length * Math.random());
        $('.quotes').html(quotes[idx]);
    });
});
</script>

This this css in your public.css
Code:
<style type="text/css">
.bqstart {
     float: left;
     font-size: 300%;
     margin-right: 5px;
     height: 15px;
 }

 .bqend {
     float: right;
     font-size: 300%;
     margin-top: -20px;
     height: 15px;
 }
  .bq {
    font-family: "WCManoNegraBtaRegular", Arial, sans-serif;
    font-size: 180%;
    margin-right: 15px;
 }
@font-face {
    font-family: 'WCManoNegraBtaRegular';
    src: url('./data/RandomQuote/WCManoNegraBta-webfont.eot');
    src: local('☺'), url('./data/RandomQuote/WCManoNegraBta-webfont.woff') format('woff'), url('./data/RandomQuote/WCManoNegraBta-webfont.ttf') format('truetype'), url('./data/RandomQuote/WCManoNegraBta-webfont.svg#webfonte6F4DwaZ') format('svg');
}
</style>

Then place this code where you want the script to appear:
Code:
<div class="bqstart">&#8220;</div>
<div class="quotes bq" style="padding-top: 10px; padding-right: 5px;"></div>
<div class="bqend">&#8221;</div>

Finally, upload the files in the package to your data directory. That should be it.

Added it to a sidebar, I'll have to take a look at it, but it can be done I'm sure. If your using the parsehtml mod, you can add it to a post in your forum. Which is what I've done.
 
example.webp

Just uploaded this random quote module but i see big space as shown with arrow how can i fix it ?
 
If I wanted to take RecentNews and make a copy called RecentAds, import it, and have it show a separate forum on my portal what all would I have to do to allow that to work? Changing ever mention of news to ads didnt work, haha.
 
You would just write your XML file to the HTML specifics you want, then upload it. If you need to change it, delete and reupload, place into the position you need. A pure HTML block stops at an XML file only.

I do believe a true HTML block would be nice though, one that uses the editor function for BBCode use for those who can't write HTML.

Could you post an example of this? It might help me wrap my head around this.
 
An example would be a block on my homepage. The following is the XML file with HTML, the image is what it creates:

Screen shot 2011-02-22 at 1.39.24 PM.webp

HTML:
<?xml version="1.0" encoding="utf-8"?>
<module>
  <module_name>Homepage</module_name>
  <module_cache>+1 day</module_cache>
  <module_settings/>
  <module_template><![CDATA[
<div class="sectionMain baseHtml">
	<div class="sectionFooter">
		<span class="custom-h1">Welcome to PTSD Forum</span>
	</div>
	<div class="primaryContent" style="border-bottom:none;">
		<div class="messageContent">
			<p>Welcome to PTSD Forum. Post Traumatic Stress Disorder (PTSD) is a life threatening, debilitating disorder that can break down a sufferer’s body through anxiety and stress. Further it poses a significant suicide risk resulting from the brains neurological imbalance and chemical depression. Sufferers often live in denial, thus this community is aimed at helping PTSD sufferers help themselves through others experiences, guidance and education. We are here for the sufferer, spouse and families surrounding PTSD. Spouses and family are too often forgotten in this equation, and often they receive all the worst that PTSD has to offer. If you're involved in any way with PTSD, get registered and help yourself now.</p>
			<p>If you're not sure how to register or use a forum, then <a href="http://www.ptsdforum.org/c/forums/video-tutorials.93/">start watching our video help tutorials</a> to get started.</p>
		</div>
	</div>
</div>

<div class="sectionMain baseHtml">
	<div class="sectionFooter">
		<span class="custom-h1">PTSD Articles</span>
	</div>
	<div class="primaryContent" style="border-bottom:none;">
		<div class="messageContent">
		<img src="http://www.ptsdforum.org/c/images/article.jpg" alt="" style="float:left;padding-right:10px;" />
			<p>The article repository is contained within the <a href="http://www.ptsdforum.org/c/forums/articles.52/">article forum</a>. Our articles cover the biology of PTSD, specific symptoms, carer and family information, pharmacology, naturopathy, techniques, emotions and more. If you suffer PTSD, then you should read every single article, as you will often find something of relevance in an article that you may feel has nothing to do with you personally, or your situation, though will cover a general aspect that could contain that little gem of knowledge to make a significant impact in your life.</p>
		</div>
		<div style="clear:left"></div>
	</div>
</div>
	]]></module_template>
</module>

Then any custom CSS goes with that obviously, if appropriate... Obviously I have switched things around to suit my purposes and look, from the default xenforo code.
 
If someone wants to make $15 + a Premium membership on xenfans.com for helping convert the Popular Content addon we created to be a xenPorta compatible module, please contact me. I am still interested in offering our premium members that also run xenPorta to add popular content as a module to be used.
 
  • Like
Reactions: eod
If someone wants to make $15 + a Premium membership on xenfans.com for helping convert the Popular Content addon we created to be a xenPorta compatible module, please contact me. I am still interested in offering our premium members that also run xenPorta to add popular content as a module to be used.
I would look at it myself, but I'm not a premium member it appears...
 
  • Like
Reactions: eod
I tried to make a module for html to show a server status script. I obviously did it wrong because it doesn't show the actual block stuff. It just shows the server status script. Here is the code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<module>
  <module_name>Voice_Server</module_name>
  <module_cache>+1 day</module_cache>
  <module_settings/>
  <module_template><![CDATA[
<div>
  <div align="center">
    <iframe src="http://cache.www.gametracker.com/components/html0/?host=66.151.138.9:4150&bgColor=2A2A2A&fontColor=CCCCCC&titleBgColor=2A2A2A&titleColor=FFFFFF&borderColor=171717&linkColor=18589C&borderLinkColor=2A2A2A&showMap=0&currentPlayersHeight=160&showCurrPlayers=1&showTopPlayers=0&showBlogs=0&width=230" frameborder="0" scrolling="no" width="230" height="348"></iframe>
  </div>
</div>
    ]]></module_template>
</module>
I am missing the header/footer/main content part of the instructions and was unsure of how to use those.
 
I would look at it myself, but I'm not a premium member it appears...

You've contributed more than plenty and are using our irc network, I think there's no problem upgrading the account ;) Please note that the module for xenPorta of this Popular Content is only going to be distributed to our Premium members, so please release it in the premium forum there, instead of here.
 
You've contributed more than plenty and are using our irc network, I think there's no problem upgrading the account ;) Please note that the module for xenPorta of this Popular Content is only going to be distributed to our Premium members, so please release it in the premium forum there, instead of here.
NP... looking at the code, this is going to be very easy to do... but I wont be able to get to it till Thursday at the earliest.
 
  • Like
Reactions: eod
Top Bottom