Celebrus' Test Site
April 16, 2024, 02:17:01 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMF For Free
 
   Home   Help Search Gallery Shop Staff List Login Register  
Pages: [1] 2 3 ... 8
 1 
 on: October 22, 2011, 12:45:25 pm 
Started by Miltin - Last post by Miltin
MikiPro Ltd has a strong focus on enterprise grade equipment from parts for your currently deployed machines through to new server kit for current deployments. We hold over 500 servers in stock as well as 1000ís of parts. Having a large inventory of machines gives us the ability to provide you with the widest selection of products that meet your specifications. By carrying machines from IBM, HP, DELL as well as the smaller distributors like Cyclone and Super micro we are mostly able to cater to your brand preference as well as the required specifications.

___________________
dell poweredge 1950

 2 
 on: November 02, 2009, 09:31:49 am 
Started by vikhyat - Last post by vikhyat
just added memory!

 3 
 on: November 02, 2009, 09:20:24 am 
Started by vikhyat - Last post by vikhyat
this is a test

 4 
 on: November 02, 2009, 09:19:48 am 
Started by vikhyat - Last post by vikhyat
test test

 5 
 on: May 29, 2009, 09:07:17 am 
Started by vikhyat - Last post by vikhyat


Code:
$(document).ready(function(){
  $("div#upshrinkHeaderIC tr:contains('Forum Stats')").hide()
  $("div#upshrinkHeaderIC tr:contains('Forum Stats')").next().hide()
});

 6 
 on: May 28, 2009, 12:29:34 am 
Started by vikhyat - Last post by vikhyat
Code:
<script type="text/javascript">
// Don't show links to guests
// Script by Celebrus of Aetus Designs[aetus.net] and Revolution X[revolutionx.smfforfree3.com].
function logged_in() {
  return $('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html() ? true : false;
}
$(document).ready(function() {
  if(!logged_in()) {
    $("div.post a").html("<span style='color:red'>[Only members can see links]</span>").removeAttr("href").wrap("<strong></strong>");
  }
});
</script>

Test Links
http://revolutionx.smfforfree3.com/index.php?board=13.0
http://www.smfsupport.com/support/smf_for_free_codes_and_support/is_there_a_way_to_hide_links_in_posts_from_guests-t26898.0.html
http://aetus.net/

 7 
 on: May 23, 2009, 11:27:25 pm 
Started by vikhyat - Last post by vikhyat


Awesome icon from here: http://www.famfamfam.com/lab/icons/silk/

Code: (javascript)
<style type="text/css">
div.resized_image p {
  margin: 2px;
  margin-top: 0;
  font-size: 8px;
  /* Awesome icon from here: http://www.famfamfam.com/lab/icons/silk/ */
  background: url(http://i242.photobucket.com/albums/ff244/9861_omikron/error.png) no-repeat;
  padding-left: 20px;
  color: #333;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
  (
    function(maxht, maxwt, minht, minwt) {
      var imgs = document.getElementsByTagName('img');
      // Image resizing function
      var resize_image = function(img, newht, newwt) {
        img.height = newht;
        img.width  = newwt;
        $(img).wrap('<table><tr><td class="tborder"><div class="resized_image"><a href="' + img.src + '" target="_blank"></a></div></td></tr></table>');
        $(img).parent().before('<p>NOTE: This image was resized. To view it full-size, click on the image.</p>');
        $(img).parent().after('<p style="text-align:right;background:none;margin:0;padding-right:3px">Image resizing script by <a href="http://aetus.net/217/programming/automatically-resize-large-images-with-javascript/">Aetus Designs</a>.</p>');
      };
     
      for (var i = 0; i < imgs.length; i++) {
        // Set a variable for the current image to make the code make more sense.
        var img = imgs[i];
        if (img.height > maxht || img.width > maxwt) {
          // Use Ratios to constraint proportions.
          var old_ratio = img.height / img.width;
          var min_ratio = minht / minwt;
          // If it can scale perfectly.
          if (old_ratio === min_ratio) {
            resize_image(img, minht, minwt);
          }
          // We need to do some magic now.
          else {
            var newdim = [img.height, img.width];
            // Sort out the height first.
            newdim[0] = minht;
            // The logic behind this is that if ratio = ht / wt, then wt = ht / ratio.
            newdim[1] = newdim[0] / old_ratio;
            // Do we still have to sort out the width?
            if (newdim[1] > maxwt) {
              // Just do what we did with the height
              newdim[1] = minwt;
              newdim[0] = newdim[1] * old_ratio;
            }
            // So yeah, resize the image
            resize_image(img, newdim[0], newdim[1]);
          }
        }
      }
    }
  )(500, 500, 500, 500);
});
</script>

 8 
 on: May 02, 2009, 08:41:43 am 
Started by vikhyat - Last post by vikhyat
Code:
<script type="text/javascript">/*Created by Vikhyat of Aetus Designs<http://aetus.net>*/if(window.location.href.match(/action=style;sa=headers/)){$("textarea").attr("rows", "50");}</script>

 9 
 on: May 02, 2009, 08:33:49 am 
Started by vikhyat - Last post by vikhyat
Preview is here: http://9861.smfforfree.com/index.php

I have two boards on that forum, the announcements show up in both.

First off, ensure you have this in your headers:
Code:
<script src="/jquery.js" type="text/javascript"></script>

This goes in your footers:
Code:
<script type="text/javascript">
// Edit after this line
var announcements = [
 ['Aetus Designs', 'http://aetus.net/'],
 ['RevolutionX', 'http://revolutionx.smfforfree3.com']
];
// Stop editing if you don't know what you are doing
/**
 * Global Announcements
 * http://aetus.net/
 * http://revolutionx.smfforfree3.com/
 *
 *  While there is NO warranty on this script unless you pay me a very large fee,  I will *TRY*
 *  to the best of my ability to help you out.
 *
 *  License: WTFPL <http://sam.zoy.org/wtfpl/>
 *  
 *  Feel free to remove this copyright notice, just visit those two sites listed above.
 *  Thanks for using this script.
 *
 */
(function($,topics){
  if(window.location.href.match(/board=/) || window.location.href.match(/board,/)){
    var html = '<tr><td class="titlebg2" colspan="7">Global Announcements</td></tr><tr><td class="windowbg2" colspan="7">';
    for(var i = 0;i<topics.length;i++){
      html += '<a href="' + topics[i][1] + '">' + topics[i][0] + '</a><br />';
    }
    html += '</td></tr><tr><td class="titlebg2" colspan="7">Regular Topics</td></tr>';
    $("div#bodyarea div.tborder table.bordercolor tbody tr td.catbg3:contains('Subject')").parent().after(html);
  }
})(jQuery, announcements);
</script>

You have to edit the first part of the script, the part before the copyright message. The part which looks like this:
Code:
var announcements = [
 ['Aetus Designs', 'http://aetus.net/'],
 ['RevolutionX', 'http://revolutionx.smfforfree3.com']
];

More specifically, the two lines in the center. Delete those two lines and add in your own lines like this:
Quote
['NAME OF THE TOPIC', '*FULL* URL TO THE TOPIC'],

Keep adding lines like that, and when you are done, remove the comma at the end of the last line.

As usual this has been tested on Firefox and Opera. (I realized that Epiphany uses Firefox's rendering engine so no point mentioning that.) If it doesn't on another browser let me know and I'll try to iron out the bugs.

That's it. If you have any problems with this let me know. Also, if you liked this code I'd appreciate it very very very much if you linked to my site(Aetus Designs) somewhere.

 10 
 on: May 02, 2009, 07:50:27 am 
Started by vikhyat - Last post by vikhyat
Preview: http://celebrusisawesome.smfforfree.com/

Has been tested on Firefox, Epiphany and Opera.

First ensure you have this in your headers:
Code:
<script src="/jquery.js" type="text/javascript"></script>

If you have that, proceed. If you don't, add it and return.

Then stick this in your footers:
Code:
<script type="text/javascript">
/**
 * Auto-Update the Time
 * http://aetus.net/
 * http://revolutionx.smfforfree3.com/
 *
 *  While there is NO warranty on this script unless you pay me a very large fee,  I will *TRY*
 *  to the best of my ability to help you out.
 *
 *  License: WTFPL <http://sam.zoy.org/wtfpl/>
 * 
 *  Feel free to remove this copyright notice, just visit those two sites listed above.
 *  Thanks for using this script.
 *
 */
function getTimeString() {
  var t = new Date();
  var months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July',
  'August', 'September', 'October', 'November', 'December' ];
  var month = months[t.getMonth()];
  var date = t.getDate();
  var year = t.getFullYear();
  var hour = t.getHours();
  var suffix = "am";
  if (hour >= 12) {
    suffix = "pm";
    hour = (hour == 12) ? "12" : hour - 12;
  }
  if(hour < 10) { hour = "0" + hour; } 
  var minute = t.getMinutes();
  if(minute < 10) { minute = "0" + minute; }
  var second = t.getSeconds();
  if(second < 10) { second = "0" + second; }
  return month + " " + date + ", " + year + ", " + hour + ":" + minute + ":" + second + " " + suffix;
}
function updateTheDate($) {
  var timeString = getTimeString();
  var timeDisplay = $("div.tborder table tbody tr td.titlebg2 span.smalltext:contains(pm)");
  if(timeDisplay.length === 0) {
    timeDisplay = $("div.tborder table tbody tr td.titlebg2 span.smalltext:contains(am)");
  }
  timeDisplay.html(timeString);
}
setInterval("updateTheDate(jQuery)", 1000);
</script>

And voila, you now have a clock that shows the time *right now*, not when the page was loaded. And the time is from the user's computer, so you (and your members) don't have to mess with time offsets.

Pages: [1] 2 3 ... 8
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy