Floating Llama Mod (from old YaBBSE support forum)

Started by scottb, June 22, 2009, 02:02:47 PM

Previous topic - Next topic

scottb

Probably a longshot now. But, back in the day on the old YaBBSE forum members there might remember seeing a randomly occuring floating small image of a Llama that if they clicked they got points. The forum kept track of the points and in the Stats section there was a leader board noting the best Llama catchers.  I was wondering if such a mod existed for SMF, or could be made?

Thanks

kat

It kinda does, but it's being reworked for v2.x.

For reasons unknown, the 1.1.x version was removed. :(

scottb

Quote from: Kat on June 22, 2009, 02:29:18 PM
It kinda does, but it's being reworked for v2.x.

For reasons unknown, the 1.1.x version was removed. :(

Thanks for the info, will it be available for use on other forums?

kat

No idea, I'm afraid.

My host uses it on her 1.1.9 SMF forum, though.

I could probably get it from her, if you really want it..

kat


BigMike

I have not verified if this version fixes the problem described here.

But I have found a couple differences between this and the 1.1.5 version. I installed this one over the top of my old one removing the old version as needed, and now I get:

Notice: Undefined index: LlamaInfo in /home/boardma/public_html/Sources/Subs.php on line 3297

but only in my Shout Box! area.

Here is my Subs.php file:

3295: // ]]></script>';
3296:
3297: if (($modSettings['freeLlamas'] == 1) && ($user_info['is_guest'] != 1) && ($context['LlamaInfo']['Llamaid'] != ''))
3298: {
3299: srand ((double) microtime() * time());
3300: $random->x = rand(1, 640);
3301: $random->y = rand(1, 480);


So the Shout Box! which uses an iFrame must require some sort of global or something... Any ideas?

kat

That part's a bit bigger, in mine:

if (($modSettings['freeLlamas'] == 1) && ($user_info['is_guest'] != 1) && ($context['LlamaInfo']['Llamaid'] != ''))
{
srand ((double) microtime() * time());
$random->x = rand(1, 640);
$random->y = rand(1, 480);

if (!$modSettings['llamaW'] || !$modSettings['llamaH'])
list($width, $height) = getimagesize($settings['images_url'] . '/' . $modSettings['Llama_image']);
else
{
$width  = $modSettings['llamaW'];
$height = $modSettings['llamaH'];
}

$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript">
var llama_speed = ' . (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40') . ';
</script>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/MoveObj.js"></script>
<script language="JavaScript" type="text/javascript">
/* Floating image script
By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)
Permission granted to Dynamicdrive.com to feature it in it\'s archive
For 100\'s of FREE DHTML scripts and components,
Visit http://dynamicdrive.com */

var Llama1;
function StartLlama()
{
Llama1 = new Chip("Llama1",' . $width . ',' . $height . ');
Llama1.move();
}
window.onUnload = "Llama1.stop();";
</script>

<div id="Llama1" style="position: absolute; top: ' . $random->y . 'px; left: ' . $random->x . 'px; width: ' . $width . 'px; height: ' . $height . 'px; z-index: 5">
<a href="' . $scripturl . '?action=magicLlama;magicLlama=' . $context['LlamaInfo']['Llamaid'] .'">
<img src="' . $settings['images_url'] . '/' . $modSettings['Llama_image'] . '" width="' . $width . '" height="' . $height . '" border="0" /></a>
</div>

<script language="JavaScript" type="text/javascript">
StartLlama();
</script>';
}
if (!isset($context['page_title']))
$context['page_title'] = '';
}


No weirdies with my shoutbox, either.

Maybe we use different ones. Mine's Ultimate Shoutbox.

mrselnombre

Quote from: K@ on June 22, 2009, 04:19:38 PM
No idea, I'm afraid.

My host uses it on her 1.1.9 SMF forum, though.

I could probably get it from her, if you really want it..
still works on my 1.1.13 too.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

kat


mrselnombre

:D hiya kattykins! Just checking out all my installed mods to see what i can keep.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

kat

v2 will be going gold within the next.... ooo... year, or so? ;)

Advertisement: