Gettin Bubbly!

Darthmaul

Goldbergstein
Joined
Jul 28, 2009
Messages
11,173
Reaction score
4
FP$
6,302
Hey, is the bubble ad code free to use? Because i'd like to ad it to my forum
 
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>
 
I need a few things. What stuff do i need to edit in there for the links, and my name and stuff. And then where do i put it in the veiwtopic?
 
This is the part of the script you need to focus on:
Code:
Darthmaulcloud[0]=["http://example.com","Example"];
Darthmaulcloud[1]=["http://example-2.com","Example 2"];
Darthmaulcloud[2]=["http://example-3.com","Example 3"];
Just edit the part that says ["http://example-2.com","Example 2"]
Insert the links you want in there.. If you want more links just keep going with the flow...
Example:
Code:
Darthmaulcloud[0]=["http://example.com","Example"];
Darthmaulcloud[1]=["http://example-2.com","Example 2"];
Darthmaulcloud[2]=["http://example-3.com","Example 3"];
Darthmaulcloud[3]=["http://example-4.com","Example 4"];
Darthmaulcloud[4]=["http://example-5.com","Example 5"];
Darthmaulcloud[5]=["http://example-6.com","Example 6"];
Darthmaulcloud[6]=["http://example-7.com","Example 7"];
Darthmaulcloud[7]=["http://example-8.com","Example 8"];
Darthmaulcloud[8]=["http://example-9.com","Example 9"];
 
Like if i wanted it to be called DM Bubble, where would i edit? Right after the var and then in the link things?
 
Replace eveything that says "Darthmaulcloud" with whatever you want it to say.. Not that it really matters only you will be the one who sees that part of the code.. Besides the people who view the source code of the page.
 
Yeah, well i just want to be thorough. Let me check and see if this works real quick.
 
Rrrg. That ain't workin. I need the exact spot to put it. How do i put it so it's after the first post, and how do i make it look like it's posting? Like the one here?
 
It aint working because you probably edited the name and had a space in there or you didnt change out all the "Darthmaulcloud's". Just use the code I gave you. 😉
 
I did. It's the placement that's killing me. I don't know where to put it. Well i am going to have to finish this in the morning. Night.
 
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>&nbsp;</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.
 
Works nice, but how would i add an image below the name, and then how would i add an actual "Bubble" to the background?
 
Why are you getting upset? Also you have yet to thank anyone for helping you thus far which makes nobody want to continue helping you. 😛
 
Sorry, thanks theezy and nathan. i really appreciate it. I would really like it if you would help me out further. thanks.
 
okay darth I will try and make it on my sandbox board and if it works, I can help you out here.

I might or might now finish tonight though so be patient.
 
Back
Top Bottom