(it works)Nathan said:For prosilver based themes:
Open styles/stylename/template/viewtopic_body.html:
Code:<!-- END postrow -->
Add before:
Code:<!-- IF postrow.S_FIRST_ROW --> <div class="post bg2"> <div class="inner"><span class="corners-top"><span></span></span> <div class="postbody"> <h3>{postrow.POST_SUBJECT}</h3> <p class="author"><strong>DM Bubble</strong></p> <div class="content" style="text-align: center;"> <script type="text/javascript">var Darthmaulcloud = new Array(); Darthmaulcloud[0]=["http://example.com","Example"]; Darthmaulcloud[1]=["http://example-2.com","Example 2"]; Darthmaulcloud[2]=["http://example-3.com","Example 3"]; for( i=0; i<Darthmaulcloud.length; i++){size = 8+(Math.random()*10);if( size < 8 ){color = '#0000CC'}else if( size > 8 && size < 9 ){color = '#3366FF'}else if( size > 10 && size < 11 ){ color = '#6699FF'}else if( size > 12 && size < 16 ){ color = '#000099'}else{color = '#9999FF';}document.write("<span style='font-size:"+size+"px;margin: 45px;'>");document.write("<a href='"+Darthmaulcloud[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+Darthmaulcloud[i][1]+"</a>"); document.write("</span> ");}</script> </div> </div> <dl class="postprofile" id="profile0000"> <dt> <strong>DM Bubble</strong> </dt> <dd> </dd> </dl> <div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div> <span class="corners-bottom"><span></span></span></div> </div> <hr class="divider" /> <!-- ENDIF -->
Note: haven't tested but it should work fine.
<!-- IF postrow.S_FIRST_ROW -->
<div class="post bg2">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="postbody">
<h3>{postrow.POST_SUBJECT}</h3>
<p class="author"><strong>DM Bubble</strong></p>
<div class="content" style="text-align: center;">
<script type="text/javascript">var Darthmaulcloud = new Array();
Darthmaulcloud[0]=["http://example.com","Example"];
Darthmaulcloud[1]=["http://example-2.com","Example 2"];
Darthmaulcloud[2]=["http://example-3.com","Example 3"];
for( i=0; i<Darthmaulcloud.length; i++){size = 8+(Math.random()*10);if( size < 8 ){color = '#0000CC'}else if( size > 8 && size < 9 ){color = '#3366FF'}else if( size > 10 && size < 11 ){ color = '#6699FF'}else if( size > 12 && size < 16 ){ color = '#000099'}else{color = '#9999FF';}document.write("<span style='font-size:"+size+"px;margin: 45px;'>");document.write("<a href='"+Darthmaulcloud[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+Darthmaulcloud[i][1]+"</a>"); document.write("</span> ");}</script>
</div>
</div>
<dl class="postprofile" id="profile0000">
<dt>
<strong>DM Bubble</strong>
</dt>
<dd> </dd>
</dl>
<div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>
<span class="corners-bottom"><span></span></span></div>
</div>
<hr class="divider" />
<!-- ENDIF -->
theezy said:It should be.. The same exact script is used on several different forums. Most just edit in their forum's name to try to take credit for it.
:lol:
Anyway here it is:
Code:<script type="text/javascript">var Darthmaulcloud = new Array(); Darthmaulcloud[0]=["http://example.com","Example"]; Darthmaulcloud[1]=["http://example-2.com","Example 2"]; Darthmaulcloud[2]=["http://example-3.com","Example 3"]; for( i=0; i<Darthmaulcloud.length; i++){size = 8+(Math.random()*10);if( size < 8 ){color = '#0000CC'}else if( size > 8 && size < 9 ){color = '#3366FF'}else if( size > 10 && size < 11 ){ color = '#6699FF'}else if( size > 12 && size < 16 ){ color = '#000099'}else{color = '#9999FF';}document.write("<span style='font-size:"+size+"px;margin: 45px;'>");document.write("<a href='"+Darthmaulcloud[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+Darthmaulcloud[i][1]+"</a>"); document.write("</span> ");}</script>
Experience onyl helps if you show us what you have done :lol:Hermes said:If you need any CSS work call me, im a designer, I have studied CSS for 3 years.
I am rated #7 best at php in Australia
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.