This is the 3rd update of the template
everything works fine at the moment
currently there is one extra module:
If You dont have the Rawr template you can get the complete template form here:
http://www.multiupload.com/S95YPN466IEdit : 13.02.10 :
k now everything seems to work
so i attache a zip file with everything u need to replace in the rawr template
just extract it in the hfs folder and replace everything
I modified the way of how the template works with the modules
because they were just "static" html in the template and i created some modules and wanted them to be included and this was always a waste of time.
Now It works this way:
in the template folder there is an subfolder "modules" .
in this folder , every module has his own subfolder with at least two text files in it
1: modcontent.txt
2:title.txt
the template simply builds the html for the modules based on a list with the names of the modules and loads the content from modcontent.txt and the title from title.txt
the positiv sideffects when u include this in your rawrtemplate are :
you can simply change the order of the modules
just by positioning the name in the list
you can simply create a new module to be loaded
just create an folder with the name of the module and a mod_ prefix
and put the content of the module inside the modcontent.txt and the title in title.txt in the folder.
to turn an module off u can either remove it from the list or prefix it with an off:- .
if an module is thought to only be displayed locally ( like the updates module ) just put an local:- before the module name in the list .
if anyone wants to use it
feel free to do so
Instructions:
1: First of all put the modules folder found in the rar arcive into /template/rawr_default
2. U will need these function in the [special:begin] section in order this to work :
{.set|#doforlist|{:{.trim|
{.set|#seperator|{.switch|{.length|$3.}||0|;|$3.}.}
{.set|#list|$1{.^#seperator.}.}
{.set|#entries|{.count substring|{.^#seperator.}|{.^#list.}.}.}
{.while|#list|{:{.trim|
{.set|#curitem|{.substring||{.^#seperator.}|{.^#list.}.}.}
{.cut|var=#list|from={.add|2|{.length|var=#curitem.}.}|size=.}
.}{.dequote|{.replace|%cur%|{.^#curitem.}|$2.}.}:}.}
.}:}.}
{.set|loadmodule|{:
{.set|modhtml|{:
< d i v class="module">
< d i v class="modHeading">
< s p a n >
< a h r e f="javascript:pinModule('{.^curmod.}');" id="{.^curmod.}_Link" title="{.!lv_hideTitle.}">< i m g
class="hide" src="/template/{.!theme.}/images/hide.gif" align="top" alt=""/>
< n o script>< i m g src="/template/rawr_default/images/spacer.gif" width="8" align="top"
alt=""/ > < / n o script>
< / a >
< / s p a n >
{.load|/template/rawr_default/modules/mod_{.^curmod.}/title.txt.}
< / d i v >
< d i v class="modContent" id="{.^curmod.}">
{.load|/template/rawr_default/modules/mod_{.^curmod.}/modcontent.txt.}
< / d i v >
< / d i v >"
:}.}
{.set|part1|{.substring||:-|$1|include=0.}.}
{.set|part2|{.substring|:-||$1|include=0.}.}
{.switch|{.^part1.}|,|
local|{: {.if|{.match|127.*;10.*;192.168.*|%ip%.}|{.set|curmod|{.^part2.}.}{.^modhtml.}.} :}|
off||
{:{.set|curmod|{.^part1.}.}{.^modhtml.}:}
.}
:}.}
just copy this and paste it directly after the [special:begin]
3. now u have to replace the template code in the template with the new code. in the rawr template juste delete
everything from line 183 to line 299 and replace it with the following code:
{.if|{.!modules.}|
<td width="175" valign="top" id="moduleCol">
<span id="specialBox"></span>
{.^#doforlist|{.!modules.}|{:{.^loadmodule|%cur%.}:}.}
</td>
.}
4. the last step write the list with the modules u want to be loaded , this gies directly under the [special:strings] section: f.e.
modules=local-updates;off-foldertasks;statistics;shoutbox
note: if you put the shoutbox or sth. else at the first position it will be displayed as the first module
hope anyone will find it usefull and everythings working correctly ( for me it does ) im open for every idea to improve this
roessi
could be that i find sth to improve and modify the post
P.S u have to remove the spaces in the html code ... i werent allowed to post html code in a code box
P.P.s i attached the modified template ... the only thing i still need to do to work perfectly is modifying the javascript to set the cookie for the state of the modules