Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Aquilo on April 04, 2004, 08:03:55 AM

Title: [DONE] Magic Llama mod
Post by: Aquilo on April 04, 2004, 08:03:55 AM
The Llama's have now been freed into the world! WOOT!

Magic Llama mod FULL 0.8 for SMF RC1
http://www.xtram.net/index.php?op=download;id=20

this is here but grayed for reference.

OK here is the full mod, I've spent the last few hours adding a few things and checking 3 time that it installed correctly and there where no bugs! so here is the full, bug free version:
the new Magic Llamas mod for SMF Beta 5 Public can be found here:
http://www.simplemachines.org/community/index.php?topic=8774.msg103861#msg103861

ALL FILES FROM HERE DOWN ARE FOR Beta 4 Public
Magic Llama mod FULL (http://www.xtram.net/index.php?op=download;id=18) <- Download this version, it has all other files included and extra features +bugs are fixed!

ok so I just got every thing working and I'm not saying there are no bugs I just haven't found any, and I have Magic Llamas on my test server! but there are some things I still have to do so if you install this mod check back because I'll be adding an update to the mod so you the admin can see who is getting the Llamas and delete the Llama entries from the database.

here be the download link (http://www.xtram.net/index.php?op=download;id=14)
[edit] All changes and db alterations are in the zip file!
this applys to the changes from this post to post 17, any further alterations will be noted and add to the main zip and posted to the thread!
April 06, 2004, 09:12:37 AM: I added the new moveobj.js in the main file aswell, next I will consolidate all the updates into one mod!


[UPDATE/ADDON]
Here is an addon or update to the main mod and needs to be installed after the main mod, This will give your users the option to turn this off from "Additional Preferences" in there profie!
Magic Llama Update 0.2 (http://www.xtram.net/index.php?op=download;id=15)


[UPDATE/ADDON]
There is an addon or update to the main mod and needs to be installed after the main mod, This will give your users an area to see how many good and bad Llamas they got and the points from each in there profie, also this has more features for the admin section, you can controle the speed of the Llama and there is a feature to view who is catching the Llamas, remove unCaught Llama, and remove all Llama.

This update is an addon to the Magic Llama's mod and should be added on after the main mod and Magic Llama Update 0.2 is applyed!
Magic Llama Update 0.3 (http://www.xtram.net/index.php?op=download;id=16)
April 05, 2004, 05:53:08 PM: Fixed two bugs in Update 0.3!
April 05, 2004, 09:23:41 PM: Fixed two more bugs in Update 0.3!


[UPDATE/ADDON]
this update can be used at any point, it simply replaces a file for cross-browser compatibility
Magic Llamas update 0.4 (http://www.xtram.net/index.php?op=download;id=17)
muahahahaha! now then! :P

[/color]
also...

I never sell mods and not going to start but if you'd like you can help in the  Free the Llamas for Charter membership fund (https://www.paypal.com/xclick/business=d37l2hgwqg6pw&no_note=1&tax=0&item_name=Free%20the%20Llamas%20for%20Charter%20membership%20fund&currency_code=usd)! it is not necessary but I'm posting it just in case! ;D
Title: Re: LLAMAS ARE FREED!!!!
Post by: [Unknown] on April 04, 2004, 08:29:32 AM
My mod is better.  And anyway, that won't work... but I'm not telling why.... :P.

-[Unknown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 08:39:05 AM
hey I didn't say it was better then yours! and let me look over the one that's working on localhost and see if I forgot anything!

but they seem to work BRB!

http://www.xtram.net/banners/llamas/bad_llama.gif
http://www.xtram.net/banners/llamas/good_llama.gif
http://www.xtram.net/banners/llamas/llama_modsetting.gif
http://www.xtram.net/banners/llamas/llama_working.gif
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 08:45:08 AM
so far I found only one place where I messed up I set the points value for the llama then redo it when the user gets the llama! but it still works...

still looking!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 09:04:26 AM
HA... HA...
Found it I forgot moveobj.js and global $modSettings; in index.template.php! :P fixed!
Title: Re: LLAMAS ARE FREED!!!!
Post by: 7summits on April 04, 2004, 09:13:40 AM
AAAAAHHH!
The Llama's are free! Well done! Can we see a working model somewhere?

Questions:
- can the user switch this off?
- can guests see it? What happens if they click on it?
QuoteFound it I forgot moveobj.js and global $modSettings; in index.template.php!
what does this mean for us llamalovers wanting to implement it?

<? Piranha($fx); ?>, can you show off your Yak drawing talents?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 09:18:52 AM
QuoteFound it I forgot moveobj.js and global $modSettings; in index.template.php!
if you have downloaded the zip befor 5 minets ago download it again!

I forgot about letting members turn it off That will be in the update! guests can't see it only members.

I'll set it up at Xtram!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 09:39:23 AM
YES Finally someone does
Title: Re: LLAMAS ARE FREED!!!!
Post by: 7summits on April 04, 2004, 09:40:49 AM
I noticed the following error (being a guest)
At the bottom of message index:
Notice: Undefined index: LlamaInfo in /home/xtram/public_html/smf/Themes/default/index.template.php on line 405

Cheers!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 09:42:55 AM
I have a question where do i upload  goldenlama2.gif or where do you upload magic llamas.mod i dont KNOW where to upload the MOD File can someone please help

Thanks

Regards
Homie
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 09:43:30 AM
ok I just uploaded another bug fix @ 9:40am or if your getting the db error and you can add the missing fields

ALTER TABLE `llama_info` ADD `Released` INT( 10 ) ,
ADD `Caught` INT( 10 ) ;
ALTER TABLE `llama_info` ADD `points` SMALLINT( 3 ) NOT NULL AFTER `Type` ;



or here is the file save to alter the table from php
http://www.xtram.net/dls/alter_db.zip
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 09:45:06 AM
hey homie I just added a few things download the zip again, you upload the image to your Themes/default/images directory

and the mod file need to be installed with board mod!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 09:46:04 AM
Thats my problem how do you use BoardMod to Upload it is there someone tutorial  :'(
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 09:47:12 AM
Nice one Aquilo but your zip file is corrupted  ::)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 09:54:01 AM
another db alter!

ALTER TABLE `llama_info` CHANGE `member` `member` MEDIUMINT( 8 )

thanks babylonking, I'll delete the one on the server and upload a fresh one! I must have uploaded it in ascii.
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 09:56:18 AM
Yup now it's working thanks......... BTW can i name your mod magic wingedbull in my forum that if you don't mind?
Title: Re: LLAMAS ARE FREED!!!!
Post by: 7summits on April 04, 2004, 09:58:20 AM
Good work Aquilo. Can you update the first post with information about the zip: are all changes made in the file etc.
Also do you have a test account/pw on your forums??
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 10:02:41 AM
here is a test account!

test : 123456

I ave the Llama's set at 75% for testing so there are going to be alot of them! ;D

babylonking, that's cool!

yes all changes are in the zip right now!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 10:12:12 AM
I'm sorry homie, I'm not ignoring you! do you have board mod right now?

if so just make a backup of your forum and db, always do that before applying any mod!

now make a copy of your backup forum and name it something like moded_forum then in boardmod directory there is a directory named mods create a new directory named SMF and copy the .mod file there then open boardmod point it to the moded_forum directory then the dropdown box next to it select SMF then click the check box in front of MagicLlamas_mod it will ask a question about installing it click yes and it should till you there where no problems continue? and click yes! then upload the moded files!
Title: Re: LLAMAS ARE FREED!!!!
Post by: 7summits on April 04, 2004, 10:17:41 AM
cool, it works on your site!
Now I got the finger I want the whle hand as they say over here  ;D

Feature requests:
Llama stats:
- "you caught x good llamas (increasing kudos with xxx points) and y bad llamas (increasing kudos with yyy points)"
- In user profile as well maybe?
- llama speed!

cheers! free the llamas!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 10:19:23 AM
I get this error

starting log...

script path: C:\Program Files\BoardMod\Mods\SMF\MagicLlamas_mod.mod

detected script: autodetect failed

selected script: SMF

installed mods: 0



--------------------------------------------------------------------------------

now installing:   (MagicLlamas_mod.mod)

--------------------------------------------------------------------------------



Step 1 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\index.php)

Step 2 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\index.php)

Step 3 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Sources\Load.php)

Step 4 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Sources\Karma.php)

Step 5 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Sources\ModSettings.php)

Step 6 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Sources\ModSettings.php)

Step 7 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Sources\ModSettings.php)

Step 8 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Sources\ModSettings.php)

Step 9 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Themes\default\index.template.php)

Step 10 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Themes\default\index.template.php)

Step 11 ... failed - ERR(2): Could not find file to edit (C:\Program

Files\BoardMod\Mods\SMF\Themes\default\languages\Admin.english.php)



> modifications failed! 11 errors occured. No files will be modified. Please see readme for help on
the error messages.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 10:21:06 AM
And also where do you upload the MODED files but i keep getting errors
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 10:31:46 AM
here is an screen shot to where to put your files


http://www.xtram.net/banners/mod_dir.gif
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 10:33:28 AM
Im having trouble seeing Image make it a higher quality picture format. + i made a new folder called SMF in the Mods FOlder and then uplaoded your mod file to Mods/SMF/yourfile.mod
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 10:36:32 AM
OOOOOOOOH you have to Download your SMF forum to the Boardmod Folder i didnt KNOW OOOPS ill give that a try. + I downloaded your image to my computer and its more clear
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 10:39:45 AM
just remember to backup your forum befor modding it!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 10:40:30 AM
Oh um i have two test forum so i dont touch my main
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 10:43:27 AM
QuoteFeature requests:
Llama stats:
- "you caught x good llamas (increasing kudos with xxx points) and y bad llamas (increasing kudos with yyy points)"
- In user profile as well maybe?
- llama speed!

I was also going to look at setting the llama speed in the admin, I'll add that to the update if posible!


Quote- "you caught x good llamas (increasing kudos with xxx points) and y bad llamas (increasing kudos with yyy points)"
- In user profile as well maybe?
I'll look into this! :D
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 10:51:49 AM
babylonking, I just noticed your forum is showing this error at the bottom for guests.

QuoteNotice: Undefined variable: modSettings in /home/babylon/public_html/forum/Themes/default/index.template.php on line 277


add this to the globals in index.template.php
<Edit file>
Themes/default/index.template.php
</Edit file>

<Search for>
global $context, $settings, $options, $scripturl, $txt;
</Search for>

<Add after>
global $modSettings, $user_info;
</Add after>
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 11:02:09 AM
Im still getting errors heres a image

(http://www.abhosting.uni.cc/untitled.JPG)

Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 11:06:01 AM
Yess never mind i got it installed now i just got to uplaod the fiiles back to ftp thanks Aquilo
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 11:11:48 AM
Im getting stuff on my forum like errors.

http://www.abhosting.uni.cc/myextraforum/index.php

Also where in the Admin Center is the Llama Options HEEELP!!!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 11:13:24 AM
You only get errors when you login so register OK
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 11:35:07 AM
I alter the table below but i keep getting this random error  ::)


Table 'babylon_forum.yabbse_llama_info' doesn't exist
File: /home/babylon/public_html/forum/Sources/Load.php
Line: 1038
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 11:43:43 AM
the table should exist or you would get this in your header

QuoteNotice: Undefined index: freeLlamas in /home/account/public_html/forum/index.php on line 140

do you have phpmyadmin to see if your table looks like this?

CREATE TABLE llama_info (
  ID mediumint(10) NOT NULL auto_increment,
  Type int(2) NOT NULL default '0',
  points smallint(3) NOT NULL default '0',
  md5 varchar(15) NOT NULL default '',
  member mediumint(8) default NULL,
  Released int(10) default NULL,
  Caught int(10) default NULL,
  PRIMARY KEY  (ID)
) TYPE=MyISAM"
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 11:53:23 AM
The table is there but i keep getting random error. ::)

QuoteNotice: Undefined index: LlamaInfo in /home/babylon/public_html/forum/Themes/default/index.template.php on line 279

QuoteTable 'babylon_forum.yabbse_llama_info' doesn't exist
File: /home/babylon/public_html/forum/Sources/Load.php
Line: 1038
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 12:00:59 PM
I'm looking at it, just posting so you know! :D

the randomness is every time it creats a llama, I just don't see why it says the table is not there!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 12:03:54 PM
Once you help me will you update all the files and have them for download Again
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 12:14:36 PM
the files should be all up to date, but yes I'm goin to go over them again.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 12:22:42 PM
Hey that messed up my froum so now what do i do
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 12:37:04 PM
babylonking, I notice you have your forum in maintenance mod if you want to kill this till I can find out why it don' like the table, look in index.php and find this

// load a new Llama.
if (($user_info['is_guest'] != 1) && ($modSettings['freeLlamas'] == 1))
loadLlamas();


and comment it
// load a new Llama.
if (($user_info['is_guest'] != 1) && ($modSettings['freeLlamas'] == 1))
//loadLlamas();


this will stop loadLlamas(); from loading and the error for now! sorry for the errors I'm looking for another way to write the query but there are three databases with it running right now and I don't understand why it says it's not there! but I am pulling my hear out trying to figure this out!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 01:03:31 PM
Now guys Everything is updated and now you should be able to downlaod the llama mod zip with no BUGS Thats what  Aquilo told me  :)
Title: Re: LLAMAS ARE FREED!!!!
Post by: bostasp on April 04, 2004, 01:05:25 PM
Oh crap, someone didn't kill this cult.
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 01:21:35 PM
don't worry about maintenance mod  :)

I think the llama is looking for yabbse_llama_info table and i have llama_info table only.

Table 'babylon_forum.yabbse_llama_info' doesn't exist
File: /home/babylon/public_html/forum/Sources/Load.php
Line: 1038

Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 04, 2004, 01:31:36 PM
oh if that's it go to phpmyadmin drop the table and past this in sql

CREATE TABLE `yabbse_llama_info` (
  `ID` mediumint(10) NOT NULL auto_increment,
  `Type` int(2) NOT NULL default '0',
  `points` smallint(3) NOT NULL default '0',
  `md5` varchar(15) NOT NULL default '',
  `member` mediumint(8) default NULL,
  `Released` int(10) default NULL,
  `Caught` int(10) default NULL,
  PRIMARY KEY  (`ID`)
) TYPE=MyISAM;
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 01:36:19 PM
ok i renamed the table llama_info to yabbse_llama_info and it works only in EI in mozilla firefox the llama image is not floating  ::)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Acf on April 04, 2004, 01:42:46 PM
we need a post police version :P
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 01:56:59 PM
another bug ::) my karma in my profile page is +29/-15 and in message display is +29/-

some thing is wrong ?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Grudge on April 04, 2004, 03:12:03 PM
The mod file isn't working homie. If you have modified your source files or arn't using beta 4.1 that would cause it - or if the mod file is broke. Please don't PM me about other peoples mods, and stop multi-posting, if you make a post and want to add to it then edit it, don't keep posting more and more replies one after another.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 03:16:43 PM
OK Sorry.+ im using 4.0 how do i make it 4.1 do i download the update. Also i had added a team Button to my forum.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Grudge on April 04, 2004, 03:28:28 PM
team Button won't matter. Everyone *should* be using 4.1. It's on the download page and has been out for ages, and was posted about in the news board.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 03:30:28 PM
Go here heres my forum

http://abhosting.uni.cc/abhosting/abhosting/index.php

look at the bottom of it it says

4 it doesnt say 4.1

but my new forum i just made says 4.1
http://abhosting2.uni.cc/llamatestforum/index.php

so how can you somehow update it
Title: Re: LLAMAS ARE FREED!!!!
Post by: Grudge on April 04, 2004, 03:35:02 PM
Jebus, there are so many threads on updating a forum! Download the "upgrade" package, upload it to your server (being careful not to overwrite your index.template.php if you have changed it. And run upgrade.php. There is more info around.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 03:36:13 PM
Thank you thats all i wanted to know i Appreciate it  :)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 03:41:26 PM
well i installed it on a clean SMF thats been updated and i get error at bottom of my forum

http://abhosting2.uni.cc/llamatestforum/index.php

And i enabled magic llamas but they never popped up and i set it so it will pop up every time your froum loads so now whats the problem
Title: Re: LLAMAS ARE FREED!!!!
Post by: bostasp on April 04, 2004, 04:11:02 PM
Quote from: Grudge on April 04, 2004, 03:12:03 PM
...and stop multi-posting, if you make a post and want to add to it then edit it, don't keep posting more and more replies one after another.

homie, just read and take in what Grudge is saying to you.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 04:12:04 PM
I am i upgraded my forum im now trying to get my llama to work i installed it and enabled it but it doesnt piop up the llamas dont
Title: Re: LLAMAS ARE FREED!!!!
Post by: [Unknown] on April 04, 2004, 09:16:27 PM
See, I told you my mod was better.  It is cross browser.

-[Unknown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 04, 2004, 10:27:02 PM
Can you make a Llama mode for me or everyone id be happy  :) Becasue yours is the best [Unkown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 04, 2004, 11:14:05 PM
QuoteSee, I told you my mod was better.  It is cross browser.

With mozilla firefox the llama image just copy itself to a random location on my forum and i don't need to chase the llama with my mouse  :P

But it's ok cuz %90 of my members they use IE  :)

Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 12:11:40 AM
hehe they look like they are having a ball too! :D

I'm working on geting it to work in FireFox.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 12:12:38 AM
Auqilo im getting this error
I get it installed in forum where i hae magic llama options but the llama never pops up
I get this error in board MOD

Step 1 ... ok

Step 2 ... ok

Step 3 ... ok

Step 4 ... ok

Step 5 ... ok

Step 6 ... ok

Step 7 ... ok

Step 8 ... ok

Step 9 ... ok

Step 10 ... failed - ERR(1): Search string could not be found

Step 11 ... ok
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 12:15:06 AM
ok homie let be find boardmod again and see if what step 10 is and see what's wrong.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 12:35:02 AM
ok homie, I just checked the .mod file and the index.template.php in the smf_1-0-beta4-1_update.zip file and step 10 is looking for this

echo '
</body>
</html>';
}


it's the same in the mod file as the clean unmoded index.template.php, I don't know what the difference is from the index.template.php file your moding but you may have to copy the last two actions out of the mod file remove them from the mod file apply the mod file then do the last two actions by hand, because I just can't change it to something other then what is in the clean file zipped from here!

but it all installing for me so your index.template.php
Quotestarting log...
script path: C:\Documents and Settings\Aquilo.XTRAM-ONE\Desktop\SMF\index.php
detected script: autodetect failed
selected script: SMF 1.0 Beta 4 Pubic
installed mods: 0

--------------------------------------------------------------------------------

now installing:   (MagicLlamas_mod.mod)

--------------------------------------------------------------------------------

Step 1 ... ok
Step 2 ... ok
Step 3 ... ok
Step 4 ... ok
Step 5 ... ok
Step 6 ... ok
Step 7 ... ok
Step 8 ... ok
Step 9 ... ok
Step 10 ... ok

> finished. modifications successful.

if anything do what I just did to install the mod I copied everything from the smf_1-0-beta4-1_update.zip file and mod that, then upload that! it works with no errors.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 12:36:29 AM
OK give me a minute ill try that
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 12:43:01 AM
Ill try tomorrow i got to sleep
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 12:49:27 AM
Quotehehe they look like they are having a ball too!

I'm working on geting it to work in FireFox

It's ok just take your time and no rush to fix the firefox bug  :)

Good job on your mod  ;)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 12:56:09 AM
well I'm 97% done with alowing members to turn it off from the profile, then I need to get working on the admin section becouse the llama_info table can fill up quick it your members are having alot of fun! ;D
Title: Magic Llama's Mod [UPDATE/ADDON]
Post by: Aquilo on April 05, 2004, 05:16:41 AM
There is an addon or update to the main mod and needs to be installed after the main mod, This will give your users the option to turn this off from "Additional Preferences" in there profie!

Check the first post in this topic for the download link!
http://www.simplemachines.org/community/index.php?topic=8774.0
Title: Re: LLAMAS ARE FREED!!!!
Post by: martp on April 05, 2004, 06:41:30 AM
okay, theres a lot of talk about the llamas. What the heck is it? Can I see it somewhere?
::)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 06:45:08 AM
Yes there is a test account at my sit, the info is in this post (http://www.simplemachines.org/community/index.php?topic=8774.msg82103#msg82103)!
Title: Re: LLAMAS ARE FREED!!!!
Post by: AmphetaMarinE on April 05, 2004, 07:09:58 AM
Quote from: homie on April 05, 2004, 12:36:29 AM
OK give me a minute ill try that

Quote from: homie on April 05, 2004, 12:43:01 AM
Ill try tomorrow i got to sleep

Holy multiple posts batman.....

Is reading really all that hard...

Im quite sure the dev team here didn't put in all the time developing a forum which happens to include a working modify post button so that people could just ignore it....

now there's my .02

PS can't wait for the final bugfree llama mod... ;)

Cheers Aquilo...
Amph.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 07:27:05 AM
you found bugs? or u referring to browser compatibility? Yep still working on that, But I don't know what to prioritize the js or admin functions!?!? :P any way thanks this is fun!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 07:43:15 AM
Ill just wait till you finish then ill try installing the llama mod OK  :)
Title: Re: LLAMAS ARE FREED!!!!
Post by: AmphetaMarinE on April 05, 2004, 09:02:57 AM
Only referring to the cross browser issue Aquilo....
No bugs.....
I use firefox, and the js doesn't work in it... the llama doesn't move....

But, no probs... I myself would prioritize the admin functions, as the majority of users only use IE, as they are barely aware that anything else exists.... and amazingly enough, ¾ of the worlds users Don't seem to understand that time honoured phrase, "Google is your friend..."

So being that the majority of people viewing the mod will use IE, I think admin options for it would be more useful than java that works on the gecko engine.

Cheers
Amph.
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 12:43:04 PM
There is an addon or update to the main mod and needs to be installed after the main mod, This will give your users an area to see how many good and bad Llamas they got and the points from each in there profie, also this has more features for the admin section, you can controle the speed of the Llama and there is a feature to view who is catching the Llamas, remove unCaught Llama, and remove all Llama.

This update is an addon to the Magic Llama's mod and should be added on after the main mod and Magic Llama Update 0.2 is applyed!

Check the first post in this topic for the download link!
http://www.simplemachines.org/community/index.php?topic=8774.0

from here on out I'm going to focus on the js cross-browser compatibility, and then merge everything together from the main mod and update 0.2 and 0.3.
Title: Re: LLAMAS ARE FREED!!!!
Post by: eFishie on April 05, 2004, 01:21:54 PM
GOD NO! NOT BOARDMOD!

Jason, this is uncalled for!

I'm modding this by hand!

And here's a Yak drawing:

Y A K !

Beautiful, eh?
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 01:23:24 PM
Good job Aquilo i'm gonna install the new update and i will post any bugs i see.

Thanks for the new update  :)
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 02:11:43 PM
so far 2 error message found and the llama image is not floating even when i set the speed  ::)

Undefined index: Llamaspeed in /home/babylon/public_html/forum/Sources/ModSettings.php on line 416


the error below when i click on view llama log

Unable to load the 'llama' template.
Title: Re: LLAMAS ARE FREED!!!!
Post by: ROGUE-Master on April 05, 2004, 02:22:51 PM
ok where is a working version of this :P
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 05:11:18 PM
Thats why i Wish [Unkown] could Please release the Magic Llama Mod That he made But Auqilo is got good one to
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 05:44:39 PM
Hey i finally got board mod to install it i just releised that i forgot to erase the Install LOg So now im upladoing everything to my test froum and see if it works. test forum here  You can register here if you want if i need help ill tell you if it worked in a Few minutes + i Know [Unkown] Wont be releasing a Magic Llama Mod so your our only hope for now well thank you  :)

http://www.abhosting2.uni.cc/lallamaaaa/index.php
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aaron Nelsen on April 05, 2004, 05:45:50 PM
@Aquilo

You need to change
<Search for>
$txt['lateLlama'] = 'Message to display for late Llama:';
</Search for>

<Add after>
$txt['Llamaspeed'] = 'Llama Speed: (0-???)<br /><small>The smaller the number the faster it moves!</small>
</Add after>


To

<Search for>
$txt['lateLlama'] = 'Message to display for late Llama:';
</Search for>

<Add after>
$txt['Llamaspeed'] = 'Llama Speed: (0-???)<br /><small>The smaller the number the faster it moves!</small>';
</Add after>


In Update 0.3

Otherwise you get a ton of error messages in the admin panel.

Quote from: babylonking on April 05, 2004, 02:11:43 PM
so far 2 error message found and the llama image is not floating even when i set the speed  ::)

Undefined index: Llamaspeed in /home/babylon/public_html/forum/Sources/ModSettings.php on line 416

I'm getting the same thing
QuoteNotice: Undefined index: Llamaspeed in c:\program files\apache group\apache\htdocs\hsu\Sources\ModSettings.php on line 414
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 05:52:03 PM
babylonking here is the fix for the error in modsetting.php

you may have to do them by hand since the two tabs will be turned to spaces in Search for and add after!
<Edit file>
Sources/ModSettings.php
</Edit file>

<Search for>
'Llama_chances',
</Search for>

<Add after>
'Llamaspeed',
</Add after>


and 01001101 01100101 go the other bug I was going to let you know about, I forgot to close the string.

I will be uploading the fixes in the 0.3 zip right now aswell!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 05:56:35 PM
I got everything installed but after i saved the options in the admin center for llama and i try to go to diffrent parts of the forum i get this error
. I  click like 10 times on home button and i finnally get to home Forum then i click admin button and it gives me the error below then i have to keep clicking till i get there.

Database Error
Table 'abhost_lllaama.smf_llama_info' doesn't exist
File: /home/abhost/public_html/lallamaaaa/Sources/Load.php
Line: 1031 

FORUM URL_------------>         http://www.abhosting2.uni.cc/lallamaaaa/index.php
HEEEEEEEEEEEEEELP
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 06:03:32 PM
that sounds like the same bug babylonking had where $db_prefix is not making it into the database, I just downloaded the file and I've uploaded it with out {$db_prefix} again ::)

I'm uploding the fixed MagicLlamas.zip file! but a few posts back I posted a fix you can apply in phpmyadmin if you have it if not I put a script together to drop the table and recreat it with the {$db_prefix}!


here homie this will fix the table
DROP TABLE llama_info;
CREATE TABLE `smf_llama_info` (
  `ID` mediumint(10) NOT NULL auto_increment,
  `Type` int(2) NOT NULL default '0',
  `points` smallint(3) NOT NULL default '0',
  `md5` varchar(15) NOT NULL default '',
  `member` mediumint(8) default NULL,
  `Released` int(10) default NULL,
  `Caught` int(10) default NULL,
  PRIMARY KEY  (`ID`)
) TYPE=MyISAM;
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 06:06:47 PM
Im going to back up my SQL and all SMF files and then try installing it on my main forum in a few minutes but ill try doing the Llama update
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 06:28:14 PM
the updates have to be done in order!

1: MagicLlamas.zip
2: Magic_LlamaMod_update_0.2.zip
3: Magic_LlamaMod_update_0.3.zip

2 and 3 will not install out of order!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 06:33:47 PM
DId all install and didt work ill try it on my main forum now soo a wait a bit ill tell you if it worked on that ok
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 06:49:03 PM
Quote from: Aquilo on April 05, 2004, 05:52:03 PM
babylonking here is the fix for the error in modsetting.php

you may have to do them by hand since the two tabs will be turned to spaces in Search for and add after!
<Edit file>
Sources/ModSettings.php
</Edit file>

<Search for>
'Llama_chances',
</Search for>

<Add after>
'Llamaspeed',
</Add after>


and 01001101 01100101 go the other bug I was going to let you know about, I forgot to close the string.

I will be uploading the fixes in the 0.3 zip right now aswell!

That didn't fix the error  ::)

Undefined index: Llamaspeed in /home/babylon/public_html/forum/Sources/ModSettings.php on line 416
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 06:53:05 PM
Well i Installed the mod on my main forum well it got installed on my forum succesfully but it never appeared the Llama Options never appread and it never worked

http://abhosting.uni.cc/abhosting/abhosting/index.php
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 06:56:04 PM
did you fix the $txt typo? if so is there a value in llamaspeed? I just installed it that's what was giving me the error!
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 07:07:34 PM
Quote from: Aquilo on April 05, 2004, 06:56:04 PM
did you fix the $txt typo? if so is there a value in llamaspeed? I just installed it that's what was giving me the error!

This what i have in llama table.


  ID  mediumint(10)   No    auto_increment             
   Type  int(2)   No  0               
   points  smallint(3)   No  0               
   md5  varchar(15)   No                 
   member  mediumint(8)   Yes  NULL               
   Released  int(10)   Yes  NULL               
   Caught  int(10
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 07:11:48 PM
OK good thanks for registering at my forum Aquilo now can you help me i right now am about to install Update 3
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 07:15:21 PM
I Just installed update 3 and my Llamas still dont work + im getting these errors in the admin center of my forum



Parse error: parse error in /home/abhost/public_html/abhosting/abhosting/Themes/default/languages/Admin.english.php on line 364

Notice: Undefined offset: 427 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1219
Notice: Undefined offset: 7 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1226
Notice: Undefined offset: 4 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1229
Notice: Undefined index: package1 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1232
Notice: Undefined index: smf201 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1235
Notice: Undefined offset: 426 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1241
Notice: Undefined offset: 8 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1246
Notice: Undefined index: edit_permissions in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1249
Notice: Undefined index: registration_member in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1253
Notice: Undefined offset: 5 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1254
Notice: Undefined offset: 207 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1255
Notice: Undefined offset: 6 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1259
Notice: Undefined index: ban_title in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1262
Notice: Undefined offset: 428 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1269
Notice: Undefined index: smf2 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1275
Notice: Undefined offset: 222 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1276
Notice: Undefined index: theme_current_settings in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1277
Notice: Undefined index: theme_admin in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1278
Notice: Undefined index: smileys_manage in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1283
Notice: Undefined offset: 135 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1284
Notice: Undefined index: smf11 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1285
Notice: Undefined offset: 501 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1293
Notice: Undefined index: maintain_title in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1295
Notice: Undefined index: errlog1 in /home/abhost/public_html/abhosting/abhosting/Sources/Subs.php on line 1296
Notice: Undefined index: support_versions_php in /home/abhost/public_html/abhosting/abhosting/Sources/Admin.php on line 103
Notice: Undefined index: support_versions_mysql in /home/abhost/public_html/abhosting/abhosting/Sources/Admin.php on line 104
Notice: Undefined index: support_versions_server in /home/abhost/public_html/abhosting/abhosting/Sources/Admin.php on line 105
Cool Stuff Community 
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 07:18:18 PM
babylonking your db table looks fine, there was and edit to admin.english.php and there was an error in it that 01001101 01100101 posted did you get that fixed?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 07:20:56 PM
homie if you downloaded the 0.3 file befor 05:45pm there was an error in it but the zip file on the server right now has the fix!?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 07:22:32 PM
OK ill re download it Upgrade 0.3
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 07:26:47 PM
Quote from: Aquilo on April 05, 2004, 07:18:18 PM
babylonking your db table looks fine, there was and edit to admin.english.php and there was an error in it that 01001101 01100101 posted did you get that fixed?

Yes i saw that while adding the mod and i fixed....... I update all files but still i get error when i expand the Magic Llama's in Edit Features and Options.... plus the llama is not floating even in IE  ::)

Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 07:36:27 PM
Aquilo well now i got rid of all the stuff but one more problem the Llama wont POP Up for anything + what speed number do i set it to
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 07:40:32 PM
babylonking I'm going to unzip a new copy of smf and install these three real quick to find he error, I but just a few minutes!

Homie if you can set those settings the default was 40 but I like 25! ;D
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 07:43:18 PM
Set what settings for Llamas to appear
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 08:01:06 PM
homie your not getting any errors?

how about a yellow exclamation mark in the bottom left corner of your browser?

every thing installed great except I lost other mods on my test board, but there was one error the javascript llama_speed var has to be before the moveobj.js include. so if you are getting that yellow exclamation,

open index.template.php and find this and remove it!

checkbrOK();
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), '


now go up just a little and find this:

echo '
<script language="JavaScript" type="text/javascript" src="moveobj.js"></script>


and replace it with:
echo '
<script language="JavaScript" type="text/javascript">
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), ';
</script>
<script language="JavaScript" type="text/javascript" src="moveobj.js"></script>


this will make the llama's popup on your screen!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 08:02:45 PM
Im getting this error at bottom of my forum thats only error  i see

Notice: Undefined index: LlamaInfo in /home/abhost/public_html/abhosting/abhosting/Themes/default/index.template.php on line 347
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 05, 2004, 08:16:42 PM
Quote from: Aquilo on April 05, 2004, 08:01:06 PM
homie your not getting any errors?

how about a yellow exclamation mark in the bottom left corner of your browser?

every thing installed great except I lost other mods on my test board, but there was one error the javascript llama_speed var has to be before the moveobj.js include. so if you are getting that yellow exclamation,

open index.template.php and find this and remove it!

checkbrOK();
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), '


now go up just a little and find this:

echo '
<script language="JavaScript" type="text/javascript" src="moveobj.js"></script>


and replace it with:
echo '
<script language="JavaScript" type="text/javascript">
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), ';
</script>
<script language="JavaScript" type="text/javascript" src="moveobj.js"></script>


this will make the llama's popup on your screen!

Thanks that fixed the Modsetting error message........ I have 2 more errors  :P

1- the llama is not floating.
2- when i click on View Llama Log i get this error "Unable to load the 'llama' template".
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aaron Nelsen on April 05, 2004, 08:25:07 PM
Here's how I got it to float in IE...

Leave this code in index.template.php
checkbrOK();
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), '


Then find and replace
  echo '
<script language="JavaScript" type="text/javascript" src="moveobj.js"></script>


with

  echo '
<script language="JavaScript" type="text/javascript">
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), ';
</script>
<script language="JavaScript" type="text/javascript" src="moveobj.js"></script>


In other words, do everything Aquilo told you to except the first step.

That's what worked for me...

As for the template problem, check and make sure you have two files Llama.template.php and Llamas.template.php
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 09:04:04 PM
Im Proud to Announce that my Forum now has Magic Llama Mod installed and working

http://abhosting.uni.cc/abhosting/abhosting/index.php

It was a pain to get it working thanks to Auqilo for editing the template stuff
SO please go check it out. + You cant view Llamas without being registered

Regards
Homie
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 05, 2004, 09:17:27 PM
Will you soon ad a Llama mod for the Llama mod where the Admin can set it up also so he can make it so Llama attacks certian members and gives them a certain good or bad karama just to annoy the member it would be cool
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 09:26:50 PM
01001101 01100101 I found the template error also!

rename Llama.template.php to llama.template.php notice the L's
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aaron Nelsen on April 05, 2004, 09:32:37 PM
Okay, I had it working on my localhost install of SMF, but now that I'm trying to run it off my server I'm getting the same error as babylonking

Notice: Undefined variable: modSettings in /home/r1478142/public_html/forum/Themes/hsu/index.template.php on line 416
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 05, 2004, 09:35:29 PM
check index.php and load.php those where wear that error where coming from for homie, check that the mod is correct!
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 06, 2004, 12:33:13 AM
Thanks Aquilo your llama mod rocks now  :)
Title: Magic Llamas update 0.4
Post by: Aquilo on April 06, 2004, 09:20:20 AM
WOOT! Magic Llamas update 0.4 is up this is a quick overwrite of the moveobj.js file so it works in FireFox!!

the download this is in this post! (http://www.simplemachines.org/community/index.php/topic,8774.msg82053#msg82053)
Title: Re: Magic Llamas update 0.4
Post by: babylonking on April 06, 2004, 09:59:34 AM
Quote from: Aquilo on April 06, 2004, 09:20:20 AM
WOOT! Magic Llamas update 0.4 is up this is a quick overwrite of the moveobj.js file so it works in FireFox!!

the download this is in this post! (http://www.simplemachines.org/community/index.php/topic,8774.msg82053#msg82053)

Nice one Aquilo ......... Thanks again  :D
Title: Re: LLAMAS ARE FREED!!!!
Post by: [Unknown] on April 06, 2004, 10:15:10 AM
My moveobj.js is still better.

-[Unknown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 06, 2004, 10:23:55 AM
Quote from: [Unknown] on April 06, 2004, 10:15:10 AM
My moveobj.js is still better.

-[Unknown]

How much $  ;D
Title: Re: LLAMAS ARE FREED!!!!
Post by: [Unknown] on April 06, 2004, 10:25:36 AM
I rewrote the whole thing so it doesn't ever go off screen and works on Opera, Mozilla, etc.  Tested it on several browsers.  Also more commented and better coding, etc. :P.

-[Unknown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 06, 2004, 10:35:03 AM
Quote from: [Unknown] on April 06, 2004, 10:25:36 AM
I rewrote the whole thing so it doesn't ever go off screen and works on Opera, Mozilla, etc.  Tested it on several browsers.  Also more commented and better coding, etc. :P.

-[Unknown]

I just noticed that Aquilo moveobj.js for FireFox is not making the llama image floating.  ::)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 06, 2004, 10:39:50 AM
do you think it's better if it's stays in the window and not move down? if so along the way I did come up with a version that will not go lower then the viewing window! but I think it better if they have to chase it not just bouncing around in there face, I was also thinking of adding a few extra lines that would make it disappear and reappear I thought that would give it a fun twist!

Quote from: [Unknown] on April 06, 2004, 10:25:36 AM
I rewrote the whole thing so it doesn't ever go off screen and works on Opera, Mozilla, etc. Tested it on several browsers. Also more commented and better coding, etc. :P.

-[Unknown]

but what good is it if your the only one who sees it? ;D
Well the Resistance version is out! :P and the Llama have been Freed! :D

but honestly how is this for something I could only conceive how it worked?
plus I'm not done there are some things I may work on! oh since I only have IE6 and FireFox what other browsers does this version work in or don't?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 06, 2004, 10:41:47 AM
Quote from: babylonking on April 06, 2004, 10:35:03 AM
Quote from: [Unknown] on April 06, 2004, 10:25:36 AM
I rewrote the whole thing so it doesn't ever go off screen and works on Opera, Mozilla, etc.  Tested it on several browsers.  Also more commented and better coding, etc. :P.

-[Unknown]

I just noticed that Aquilo moveobj.js for FireFox is not making the llama image floating.  ::)

what? do you have them turned on on your site? becouse they are moving on localhost and Xtram! what are they doing?

oh also go into tools and clear out the cache so the old version is purged!
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 06, 2004, 10:44:54 AM
Quotewhat? do you have them turned on on your site? becouse they are moving on localhost and Xtram! what are they doing?

Yes i just test it in my forum.......... wanna go and see cuz i'm online now but hidden. ::)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 06, 2004, 10:53:26 AM
try cleaning out your cache becouse this thing is flying around my screen like you jahe speen set at like 15 or 20! on your site! in FireFox!
Title: Re: LLAMAS ARE FREED!!!!
Post by: babylonking on April 06, 2004, 11:02:38 AM
Quote from: Aquilo on April 06, 2004, 10:53:26 AM
try cleaning out your cache becouse this thing is flying around my screen like you jahe speen set at like 15 or 20! on your site! in FireFox!

I deleted the catch but still the image is not floating.  ::)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 06, 2004, 11:15:38 AM
well I'm downloading Opera 7.23 to test this in, even though I think it's spywear, who actualy uses Opera? it looks like kazza for the web! (well one of the older versions did!)


[EDIT] The Llama's fly in Opera 7.23, but the ubbc buttons here DONT! if I highlight this text and click bold it goes to the end! :P
Title: Re: LLAMAS ARE FREED!!!!
Post by: [Unknown] on April 06, 2004, 11:38:37 AM
Hmm..... you only had to ask.  But, you'll have to figure out how to use it.

http://www.simplemachines.org/community/Themes/simple/moveobj.js

-[Unknown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 06, 2004, 11:47:25 AM
Quote from: [Unknown] on April 06, 2004, 11:38:37 AM
Hmm..... you only had to ask.  But, you'll have to figure out how to use it.

http://www.simplemachines.org/community/Themes/simple/moveobj.js

-[Unknown]

that wouldn't be hard it looks like it would be used like a php class! and it is cleaned up alot, nice!

on a side note, Opera is not to bad when it comes to performance! is it built off of IE? :D
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 06, 2004, 03:46:00 PM
Quote from: [Unknown] on April 06, 2004, 11:38:37 AM
Hmm..... you only had to ask.  But, you'll have to figure out how to use it.

http://www.simplemachines.org/community/Themes/simple/moveobj.js

-[Unknown]

Well that wasn't hard at all, plus I was kinda mad because I was logged on for less then a minuet and I get can I use the phone like always, but things get do when I'm not on the net! :D

like I said almost like a php class! ;D and I added llama_speed to your moveobj.js

can we use you moveobj.js since it is less code?
but there is one thing in 1024x768 it has the scrollbar overflow problem only offsetting it 16px, and also my last question "do you think it's better if it's stays in the window and not move down?"

<script language="JavaScript" type="text/javascript">
var llama_speed = Math.round(Math.random()*40);
</script>
<script language="JavaScript" type="text/javascript" src="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",68,68);
Llama1.move();
}
window.onUnload = "Llama1.stop();";
</script>

<div id="Llama1" style="position: absolute; top: 200; left:200; width: 68; height: 68; z-index: 5">
<a href="index.php?action=magicLlama;magicLlama=xxxxxxxxxxxxx">
<img src="golden_llama2.gif" border=0></a>
</div>

<script language="JavaScript" type="text/javascript">
StartLlama();
</script>
Title: Re: LLAMAS ARE FREED!!!!
Post by: [Unknown] on April 06, 2004, 06:41:47 PM
I think it's because the actual height and width are wrong on the div.  I also always made it start at a random position ;).

-[Unknown]
Title: Re: LLAMAS ARE FREED!!!!
Post by: ROGUE-Master on April 07, 2004, 03:58:01 PM
Is there an actual full WORKING version of this with all these bugs fixed?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 07, 2004, 10:42:47 PM
um... yes! The current uploaded files install on a clean copy of SMF and 128 posts, allot of fixes, and new features, it installs and works!

But I should be going to bed but in an hour or so, I'm going to be uploading a complete one part mod!
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 07, 2004, 10:45:06 PM
YAAAAAAAAAa YOU RocK Aquilo The Llama Master  :)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 07, 2004, 10:49:27 PM
on question! should there be fields so the admin can enter the height and width of the image, should the script auto detect the height and width, or should the script auto detect the height and width if the admin leaves the fields blank? or leave it as is? ok two questions do you want extra options in modsetting to allow users to turn this on and off like "allow member to chouse template settings" and an option for you to show or not show the info in user profiles for the number of llamas caught?
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 07, 2004, 10:50:55 PM
Have it so you can resize the image and stuff and all the other stuff that sounds smart so then people have more options Ok  :)
Title: Re: LLAMAS ARE FREED!!!!
Post by: Aquilo on April 07, 2004, 10:51:51 PM
ok! :D
Title: Re: LLAMAS ARE FREED!!!!
Post by: Homie on April 07, 2004, 10:52:48 PM
Remember to tell us when you finish all that Thanks  :)

Regards
Homie
Title: [DONE] Magic Llama mod FULL
Post by: Aquilo on April 08, 2004, 02:56:10 AM
OK it's done! the link is atop the first post of this thread!

Title: Re: [DONE] Magic Llama mod
Post by: Daniel D. on April 08, 2004, 03:07:47 AM
Perhaps another color for the text ?
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on April 08, 2004, 03:15:14 AM
I was wanting a dark grey but that's not an option unless I can use hex test woot that work ok I'll change it!!!
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on April 08, 2004, 11:34:38 AM
I installed the full mod but i get this error after clicking on floating llama image.

Fatal error: Call to undefined function: magicllama() in /home/babylon/public_html/forum/index.php on line 115
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on April 08, 2004, 02:12:15 PM
the only way I can reproduce this error is to comment out the whole function in karma.php

Fatal error: Call to undefined function: magicllama() in c:\program files\apache group\apache\htdocs\smf_forum\index.php on line 115

if there where an error in magicLlama() then there would be another error with that one.

check your karma.php file becouse that's the only step it takes is adding that function!

***********************************************************
Start Editing Sources/Karma.php                     File: 3
***********************************************************
<Edit file>
Sources/Karma.php
</Edit file>

<Search for>
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
</Search for>

<Add before>
// muhahahahahahahahaha, the Llama's have been set FREE!
function magicLlama()
{
global $_REQUEST, $user_info, $modSettings, $db_prefix, $context;

// NO GUESTS ALLOWED!
if ($user_info['is_guest'])
is_not_guest();

// set your user id stored in $context array
$userid = $context['user']['id'];

// now lets see if we have a Llama by that name!?
$request = db_query("
SELECT *
FROM {$db_prefix}llama_info
WHERE llama_id = '$_REQUEST[magicLlama]'
LIMIT 1", __FILE__, __LINE__);

// most likely a script kiddy so we'll let the Llamas have at him!
if (!$request || mysql_num_rows($request) == 0)
fatal_error('Bad Llama id! >:(', true);

$Llamainfo = mysql_fetch_assoc($request);
mysql_free_result($request);

// oops got here too late! ha...ha...!
if ($Llamainfo['member'] != '')
{
$context['title'] = 'Sorry too late!';
$context['display'] = $modSettings['lateLlama'];
}
else
{
// let's get your info in the database befor someone else get's the Llama!
db_query("
UPDATE {$db_prefix}llama_info
SET member = $userid, Caught = " . time() . "
WHERE llama_id = '$_REQUEST[magicLlama]'
LIMIT 1", __FILE__, __LINE__);

$field1 = ($Llamainfo['Type'] == 1) ? 'karmaGood' : 'karmaBad';
$field2 = ($Llamainfo['Type'] == 1) ? 'goodpoints' : 'badpoints';
$field3 = ($Llamainfo['Type'] == 1) ? 'goodllamas' : 'badllamas';

// log the users points
updateMemberData($userid, array(
$field1 => $field1 . ' + ' . $Llamainfo['points'],
$field2 => $field2 . ' + ' . $Llamainfo['points'],
$field3 => $field3 . ' + 1',
));

$context['title'] = 'You got a ' . $modSettings['Type' . $Llamainfo['Type']] . '!';
$context['display'] = str_replace(
array("%N", "%P", "%K"),
array(
$modSettings['Type' . $Llamainfo['Type']],
(($Llamainfo['Type']==1) ? $Llamainfo['points'] : '-' . $Llamainfo['points']),
$modSettings['karmaLabel']),
$modSettings['Type' . $Llamainfo['Type'] . '_discription']);
}

if (!isset($context['page_title']))
$context['page_title'] = $context['title'];

loadTemplate('MagicLlama');
$context['sub_template'] = 'Llama_speak';

unset($Llamainfo);
obExit();
}
</Add before>
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on April 08, 2004, 03:07:48 PM
Quotethe only way I can reproduce this error is to comment out the whole function in karma.php

yes thanks that fixed  :)
Title: Re: [DONE] Magic Llama mod
Post by: 7summits on April 08, 2004, 06:28:43 PM
Hey Aquilo,

besides the not moving bug I PM'ed you about I noticed that my caught llama totals appear in every users profile?!?
Although it only ads totals right at my own profile:
From my profile:
Quote
Altitude:  12 
Altitude: from Good Yak!:  +20/ Good Yak! Caught: 8 
Altitude: from Evil Yak!!:  -8/ Evil Yak!! Caught: 4 
From random other profile:
QuoteAltitude:  0 
Altitude: from Good Yak!:  +20/ Good Yak! Caught: 8 
Altitude: from Evil Yak!!:  -8/ Evil Yak!! Caught: 4 

???
Title: Re: [DONE] Magic Llama mod
Post by: 7summits on April 08, 2004, 07:45:28 PM
The Magic Yak's have been freed!
Catch them to gain altitude!

Http://7summits.com/forum

members only, so sign up and post!

:D


or use test account llama pw: magic
8)
Title: Re: LLAMAS ARE FREED!!!!
Post by: ROGUE-Master on April 08, 2004, 10:05:58 PM
Quote from: ROGUE-Master on April 07, 2004, 03:58:01 PM
Is there an actual full WORKING version of this with all these bugs fixed?

I repeat my question
Title: Re: [DONE] Magic Llama mod
Post by: 7summits on April 09, 2004, 02:51:51 AM
Quote from: ROGUE-Master on April 08, 2004, 10:05:58 PM
Quote from: ROGUE-Master on April 07, 2004, 03:58:01 PM
Is there an actual full WORKING version of this with all these bugs fixed?

I repeat my question

Well I guess that's one way of increasing your post count.

Shall I just repeat my answer then:
Quote from: 7summits on April 08, 2004, 07:45:28 PM
The Magic Yak's have been freed!
Catch them to gain altitude!

Http://7summits.com/forum

members only, so sign up and post!

:D


or use test account llama pw: magic
8)

Admin screenshot proving Yak's were actually caught and not only by me:
http://7summits.com/forum/llamascreenshot.jpg
Title: Re: [DONE] Magic Llama mod
Post by: ROGUE-Master on April 09, 2004, 09:13:31 AM
I SAID LLAMAS NOT YAKS!! WHO CARES ABOUT STUPID YAKS!!!!

WE WANT WORKING LLAMA MOD WITH NONE OF THE ABOVE BUGS!!
Title: Re: [DONE] Magic Llama mod
Post by: scottb on April 21, 2004, 11:38:35 PM
It works well on my board
Title: Re: [DONE] Magic Llama mod
Post by: Acf on April 22, 2004, 02:21:44 AM
Quote from: ROGUE-Master on April 09, 2004, 09:13:31 AM
I SAID LLAMAS NOT YAKS!! WHO CARES ABOUT STUPID YAKS!!!!

WE WANT WORKING LLAMA MOD WITH NONE OF THE ABOVE BUGS!!

Hey, cool down man. We don't wand to scare away the llama now do we :P
Title: Re: [DONE] Magic Llama mod
Post by: ROGUE-Master on April 27, 2004, 02:44:39 PM
So does anyone wanna repost link to bugless llama mod so I don't have to spend 15 seconds of my life searching through this thread?
Title: Re: [DONE] Magic Llama mod
Post by: scottb on April 28, 2004, 12:52:53 AM
Only bug I find is the one mentioned about your Llama stats showing up in other peoples profiles.
Title: Re: [DONE] Magic Llama mod
Post by: 7summits on April 28, 2004, 04:57:32 AM
Quote from: scottb on April 28, 2004, 12:52:53 AM
Only bug I find is the one mentioned about your Llama stats showing up in other peoples profiles.
yep, and you can switch that off in settings, so no llamastats are showing.

Id id wonder about another possible bug: I noticed that when registered members go on the forum they get a lot of llama/yaks. Almost seems to me that pagecounts of guests count towards the chances of getting a llama, if you catch my drift?

I mean if 100 guests each view 2 pages, than there should have been 10 llamas (were they registered). But when I view my board after 200 guest page views I think I get those llama's thrown at me, looks like the llama mod is saving them up or something.
Does this make sense, is it true and can it be changed if it is?

ANd Rogue master, relax; if you cannot see the similarity between a working flying llama mod and a working flying yakmod (just one .gif) then it's no use trying to implement it anyway...
Title: Re: [DONE] Magic Llama mod
Post by: ROGUE-Master on April 28, 2004, 02:25:53 PM
It just takes too much work to rename a gif!! Ya know?!?!
Title: Re: [DONE] Magic Llama mod
Post by: Justyne on May 21, 2004, 11:31:15 AM
Notice: Undefined variable: modSettings in /home/magical/public_html/rpg/Themes/theme1/index.template.php on line 266

i keep getting this error. and the lama does not move.
Title: Re: [DONE] Magic Llama mod
Post by: 1979Z28 on May 24, 2004, 03:40:16 AM
*brings back dead post*

From the last few posts, it appears as if this is extremely buggy... can anybody confirm if it works, and if so, which download to use for the 1.0 Public Beta? :P
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on May 24, 2004, 06:00:28 AM
well reading back past a few posts you'll notice the one to download hey the ones not to download are even distinctly separate from the one to download, there is only one bug that I can think of that is still on a few working installations and there is a built in feature to not show it called a (Work a round), as for that bug I'll fix it when I fix it. sorry to you and Justyne but I know I've pressed The Yabb SE/SMF developers in the past in fun but not with the ignorant attitude like in this thread, I was working hard and putting allot of time into this fixing bugs as they where found while helping install it for those who don't know how to install mods, and one ignorant user burnt that for me, I've had this kind of rude and obnoxious attitude thrown at me from someone happily using free web space from me, and I'm to the point that I will go through list terminating accounts the next obnoxious pm or email I get. sorry but if folks are going to get an ignorant, and obnoxious attitude for something then they can write it or get there own hosting or what ever, I've tired helping this community since a few months after YaBB first came out and have been treated like ****** ever since, so I'll fix it when I fix it, of it don't install for you pay someone who knows how to install mods/ if it don't work right wait to install it till it's fixed/ buy your own hosting/ write the mod your self! I've seen no one other then [unknown] offer any help other then debugging in the beginning but a few offering to help write it during the million topics on it, the fix for the profile stats bug is really quite simple! and to be honest I have no idea if it works with (1.0 beta 5). at this point I'm tired of helping people who have no inclination of helping them selves yet will tell you where your wrong!
Title: Re: [DONE] Magic Llama mod
Post by: scottb on May 25, 2004, 03:42:33 PM
It works fine on my site
Title: Re: [DONE] Magic Llama mod
Post by: Fizzy on May 25, 2004, 04:43:23 PM
Hey there Aquilo,
Take a deep breath there matey. I have to agree that some of the posts on this one have been a bit OTT and a few have even been down right rude towards you, but that doesn't mean that the silent majority (such as myself) don't see your efforts for what they are. 
It's obvious that you have worked hard getting this mod together, try not to let the minority get to you.

Keep up the good work and thanks for taking the time to do it.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 02, 2004, 09:14:06 PM
That is sooooo fricken awesome Aquilo!!!

I came to SMF to get the upgrade to Beta 5 and for some reason I just decided to search for any news on the Llama script AND BOY WAS I HAPPILY SUPPRISED!!!!

You've out done everyone who scripts by taking this bold move to get the Magic Llama script alive!

I just wanted to let you know that I installed your Llama mod after upgrading to Beta 5 and it works GREAT except for a small bug in the profile. Every member has the same # of good and evil points listed, however the overall point total is unique depending on the captures..


The only thing was a version difference with the Sources/ModSettings.php file.

The lines:

array('text', 'karmaSmiteLabel', $karmaLabels[1]),
array('text', 'karmaApplaudLabel', $karmaLabels[2]),


have been changed to:

array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),


So that's the only change that effects the install of your Llama mod onto the new Beta 5 version.

My Llama are running free over at my forum!! Thanks times infinity!

A couple suggestions for any updates (if I have time and the know-how, then I will attempt these myself if thats ok):
- A way to place a cap on the total # of Llama released.
-- Also have this set by the hour too. Like "no more than 10 new llamas per hour" or something...
- Not to release any more Llama's until a % of the currently released amount is captured, or maybe a minimum number of Llamas out type thing.


Thanks again a billion times!!!

You are my hero *swoon*

Regards,
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 02, 2004, 09:35:59 PM
Ah, one last thing.. I don't know how to write this so I've gotta request it.

In the Statistics Center I would like it to show the top 10 Karma Point leaders (in this case the Magic Llama points).

I remember on my old YaBB SE I had it working but I dont know how to work with MySQL so well yet...

Thanks again
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on June 03, 2004, 05:18:44 AM
OK! first Thank you BigMike! 8)

I updated the mod to 0.6 adding BigMike's fix for SMF 1.0 Beta 5 Pubic and fixed the profile bug.

My Profile: http://www.aquilo.us/NorthWinds/index.php?action=profile;u=1
My FireFox bot: http://www.aquilo.us/NorthWinds/index.php?action=profile;u=15


Here is the download link
http://www.xtram.net/index.php?op=download;id=19

I have no problem what so ever installing this! install the db file so you don't get those errors mod and upload the file and poof! it works! this is the only mod on my northwinds forum if you have other mods installed I can't help that, I don't have time to help teach folks how to install mods because I work 12 hours a day if I could make a living installing mods I would work 24 hours a day here at home, my point, you need to learn someday! setup a test forum and learn your way around the code same as I did!
Quotestarting log...
script path: C:\Documents and Settings\Aquilo.XTRAM-ONE\Desktop\northwinds_forum\index.php
detected script: autodetect failed
selected script: SMF 1.0 Beta 5 Pubic
installed mods: 0

--------------------------------------------------------------------------------
now installing: Magic Llama Mod Full 0.6 (Magic_Llama_mod_0.6.mod)
--------------------------------------------------------------------------------

Step 1 ... ok
Step 2 ... ok
Step 3 ... ok
Step 4 ... ok
Step 5 ... ok
Step 6 ... ok
Step 7 ... ok
Step 8 ... ok
Step 9 ... ok
Step 10 ... ok
Step 11 ... ok
Step 12 ... ok
Step 13 ... ok
Step 14 ... ok
Step 15 ... ok
Step 16 ... ok
Step 17 ... ok
Step 18 ... ok
Step 19 ... ok
Step 20 ... ok
Step 21 ... ok
Step 22 ... ok

> finished. modifications successful.
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on June 03, 2004, 06:15:56 AM
here is a little bit extra for some of ya'll that use SSI.

the only thing is that you need edit index.template.php by hand to add the full url to MoveObj.js where you see
<script language="JavaScript" type="text/javascript" src="MoveObj.js"></script>

please don't make this real hard just make
<script language="JavaScript" type="text/javascript" src="MoveObj.js"></script>

look like substituting "http://www.yoursite.com/PATH_TO_SMF_FORUM/" with the url to your board!
<script language="JavaScript" type="text/javascript" src="http://www.yoursite.com/PATH_TO_SMF_FORUM/MoveObj.js"></script>

here is the small mod file!
http://www.aquilo.us/files/SSI_mod.txt
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 09, 2004, 05:36:49 AM
Hey Aquilo,

I just made the changes in the mod file to Profile.php, Load.php, and Profile.template.php and all of my members profiles are working out GREAT!! You are amazing. My members love the script. They have gone nuts over it!

A+ work!

BigMike
Title: Re: [DONE] Magic Llama mod
Post by: tradenet on June 09, 2004, 04:20:58 PM
Hi,
After applying 0.6 version of the mod I get this:
Notice: Undefined variable: modSettings in ~/Themes/default/index.template.php on line 346

Any ideas?

Thanks in advance.
Title: Re: [DONE] Magic Llama mod
Post by: tradenet on June 09, 2004, 06:21:05 PM
Interesting I had to redeclare  global $modSettings, $user_info;
before the:
  if (($modSettings['freeLlamas'] == 1) && ($user_info['is_guest'] != 1) && ($context['LlamaInfo']['Llamaid'] != ''))
Title: Re: [DONE] Magic Llama mod
Post by: Ben_S on June 09, 2004, 06:33:09 PM
I'm realllllly tempted to install this, but am currently resisting the urge.
Title: Re: [DONE] Magic Llama mod
Post by: tradenet on June 09, 2004, 07:00:14 PM
Well, I'm still struggling with the Karma +/- Good Evil points showing up in the profile.
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on June 10, 2004, 01:50:54 AM
that is interesting that you have to redeclare global $modSettings, $user_info; becouse that function don't use $modSettings so it's not destroying it before the mod.

what issue are you having with the profiles?

Thanks for the help BigMike!!
Title: Re: [DONE] Magic Llama mod
Post by: tradenet on June 10, 2004, 09:57:50 AM
Hi Aquilo,
The profile is not showing the "Caught" values. ie.
Karma: from Good Llama:  +/ Good Llama Caught: 
Karma: from Evil Llama:  -/ Evil Llama Caught: 

They appear in the database but not in the user profile.

Also, if I don't redeclare global $modSettings I get this and the mod doesn't work:
Notice: Undefined variable: modSettings in ~/Themes/default/index.template.php on line 327


Quote from: Aquilo on June 10, 2004, 01:50:54 AM
that is interesting that you have to redeclare global $modSettings, $user_info; becouse that function don't use $modSettings so it's not destroying it before the mod.

what issue are you having with the profiles?

Thanks for the help BigMike!!
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on June 11, 2004, 03:20:01 AM
tradenet I don't know what to say, That's the same info from your other posts and unless BigMike caught something I messed putting in the mod file he has it working on his site.

QuoteName: BigMike
Posts: 2697 (3.489 per day)
Position: Administrator
Turtle Points 100
Turtle Points from Good Turtle: +224/ Good Turtle Caught: 42
Turtle Points from Evil Turtle: -128/ Evil Turtle Caught: 41

But by any chance did you forget to upload the modified Load.php file?
Title: Re: [DONE] Magic Llama mod
Post by: tradenet on June 12, 2004, 03:21:03 PM
"Upload" the modified Load.php?
Ah, not sure what you mean there. I did modify it according to the instructions in the mod file.

Quote from: Aquilo on June 11, 2004, 03:20:01 AM
tradenet I don't know what to say, That's the same info from your other posts and unless BigMike caught something I messed putting in the mod file he has it working on his site.

QuoteName: BigMike
Posts: 2697 (3.489 per day)
Position: Administrator
Turtle Points 100
Turtle Points from Good Turtle: +224/ Good Turtle Caught: 42
Turtle Points from Evil Turtle: -128/ Evil Turtle Caught: 41

But by any chance did you forget to upload the modified Load.php file?
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on July 04, 2004, 10:33:01 PM
Hi Aquilo

Any chance converting this mod to beta6 for charter members ?
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on July 05, 2004, 01:44:23 AM
I'm not a charter member so it will have to wait until it goes public. sorry I didn't get it upgraded for beta5p but I've been in north Alabama for the last three weeks working so I haven't been around my pc, but when 6p is public I'll get it converted!
Title: Re: [DONE] Magic Llama mod
Post by: treo on July 05, 2004, 08:47:34 AM
Beta 6 isn't going to be public, the next public release will be RC1 ... afaik ;D
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on July 05, 2004, 06:14:48 PM
Quote from: Aquilo on July 05, 2004, 01:44:23 AM
I'm not a charter member so it will have to wait until it goes public. sorry I didn't get it upgraded for beta5p but I've been in north Alabama for the last three weeks working so I haven't been around my pc, but when 6p is public I'll get it converted!

Thats fine don't worry no rushing  ;)
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 12, 2004, 10:48:45 PM
ok, I have just had my heart attack for the day! :-\

any way I have the mod updated for SMF RC1 and when they are done installing a new hard drive I'll upload it to Xtram and post it here!! but it done!! ;D
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on August 13, 2004, 08:11:35 AM
Quote from: Aquilo on August 12, 2004, 10:48:45 PM
ok, I have just had my heart attack for the day! :-\

any way I have the mod updated for SMF RC1 and when they are done installing a new hard drive I'll upload it to Xtram and post it here!! but it done!! ;D

wow that was fast Aquilo ........... did you test it yet ?
Title: Re: [DONE] Magic Llama mod
Post by: Vinoth on August 13, 2004, 08:54:04 AM
great, an mod seem to get here soon!

i am happy that members are making mods, and if the mod site is also alive ( which would be coming soon) ! SMF gonna be a great one.

Sachin is making some mods, for the SMF. He will release it soon and also some intergation with postnuke.

Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 14, 2004, 03:01:30 AM
Quote from: babylonking on August 13, 2004, 08:11:35 AM
wow that was fast Aquilo ........... did you test it yet ?

Yes, and this server being down was a good thing as it allowed me to test it more! :D

any who!

Magic Llama mod FULL 0.8 for SMF RC1
http://www.xtram.net/index.php?op=download;id=20
Title: Re: [DONE] Magic Llama mod
Post by: Søren Bjerg on August 14, 2004, 06:41:21 AM
I applied the changes as specified in the .mod file, and uploaded the files to the server... but I now get a notice on the "Look and Layout Preferences" page when editing my profile;

QuoteNotice: Undefined index: llamaoption in /customers/<bleh>/httpd.www/forums/Sources/Load.php(1101) : eval()'d code on line 1188

EDIT:

This at the very bottom of all pages too (EDIT2: seems to be only when using a different theme but the default - despite having made the changes to those files present in the theme directory the .mod file tells to make modifications to);

QuoteNotice: Undefined variable: modSettings in /customers/<bleh>/httpd.www/forums/Sources/Load.php(1101) : eval()'d code on line 274

:-/

EDIT3:

Sorry for being a pest, but the "auto detect" routine of the height and width of the image didn't work for me... and would break the mod - not releasing a llama (in shoddy IE anyways... Firefox would display a llama... but it wouldn't fly around).

The line...

Llama1 = new Chip("Llama1",', $width, ',', $height, ');

...would spit out...

Llama1 = new Chip("Llama1",,);

...in the HTML.

When putting in values it worked as supposed to in both :).
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on August 14, 2004, 10:32:00 AM
Thanks Aquilo for the update  :)

one question: how can i reset all members bad and good llama to zero for the members profile cuz i still have the old llama count? 
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 15, 2004, 04:01:00 AM
Quote from: babylonking on August 14, 2004, 10:32:00 AM
Thanks Aquilo for the update  :)

one question: how can i reset all members bad and good llama to zero for the members profile cuz i still have the old llama count? 

here is another LlamaKeeper you should know where to put the two files! (I hope!)

it has a link down where you clean the log, it will reset all users to zero!
LlamaKeeper 0.2 (http://www.xtram.net/index.php?op=download;id=21)
Title: Re: [DONE] Magic Llama mod
Post by: Søren Bjerg on August 15, 2004, 04:12:33 AM
How about the "Undefined index: llamaoption" and "Undefined variable: modSettings"?
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 15, 2004, 06:21:19 AM
Quote from: Søren Bjerg on August 15, 2004, 04:12:33 AM
How about the "Undefined index: llamaoption" and "Undefined variable: modSettings"?
um... well!

llamaoption: is in the mod, and is the only action takin to Profile.english.php!


QuoteNotice: Undefined index: LlamaInfo in c:\program files\apache group\apache\htdocs\smf_forum\Sources\Load.php(1090) : eval()'d code on line 320
and I only get this error when I uninstall the mod and use a theme that still has the javascript code in index.template.php!?!?!

other then that I go to boardmod click the little box and the mod is installed and working go back and click it again and it's uninstalled and gone, I've done this about 10 time looking for your errors with it installed and cant find them!
Title: Re: [DONE] Magic Llama mod
Post by: Søren Bjerg on August 15, 2004, 06:55:06 AM
Argh... the changed Profile.english.php hadn't been uploaded... which would then fix the "Undefined index: llamaoption" by doing so :(.

I still get the "Undefined variable: modSettings" using a non-default theme, though... and I have applied the changes to the theme's index.template.php file (which is the only of the files in the directory) - just doublechecked that :S.
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 15, 2004, 11:24:32 PM
I should start writing mods in Egyptian hieroglyphics since writing them for boardmod don't do no good.


Perhaps the first of two steps taken on index.template.php was missed!

Quote<search for>
   global $context, $settings, $options, $scripturl, $txt;
</search for>

<add after>
   global $modSettings, $user_info;
</add after>

because the only way to recreate the error is to comment that out of the file!

Quote
   global $context, $settings, $options, $scripturl, $txt;
   //global $modSettings, $user_info;

Notice: Undefined variable: modSettings in c:\program files\apache group\apache\htdocs\smf_forum\Sources\Load.php(1101) : eval()'d code on line 320
Title: Re: [DONE] Magic Llama mod
Post by: scottb on August 16, 2004, 12:57:12 AM
Works nice thanks :)
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 16, 2004, 01:19:07 AM
Thank you! :)
Title: Re: [DONE] Magic Llama mod
Post by: Søren Bjerg on August 16, 2004, 05:15:23 AM
Quote from: Aquilo on August 15, 2004, 11:24:32 PM
I should start writing mods in Egyptian hieroglyphics since writing them for boardmod don't do no good.


Perhaps the first of two steps taken on index.template.php was missed!
[...]

Negatory... I applied all the changes by hand - not having boardmod installed... and that's what puzzles me, because that very line has been added to the theme's index.template.php -- unless of course it has to be added all three places?

Hmm... going to try that...

EDIT: Heh... that removes that notice alright. I'm going to have to remember to search for more than one match when applying mods then. Sorry for being a pest, it's a sweetass mod!
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on August 16, 2004, 11:04:46 AM
Quote from: Aquilo on August 15, 2004, 04:01:00 AM
Quote from: babylonking on August 14, 2004, 10:32:00 AM
Thanks Aquilo for the update  :)

one question: how can i reset all members bad and good llama to zero for the members profile cuz i still have the old llama count? 

here is another LlamaKeeper you should know where to put the two files! (I hope!)

it has a link down where you clean the log, it will reset all users to zero!
LlamaKeeper 0.2 (http://www.xtram.net/index.php?op=download;id=21)

Thanks alot man  :D
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 17, 2004, 12:40:34 AM
Søren Bjerg, no problem! if mods where written like they where when YaBB first started it would have been easer to apply it by hand because I could have gone into great detail where to edit, and still can, but the boardmod format is straight forward and easy to compile and many mod writers should agree the boardmod format is much better then a different style for every mod. but then with the boardmod style there can be only one match "or the first match" from the top of the file down, and with that action in the mod you thought this line "global $context, $settings, $options, $txt;" was the match when you where looking for "global $context, $settings, $options, $scripturl, $txt;" similar but no match!

any way I'm glad you got it working and sorry for the frustration this is a common problem when mods have to be or just are applied by hand, things get over looked, and then it's the mods fault this is the frustrating part having to search the mod for an error that don't exist but I'd go through 500 bug posts to work out a problem if I knew there was a bug, I've even sat here watching the db while letting Llamas go by, while the user has them turned off, and as a guest to see if the mod creates Llamas then tries catching up latter when guests are around and this just does not happen as some seem to think, but if my site had not been down the day I finished there would have been one bug! :( but I cought it!! :D

also if you have trouble finding lines for an action in a mod notepad will accept long lines in it's search feature! but sometimes you need to get creative to find it like in a search engine!

babylonking, No Problem!!! it may be a useful function for another member too!

Thanks guys!!
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on August 17, 2004, 08:03:46 PM
Actually, I have a slight problem with the mod.  I installed everything to a tee (at least I think)  Everything looks as though it's in place, but I do not see the Llama...ever.  I have even made set the Llama percentage to 100 out of 100 to make it show everytime, still nothing (is this correct?)

Thanks!
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on August 18, 2004, 12:35:50 AM
Quote from: Senkusha on August 17, 2004, 08:03:46 PM
Actually, I have a slight problem with the mod.  I installed everything to a tee (at least I think)  Everything looks as though it's in place, but I do not see the Llama...ever.  I have even made set the Llama percentage to 100 out of 100 to make it show everytime, still nothing (is this correct?)

Thanks!

hello Senkusha! This is the second time this has been brought up so there must be some confusion on some SMF setups or PHP version running, but the mod is working for the exception that it can not auto detect the size of the image and PHP3,4,5 all have the function getimagesize() there has to be something . I don't even know what info to ask for so I can recreate the problem. but can you try manually setting the image height and width in modsettings? and then we can go from there!
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on August 18, 2004, 09:51:33 AM
Okay, yeah, that would be the problem!  I have changed it to a flat 60x60 display, and it works great!  Oh, I hope you don't mind, but I did make a tiny enee wheene eitsty bitsy change to the code.  ;)  My board will randomly choose the pictures to throw at the unsuspecting victims MUHAHAhahahahaha!  I just *love* to add confusion and chaosis!
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on August 18, 2004, 10:10:43 AM
Quotebut I did make a tiny enee wheene eitsty bitsy change to the code.  Wink  My board will randomly choose the pictures to throw at the unsuspecting victims MUHAHAhahahahaha!  I just *love* to add confusion and chaosis!

how about sharing your code  ;D
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on August 18, 2004, 10:44:46 AM
Alright, to to this I changed the file name for the Llama to a directory I named (smf/Themes/defualt/images/Llama_Images).  Then I copied over a bunch of pictures (making sure they are sized about squarely (80x80, 400x400...).  After that then I named them 0.jpg, 1.jpg, 2.jpg ... (don't worry if they are not all jpg files.  Simply renaming them seems to do the trick.  If not, then open up Paint or something and save as a jpg format.

Now for the code:  Open up your index.template.php file and find:

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


Add after it:
$numFiles = 0;
$dir_to_open = $settings['theme_dir'] . '/images/' . $modSettings['Llama_image'];
$dh = opendir ($dir_to_open);
while ($file = readdir($dh))
{
if (is_file($dir_to_open.'/'.$file))
{
$path_parts = pathinfo($file);
if ((strtolower($path_parts['extension']) == 'jpg'))
$numFiles ++;
}
}
rewinddir($dh);
closedir($dh);

srand ((double) microtime() * time());
$rndFile = rand(0,$numFiles);
$rndFile .= '.jpg';


and change the following:


<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>


to this:

<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'], '/' , $rndFile, '" width="', $width, '" height="', $height, '" border="0" /></a>
</div>
Title: Re: [DONE] Magic Llama mod
Post by: Justyne on August 18, 2004, 02:57:39 PM
it seems to be just me having the problem... anyway... when I uploaded the mod suddenly my whole board went blank, not a single page loading anymore. So I double checket, started from the start again and keep on getting the same error. When I replace the modded Subs.php with the original one my board shows again, but no llamas. What exactly am I doing wrong?
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on August 18, 2004, 03:24:26 PM
Thanks again Senkusha  :)
Title: Re: [DONE] Magic Llama mod
Post by: Oldiesmann on October 26, 2004, 01:58:41 PM
Just so everyone knows, this works perfectly with RC2

/me unleashes the llamas on his test board
Title: Re: [DONE] Magic Llama mod
Post by: scottb on December 26, 2004, 04:22:50 AM
Works on 1.0 (preview) as well
Title: Re: [DONE] Magic Llama mod
Post by: Jerry on December 26, 2004, 04:48:28 AM
yes I have tried it out, I have a quoit question, does this mod have its own point log or does it use the Karma?
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on December 30, 2004, 03:10:16 AM
Hopefully on Sunday of this weekend, I am going to get the Final 1.0 version up and I will install the llama mod. I last used them on beta 4 I think, so it will be a good thing for my members who are (still) wondering what happened to them ;)

I will let you know if the "Hits" bug has been fixed or not (if it is effected)

BigMike
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 02, 2005, 06:38:22 AM
Is it safe to use v.0.8 on the final ?!

Which version is being used on this board ??
Title: Re: [DONE] Magic Llama mod
Post by: Jerry on January 02, 2005, 06:53:32 AM
Unknown made his own :P, and this does work on SMF1.0 as far as I know ;)
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 02, 2005, 08:43:13 AM
When I'm logged out and look at my main page where I use SSI.php, I get :

Quote
Notice: Undefined index: goodllamas in /home/admin/domains/salesplaza.nl/public_html/forum/Sources/Load.php on line 185

Notice: Undefined index: goodpoints in /home/admin/domains/salesplaza.nl/public_html/forum/Sources/Load.php on line 186

Notice: Undefined index: badllamas in /home/admin/domains/salesplaza.nl/public_html/forum/Sources/Load.php on line 187

Notice: Undefined index: badpoints in /home/admin/domains/salesplaza.nl/public_html/forum/Sources/Load.php on line 188

What to do ?
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 03, 2005, 05:23:12 AM
Solved this already.

One question though :

When you catch a llama, could it also show the totals of your Karma/Llama's on the page you get like it does here ?

Quote
You caught a cute forum member under the mistletoe! You get 1 points!

Caught Secret Flying Mistletoe: 5

Your new Karma total is 16.
Title: Re: [DONE] Magic Llama mod
Post by: dschwab9 on January 04, 2005, 12:24:01 AM
I installed this mod a couple of days ago.  It's going to be a bandwidth killer for sure - board traffic has doubled  :P

I'm seeing the llama popup, but not move, on occasion.  Seen it on two different computers too.  Anyone else got that?
Title: Re: [DONE] Magic Llama mod
Post by: Sixpack on January 05, 2005, 12:31:19 AM
I get it on Opera but not on IE.  What browser you using?
Title: Re: [DONE] Magic Llama mod
Post by: EG on January 05, 2005, 08:10:13 PM
I got it all setup I think...

and after trying to change the settings on it got this:

Fatal error: Call to undefined function: loadllamas() in /lotruk/forum/index.php on line 146

I think I need to start all over and check each change that should have been made was :-\

(I created a package instead of the Boardmod, for ease of uninstallation......)




nah stumped....  doesnt seem to be anything vital missing

apart from the forum comes back up, if I comment out line 146 loadllamas()
Title: Re: [DONE] Magic Llama mod
Post by: dschwab9 on January 06, 2005, 02:12:43 PM
Quote from: Sixpack on January 05, 2005, 12:31:19 AM
I get it on Opera but not on IE.  What browser you using?

I'm using IE.  Tested on mozilla, and never saw it happen there.
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 06, 2005, 02:37:54 PM
When you catch a llama, could it also show the totals of your Karma/Llama's on the page you get like it does here ?

Quote
You caught a cute forum member under the mistletoe! You get 1 points!

Caught Secret Flying Mistletoe: 5

Your new Karma total is 16.

?
Title: Re: [DONE] Magic Llama mod
Post by: EG on January 06, 2005, 05:01:49 PM
ok  handcoding is the only way!

started all over... and now it works ;D

hmmm there must be a way to put the total up..

it uses the karma total figure doesnt it as displayed within a topic....
Title: Re: [DONE] Magic Llama mod
Post by: EG on January 06, 2005, 05:46:13 PM
surely we can use this mod
http://www.simplemachines.org/community/index.php?topic=18720.msg152843

to give a table of most caught llamas ???

has anyone got it to work with anything but the default theme ???
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 07, 2005, 02:08:10 AM
Implemented this for the Karma, but now for the "caught Llama's" ???  ;)
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 07, 2005, 02:47:20 AM
used the code give here :

http://www.simplemachines.org/community/index.php?topic=18720.msg152843

and adjusted it a bit to get a table of llama's :

in Stats.php find :


// Activity by month.


and add before :


// Top 5 llama Rating
$llama_results = db_query("
SELECT realName, goodllamas, ID_MEMBER FROM {$db_prefix}members ORDER BY goodllamas DESC LIMIT 10", __FILE__, __LINE__);

$context['llama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['gllama'][] = array(
'llama' => $row_llama['goodllamas'],
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>'
);
}

// Bottom 5 llama Rating
$llama_results = db_query("
SELECT realName, badllamas, ID_MEMBER FROM {$db_prefix}members ORDER BY badllamas DESC LIMIT 10", __FILE__, __LINE__);

$context['bllama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['bllama'][] = array(
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>',
'llama' => $row_llama['badllamas']
);
}

// Highest Total llama
$llama_results = db_query("
SELECT goodllamas, badllamas, realName, ID_MEMBER FROM {$db_prefix}members ORDER BY (goodllamas-badllamas) DESC LIMIT 10", __FILE__, __LINE__);

$context['htllama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['htllama'][] = array(
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>',
'Good' => $row_llama['goodllamas'],
'Bad' => $row_llama['badllamas']
);
}

// Lowest llama total
$llama_results = db_query("
SELECT goodllamas, badllamas, realName, ID_MEMBER FROM {$db_prefix}members ORDER BY (goodllamas-badllamas) ASC LIMIT 10", __FILE__, __LINE__);

$context['ltllama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['ltllama'][] = array(
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>',
'Good' => $row_llama['goodllamas'],
'Bad' => $row_llama['badllamas']
);
}


in Stats.template.php find :


foreach ($context['top_time_online'] as $poster)
            echo '
                                                <tr>
                                                        <td width="60%" valign="top">', $poster['link'], '</td>
                                                        <td width="20%" align="left" valign="top">', $poster['time_online'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['time_percent'] . '" height="15" alt="" border="0" />' : '&nbsp;', '</td>
                                                        <td width="20%" align="right" valign="top" nowrap="nowrap">', $poster['time_online'], '</td>
                                                </tr>';
        echo ' </table></td></tr>';


and replace with :


foreach ($context['top_time_online'] as $poster)
            echo '
                                                <tr>
                                                        <td width="60%" valign="top">', $poster['link'], '</td>
                                                        <td width="20%" align="left" valign="top">', $poster['time_online'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['time_percent'] . '" height="15" alt="" border="0" />' : '&nbsp;', '</td>
                                                        <td width="20%" align="right" valign="top" nowrap="nowrap">', $poster['time_online'], '</td>
                                                </tr>';
        echo ' </table></td></tr>';

if( $modSettings['llamaMode'] == 0 )
{
echo '<tr>
<td class="catbg" colspan="2">Highest Llama rating (good - bad)</td>
<td class="catbg" colspan="2">Lowest Llama rating (good - bad)</td>
</tr>
<tr>
<td class="windowbg" colspan="1">
<img src="'. $settings['images_url']. '/stats_posters.gif" width="20" height="20" />
</td>
<td class="windowbg2">';

foreach($context['htllama'] as $htllama)
{
$total = $htllama['Good'] - $htllama['Bad'];
echo '<table border="0" cellpadding="1" cellspacing="0" width="100%"><tr>
<td class="windowbg2" width="80%" align="left">'.
$htllama['Link']
.'</td>
<td class="windowbg2" width="20%" align="right">'.$total.'</td>
</tr></table>';
}





echo'</td><td class="windowbg" colspan="1">
<img src="'. $settings['images_url']. '/stats_posters.gif" width="20" height="20" />
</td>
<td class="windowbg2">';


foreach($context['ltllama'] as $ltllama)
{
$total = $ltllama['Good'] - $ltllama['Bad'];
echo '<table border="0" cellpadding="1" cellspacing="0" width="100%"><tr>
<td class="windowbg2" width="80%" align="left">'.
$ltllama['Link']
.'</td>
<td class="windowbg2" width="20%" align="right">'.$total.'</td>
</tr></table>';
}
}


It might not be the nicest way to do it, but it works for me :)
Title: Re: [DONE] Magic Llama mod
Post by: EG on January 07, 2005, 05:26:41 AM
me too!

I used that code...

I also used the mod to zero ppls Karmas first... because some people had Karma from a time we once had it running :-\
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 07, 2005, 05:30:45 AM
Oops,

I had to change


if( $modSettings['llamaMode'] == 0 )


into


if( $modSettings['KarmaMode'] == 0 )


because the errorlog was growing ;)
Title: Re: [DONE] Magic Llama mod
Post by: EG on January 07, 2005, 08:49:07 AM
have you worked out how to get it to work in all themes ?

ive copied the code to the index.template.php in another theme... and made sure the image is in that themes image directory... as well as the settings.template.php

hmmm... bit lost as to what is missing now :-\
Title: Re: [DONE] Magic Llama mod
Post by: Webby on January 07, 2005, 08:56:51 AM
No, sorry. I'm only using it in the default......
Title: Re: [DONE] Magic Llama mod
Post by: EG on January 07, 2005, 12:45:57 PM
RAH!  worked it out finally!

I was silly..

there are THREE places in the index.template.php in each theme, that need the same edit

   global $context, $settings, $options, $scripturl, $txt;
   global $modSettings, $user_info;

once I put those in in a theme not the default... it worked ;D

(providing of course that the image itself is in that themes images directory ;))
Title: Re: [DONE] Magic Llama mod
Post by: Sixpack on January 18, 2005, 02:40:05 PM
I am getting the following errors from Guests in my error log since 1.0 upgrade and as well in the 1.0.1


8: Undefined index: goodllamas
theoscarspot.com/smf/Sources/Load.php
187


8: Undefined index: goodpoints
theoscarspot.com/smf/Sources/Load.php
188

8: Undefined index: badllamas
theoscarspot.com/smf/Sources/Load.php
189

8: Undefined index: badpoints
theoscarspot.com/smf/Sources/Load.php
190


It is not harming anything in reguards, just basically filling up my log with a few hundred errors daily much similar to the search bug thats been reported.  Any ideas on what to change to correct this?

Title: Re: [DONE] Magic Llama mod
Post by: EG on January 18, 2005, 06:13:13 PM
is  this
'permissions' => array(),
'goodllamas' => isset($user_settings['goodllamas']) ? $user_settings['goodllamas'] : '',
'goodpoints' => isset($user_settings['goodpoints']) ? $user_settings['goodpoints'] : '',
'badllamas' => isset($user_settings['badllamas']) ? $user_settings['badllamas'] : '',
'badpoints' => isset($user_settings['badpoints']) ? $user_settings['badpoints'] : ''


section missing  from your Load.php
Title: Re: [DONE] Magic Llama mod
Post by: Sixpack on January 20, 2005, 12:08:41 AM
Thanks EG.  It was there but had a typo in it (glad ya pointed it out).   Looks to be working now.  ;D
Title: Re: [DONE] Magic Llama mod
Post by: Mr.T on January 23, 2005, 09:30:24 AM
Hi

Have a problem. I installed the free Llama but it did'nt work, so I removed it again.

Now I have tons of errormessages saying:

Undefined index: freeLlamas in /home/dykkesid/www/forum/Sources/Load.php(1040) : eval()'d code on line 437

It also comes up on the top of my mainpage - www.dykkesiden.com

Where can I fix this?

/MR.T
Title: Re: [DONE] Magic Llama mod
Post by: Mr.T on January 23, 2005, 12:57:55 PM
It seems like it somehow has messed up my ssi : Se the first line at http://www.dykkesiden.com/forum/ssi_examples.php

/MR.T
Title: Re: [DONE] Magic Llama mod
Post by: Mr.T on January 24, 2005, 05:18:19 AM
I have now solved my errormessage. I had to run create_llama_db.php again - then the errormessage was gone  :)

/MR.T
Title: Re: [DONE] Magic Llama mod
Post by: Burpee on February 05, 2005, 05:12:55 PM
If anybody has gotten this to work right, it might be a good idea to turn this into a mod package, right?
Title: Re: [DONE] Magic Llama mod
Post by: Mr.T on February 05, 2005, 06:57:08 PM
I sometimes get this in the errorlog:

Bad Llama id! >:(

What's that?

/MR.T
Title: Re: [DONE] Magic Llama mod
Post by: Amacythe on February 06, 2005, 02:31:51 AM
Quote from: Burpee on February 05, 2005, 05:12:55 PM
If anybody has gotten this to work right, it might be a good idea to turn this into a mod package, right?

Aquilo seems to have disappeared.  I'm not even sure if the thread should be moved to the Mods and Packages board.
Title: Re: [DONE] Magic Llama mod
Post by: Jerry on February 06, 2005, 02:42:50 AM
Quote from: Amacythe on February 06, 2005, 02:31:51 AM
Quote from: Burpee on February 05, 2005, 05:12:55 PM
If anybody has gotten this to work right, it might be a good idea to turn this into a mod package, right?

Aquilo seems to have disappeared. I'm not even sure if the thread should be moved to the Mods and Packages board.
really? his profile says last active today :) maybe some one should send him a PM?
Title: Re: [DONE] Magic Llama mod
Post by: EG on February 06, 2005, 05:38:17 AM
I tried to write this into a package.  I made up the file and everything, but it didnt work properly.  It seems if you dont do the "find" string exactly right, it doesnt "find" it!!!  I tried a few times to correct it but gave up.  Hand editing seemed to be the only way to go, and to save the original files in case I wanted to take it away :-\
Title: Re: [DONE] Magic Llama mod
Post by: HarleyDude on February 11, 2005, 11:36:52 AM
We are receiving "Out of Memory at line: xxx" (xxx-line number changes) IE pop-up errors.  We have traced it back to the MagicLlama.  Last night we cleared the Llama Log thinking that maybe it was full, but today the errors are back.  Has anyone else run across these errors?  Currently I have the Magic Llama disabled and the errors are not occuring.

HarleyDude
Title: Re: [DONE] Magic Llama mod
Post by: Fizzy on February 14, 2005, 08:38:40 AM
I don't use the mod myself, but I found this

Quote
A.2.8 Out of memory Error
If you issue a query and get something like the following error:

mysql: Out of memory at line 42, 'malloc.c'
mysql: needed 8136 byte (8k), memory in use: 12481367 bytes (12189k)
ERROR 2008: MySQL client ran out of memory

note that the error refers to the MySQL client mysql. The reason for this error is simply that the client does not have enough memory to store the whole result.

To remedy the problem, first check that your query is correct. Is it reasonable that it should return so many rows? If so, you can use mysql --quick, which uses mysql_use_result() to retrieve the result set. This places less of a load on the client (but more on the server).


Courtesy of http://www.php-editors.com/mysql_manual/p_manual_Problems.html

It might help track the propblem
Title: Re: [DONE] Magic Llama mod
Post by: Robert Frost on March 02, 2005, 06:42:26 PM
so what is the status with this one? on? off? fixed install? needs manual edit after install?
Title: Re: [DONE] Magic Llama mod
Post by: [Unknown] on March 02, 2005, 06:45:51 PM
Quote from: HarleyDude on February 11, 2005, 11:36:52 AM
We are receiving "Out of Memory at line: xxx" (xxx-line number changes) IE pop-up errors.

If it's an Internet Explorer popup, it's probably popup.  Most likely, it's spyware, but even so it's possible it could be caused by the javascript in this mod.

Remember, IE's javascript leaks memory (when used in certain ways) like a sick fish.

-[Unknown]
Title: Re: [DONE] Magic Llama mod
Post by: Robert Frost on March 02, 2005, 11:18:02 PM
i'm a dummy :)

well: if i install this mod, and a 1.0.3 upgrade comes out, it will mess it up (since it needs some changes in Load.php).


[Unknown], will you release your llama hurd at us? ;)
Title: Re: [DONE] Magic Llama mod
Post by: Amacythe on March 02, 2005, 11:27:29 PM
I've asked [Unknown] the same thing.  I hope he will reconsider his 'no' answer.
Title: Re: [DONE] Magic Llama mod
Post by: Robert Frost on March 03, 2005, 09:33:41 AM
Quote from: Amacythe on March 02, 2005, 11:27:29 PM
I've asked [Unknown] the same thing.  I hope he will reconsider his 'no' answer.

Hey, one can only hope ;D i tested this mod though on a localhost forum, appears to be working fine (with a few modifications)...
Title: Re: [DONE] Magic Llama mod
Post by: EG on April 13, 2005, 05:55:53 PM
our Llama mod is still working just fine after the upgrades to 1.03

Has anyone had problems resetting the karma total that shows in people's profiles ?

i can reset their (karma) Catching Llamas total.. i,e in the stats... but in their profile, its still shwoing the old + and - totals... totally wierd
Title: Re: [DONE] Magic Llama mod
Post by: PioneeR on April 19, 2005, 12:30:57 PM
Has anyone got this has a 'package'?
Title: Re: [DONE] Magic Llama mod
Post by: PioneeR on April 24, 2005, 04:56:02 PM
works lovely in 1.0.3  :D

My members love it!
Title: Re: [DONE] Magic Llama mod
Post by: PioneeR on April 25, 2005, 02:36:28 PM
Anyone get this working for 1.0.3?

Quote from: Webby on January 07, 2005, 02:47:20 AM
used the code give here :

http://www.simplemachines.org/community/index.php?topic=18720.msg152843

and adjusted it a bit to get a table of llama's :

in Stats.php find :


// Activity by month.


and add before :


// Top 5 llama Rating
$llama_results = db_query("
SELECT realName, goodllamas, ID_MEMBER FROM {$db_prefix}members ORDER BY goodllamas DESC LIMIT 10", __FILE__, __LINE__);

$context['llama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['gllama'][] = array(
'llama' => $row_llama['goodllamas'],
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>'
);
}

// Bottom 5 llama Rating
$llama_results = db_query("
SELECT realName, badllamas, ID_MEMBER FROM {$db_prefix}members ORDER BY badllamas DESC LIMIT 10", __FILE__, __LINE__);

$context['bllama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['bllama'][] = array(
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>',
'llama' => $row_llama['badllamas']
);
}

// Highest Total llama
$llama_results = db_query("
SELECT goodllamas, badllamas, realName, ID_MEMBER FROM {$db_prefix}members ORDER BY (goodllamas-badllamas) DESC LIMIT 10", __FILE__, __LINE__);

$context['htllama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['htllama'][] = array(
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>',
'Good' => $row_llama['goodllamas'],
'Bad' => $row_llama['badllamas']
);
}

// Lowest llama total
$llama_results = db_query("
SELECT goodllamas, badllamas, realName, ID_MEMBER FROM {$db_prefix}members ORDER BY (goodllamas-badllamas) ASC LIMIT 10", __FILE__, __LINE__);

$context['ltllama'] = array();

while( $row_llama = mysql_fetch_assoc($llama_results) )
{
$context['ltllama'][] = array(
'Link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_llama['ID_MEMBER'] . '">' . $row_llama['realName'] . '</a>',
'Good' => $row_llama['goodllamas'],
'Bad' => $row_llama['badllamas']
);
}


in Stats.template.php find :


foreach ($context['top_time_online'] as $poster)
            echo '
                                                <tr>
                                                        <td width="60%" valign="top">', $poster['link'], '</td>
                                                        <td width="20%" align="left" valign="top">', $poster['time_online'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['time_percent'] . '" height="15" alt="" border="0" />' : '&nbsp;', '</td>
                                                        <td width="20%" align="right" valign="top" nowrap="nowrap">', $poster['time_online'], '</td>
                                                </tr>';
        echo ' </table></td></tr>';


and replace with :


foreach ($context['top_time_online'] as $poster)
            echo '
                                                <tr>
                                                        <td width="60%" valign="top">', $poster['link'], '</td>
                                                        <td width="20%" align="left" valign="top">', $poster['time_online'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['time_percent'] . '" height="15" alt="" border="0" />' : '&nbsp;', '</td>
                                                        <td width="20%" align="right" valign="top" nowrap="nowrap">', $poster['time_online'], '</td>
                                                </tr>';
        echo ' </table></td></tr>';

if( $modSettings['llamaMode'] == 0 )
{
echo '<tr>
<td class="catbg" colspan="2">Highest Llama rating (good - bad)</td>
<td class="catbg" colspan="2">Lowest Llama rating (good - bad)</td>
</tr>
<tr>
<td class="windowbg" colspan="1">
<img src="'. $settings['images_url']. '/stats_posters.gif" width="20" height="20" />
</td>
<td class="windowbg2">';

foreach($context['htllama'] as $htllama)
{
$total = $htllama['Good'] - $htllama['Bad'];
echo '<table border="0" cellpadding="1" cellspacing="0" width="100%"><tr>
<td class="windowbg2" width="80%" align="left">'.
$htllama['Link']
.'</td>
<td class="windowbg2" width="20%" align="right">'.$total.'</td>
</tr></table>';
}





echo'</td><td class="windowbg" colspan="1">
<img src="'. $settings['images_url']. '/stats_posters.gif" width="20" height="20" />
</td>
<td class="windowbg2">';


foreach($context['ltllama'] as $ltllama)
{
$total = $ltllama['Good'] - $ltllama['Bad'];
echo '<table border="0" cellpadding="1" cellspacing="0" width="100%"><tr>
<td class="windowbg2" width="80%" align="left">'.
$ltllama['Link']
.'</td>
<td class="windowbg2" width="20%" align="right">'.$total.'</td>
</tr></table>';
}
}


It might not be the nicest way to do it, but it works for me :)
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on May 10, 2005, 03:17:10 PM
I would pay to have this mod up and working... I've tried coding in what is listed here, but it just aint working...
Title: Re: [DONE] Magic Llama mod
Post by: dtm.exe on May 10, 2005, 04:23:01 PM
This, by far, has got to be the most...unique mod I've ever seen on SMF :P.

-Dan The Man
Title: Re: [DONE] Magic Llama mod
Post by: xenovanis on May 10, 2005, 04:25:08 PM
I've read this thread about four times back and forwards and I still can't find the beginning nor the end of what to modify. Maybe someone should write a tutorial in stead of a mod.  :P
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on May 10, 2005, 04:49:01 PM
true that would be a great help ;)
Title: Re: [DONE] Magic Llama mod
Post by: PioneeR on October 23, 2005, 11:34:20 AM
Was working fine.. until i put the Karma Description mod on...

Now when someone catches the llama they get this error..

call_user_func(magicLlama): First argument is expected to be a valid callback

Any ideas?
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on October 23, 2005, 03:58:45 PM
Quote from: PioneeR on October 23, 2005, 11:34:20 AM
Was working fine.. until i put the Karma Description mod on...

Now when someone catches the llama they get this error..

call_user_func(magicLlama): First argument is expected to be a valid callback

Any ideas?

You forgot to upload the magicLlama template.
Title: Re: [DONE] Magic Llama mod
Post by: PioneeR on October 23, 2005, 04:02:52 PM
Just checked.. and the template is there.

If I remove the karma description mod. the magic llama one works. Cant have both it seems. DOH!
Title: Re: [DONE] Magic Llama mod
Post by: Saku on October 27, 2005, 08:42:06 PM
Tried to install with SMF 1.1RC :(
Fatal error: Call to undefined function: md5_hmac() in /home/domains/public_html/smf/Sources/Load.php on line 2098
Title: Re: [DONE] Magic Llama mod
Post by: Saku on October 29, 2005, 10:30:49 AM
Please :( I really need this mod
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on October 29, 2005, 02:12:56 PM
Quote from: Sakuragi on October 27, 2005, 08:42:06 PM
Tried to install with SMF 1.1RC :(
Fatal error: Call to undefined function: md5_hmac() in /home/domains/public_html/smf/Sources/Load.php on line 2098

In load.php search for:

// Create a new Llama!
$Llamaid = substr(md5_hmac(time(), 'Llys'), 0, 15);



Changed to:

// Create a new Llama!
$Llamaid = rand(0, 15);
Title: Re: [DONE] Magic Llama mod
Post by: Saku on October 29, 2005, 04:12:26 PM
thanks but not working!
Champ 'md5' inconnu dans field list
File: c:\weblocal\sites\site1\smf\Sources\Load.php
Line: 2180

Maybe if you have time you can make a tutorial for this mod?
Im sure there will be quite a few people looking for something like this!!
Title: Re: [DONE] Magic Llama mod
Post by: babylonking on October 29, 2005, 05:35:02 PM
Quote from: Sakuragi on October 29, 2005, 04:12:26 PM
thanks but not working!
Champ 'md5' inconnu dans field list
File: c:\weblocal\sites\site1\smf\Sources\Load.php
Line: 2180

Maybe if you have time you can make a tutorial for this mod?
Im sure there will be quite a few people looking for something like this!!

I am using SMF 1.1 Beta 4 and it's works for me, Try to PM Aquilo and ask him to update his mod  8)
Title: Re: [DONE] Magic Llama mod
Post by: AzaToth on October 29, 2005, 06:25:34 PM
Quote from: Sakuragi on October 29, 2005, 10:30:49 AM
Please :( I really need this mod
Need? :P
Title: Re: [DONE] Magic Llama mod
Post by: Saku on November 06, 2005, 08:16:55 AM
Why in my board all the members catch only late Llama, every time they get Sorry too late!
no Evil or Good Llama


When I open a topic, the image does not float and Firefox show this error :
Error javascript : chip is not defined

what it does mean?

here is the start Llama function:
function StartLlama()
      {
         Llama1 = new Chip("Llama1",', $width, ',', $height, ');
         Llama1.move();
      }
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on December 22, 2005, 09:55:57 AM
Is anybody feelin' frisky?

I made a Package for this mod, and (from what I was able to test) it works.  I wasn't able to test the file upload, since I've already got all the files there, nor could I test the database changes, but, based on other Packages that I've seen, this one should work for you.

I've made the necessary changes to make it compatable with SMF 1.1 RC1

EDIT:  I've also fixed the code that produces the errors from guests.
EDIT:  I've fixed code that was mistakenly seeing Llamas as 'already grabbed'.
EDIT:  I've added the database modification code to the package...oops!
EDIT:  I've fixed a serious *refresh* bug.  What would happen is after you've won, if you press refresh, you win again.  This has been fixed.[/i
EDIT:  I've also fixed another bug.  When you click on a llama you get "sorry another member...", this has been fixed.
EDIT:  I've updated the package file to include the latest bug fixes, as well as all the files.  They should now upload to your server. (Untested)

I hope this helps!

(Since I can't attach files here, try a direct link:  Magic Llama Mod (http://www.ayeka.net/downloads/mods/Magic_Llama_Mod_0.8.tar.gz))
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 24, 2005, 12:42:35 AM
the mod uploads and installs A-Ok
but then it dosent run
I get this error:

Unknown column 'mem.badllamas' in 'field list'
File: /home/.cash/akulion/path-to-peace.net/forum/Sources/Load.php
Line: 782

how can I fix it please?

By the way great awesome mod!!

ok another error I get when I turn karma description mod off is:

Table 'p2p_forum.smf_llama_info' doesn't exist
File: /home/.cash/akulion/path-to-peace.net/forum/Sources/Load.php
Line: 2167
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on December 24, 2005, 12:37:09 PM
Looking at the package-info.xml, looks like I forgot to add the code peice!  I'll fix that, but to fix your problem just run the create_llama_db.php.
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 24, 2005, 02:56:49 PM
Thanks

ok ill try that and let u know if it works
and could u please lemme know when the updates are completed ? thanks

oh ok i looked but i cant find the create_llama_db.php anywhere in my directories

Do I have to upload this file seperately? If yes then where should I upload it to?

Thanks
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 24, 2005, 03:20:25 PM
I get blank screen when i want to view in admin page

and how d i enable this?
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 24, 2005, 05:06:21 PM
Blank page in admin area? woah that sounds serious man! Cant help you there.

to enable u should look under
Configuration ---> Features and Options

a new section appears there
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 24, 2005, 06:27:48 PM
Quote from: akulion on December 24, 2005, 05:06:21 PM
Blank page in admin area? woah that sounds serious man! Cant help you there.

to enable u should look under
Configuration ---> Features and Options

a new section appears there

Well the mod is installed, but it doesnt seem to show the image :/

login and test it yourself:

test //test

http://arkserver.servehttp.com/forum/index.php
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 24, 2005, 10:32:09 PM
I cant even access your page - it gives a load error
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 25, 2005, 08:12:22 AM
Quote from: akulion on December 24, 2005, 10:32:09 PM
I cant even access your page - it gives a load error

that's wierd
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 25, 2005, 04:20:56 PM
Well anyone know how i can fix it? the image doesnt show when i enable the "mod"
Title: Re: [DONE] Magic Llama mod
Post by: snork13 on December 25, 2005, 05:31:29 PM
Why in my board all the members catch only late Llama, every time they get Sorry too late!
no Evil or Good Llama

i get this too? any ideas why? thanks, very interesting mod!

-snork
Title: Re: [DONE] Magic Llama mod
Post by: Saku on December 25, 2005, 05:34:10 PM
try to empty llama_info table
Title: Re: [DONE] Magic Llama mod
Post by: snork13 on December 25, 2005, 05:40:04 PM
Quote from: Sakuragi on December 25, 2005, 05:34:10 PM
try to empty llama_info table

tried it, and still the same thing, but thanks for trying to help.

i noticed that the null in the table is set to yes

   member  mediumint (8)     Yes  NULL               
   Released  int(10)     Yes  NULL               
   Caught  int(10)     Yes  NULL   
             


seems they are set to null? and could be the problem, but i'm not so good with the mysql stuff       

after looking at

$request = mysql_query("
DROP TABLE IF EXISTS {$db_prefix}llama_info");
db_message('llama_info table droped!');
$request = mysql_query("
CREATE TABLE {$db_prefix}llama_info (
ID mediumint(10) NOT NULL auto_increment,
Type int(2) NOT NULL default '0',
points smallint(3) NOT NULL default '0',
llama_id varchar(15) NOT NULL default '',
member mediumint(8) default NULL,
Released int(10) default NULL,
Caught int(10) default NULL,
PRIMARY KEY  (ID)
) TYPE=MyISAM");
db_message('llama_info table installed!');


well, after messing around in phpadmin, i set the default "Null" values to "0" and it's working :)
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 25, 2005, 11:46:19 PM
i give up

ill have to wait for the final package which does everything for ya

i cant get it to work
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 26, 2005, 01:40:46 PM
I figured out that it works with the default template, tho i cant seem to fix it for the 7dana template, tried of for some time but no luck.

if you know how, my file are here:
http://arkserver.servehttp.com/smf/
Title: Re: [DONE] Magic Llama mod
Post by: snork13 on December 26, 2005, 01:47:27 PM
Quote from: ArkServer on December 26, 2005, 01:40:46 PM
I figured out that it works with the default template, tho i cant seem to fix it for the 7dana template, tried of for some time but no luck.

if you know how, my file are here:
http://arkserver.servehttp.com/smf/

it's in the mod file:

<edit file>
Themes/default/index.template.php
</edit file>

<search for>
global $context, $settings, $options, $scripturl, $txt;
</search for>

<add after>
global $modSettings, $user_info;
</add after>

<search for>
echo '
</body>
</html>';
}
</search for>

<add before>
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'];
}

echo '

<script language="JavaScript" type="text/javascript">
var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), ';
</script>
<script language="JavaScript" type="text/javascript" src="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>
';
}

</add before>


<edit file>
Themes/default/Profile.template.php
</edit file>

<search for>
elseif ($modSettings['karmaMode'] == '2')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' </b>
</td><td>
+', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
</td>
</tr>';
</search for>

<add after>
if ($modSettings['freeLlamas'] == '1' && $modSettings['showLlamaStats'] == '1')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' from ', $modSettings['Type1'], ': </b>
</td><td>
+', $context['member']['llamamod']['goodpoints'], '/ ', $modSettings['Type1'], ' Caught: ', $context['member']['llamamod']['goodllamas'], '
</td>
</tr><tr>
<td>
<b>', $modSettings['karmaLabel'], ' from ', $modSettings['Type2'], ': </b>
</td><td>
-', $context['member']['llamamod']['badpoints'], '/ ', $modSettings['Type2'], ' Caught: ', $context['member']['llamamod']['badllamas'], '
</td>
</tr>';

</add after>

<Search for>
<tr>
<td colspan="2">
<input type="hidden" name="default_options[show_board_desc]" value="0" />
<label for="show_board_desc"><input type="checkbox" name="default_options[show_board_desc]" id="show_board_desc" value="1"', !empty($context['member']['options']['show_board_desc']) ? ' checked="checked"' : '', ' class="check" /> ', $txt[732], '</label>
</td>
</tr><tr>
</Search for>

<Replace>
', ($modSettings['allowllamasoff'] ? '<tr>
<td colspan="2">
<input type="hidden" name="default_options[hide_llama]" value="0" />
<label for="hide_llama"><input type="checkbox" name="default_options[hide_llama]"  id="hide_llama" value="1"' . (!empty($context['member']['options']['hide_llama']) ? ' checked="checked"' : '') . ' class="check" />' . $txt['llamaoption'] . '</td>
</tr>' : ''), '<tr>
<td colspan="2">
<input type="hidden" name="default_options[show_board_desc]" value="0" />
<label for="show_board_desc"><input type="checkbox" name="default_options[show_board_desc]" id="show_board_desc" value="1"', !empty($context['member']['options']['show_board_desc']) ? ' checked="checked"' : '', ' class="check" /> ', $txt[732], '</label>
</td>
</tr><tr>
</Replace>


<edit file>
Themes/default/languages/Profile.english.php
</edit file>

<Search for>
$txt[732] = 'Show board descriptions inside boards.';
</Search for>

<Add before>
$txt['llamaoption'] = 'Turn Magic Llama\'s off:';
</Add before>

<edit file>
Themes/default/Settings.template.php
</edit file>

<search for>
array(
'id' => 'show_board_desc',
'label' => $txt[732],
),
</search for>

<add after>
array(
'id' => 'hide_llama',
'label' => $txt['llamaoption'],
),
</add after>

<edit file>
Themes/default/languages/Admin.english.php
</edit file>

<search for>
?>
</search for>

<add before>
$txt['LlamaLog'] = 'View Llama Log!';
</add before>

<edit file>
Themes/default/languages/ModSettings.english.php
</edit file>

<search for>
$txt['karmaSmiteLabel'] = 'Karma smite label';
</search for>

<add after>
$txt['lableLlamas'] = 'Magic Llama\'s Settings';
$txt['freeLlamas'] = 'Enable Magic Llama\'s?';
$txt['Llama_chances'] = 'Chances for a Llama (out of 100):';
$txt['Llama_image'] = 'Magic Llama Image:';

$txt['Type1'] = 'Title for Good Llama:';
$txt['Type1_min_points'] = 'Minimum points for Good Llama:';
$txt['Type1_max_points'] = 'Maximum points for Good Llama:';
$txt['Type1_discription'] = 'Message to display for Good Llama:';

$txt['Type2'] = 'Title for Evil Llama:';
$txt['Type2_min_points'] = 'Minimum points for Evil Llama:';
$txt['Type2_max_points'] = 'Maximum points for Evil Llama:';
$txt['Type2_discription'] = 'Message to display for Evil Llama:';

$txt['lateLlama'] = 'Message to display for late Llama:';
$txt['Llamaspeed'] = 'Llama Speed: (0-???)<br /><small>The smaller the number the faster it moves!</small>';
$txt['llamaH'] = 'Height of Image:<br /><small>(0) Zero for auto detect!</small>';
$txt['llamaW'] = 'Width of Image:<br /><small>(0) Zero for auto detect!</small>';
$txt['allowllamasoff'] = 'Allow users to turn this off:';
$txt['showLlamaStats'] = 'Show stats in user profiles:';
</add after>


-snork

Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 26, 2005, 02:38:56 PM
Thats the wierd thing, i did the mod but it doesnt show up.
Title: Re: [DONE] Magic Llama mod
Post by: xenovanis on December 26, 2005, 04:36:21 PM
Quote from: ArkServer on December 26, 2005, 02:38:56 PM
Thats the wierd thing, i did the mod but it doesnt show up.

You probably need to copy the image to the 7dana theme directory as well.
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 26, 2005, 05:08:20 PM
Quote from: xenovanis on December 26, 2005, 04:36:21 PM
Quote from: ArkServer on December 26, 2005, 02:38:56 PM
Thats the wierd thing, i did the mod but it doesnt show up.

You probably need to copy the image to the 7dana theme directory as well.

i double checked, its there.
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on December 27, 2005, 05:18:16 PM
Sorry, I've fixed a bunch of issues.  Hopefully they will fix the problems you're having?

Quote
EDIT:  I've fixed a serious *refresh* bug.  What would happen is after you've won, if you press refresh, you win again.  This has been fixed.[/i
EDIT:  I've also fixed another bug.  When you click on a llama you get "sorry another member...", this has been fixed.
EDIT:  I've updated the package file to include the latest bug fixes, as well as all the files.  They should now upload to your server. (Untested)
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 28, 2005, 05:01:07 PM
So is the package now updated and ready to go?

I wana know so I can install it - cos one of our festivals in Islam Called Eid Ul Adha is comin up very soon its something like Christmas only bigger cos its like a whole month :D
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on January 28, 2006, 02:10:16 PM
Any chance of this being finished...

I love the llamas. Have them working fine on my 1.0.6 but eager to upgrade further.. but i can't without my llamas

I'd still pay for it too 8)
Title: Re: [DONE] Magic Llama mod
Post by: belphegor on February 28, 2006, 11:30:38 PM
Guys, Anyone's having a working link for this mod ?

all links posted aren't working


thx  :D
Title: Re: [DONE] Magic Llama mod
Post by: orelanic on March 20, 2006, 10:44:11 AM
Quote from: belphegor on February 28, 2006, 11:30:38 PM
Guys, Anyone's having a working link for this mod ?

all links posted aren't working


thx  :D

Same here  :)
Title: Re: [DONE] Magic Llama mod
Post by: Senkusha on March 20, 2006, 04:27:09 PM
I have reorganized my server a bit.  Here is the current link to the mod....I haven't had a chance to install this yet using the new software, so hopefully it still works.

Llama Mod (http://www.ayeka.net/smf/index.php?action=dlList;sa=mods)
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on March 21, 2006, 03:22:42 AM
works, except for the turn off in profile, also Karma: from Good/bad Llama:  doesn't give any scores..

I tested it on rc2.

Would really love the score to be seperate from karma though... a llama score and a karma score...
But it now works on RC2, there is nothing stopping me from upgrading.

Thank you.
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 06, 2006, 04:58:34 PM
I think the download link on this is no longer working. Does anyone have this file available anywhere so I can have llamas on my site? :) 8)
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 08, 2006, 05:41:48 PM
Bump :)
Title: Re: [DONE] Magic Llama mod
Post by: JayBachatero on September 09, 2006, 01:13:37 AM
I'm going to take a look at it and update it.
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on September 09, 2006, 02:02:29 AM
woohooo, great news
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 09, 2006, 01:07:08 PM
YOU ARE THE MAN!!! :)
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 09, 2006, 08:14:07 PM
xtram's website is still down... I wonder if someone saved a zip of this somewhere? I have the capabilities of creating this myself, but it would take me a few days.
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on September 11, 2006, 02:43:00 AM
any news on this mod?

it dosent seem to work with TP even with a manual install

this is a great mod - can someone please make it work :D
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 11, 2006, 12:14:03 PM
If you have a link to the old mod that works I can try to fix it, I just need access to the old mod, I have been trying to get someone to post the old one, but I think everyone thinks I want a new one that works so thats probably why I haven't heard back from anyone.
Title: Re: [DONE] Magic Llama mod
Post by: JayBachatero on September 11, 2006, 12:43:24 PM
I have the old file here.  It works just that you need to edit a query on Load.php.  I'm going to see if I have time tonight and make this a .xml format.  That should fix that error.  In the mean time here is the file.
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 11, 2006, 12:49:16 PM
Thanks so very much!
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on September 11, 2006, 05:31:57 PM

Y A H O O    F O R    J A Y
Y O U    A R E    T H E    M A N

(http://img466.imageshack.us/img466/706/baloonsso0.gif)
(http://img352.imageshack.us/img352/8296/rara1aj9.gif)3 CHEERS FOR JAY(http://img352.imageshack.us/img352/8296/rara1aj9.gif)
(http://img369.imageshack.us/img369/8597/rara2eh9.gif)HIP HIP HOORAY! HIP HIP HOORAY! HIP HIP HOORAY!(http://img369.imageshack.us/img369/8597/rara2eh9.gif)
For heeeessssss a jolly good fellow....
(http://img236.imageshack.us/img236/8827/1cheerrn9.gif)
(http://img466.imageshack.us/img466/706/baloonsso0.gif)
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 11, 2006, 07:47:03 PM
Ok I updated the Mod so it would install properly, now I updating the update database scripts.

Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on September 11, 2006, 08:40:14 PM
erm I thought we could upload attachments here... oh well the changes are simple
here is the code needed for the mod file: actually you probably wont be able to read it do to the BBC code rendering... :/
<id>
Magic Llama Mod For SMF RC1
</id>

<version>
Full 0.9 - updated by MagicCodeTinker
</version>

<mod info>
This is the Full version of the Magic Llama Mod for SMF RC 1 no other updates from the past are needed!
This mod edits 12 files with 19 Steps!

Please read the README.txt file for more instructions on installing this mod!
</mod info>

<author>
Aquilo
</author>

<homepage>
http://www.xtram.net
</homepage>

<edit file>
index.php
</edit file>

<search for>
// Load the current user's permissions.
loadPermissions();
</search for>

<add after>
// load a new Llama.
if ($modSettings['freeLlamas'] == 1)
loadLlamas();
</add after>

<search for>
'.xml' => array('News.php', 'ShowXmlFeed'),
</search for>

<add after>
'magicLlama' =>  array('Karma.php', 'magicLlama'),
</add after>

<search for>
'jsoption' => array('Themes.php', 'SetJavaScript'),
</search for>

<add after>
'Llamalog' => array('LlamaKeeper.php', 'Llamalog'),
</add after>

<edit file>
Sources/Load.php
</edit file>

<search for>
'permissions' => array()
</search for>

<replace>
'permissions' => array(),
'goodllamas' => isset($user_settings['goodllamas']) ? $user_settings['goodllamas'] : '',
'goodpoints' => isset($user_settings['goodpoints']) ? $user_settings['goodpoints'] : '',
'badllamas' => isset($user_settings['badllamas']) ? $user_settings['badllamas'] : '',
'badpoints' => isset($user_settings['badpoints']) ? $user_settings['badpoints'] : ''
</replace>

<search for>
mem.birthdate, mem.memberIP, mem.memberIP2, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,
</search for>

<add after>
mem.badllamas, mem.goodllamas, mem.badpoints, mem.goodpoints,
</add after>

<search for>
'karma' => array(
'good' => &$profile['karmaGood'],
'bad' => &$profile['karmaBad'],
'allow' => !$user_info['is_guest'] && $user_info['posts'] >= $modSettings['karmaMinPosts'] && allowedTo('karma_edit') && !empty($modSettings['karmaMode']) && $ID_MEMBER != $user
),
</search for>

<add after>
'llamamod' => array(
'goodpoints' => &$profile['goodpoints'],
'badpoints' => &$profile['badpoints'],
'goodllamas' => &$profile['goodllamas'],
'badllamas' => &$profile['badllamas'],
),
</add after>

<search for>
?>
</search for>

<add before>
// Create new Life for all SMF Boards!
function LoadLlamas ()
{
global $context, $db_prefix, $modSettings;
global $options, $settings, $user_info;

// if the user has the Llamas turned off and you allow it, or the user is a guest give them a blank Llama
if ((($modSettings['allowllamasoff'] == 1) && isset($options['hide_llama']) && ($options['hide_llama'] == 1)) || ($user_info['is_guest'] == 1))
{
$context['LlamaInfo']['Llamaid'] = '';
return $context;
}

// Create a new Llama!
$Llamaid = mt_rand(0, 15);

$c = 0;
$needle = rand(1, 100);

// start rolling the dice!
for ($i=0; $i<$modSettings['Llama_chances']; $i++)
{
// if the needle is found give them a Llama
if ($needle == rand(1, 100))
{
$c = 1;
}
}

// did we find you a Llama?
if ($c != 0)
{
// setting the Llama type.
$thisLlama = (int) rand(1, 2);

// set the point value of this Llama
$points = (int) rand($modSettings['Type'.$thisLlama.'_min_points'], $modSettings['Type'.$thisLlama.'_max_points']);

// add him/her to the database.
db_query("
INSERT INTO {$db_prefix}llama_info
(ID, Type, points, llama_id, member, Released, Caught)
VALUES (NULL, $thisLlama, $points, '$Llamaid', NULL, " . time() . ", NULL)", __FILE__, __LINE__);

// Freed Llamas to date.
db_query("
UPDATE {$db_prefix}settings
SET value = value+1
WHERE variable = 'FreedLlamas' LIMIT 1", __FILE__, __LINE__);

// tag the Llama.
$context['LlamaInfo']['Llamaid'] = $Llamaid;

} else {

// Sorry no Llama this time!
$context['LlamaInfo']['Llamaid'] = '';
}

// a new baby Llama is Released to the world! or not! >:D
return $context;
}

</add before>

<edit file>
Sources/Karma.php
</edit file>

<search for>
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
</search for>

<add before>
// muhahahahahahahahaha, the Llama's have been set FREE!
function magicLlama()
{
global $_REQUEST, $user_info, $modSettings, $db_prefix, $context;

// NO GUESTS ALLOWED!
if ($user_info['is_guest'])
is_not_guest();

// set your user id stored in $context array
$userid = $context['user']['id'];

// now lets see if we have a Llama by that name!?
$request = db_query("
SELECT *
FROM {$db_prefix}llama_info
WHERE llama_id = '$_REQUEST[magicLlama]'
LIMIT 1", __FILE__, __LINE__);

// most likely a script kiddy so we'll let the Llamas have at him!
if (!$request || mysql_num_rows($request) == 0)
fatal_error('Bad Llama id! >:(', true);

$Llamainfo = mysql_fetch_assoc($request);
mysql_free_result($request);

// oops got here too late! ha...ha...!
if ($Llamainfo['member'] != '')
{
$context['title'] = 'Sorry too late!';
$context['display'] = $modSettings['lateLlama'];
}
else
{
// let's get your info in the database befor someone else get's the Llama!
db_query("
UPDATE {$db_prefix}llama_info
SET member = $userid, Caught = " . time() . "
WHERE llama_id = '$_REQUEST[magicLlama]'
LIMIT 1", __FILE__, __LINE__);

$field1 = ($Llamainfo['Type'] == 1) ? 'karmaGood' : 'karmaBad';
$field2 = ($Llamainfo['Type'] == 1) ? 'goodpoints' : 'badpoints';
$field3 = ($Llamainfo['Type'] == 1) ? 'goodllamas' : 'badllamas';

// log the users points
updateMemberData($userid, array(
$field1 => $field1 . ' + ' . $Llamainfo['points'],
$field2 => $field2 . ' + ' . $Llamainfo['points'],
$field3 => $field3 . ' + 1',
));

$context['title'] = 'You got a ' . $modSettings['Type' . $Llamainfo['Type']] . '!';
$context['display'] = str_replace(
array("%N", "%P", "%K"),
array(
$modSettings['Type' . $Llamainfo['Type']],
(($Llamainfo['Type']==1) ? $Llamainfo['points'] : '-' . $Llamainfo['points']),
$modSettings['karmaLabel']),
$modSettings['Type' . $Llamainfo['Type'] . '_discription']);
}

if (!isset($context['page_title']))
$context['page_title'] = $context['title'];

loadTemplate('MagicLlama');
$context['sub_template'] = 'Llama_speak';

unset($Llamainfo);
obExit();
}
</add before>

<edit file>
Sources/ModSettings.php
</edit file>

<search for>
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
</search for>

<add after>
array('heading', &$txt['lableLlamas']),
array('check', 'freeLlamas', &$txt['enableLlamas']),
array('check', 'showLlamaStats', &$txt['enableLlamastats']),
array('check', 'allowllamasoff', &$txt['allowllamasoff']),
'',
array('int', 'Llama_chances', &$txt['LlamaChance']),
array('text', 'Llama_image', &$txt['Llamaimage']),
array('int', 'llamaW', &$txt['LlamaW']),
array('int', 'llamaH', &$txt['LlamaH']),
array('int', 'Llamaspeed', &$txt['Llamaspeed']),
'',
array('text', 'Type1', &$txt['lableLlama1']),
array('text', 'Type1_min_points', &$txt['Llama1min']),
array('text', 'Type1_max_points', &$txt['Llama1max']),
array('text', 'Type1_discription', &$txt['Llama1discription']),
'',
array('text', 'Type2', &$txt['lableLlama2']),
array('text', 'Type2_min_points', &$txt['Llama2min']),
array('text', 'Type2_max_points', &$txt['Llama2max']),
array('text', 'Type2_discription', &$txt['Llama2discription']),
'',
array('text', 'lateLlama', &$txt['lateLlama']),
</add after>

<edit file>
Sources/Subs.php
</edit file>

<search for>
if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
</search for>

<add after>
$context['admin_areas']['maintenance']['areas']['view_Llama_log'] = '<a href="' . $scripturl . '?action=Llamalog">' . $txt['LlamaLog'] . '</a>';
</add after>

<edit file>
Themes/default/index.template.php
</edit file>

<search for>
global $context, $settings, $options, $scripturl, $txt;
</search for>

<add after>
global $modSettings, $user_info;
</add after>

<search for>
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body></html>';
}
</search for>

<add before>
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'];
}

echo '

<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>
';
}

</add before>

<edit file>
Sources/Profile.php
</edit file>

<search for>
'karma' => array(
'good' => empty($user_profile[$memID]['karmaGood']) ? '0' : $user_profile[$memID]['karmaGood'],
'bad' => empty($user_profile[$memID]['karmaBad']) ? '0' : $user_profile[$memID]['karmaBad'],
),
</search for>

<add after>
'llamamod' => array(
'goodpoints' => empty($user_profile[$memID]['goodpoints']) ? '0' : $user_profile[$memID]['goodpoints'],
'badpoints' => empty($user_profile[$memID]['badpoints']) ? '0' : $user_profile[$memID]['badpoints'],
'goodllamas' => empty($user_profile[$memID]['goodllamas']) ? '0' : $user_profile[$memID]['goodllamas'],
'badllamas' => empty($user_profile[$memID]['badllamas']) ? '0' : $user_profile[$memID]['badllamas'],
),
</add after>

<edit file>
Themes/default/Profile.template.php
</edit file>

<search for>
elseif ($modSettings['karmaMode'] == '2')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' </b>
</td><td>
+', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
</td>
</tr>';
</search for>

<add after>
if ($modSettings['freeLlamas'] == '1' && $modSettings['showLlamaStats'] == '1')
echo '
<tr>
<td>
<b>', $modSettings['karmaLabel'], ' from ', $modSettings['Type1'], ': </b>
</td><td>
+', $context['member']['llamamod']['goodpoints'], '/ ', $modSettings['Type1'], ' Caught: ', $context['member']['llamamod']['goodllamas'], '
</td>
</tr><tr>
<td>
<b>', $modSettings['karmaLabel'], ' from ', $modSettings['Type2'], ': </b>
</td><td>
-', $context['member']['llamamod']['badpoints'], '/ ', $modSettings['Type2'], ' Caught: ', $context['member']['llamamod']['badllamas'], '
</td>
</tr>';

</add after>

<Search for>
<tr>
<td colspan="2">
<input type="hidden" name="default_options[show_board_desc]" value="0" />
<label for="show_board_desc"><input type="checkbox" name="default_options[show_board_desc]" id="show_board_desc" value="1"', !empty($context['member']['options']['show_board_desc']) ? ' checked="checked"' : '', ' class="check" /> ', $txt[732], '</label>
</td>
</tr><tr>
</Search for>

<Replace>
', ($modSettings['allowllamasoff'] ? '<tr>
<td colspan="2">
<input type="hidden" name="default_options[hide_llama]" value="0" />
<label for="hide_llama"><input type="checkbox" name="default_options[hide_llama]"  id="hide_llama" value="1"' . (!empty($context['member']['options']['hide_llama']) ? ' checked="checked"' : '') . ' class="check" />' . $txt['llamaoption'] . '</td>
</tr>' : ''), '<tr>
<td colspan="2">
<input type="hidden" name="default_options[show_board_desc]" value="0" />
<label for="show_board_desc"><input type="checkbox" name="default_options[show_board_desc]" id="show_board_desc" value="1"', !empty($context['member']['options']['show_board_desc']) ? ' checked="checked"' : '', ' class="check" /> ', $txt[732], '</label>
</td>
</tr><tr>
</Replace>

<edit file>
Themes/default/languages/Profile.english.php
</edit file>

<Search for>
$txt[732] = 'Show board descriptions inside boards.';
</Search for>

<Add before>
$txt['llamaoption'] = 'Turn Magic Llama\'s off:';
</Add before>

<edit file>
Themes/default/Settings.template.php
</edit file>

<search for>
array(
'id' => 'show_board_desc',
'label' => $txt[732],
'default' => true,
),
</search for>

<add after>
array(
'id' => 'hide_llama',
'label' => $txt['llamaoption'],
'default' => true,
),
</add after>

<edit file>
Themes/default/languages/Admin.english.php
</edit file>

<search for>
?>
</search for>

<add before>
$txt['LlamaLog'] = 'View Llama Log!';
</add before>

<edit file>
Themes/default/languages/ModSettings.english.php
</edit file>

<search for>
$txt['karmaSmiteLabel'] = 'Karma smite label';
</search for>

<add after>
$txt['lableLlamas'] = 'Magic Llama\'s Settings';
$txt['freeLlamas'] = 'Enable Magic Llama\'s?';
$txt['Llama_chances'] = 'Chances for a Llama (out of 100):';
$txt['Llama_image'] = 'Magic Llama Image:';

$txt['Type1'] = 'Title for Good Llama:';
$txt['Type1_min_points'] = 'Minimum points for Good Llama:';
$txt['Type1_max_points'] = 'Maximum points for Good Llama:';
$txt['Type1_discription'] = 'Message to display for Good Llama:';

$txt['Type2'] = 'Title for Evil Llama:';
$txt['Type2_min_points'] = 'Minimum points for Evil Llama:';
$txt['Type2_max_points'] = 'Maximum points for Evil Llama:';
$txt['Type2_discription'] = 'Message to display for Evil Llama:';

$txt['lateLlama'] = 'Message to display for late Llama:';
$txt['Llamaspeed'] = 'Llama Speed: (0-???)<br /><small>The smaller the number the faster it moves!</small>';
$txt['llamaH'] = 'Height of Image:<br /><small>(0) Zero for auto detect!</small>';
$txt['llamaW'] = 'Width of Image:<br /><small>(0) Zero for auto detect!</small>';
$txt['allowllamasoff'] = 'Allow users to turn this off:';
$txt['showLlamaStats'] = 'Show stats in user profiles:';
</add after>

The change in package-info.xml is
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Magic Llama</name>
<id>Aquilo:MagicLlama</id>
<type>modification</type>
<version>0.80</version>
<install for="1.1 [b]RC3[/b]">
<modification type="file" format="boardmod">Magic_Llama_mod_0.8.mod</modification>
<require-file name="LlamaKeeper.php" destination="$sourcedir" />
<require-file name="MagicLlama.template.php" destination="$themedir" />
<require-file name="MoveObj.js" destination="$themedir" />
<require-file name="golden_llama2.gif" destination="$imagesdir" />
</install>
<uninstall for="1.1 RC2">
<readme type="inline">This will uninstall all the changes made by this mod.</readme>
<modification type="file" format="boardmod" reverse="true">Magic_Llama_mod_0.8.mod</modification>
</uninstall>
</package-info>


Then zip them all back up.
I ended up doing the queries manually and now everything works. Oh and turning on Karma and setting enable Magic Llama from my administrator panel.

EDIT: Change quote tag to code.
Title: Re: [DONE] Magic Llama mod
Post by: JayBachatero on September 11, 2006, 09:32:49 PM
MegaTinkerCoder send me the file and I'll upload it.
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on October 22, 2006, 07:34:29 PM
hey im gona try out ur modifications!!

right now i really need this mod!! :D

the Eid is here - its like christmas for muslims - so need to get it workin and up asap :D
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on October 22, 2006, 07:40:15 PM
It didnt work  :'(

Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on October 22, 2006, 07:46:03 PM
You are probably using an older mod. You have to modify the mod to allow the installer to install it and then change several of the lines of code. I am pretty sure I passed these along, but...

We ended up disabling it on our forum. While we did get it to work, I couldn't manipulate the ratio of good to bad llama's and there was some code issue with the llama always thinking someone else caught the llama, even though it wasn't possible (possible prefetching\search engines\or some calculation issue) I sorta fixed this by making it so that it wouldn't tell you someone else caught it, but then people started cheating by hitting back and clicking on the llama over and over.

I could probably fix that as well, but I have been swamped and would have to re-zip all the files and do testing again. I think the best hope is that the author will update when simple machine goes gold after rc3. If he doesn
t get to it after the forum goes gold, I will try to get back to this.
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on October 22, 2006, 08:39:00 PM
IT WORKS IT WORKS!!

no the problem was 2 fold....

1: <install for="1.1 RC3">
u had a BCC tag in there

then it installed fine...

2: the db creation file didnt work - so i had to manually take the SQL out of there and run it via PHP myadmin!

and now it runs :D Thanks so much!! :D

Demo = http://goofy-goobers.com/forum/index.php
just sign in as
user: test
pass: test

yippee!!
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on October 22, 2006, 08:42:18 PM
ops...now i see what u meant by the "too late someone else caught it" issue

at first it was workin great

and now suddenly EVERY other lama is too late

:'(

oh well i guess it will have to wait...

lucky for me i only tested on my "test board"
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on October 22, 2006, 08:42:57 PM
There will be some other quirks you will find them out later.  Good luck. ;)
Title: Re: [DONE] Magic Llama mod
Post by: Diven on December 13, 2006, 02:41:30 PM
I know this mod!
On a forum where I'm member they've had this a long time ago  :D
Does this work on 1.1 Final ?
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on December 13, 2006, 02:48:01 PM
I dont think so.
Title: Re: [DONE] Magic Llama mod
Post by: JayBachatero on December 13, 2006, 03:16:44 PM
Here you go.
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on December 13, 2006, 03:41:30 PM
omg, it installed perfectly on my rc3 (i assume it works on 1.1)

Thank you thank you thank you thank you....

and thank you more... ooooo it's christmas

weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 13, 2006, 06:15:44 PM
wow out for 1.1 ?:D man ur the best Jay!
thanks so much!!
Title: Re: [DONE] Magic Llama mod
Post by: Diven on December 14, 2006, 06:40:01 AM
Hehe, tnx :D
This can be fun !

You an change the lama picture right ? (If I rememeber)
Title: Re: [DONE] Magic Llama mod
Post by: kriskd on December 14, 2006, 08:55:40 PM
Is this going to be available in the mod library or just here?
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on December 16, 2006, 06:36:57 AM
Quote from: Diven on December 14, 2006, 06:40:01 AM
Hehe, tnx :D
This can be fun !

You an change the lama picture right ? (If I rememeber)
yes easily.


I'm wondering if it is possible to do the llamas with a seperate score to karma.. Reason being we use the karma system, and when i turn the llama system on it kind of removes the point of the karma system..
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on December 20, 2006, 10:55:47 AM
how can i modify the sql code so it is off by default, in the members profiles?
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 23, 2006, 09:01:14 AM
not working for me with TP installed

Any ideas how to get it working with SMF + TP ?

error reads "Unable to load the 'main' template."

thanks
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 24, 2006, 11:43:55 AM
I give up!

ive uninstalled - reinstalled this mod
uploaded the templates to every themes folder
modified all the files manually and double checked the ones which were modifiec in sources etc

but still it gives me "Unable to load the 'main' template."
and whats worse is now even my llama stopped working!
Atleast it was moving on the 1st install
:'(
Title: Re: [DONE] Magic Llama mod
Post by: !Hachi! on December 25, 2006, 05:07:11 AM
aku working fine on smf 1.1.1 i will take a look at night so lets hope.
               btw ap kon sa topic rako ge ?
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 25, 2006, 06:02:57 AM
I dont know yet bro, I just want to make it work lol so I can have some fun on the page - ive been wanting this to work since a year now lol

Btw, it works on my test site just fine (it has less mods on it) but on the live site which has many mods, everything installs fine, but no workie.

Ah well I can do without it - it was just for fun
Title: Re: [DONE] Magic Llama mod
Post by: Rudolf on December 25, 2006, 07:40:02 AM
That error is present on this forum too.
http://www.simplemachines.org/community/index.php?action=magicLlama

And it's not working good.
I catched 4 or 5, and didn't count them.  :-\
Title: Re: [DONE] Magic Llama mod
Post by: Grudge on December 25, 2006, 07:58:11 AM
You're not supposed to access the URL direct - certainly not on the one we have running here. Note that the mod in this topic is *not* identical to that running on the site.
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 25, 2006, 09:50:57 AM
any news on when the mod runing on SMF will be released please?
Title: Re: [DONE] Magic Llama mod
Post by: Grudge on December 25, 2006, 10:30:39 AM
Ummm - by not the same code I mean it's a less advanced version of this MOD. The essence is the same. It won't be released as it's highly specific to this site and (to be honest) a bit of a bodge!
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 25, 2006, 11:02:17 AM
sigh...i guess ill never get this mod working for me on my live site

thanks for the info though :D
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 25, 2006, 02:42:03 PM
just to let u know the error logs for when I get a template load failure:

h**p://path-to-peace.com/forum/index.php?action=magicLlama;magicLlama=497
Unable to load the 'main' template

2: call_user_func(magicLlama) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: *************path-to-peace.com/forum/index.php
Line: 132
Title: Re: [DONE] Magic Llama mod
Post by: ArkServer on December 25, 2006, 06:21:01 PM
Is it possible to let the users see the llama log?
Title: Re: [DONE] Magic Llama mod
Post by: internetbrother on December 26, 2006, 01:09:58 PM
I have 1.1.1 with tinyportal
Now will this mod work or not because I see some have issues.

any body has tried this with tiny portal on 1.1.1?
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 26, 2006, 01:19:58 PM
it will work with Tiny Portal

On my test site with TP it works

but my live site is very heavily modded so it failed to work (even though it installs fine)
So my guess it its not working for me because of the modifications to the files

Try it out - it installs and uninstalls perfectly (in case it dosent function for u)
Title: Re: [DONE] Magic Llama mod
Post by: JustJen on December 26, 2006, 04:30:11 PM
My llamas are not moving, but otherwise it is working fine. Any idea why?
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 26, 2006, 06:02:52 PM
make sure u got the js file uploaded - i cant remember exactly where it was to be uploaded but its either:
the default themes folder
OR
forum root

so try both just to be sure

Also if they dont move after that try feeing them some hay and give them some water lol
Title: Re: [DONE] Magic Llama mod
Post by: bammoeller on December 26, 2006, 06:26:25 PM
After install all is see is a "View Llama Log"!
Does it automaticly release the lama??
Is there an admin area for options?
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 26, 2006, 06:31:15 PM
in features & settings under Karma is all the settings stuff
Title: Re: [DONE] Magic Llama mod
Post by: bammoeller on December 26, 2006, 06:33:25 PM
Nice!!
Thanks..
Title: Re: [DONE] Magic Llama mod
Post by: sawz on December 26, 2006, 07:26:01 PM
Quote from: akulion on December 26, 2006, 06:31:15 PM
in features & settings under Karma is all the settings stuff

i was looking for that, works on 1.1.1 :)
Title: Re: [DONE] Magic Llama mod
Post by: cjexotic on December 26, 2006, 10:26:07 PM
Quote from: sawz on December 26, 2006, 07:26:01 PM
Quote from: akulion on December 26, 2006, 06:31:15 PM
in features & settings under Karma is all the settings stuff

i was looking for that, works on 1.1.1 :)


does it actually work right for you?
I got it to install but no matter what ,  it claimed someone had already gotten the llama even with my forum empty
Title: Re: [DONE] Magic Llama mod
Post by: sawz on December 26, 2006, 11:06:10 PM
Quote from: cjexotic on December 26, 2006, 10:26:07 PM
does it actually work right for you?
I got it to install but no matter what ,  it claimed someone had already gotten the llama even with my forum empty

i got it 3 times

Karma: from Good Llama:      +5/ Good Llama Caught: 2
Karma: from Evil Llama:    -1/ Evil Llama Caught: 1

don't know why i got an evil one. i'm the only person to try it. i have a llama log that appears to work too.
Title: Re: [DONE] Magic Llama mod
Post by: JustJen on December 26, 2006, 11:30:43 PM
Quote from: akulion on December 26, 2006, 06:02:52 PM
make sure u got the js file uploaded - i cant remember exactly where it was to be uploaded but its either:
the default themes folder
OR
forum root

so try both just to be sure

Also if they dont move after that try feeing them some hay and give them some water lol

They're moving fine now. Thanks! (And they're snowmen on my board-what does a snowman eat, for future reference??)
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 27, 2006, 06:52:09 AM
Snowmen only eat naughty children
Title: Re: [DONE] Magic Llama mod
Post by: bammoeller on December 27, 2006, 07:02:06 AM
Snow men only eat yellow snow!
Duh!
Title: Re: [DONE] Magic Llama mod
Post by: JustJen on December 27, 2006, 10:30:16 AM
Quote from: akulion on December 27, 2006, 06:52:09 AM
Snowmen only eat naughty children

I might have a few of those lying around. Now that Santa's been and gone, the motivation just isn't what it was on Dec 24th.
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 27, 2006, 10:45:46 AM
ur lucky it works for u, for me its kaput!
Title: Re: [DONE] Magic Llama mod
Post by: EdwinK on December 27, 2006, 11:16:39 AM
Doesn't work for me either :(

I see that there are 130+ llama's out, but they don't show up :( Might be my theme (DilbertMC)
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on December 27, 2006, 11:49:41 AM
for themes other than default u have to carry out manual modifications to the files
Title: Re: [DONE] Magic Llama mod
Post by: EdwinK on December 27, 2006, 12:25:50 PM
Thougth so. Just need to find out what exactly needs to be done in the thema :)
Title: Re: [DONE] Magic Llama mod
Post by: bammoeller on December 27, 2006, 02:12:45 PM
I wonder if anyone is going to add more options to the lama.
Like increase post count decrease post count,
Increase time logged on and so on?
Title: Re: [DONE] Magic Llama mod
Post by: boolprop_net on December 27, 2006, 07:00:30 PM
This appears in my shoutbox and at the bottom when creating a post:

QuoteNotice: Undefined index: LlamaInfo in /home/xxxxxxxx/public_html/forums/Sources/Subs.php on line 3192

Would someone help me figure out how to make this go away?  :)
Title: Re: [DONE] Magic Llama mod
Post by: JustJen on December 28, 2006, 10:51:12 AM
Ok, I am having a problem with the llama mod and the log. It appears that it is such a hit, that the log page won't even load for me to empty it.(It had been working previously) How can I empty it? Am I in danger of it crashing my site if I don't empty it?
Title: Re: [DONE] Magic Llama mod
Post by: MegaTinkerCoder on January 04, 2007, 08:09:32 PM
You can go into your mysql manager and delete it using a query.

I noticed the log shows that the llama is much more active then it really is, but thats probably search engines, or a bad math calculation.

karma and llama's look like it would be some work to separate as they share some of the same code portions...

Title: Re: [DONE] Magic Llama mod
Post by: BigMike on January 09, 2007, 12:55:04 AM
Hey guys,

First off, I've always loved this mod and since it was released to the public I've enjoyed using it!

When I upgraded to the RC1 platform, I had to remove the script for compatibility issues.

But now since its available, I've finally been able to install version 0.8, but I have a slight problem..

In my error log, whenever I view the Features and Options > Karma section of my admin, I am getting like 2 pages of the following errors all at one time:

8: Undefined index: size
File: /home/marlincr/public_html/board/Themes/default/languages/CustomProfile.english.php (eval?)
Line: 1360


The "undefined index:" changes such as: size, value, name, disabled, type, label, help, etc.....

I checked my CustomProfile.english.php file and it is only 47 lines long, not 1360....... so it must be calling the info from a different file?

Thanks in advance!
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on January 09, 2007, 01:07:21 AM
Hmmmmmmm

I just read some other posts and apparently it does not work with 1.1 RC3?

Dang..... I guess I will uninstall it.. I am getting all sorts of errors now :(
Title: Re: [DONE] Magic Llama mod
Post by: Gobo on January 09, 2007, 06:12:21 AM
its a magic mod - it works for some for others not lol
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on January 09, 2007, 03:58:37 PM
I was half awake when I read it was ready for RC1, I was like SWEET, but now I realize that I ALREADY TRIED INSTALLING version 0.8 in the past and I already had these errors *IDIOT*

So I just removed it all again and my members (who are always asking what happened to the "Magic Turtles") are still wondering what happened to the Turtles... :(
Title: Re: [DONE] Magic Llama mod
Post by: Gwydion Frost on February 04, 2007, 10:24:18 AM
What are the odds of someone being able to update this to 1.1.1?
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on February 04, 2007, 12:01:13 PM
it works on 1.1.1, i use it
Title: Re: [DONE] Magic Llama mod
Post by: PioneeR on February 18, 2007, 07:53:15 AM
Anyone know where I can download this from?
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on May 21, 2007, 08:09:44 PM
Quote from: mrselnombre on February 04, 2007, 12:01:13 PM
it works on 1.1.1, i use it

How about 1.1.2?? :fingerscrossed:
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on May 22, 2007, 01:52:10 AM
yup. no problem
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on July 09, 2007, 04:39:38 PM
Quote from: mrselnombre on May 22, 2007, 01:52:10 AM
yup. no problem

Ok, I am going to upgrade from 1.1.2 to 1.1.3 this week, and I am going to give another crack at getting this script to work on my forum.

I can not get it to work for the life of me on 1.1.2. Everything seems to work perfectly, but when you catch a Llama, it goes to a page saying "Sorry you were too late, another member already got this one", but it does it to EVERY LLAMA. So members can participate, but there are no rewards or punishments to be dealt, which definitely takes the fun out of it.

Also, does anyone know of another mirror for this script? The link for version 0.8 on the opening post of this thread does not work.

Thanks
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on October 12, 2007, 01:21:01 PM
Any updates on this? I am going for 1.1.4, and I wanted to take another stab at getting my Magic Llamas back up..........
Title: Re: [DONE] Magic Llama mod
Post by: Kays on October 13, 2007, 11:57:45 AM
Your bump got my curiosity up and since I downloded it a while ago tried installing it on a clean board as a test but have problems with the Package Manager which won't allow it to install proprly. Plus it looks like there are a few changes to be made for 1.1.4. So I do hope the get it installed and working prpoerly in a while. If the topic starter doesn't mind I'll post a link to a working version.

This does look like a interesting mod but, pardon my ignorance, how does it work? When and where do the Llamas appear and how does it tie into the Karma system?

Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on January 02, 2008, 02:13:08 AM
it does work on 1.1.4 but mine was installed before i patched up to that
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on January 10, 2008, 12:17:55 PM
Quote from: mrselnombre on January 02, 2008, 02:13:08 AM
it does work on 1.1.4 but mine was installed before i patched up to that

REALLY!!

Could you please check the following: I can get everything to install fine on 1.1.4, and the llamas appear on the screen randomly, but whenever you catch one, it just says "Sorry, this Id is not valid" or "Sorry this llama has already been captured by someone else"

I forgot what it said, but it was something like that. And it would never alter your karma score, and also the llamas in the llama log were getting out of control because no one was ever "successful" at capturing one.

Please verify this if you have time. I might throw the script back on my test site just to see if I can get it to work. I have not had time to do this yet.

Thanks
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on January 10, 2008, 12:58:08 PM
I use 1.1.4 as i said, mine was installed before i patched up to it.
Llamas aren't on all the time, just at special occasions, like christmas and stuff. But i don't have any problem with them at all. No errors in the errorlog or anything...
I'm hoping that they will re-do this mod for smf 2, as it is an integeral part of my site now. but i'm not holding out much hope. I get the impression it is a dying mod.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on January 10, 2008, 12:59:46 PM
WOW, I am stoked. Sounds great!
Title: Re: [DONE] Magic Llama mod
Post by: oktosoma on July 24, 2008, 10:39:12 PM
any llamas works on 1.1.5 ? tx
Title: Re: [DONE] Magic Llama mod
Post by: 2Ntense on July 25, 2008, 01:25:59 AM
<rolls eyes> apparently they have an implementation for SMF 2.0 beta 4 already... I just jumped on a freakin' animal wandering around my screen HERE and hit the ADBLOCK PLUS (Firefox to you IE weenies) 'block image' to kill it off.  Dunno if it's based on the same code, but there was assuredly a wandering llama on my screen a few minutes ago until I hauled out the .50 cal and shot it dead.

All of God's creatures look good next to the potatoes and gravy...
Title: Re: [DONE] Magic Llama mod
Post by: Apllicmz on July 25, 2008, 01:29:29 AM
here can download..
Title: Re: [DONE] Magic Llama mod
Post by: Enders on July 25, 2008, 03:38:41 AM
Can you update it to work on 1.1.5?
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on July 25, 2008, 04:04:58 AM
Quote from: Enders on July 25, 2008, 03:38:41 AM
Can you update it to work on 1.1.5?

X11-bazillion
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on July 25, 2008, 08:13:53 AM
it does work on 1.1.5
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 08:24:21 AM
Quote from: mrselnombre on July 25, 2008, 08:13:53 AM
it does work on 1.1.5

I tried.. mine gives me everything but actually loading the mod :(

Fatal error: Call to undefined function: loadllamas() in /homepages/11/d204877429/htdocs/BB/index.php on line 168
which is
// load a new Llama.
if ($modSettings['freeLlamas'] == 1)
loadLlamas();


anyone help me fix that?
Title: Re: [DONE] Magic Llama mod
Post by: SONSiVRi on July 25, 2008, 08:31:22 AM
am I wrong or file cannot be downloaded?
http://www.xtram.net isnt available, it redirects http://www.graytap.com and nothing happens.
I checked the " SMF forum" directory in "Download" section (http://www.graytap.com/index.php?module=Downloads;catd=9) but nothing listed.
Firefox and IE same result.
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 08:35:48 AM
Quote from: SONSiVRi on July 25, 2008, 08:31:22 AM
am I wrong or file cannot be downloaded?
http://www.xtram.net isnt available, it redirects http://www.graytap.com and nothing happens.
I checked the " SMF forum" directory in "Download" section (http://www.graytap.com/index.php?module=Downloads;catd=9) but nothing listed.
Firefox and IE same result.
correct, I found it elsewhere.
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on July 25, 2008, 09:17:47 AM
Quote from: toups on July 25, 2008, 08:24:21 AM
Quote from: mrselnombre on July 25, 2008, 08:13:53 AM
it does work on 1.1.5

I tried.. mine gives me everything but actually loading the mod :(

Fatal error: Call to undefined function: loadllamas() in /homepages/11/d204877429/htdocs/BB/index.php on line 168
which is
// load a new Llama.
if ($modSettings['freeLlamas'] == 1)
loadLlamas();


anyone help me fix that?
ahh i installed mine before 1.1.5  possibly 1.1.2 or even further back then upgraded up to 1.1.5 and it still worked.
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 09:19:34 AM
Quote from: mrselnombre on July 25, 2008, 09:17:47 AM
Quote from: toups on July 25, 2008, 08:24:21 AM
Quote from: mrselnombre on July 25, 2008, 08:13:53 AM
it does work on 1.1.5

I tried.. mine gives me everything but actually loading the mod :(

Fatal error: Call to undefined function: loadllamas() in /homepages/11/d204877429/htdocs/BB/index.php on line 168
which is
// load a new Llama.
if ($modSettings['freeLlamas'] == 1)
loadLlamas();


anyone help me fix that?
ahh i installed mine before 1.1.5  possibly 1.1.2 or even further back then upgraded up to 1.1.5 and it still worked.

I see.. mines up now with no errors.. but I've yet to see any llamas even when activing the mod in featurs & options & such.. doesn't seem to be releasing any llamas :(

Llama log after a while:
Llama Type     Points     Member     Time Released     Time Caught
No Llamas have been Released! ;(


Anyone know a reason why they wouldn't be being released? (my chance is 40, it is enabled)
Title: Re: [DONE] Magic Llama mod
Post by: rafter on July 25, 2008, 09:50:58 AM
Where's download?
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 09:52:31 AM
Quote from: rafter on July 25, 2008, 09:50:58 AM
Where's download?

Don't remember where I found it m8.. Here's the one I got though..
As stated above that's the problem I'm having with it.. no errors or anything but no llamas are ever freed for some reason :(
Title: Re: [DONE] Magic Llama mod
Post by: rafter on July 25, 2008, 09:53:45 AM
Thanks for the download.
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 09:57:37 AM
Quote from: rafter on July 25, 2008, 09:53:45 AM
Thanks for the download.

dl the new 1 in my post.. the other one had some modified files in it for my forum to accept.. this is the default & first 1 before edits.

lmk if you can actually get it to work
Title: Re: [DONE] Magic Llama mod
Post by: rafter on July 25, 2008, 10:04:27 AM
My forum is broken now..
Title: Re: [DONE] Magic Llama mod
Post by: Nathaniel on July 25, 2008, 10:05:15 AM
Quote from: rafter on July 25, 2008, 10:04:27 AM
My forum is broken now..

Can you be a bit more descriptive about the error/problem?
Title: Re: [DONE] Magic Llama mod
Post by: rafter on July 25, 2008, 10:06:05 AM
This:
Fatal error: Call to undefined function: loadllamas() in /home/sites/rune-works.net/public_html/forum/index.php on line 168
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 10:21:01 AM
Quote from: rafter on July 25, 2008, 10:06:05 AM
This:
Fatal error: Call to undefined function: loadllamas() in /home/sites/rune-works.net/public_html/forum/index.php on line 168

check your load.php, your probably not defining the function loadllamas.. I had to manually put it in.. scroll up.

This mod was made ages ago = half the stuff can't be put into correct places through the package manager.. manually do it.

eventually you'll get to exactly where I am.. everything installed correctly.. and yet no llamas appearing..
Title: Re: [DONE] Magic Llama mod
Post by: rafter on July 25, 2008, 10:35:12 AM
So what's the good download link because I really want that mod. Btw I fixed the problem on my own.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on July 25, 2008, 11:00:16 AM
Quote from: mrselnombre on July 25, 2008, 08:13:53 AM
it does work on 1.1.5

Here is the error I get -- Everything works great, the llamas load and cruise my browser window, no errors in the admin log, and the llama log seems do be doing great..

But when you actually "catch" the llama, it loads a page that says, "Sorry you're too late, someone else has already caught this llama" or something like that.

So regardless of how many llamas you do in fact catch, your karma score is never altered. And in the llama log, it never says any are being caught by anyone....

I actually have a fresh 1.1.5 forum I just installed and am using as a theme testing platform, and it is 100% bone stock with no mods. This weekend I will try to give the llamas a go on it and will report back with my results.

I'll keep my fingers and toes crossed!

BigMike
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 25, 2008, 11:04:47 AM
Quote from: rafter on July 25, 2008, 10:35:12 AM
So what's the good download link because I really want that mod. Btw I fixed the problem on my own.

is no updated mod link m8.
Title: Re: [DONE] Magic Llama mod
Post by: nneonneo on July 25, 2008, 04:18:27 PM
I wish that the Llama would disappear when clicked, so that hitting "back" on browsers with a bfcache will not show the llama again (I've had to refresh the page to get rid of it about 5 times already today :( )
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on July 26, 2008, 04:37:49 AM
On my forum i see always 2 lama's.
1 stay still and the other rolls over the screen.
How can i fix this so it will work with 1.1.5???
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on July 26, 2008, 05:13:17 AM
That are the changing files:
Quote
<edit file>
index.php
</edit file>

<search for>
   // Load the current user's permissions.
   loadPermissions();
</search for>

<add after>
   // load a new Llama.
   if ($modSettings['freeLlamas'] == 1)
      loadLlamas();
</add after>

<search for>
      '.xml' => array('News.php', 'ShowXmlFeed'),
</search for>

<add after>
      'magicLlama' =>  array('Karma.php', 'magicLlama'),
</add after>

<search for>
      'jsoption' => array('Themes.php', 'SetJavaScript'),
</search for>

<add after>
      'Llamalog' => array('LlamaKeeper.php', 'Llamalog'),
</add after>

<edit file>
Sources/Load.php
</edit file>

<search for>
      'permissions' => array()
</search for>

<replace>
      'permissions' => array(),
      'goodllamas' => isset($user_settings['goodllamas']) ? $user_settings['goodllamas'] : '',
      'goodpoints' => isset($user_settings['goodpoints']) ? $user_settings['goodpoints'] : '',
      'badllamas' => isset($user_settings['badllamas']) ? $user_settings['badllamas'] : '',
      'badpoints' => isset($user_settings['badpoints']) ? $user_settings['badpoints'] : ''
</replace>

<search for>
         mem.birthdate, mem.memberIP, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,
</search for>

<add after>
         mem.badllamas, mem.goodllamas, mem.badpoints, mem.goodpoints,
</add after>

<search for>
      'karma' => array(
         'good' => &$profile['karmaGood'],
         'bad' => &$profile['karmaBad'],
         'allow' => !$user_info['is_guest'] && $user_info['posts'] >= $modSettings['karmaMinPosts'] && allowedTo('karma_edit') && !empty($modSettings['karmaMode']) && $ID_MEMBER != $user
      ),
</search for>

<add after>
      'llamamod' => array(
         'goodpoints' => &$profile['goodpoints'],
         'badpoints' => &$profile['badpoints'],
         'goodllamas' => &$profile['goodllamas'],
         'badllamas' => &$profile['badllamas'],
      ),
</add after>

<search for>
?>
</search for>

<add before>
// Create new Life for all SMF Boards!
function LoadLlamas ()
{
   global $context, $db_prefix, $modSettings;
   global $options, $settings, $user_info;

   // if the user has the Llamas turned off and you allow it, or the user is a guest give them a blank Llama
   if ((($modSettings['allowllamasoff'] == 1) && isset($options['hide_llama']) && ($options['hide_llama'] == 1)) || ($user_info['is_guest'] == 1))
   {
      $context['LlamaInfo']['Llamaid'] = '';
      return $context;
   }

   // Create a new Llama!
   $Llamaid = mt_rand(0, 15);

   $c = 0;
   $needle = rand(1, 100);

   // start rolling the dice!
   for ($i=0; $i<$modSettings['Llama_chances']; $i++)
   {
      // if the needle is found give them a Llama
      if ($needle == rand(1, 100))
      {
         $c = 1;
      }
   }

   // did we find you a Llama?
   if ($c != 0)
   {
      // setting the Llama type.
      $thisLlama = (int) rand(1, 2);

      // set the point value of this Llama
      $points = (int) rand($modSettings['Type'.$thisLlama.'_min_points'], $modSettings['Type'.$thisLlama.'_max_points']);

      // add him/her to the database.
      db_query("
         INSERT INTO {$db_prefix}llama_info
            (ID, Type, points, llama_id, member, Released, Caught)
         VALUES (NULL, $thisLlama, $points, '$Llamaid', NULL, " . time() . ", NULL)", __FILE__, __LINE__);

      // Freed Llamas to date.
      db_query("
         UPDATE {$db_prefix}settings
            SET value = value+1
         WHERE variable = 'FreedLlamas' LIMIT 1", __FILE__, __LINE__);

      // tag the Llama.
      $context['LlamaInfo']['Llamaid'] = $Llamaid;

   } else {

      // Sorry no Llama this time!
      $context['LlamaInfo']['Llamaid'] = '';
   }

   // a new baby Llama is Released to the world! or not! >:D
   return $context;
}

</add before>

<edit file>
Sources/Karma.php
</edit file>

<search for>
// What's this?  I dunno, what are you talking about?  Never seen this before, nope.  No siree.
</search for>

<add before>
// muhahahahahahahahaha, the Llama's have been set FREE!
function magicLlama()
{
   global $_REQUEST, $user_info, $modSettings, $db_prefix, $context;

   // NO GUESTS ALLOWED!
   if ($user_info['is_guest'])
      is_not_guest();

   // set your user id stored in $context array
   $userid = $context['user']['id'];

   // now lets see if we have a Llama by that name!?
   $request = db_query("
         SELECT *
         FROM {$db_prefix}llama_info
         WHERE llama_id = '$_REQUEST[magicLlama]'
         LIMIT 1", __FILE__, __LINE__);

   // most likely a script kiddy so we'll let the Llamas have at him!
   if (!$request || mysql_num_rows($request) == 0)
      fatal_error('Bad Llama id! >:(', true);

   $Llamainfo = mysql_fetch_assoc($request);
   mysql_free_result($request);

   // oops got here too late! ha...ha...!
   if ($Llamainfo['member'] != '')
   {
      $context['title'] = 'Sorry too late!';
      $context['display'] = $modSettings['lateLlama'];
   }
   else
   {
      // let's get your info in the database befor someone else get's the Llama!
      db_query("
         UPDATE {$db_prefix}llama_info
         SET member = $userid, Caught = " . time() . "
         WHERE llama_id = '$_REQUEST[magicLlama]'
         LIMIT 1", __FILE__, __LINE__);

      $field1 = ($Llamainfo['Type'] == 1) ? 'karmaGood' : 'karmaBad';
      $field2 = ($Llamainfo['Type'] == 1) ? 'goodpoints' : 'badpoints';
      $field3 = ($Llamainfo['Type'] == 1) ? 'goodllamas' : 'badllamas';

      // log the users points
      updateMemberData($userid, array(
               $field1 => $field1 . ' + ' . $Llamainfo['points'],
               $field2 => $field2 . ' + ' . $Llamainfo['points'],
               $field3 => $field3 . ' + 1',
            ));

      $context['title'] = 'You got a ' . $modSettings['Type' . $Llamainfo['Type']] . '!';
      $context['display'] = str_replace(
               array("%N", "%P", "%K"),
               array(
                  $modSettings['Type' . $Llamainfo['Type']],
                  (($Llamainfo['Type']==1) ? $Llamainfo['points'] : '-' . $Llamainfo['points']),
                  $modSettings['karmaLabel']),
               $modSettings['Type' . $Llamainfo['Type'] . '_discription']);
   }

   if (!isset($context['page_title']))
      $context['page_title'] = $context['title'];

   loadTemplate('MagicLlama');
   $context['sub_template'] = 'Llama_speak';

   unset($Llamainfo);
   obExit();
}
</add before>

<edit file>
Sources/ModSettings.php
</edit file>

<search for>
         array('text', 'karmaApplaudLabel'),
         array('text', 'karmaSmiteLabel'),
</search for>

<add after>
      array('heading', &$txt['lableLlamas']),
         array('check', 'freeLlamas', &$txt['enableLlamas']),
         array('check', 'showLlamaStats', &$txt['enableLlamastats']),
         array('check', 'allowllamasoff', &$txt['allowllamasoff']),
      array('rule'),
         array('int', 'Llama_chances', &$txt['LlamaChance']),
         array('text', 'Llama_image', &$txt['Llamaimage']),
         array('int', 'llamaW', &$txt['LlamaW']),
         array('int', 'llamaH', &$txt['LlamaH']),
         array('int', 'Llamaspeed', &$txt['Llamaspeed']),
      array('rule'),
         array('text', 'Type1', &$txt['lableLlama1']),
         array('text', 'Type1_min_points', &$txt['Llama1min']),
         array('text', 'Type1_max_points', &$txt['Llama1max']),
         array('text', 'Type1_discription', &$txt['Llama1discription']),
      array('rule'),
         array('text', 'Type2', &$txt['lableLlama2']),
         array('text', 'Type2_min_points', &$txt['Llama2min']),
         array('text', 'Type2_max_points', &$txt['Llama2max']),
         array('text', 'Type2_discription', &$txt['Llama2discription']),
      array('rule'),
         array('text', 'lateLlama', &$txt['lateLlama']),
</add after>

<edit file>
Sources/Subs.php
</edit file>

<search for>
      if (!empty($modSettings['modlog_enabled']))
         $context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
</search for>

<add after>
      $context['admin_areas']['maintenance']['areas']['view_Llama_log'] = '<a href="' . $scripturl . '?action=Llamalog">' . $txt['LlamaLog'] . '</a>';
</add after>

<edit file>
Themes/default/index.template.php
</edit file>

<search for>
   global $context, $settings, $options, $scripturl, $txt;
</search for>

<add after>
   global $modSettings, $user_info;
</add after>

<search for>
   echo '
   </div>
   </body></html>';
}
</search for>

<add before>
   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'];
      }

      echo '

      <script language="JavaScript" type="text/javascript">
         var llama_speed = ', (!empty($modSettings['Llamaspeed']) ? $modSettings['Llamaspeed'] : '40'), ';
      </script>
      <script language="JavaScript" type="text/javascript" src="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>
';
   }

</add before>

<edit file>
Sources/Profile.php
</edit file>

<search for>
      'karma' => array(
         'good' => empty($user_profile[$memID]['karmaGood']) ? '0' : $user_profile[$memID]['karmaGood'],
         'bad' => empty($user_profile[$memID]['karmaBad']) ? '0' : $user_profile[$memID]['karmaBad'],
      ),
</search for>

<add after>
      'llamamod' => array(
         'goodpoints' => empty($user_profile[$memID]['goodpoints']) ? '0' : $user_profile[$memID]['goodpoints'],
         'badpoints' => empty($user_profile[$memID]['badpoints']) ? '0' : $user_profile[$memID]['badpoints'],
         'goodllamas' => empty($user_profile[$memID]['goodllamas']) ? '0' : $user_profile[$memID]['goodllamas'],
         'badllamas' => empty($user_profile[$memID]['badllamas']) ? '0' : $user_profile[$memID]['badllamas'],
      ),
</add after>

<edit file>
Themes/default/Profile.template.php
</edit file>

<search for>
   elseif ($modSettings['karmaMode'] == '2')
      echo '
            <tr>
               <td>
                  <b>', $modSettings['karmaLabel'], ' </b>
               </td><td>
                  +', $context['member']['karma']['good'], '/-', $context['member']['karma']['bad'], '
               </td>
            </tr>';
</search for>

<add after>
   if ($modSettings['freeLlamas'] == '1' && $modSettings['showLlamaStats'] == '1')
      echo '
            <tr>
               <td>
                  <b>', $modSettings['karmaLabel'], ' from ', $modSettings['Type1'], ': </b>
               </td><td>
                  +', $context['member']['llamamod']['goodpoints'], '/ ', $modSettings['Type1'], ' Caught: ', $context['member']['llamamod']['goodllamas'], '
               </td>
            </tr><tr>
               <td>
                  <b>', $modSettings['karmaLabel'], ' from ', $modSettings['Type2'], ': </b>
               </td><td>
                  -', $context['member']['llamamod']['badpoints'], '/ ', $modSettings['Type2'], ' Caught: ', $context['member']['llamamod']['badllamas'], '
               </td>
            </tr>';

</add after>

<Search for>
                              <tr>
                                 <td colspan="2">
                                    <input type="hidden" name="default_options[show_board_desc]" value="0" />
                                    <label for="show_board_desc"><input type="checkbox" name="default_options[show_board_desc]" id="show_board_desc" value="1"', !empty($context['member']['options']['show_board_desc']) ? ' checked="checked"' : '', ' class="check" /> ', $txt[732], '</label>
                                 </td>
                              </tr><tr>
</Search for>

<Replace>
               ', ($modSettings['allowllamasoff'] ? '<tr>
                                 <td colspan="2">
                                    <input type="hidden" name="default_options[hide_llama]" value="0" />
                                    <label for="hide_llama"><input type="checkbox" name="default_options[hide_llama]"  id="hide_llama" value="1"' . (!empty($context['member']['options']['hide_llama']) ? ' checked="checked"' : '') . ' class="check" />' . $txt['llamaoption'] . '</td>
                              </tr>' : ''), '<tr>
                                 <td colspan="2">
                                    <input type="hidden" name="default_options[show_board_desc]" value="0" />
                                    <label for="show_board_desc"><input type="checkbox" name="default_options[show_board_desc]" id="show_board_desc" value="1"', !empty($context['member']['options']['show_board_desc']) ? ' checked="checked"' : '', ' class="check" /> ', $txt[732], '</label>
                                 </td>
                              </tr><tr>
</Replace>



<edit file>
Themes/default/Settings.template.php
</edit file>

<search for>
      array(
         'id' => 'show_board_desc',
         'label' => $txt[732],
         'default' => true,
      ),
</search for>

<add after>
      array(
         'id' => 'hide_llama',
         'label' => $txt['llamaoption'],
         'default' => true,
      ),
</add after>



It works with 1.1.5 but I have een few bugs.
Can someone check the code please and say why I see 2 lama's.
Title: Re: [DONE] Magic Llama mod
Post by: Sun11 on July 26, 2008, 07:55:11 AM
Quote from: toups on July 25, 2008, 09:52:31 AM
Quote from: rafter on July 25, 2008, 09:50:58 AM
Where's download?

Don't remember where I found it m8.. Here's the one I got though..
As stated above that's the problem I'm having with it.. no errors or anything but no llamas are ever freed for some reason :(
Thanks dude
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on July 26, 2008, 12:07:10 PM
You would think 380+ replies for this mod would warrant it's full development, yes?
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 26, 2008, 01:04:34 PM
Quote from: BigMike on July 26, 2008, 12:07:10 PM
You would think 380+ replies for this mod would warrant it's full development, yes?

we could wish.. yet it still doesn't work for me :\ all it needs is a good update by the mod maker & it would be dandy.
Title: Re: [DONE] Magic Llama mod
Post by: toups on July 29, 2008, 08:44:55 AM
Quote from: watchhorse on July 26, 2008, 04:37:49 AM
On my forum i see always 2 lama's.
1 stay still and the other rolls over the screen.
How can i fix this so it will work with 1.1.5???

Getting the same problem as you =\
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on July 29, 2008, 01:10:06 PM
Quote from: toups on July 29, 2008, 08:44:55 AM
Quote from: watchhorse on July 26, 2008, 04:37:49 AM
On my forum i see always 2 lama's.
1 stay still and the other rolls over the screen.
How can i fix this so it will work with 1.1.5???

Getting the same problem as you =\

Please, if you fix it will you let me know how you did it.
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on August 10, 2008, 11:53:58 PM
I have no idea what you are all talking about! lol

Without having to read through 20 pages, would someone have a link to see what this is?

Thank You :)
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 11, 2008, 09:49:06 AM
Quote from: watchhorse on July 29, 2008, 01:10:06 PM
Quote from: toups on July 29, 2008, 08:44:55 AM
Quote from: watchhorse on July 26, 2008, 04:37:49 AM
On my forum i see always 2 lama's.
1 stay still and the other rolls over the screen.
How can i fix this so it will work with 1.1.5???

Getting the same problem as you =\

Please, if you fix it will you let me know how you did it.

No person who know how to fix this problem???
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 13, 2008, 10:15:20 PM
I fixed it, works just fine on a test forum I set up, Llama goes by, clicked (multiple times) got good and evil llamas. Works on my live board, people like the llama.
Title: Re: [DONE] Magic Llama mod
Post by: toups on August 14, 2008, 07:38:43 AM
Quote from: Atomic Blaze on August 13, 2008, 10:15:20 PM
I fixed it, works just fine on a test forum I set up, Llama goes by, clicked (multiple times) got good and evil llamas. Works on my live board, people like the llama.

so... are you going to share how you fixed it.. or just tell everyone that you did  :-\
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on August 14, 2008, 11:18:23 AM
Quote from: Atomic Blaze on August 13, 2008, 10:15:20 PM
I fixed it, works just fine on a test forum I set up, Llama goes by, clicked (multiple times) got good and evil llamas. Works on my live board, people like the llama.

Don't be a tease, attach a working version!!
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 14, 2008, 11:49:21 AM
Quote from: BigMike on August 14, 2008, 11:18:23 AM
Quote from: Atomic Blaze on August 13, 2008, 10:15:20 PM
I fixed it, works just fine on a test forum I set up, Llama goes by, clicked (multiple times) got good and evil llamas. Works on my live board, people like the llama.

Don't be a tease, attach a working version!!

or just tell everyone how you fix it ... please
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 14, 2008, 02:10:47 PM
Works just fine on 1.1.5, might work on 1.1.4, if it breaks on 1.1.6)if there's going to be one) I'll fix it again.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on August 14, 2008, 02:19:06 PM
Quote from: Atomic Blaze on August 14, 2008, 02:10:47 PM
Works just fine on 1.1.5

I won't be able to verify this until tonight. If someone else has, then please post up!
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 14, 2008, 03:30:37 PM
I can, I have, installed on a test board, just fine, installed on a live production site with other mods, regular activity, installed just fine no errors.
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 14, 2008, 04:18:24 PM
The mod works ...... But I still see 2 Lama's. >:(
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on August 14, 2008, 04:24:08 PM
:(
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 14, 2008, 08:23:07 PM
Quote from: watchhorse on August 14, 2008, 04:18:24 PM
The mod works ...... But I still see 2 Lama's. >:(
can you link me to the problem, if you installed it manually you might have done something wrong.
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 15, 2008, 05:49:49 AM
I use 2 templates, the default and Babylon.
In the Babylon i have to installed it manually (just the Index.template.php)

There is always 1 who scrolling over the screen and 1 who just stay still. :-\

Do you want to see a file???
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 15, 2008, 09:50:21 AM
I haven't tested the babylon theme, I can add that in if you need it badly. (And I think there are two files for babylon you have to edit)
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 15, 2008, 10:14:33 AM
Can you give the place where I can put this???

<edit file>
Themes/default/Settings.template.php
</edit file>

<search for>
array(
'id' => 'show_board_desc',
'label' => $txt[732],
'default' => true,
),
</search for>

<add after>
array(
'id' => 'hide_llama',
'label' => $txt['llamaoption'],
'default' => true,
),
</add after>


Because in Themes/Babylon/Settings.template.php there is now
array(
'id' => 'show_board_desc',
'label' => $txt[732],
'default' => true,
),
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 15, 2008, 05:59:56 PM
let me put this in the language I learned to edit PHP files...

------[ OPEN ]------
Themes/default/Settings.template.php

------[ FIND ]-----
      array(
         'id' => 'show_board_desc',
         'label' => $txt[732],
         'default' => true,
      ),

-----[ ADD AFTER ]-----
      array(
         'id' => 'hide_llama',
         'label' => $txt['llamaoption'],
         'default' => true,
      ),

-----[ EOM/SAVE AND CLOSE FILE ]-----
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on August 15, 2008, 06:16:25 PM
@ watchhorse

Go into your babylon theme, and find this code in your Settings.template.php
It should be at the top
      array(
         'id' => 'show_board_desc',
         'label' => $txt[732],
         'default' => true,
      ),


After that code, add this
      array(
         'id' => 'hide_llama',
         'label' => $txt['llamaoption'],
         'default' => true,
      ),


Good luck :)
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 16, 2008, 12:52:40 AM
I'm trying to update it to work on 2.0 b3.1, any feature requests?
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 16, 2008, 05:50:37 AM
Quote from: Sabre™ on August 15, 2008, 06:16:25 PM
@ watchhorse

Go into your babylon theme, and find this code in your Settings.template.php
It should be at the top
      array(
         'id' => 'show_board_desc',
         'label' => $txt[732],
         'default' => true,
      ),


After that code, add this
      array(
         'id' => 'hide_llama',
         'label' => $txt['llamaoption'],
         'default' => true,
      ),


Good luck :)

All done  ... and I see 2 lama's :-[
Why does he call 2 lama's en why is there 1 who's scrolling and 1 who's stay still???
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on August 16, 2008, 09:36:14 PM
I dont know buddy, I dont use this mod.
After reading a few posts here, youre not the only thats happening to.
Someone may figure out whats wrong, but Im not going to put it on my site, as I dont even know what this is!~ lol
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 16, 2008, 09:50:56 PM
I'll check Babylon out and see if there's anything wrong that would make it do that.
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 16, 2008, 10:46:56 PM
Quote from: watchhorse on August 16, 2008, 05:50:37 AM
Quote from: Sabre™ on August 15, 2008, 06:16:25 PM
@ watchhorse

Go into your babylon theme, and find this code in your Settings.template.php
It should be at the top

      array(
         'id' => 'show_board_desc',
         'label' => $txt[732],
         'default' => true,
      ),


After that code, add this
      array(
         'id' => 'hide_llama',
         'label' => $txt['llamaoption'],
         'default' => true,
      ),


Good luck :)

All done  ... and I see 2 lama's :-[
Why does he call 2 lama's en why is there 1 who's scrolling and 1 who's stay still???

I think I found your problem, it's in $boarddir/index.php you messed up, not the template.

Open index.php

Find
// load a new Llama.
if ($modSettings['freeLlamas'] == 1)
loadLlamas();


If you find it twice remove one.
Title: Re: [DONE] Magic Llama mod
Post by: [unplugged] on August 17, 2008, 02:27:21 AM
Why would I be getting:

An Error Has Occurred!
Bad Llama id! >: (


I think I fixed that. Now it says:
An Error Has Occurred!
Wrong value type sent to the database. Integer expected.


every time I click on a llama?
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 17, 2008, 10:23:24 AM
Quote from: Atomic Blaze on August 16, 2008, 10:46:56 PM
I think I found your problem, it's in $boarddir/index.php you messed up, not the template.

Open index.php

Find
// load a new Llama.
if ($modSettings['freeLlamas'] == 1)
loadLlamas();


If you find it twice remove one.

There was just one. :-\

I use 2 template and that can be the problem.
I think he loads 1 lama for the 2 templates = 2 lama's
But how can i fix this???
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 17, 2008, 11:52:40 AM
What browser are you using, maybe it's a compatibility issue.
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 17, 2008, 04:41:40 PM
Quote from: SunKing on August 17, 2008, 02:27:21 AM
Why would I be getting:

An Error Has Occurred!
Bad Llama id! >: (


I think I fixed that. Now it says:
An Error Has Occurred!
Wrong value type sent to the database. Integer expected.


every time I click on a llama?

What did you change?
Title: Re: [DONE] Magic Llama mod
Post by: [unplugged] on August 17, 2008, 04:47:08 PM
All I changed was the instances of KarmaGood and KarmaBad to karma_good and karma_bad to work with my database table names. Everything is working, and I can see the llama moving all about the site, but when I click on it, it doesn't submit the points to karma.
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 18, 2008, 01:45:47 AM
karmaGood and karmaBad are variables that take the place of the table names, shouldn't be changed.
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 20, 2008, 08:30:45 AM
Can someone show me his "index.template.php".(default or babylon)
So i can see where i have to put this (several times):
<search for>
global $context, $settings, $options, $scripturl, $txt;
</search for>

<add after>
global $modSettings, $user_info;
</add after>


please...
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 20, 2008, 06:22:04 PM
There are no edits in index.template.php, I've checked.
Title: Re: [DONE] Magic Llama mod
Post by: watchhorse on August 22, 2008, 05:28:49 AM
Quote from: Atomic Blaze on August 20, 2008, 06:22:04 PM
There are no edits in index.template.php, I've checked.

Ahum ......

Quote<edit file>
Themes/default/index.template.php
</edit file>

<search for>
   global $context, $settings, $options, $scripturl, $txt;
</search for>

<add after>
   global $modSettings, $user_info;
</add after>
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on August 22, 2008, 04:09:05 PM
you must be using the one made for 1.0 RC2, I updated the RC3+ version, there are no index.template.php edits in the one I updated.
Title: Re: [DONE] Magic Llama mod
Post by: oktosoma on December 16, 2008, 08:25:53 PM
is it work for 1.1.7 ?
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on December 16, 2008, 08:27:41 PM
I haven't tested it on 1.1.7, but it should.
Title: Re: [DONE] Magic Llama mod
Post by: MrMike on December 18, 2008, 09:01:37 AM
I've looked in vain for some explanation as to what this mod is or does. It sounds interesting, but damn if I can tell what it actually is. All I can tell is that it has something to do with llamas. Can someone provide a simple, succinct explanation of what it does and why I might want to install it?
Title: Re: [DONE] Magic Llama mod
Post by: Marcus Forsberg on December 18, 2008, 09:03:30 AM
I think it makes a llama fly around the page at random moments. If you manage to click it, you have a point.
Title: Re: [DONE] Magic Llama mod
Post by: MrMike on December 18, 2008, 10:04:26 AM
Quote from: Nascar on December 18, 2008, 09:03:30 AMI think it makes a llama fly around the page at random moments. If you manage to click it, you have a point.
No, seriously, what does it do?        lol
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on December 18, 2008, 11:13:19 AM
he is serious :D
Title: Re: [DONE] Magic Llama mod
Post by: Gwydion Frost on December 18, 2008, 11:13:37 AM
Yeah, seriously, that's what it does.

It's a random event generator, with the event being defined as displaying and randomly moving a small gif [default is a llama, but you can make it anything you want to by replacing the image with your own] around on the screen that you must click. You can make it common, or extremely rare in occurance.

If you are the first person to click on it, it adds points to your karma [set by the admin, can be a certain number, or a number in a range] or, if you enable it, deducts points from your karma. If you aren't, it informs you that you are too slow, and someone else beat you to it.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on December 18, 2008, 01:30:58 PM
Quote from: MrMike on December 18, 2008, 10:04:26 AM
Quote from: Nascar on December 18, 2008, 09:03:30 AMI think it makes a llama fly around the page at random moments. If you manage to click it, you have a point.
No, seriously, what does it do?        lol


LOL!!
Title: Re: [DONE] Magic Llama mod
Post by: MrMike on December 19, 2008, 08:19:56 AM
Quote from: Gwydion Frost on December 18, 2008, 11:13:37 AMIt's a random event generator, with the event being defined as displaying and randomly moving a small gif [default is a llama, but you can make it anything you want to by replacing the image with your own] around on the screen that you must click. You can make it common, or extremely rare in occurance.
I know. :) Actually, my "No, seriously..." post was a joke. I just couldn't resist replying that way (lol), and I had sent a PM to Nascar before I posted explaining that.

It sounds like a fun mod and I'm half tempted to try it.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on December 19, 2008, 10:28:29 AM
Quote from: MrMike on December 19, 2008, 08:19:56 AM
It sounds like a fun mod and I'm half tempted to try it.

A warning first, before you try this mod, you better be serious about keeping it or your users will have a mutiny aND H4CK3R5 W1lL d35+R0y J00r f0RUm demanding you reinstall the Magic Llama mod if you ever remove it.

You've been warned ;) This mod could be renamed "Immediate Cult Following Mod" and have the same affect.

Since disabling this mod due to compatibility issues, my users have posted more than 400 posts asking about it, wondering where they are, requesting I bring them back. It's crazy

BigMike
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on December 19, 2008, 03:53:17 PM
its popular on mine too, we only run it at christmas and other hols, changing the image and txt accordingly.

i'd hate it to break.
Title: Re: [DONE] Magic Llama mod
Post by: [unplugged] on December 19, 2008, 05:18:07 PM
I'm still waiting for the SMF 2.0 Beta 4 compatible version.  :P
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on December 19, 2008, 05:21:32 PM
On one of my forums, I have the image at 40x40, and speed at 2.
It's hilarious reading how long some peeps take to catch it lol
My image is also a ninja, as it is on a martial arts board.

Good fun :)
Title: Re: [DONE] Magic Llama mod
Post by: [unplugged] on December 19, 2008, 05:23:39 PM
Oh just rub it in my face why don't you.... >:(

;D
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on December 19, 2008, 05:26:16 PM
lol
Im sure one of you guys will work out the particulars to get this functioning for smf2.
I havent even installed a board higher than 1.1.7, as I see no rush, and I'd prefer to wait for the final product ;)

Good to see you back bud, you were mia for a bit.
Title: Re: [DONE] Magic Llama mod
Post by: MrMike on December 19, 2008, 10:51:21 PM
Okay, I'm intrigued enough to give it a shot. I looked through this thread but all of the download links I found were obsolete. I searched the SMF Mod Site for "llama" but found nothing. So, where do I download the code?
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on December 20, 2008, 12:21:27 AM
It is attached to one of Atomic Blazes posts a few pages back.
He has only 24 posts, so it shouldnt be too hard to locate
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on December 20, 2008, 12:35:24 AM
Quote from: MrMike on December 19, 2008, 10:51:21 PM
Okay, I'm intrigued enough to give it a shot. I looked through this thread but all of the download links I found were obsolete. I searched the SMF Mod Site for "llama" but found nothing. So, where do I download the code?

X2. I haven't had this mod work since probably 1.1.2 so I had to remove it due to errors.

People have stated it is working for 1.1.7, so I too would like to see a reply here with the exact 1.1.7-compatible all-in-one zip file.

Thanks,
Mike
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on December 20, 2008, 12:50:17 AM
Quote from: Sabre™ on December 20, 2008, 12:21:27 AM
It is attached to one of Atomic Blazes posts a few pages back.
He has only 24 posts, so it shouldnt be too hard to locate

What exactly isnt working?
Did it stop after adding another mod?
Have you considered it may be a  .js  conflict?
Have you tried the package Atomic Blaze attached?

Ive just installed his version on a test forum, and it works as advertised.
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on December 22, 2008, 01:29:50 AM
Quote from: SunKing on December 19, 2008, 05:18:07 PM
I'm still waiting for the SMF 2.0 Beta 4 compatible version.  :P

So am I, I need to find some time in the next two weeks to update it
Title: Re: [DONE] Magic Llama mod
Post by: [unplugged] on December 22, 2008, 06:08:55 PM
I  tried converting it unsuccessfully..... >:(
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on December 22, 2008, 06:17:02 PM
I almost had it at one point, but I lost the copy I was working on, I've actually gotten most of the install done, working on the db script now.
Title: Re: [DONE] Magic Llama mod
Post by: _Anthony_ on January 25, 2009, 05:54:07 PM
Does anyone know what you would need to edit to get a working version for 2.0 beta 4?
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on May 28, 2009, 01:08:29 PM
OK GUYS!!!!

I ****FINALLY*** got around to checking out the updated file for SMF 1.1.5 found on Page 20 Reply #395 (http://www.simplemachines.org/community/index.php?topic=8774.msg1660762#msg1660762)

and and and............ IT WORKS ON SMF 1.1.9!!!!!!!!!!!!!!!!!!!!!!!!!!

This is one of the happiest days of my life!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thank you Atomic Blaze!!!!

Their is an extra file, "llamas_db.php", which is not needed so don't bother running it. Just install everything else as you normally would and I just verified that it works on my 1.1.9 heavily modified SMF!!!!


TIME TO PARTY!!! DRINKS ON ME!!!
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 03, 2009, 05:32:44 PM
Alright guys-

I've got a problem :D

As excited as I am -- and believe me I am excited to have this working -- I have come across a problem.

For some reason only the first 10 or 15 Llamas are being captured. Any successive Llama that is released into the wild is simply added to the Llama Log and any additional Llamas that are actually indeed captured, simply state that the user is too late; they have already been caught by another member.

So for instance, right now, I have 858 Llamas in my Llama Log, and of these, only numbers 1, 2, 3, 4, 8, 9, 14, 19, 21, 26, 28, 30, 32, and 47 have actually been caught. The other remaining 844 Llamas are not being caught. And just today I have seen about 5 Llamas and each time I catch them, they just inform me that they've already been caught.

So is there some code that is limiting which Llamas are currently being released? Like only the first 15 Llamas are monitored and all the rest slip through and are lost in time?

Does anyone else have this problem? I get around 35,000 page views per day so my Llama log quickly reaches 1,000+ of uncaught Llamas, so I often have to "Remove all Llamas" about once every two days.

Technically speaking, until I in fact do remove all Llamas, no one is even able to capture one because they all say they've "been captured".

Thanks
Mike
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 08, 2009, 04:38:39 PM
I spent some time over the weekend looking at all the code and I still can't figure this out.

Is this problem occurring for anyone else? :(
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 17, 2009, 04:32:18 PM
Quote from: BigMike on June 08, 2009, 04:38:39 PM
I spent some time over the weekend looking at all the code and I still can't figure this out.

Is this problem occurring for anyone else? :(

Anyone? I totally give up :(
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 23, 2009, 11:38:21 AM
Ok, I have disabled the Llamas because they do NOT work.



DANG this mod will NEVER work. I am sick and tired of getting my hopes up time and time and time again ALL FOR NOTHING.


Sad,
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on June 24, 2009, 04:04:23 AM
Works perfect for me.
If you do a search of the forum, you'd find one slightly edited from another member.
I tried that one aswell, and it works flawlessly.
Try [HERE] (http://www.simplemachines.org/community/index.php?topic=319477.msg2123606#msg2123606) anyways.
But I dont want to get your hopes up ;)
Good luck
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on June 24, 2009, 04:49:24 PM
Thanks for the tip Sabre™!

I found a problem with my Shout Box and I posted it to the linked thread.

Mike
Title: Re: [DONE] Magic Llama mod
Post by: Sabre™ on June 24, 2009, 10:08:22 PM
Oh ok..  well glad youve got it sorted out mate :)
I installed my old version on a new test board, and encountered a slight code alteration(probably due to my extensive tinkering ;) ) but that linked version installed without problems.
It may be exactly the same, but it may also be worth testing on your board :)

Either way, good luck :)
Title: Re: [DONE] Magic Llama mod
Post by: FireDitto on October 14, 2010, 06:13:03 PM
Is there an RC3 version of this mod anywhere?
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on March 29, 2011, 07:50:36 AM
It doesn't look like it.
We love it over at my place. We use it at christmas, easter and so on.
i think it is a sacrifice we will have to make if we upgrade to 2.gold when it is released... :(
Title: Re: [DONE] Magic Llama mod
Post by: kat on March 29, 2011, 08:12:05 AM
What about a post in "Mod Requests"?

http://www.simplemachines.org/community/index.php?board=79.0
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on March 29, 2011, 08:22:15 AM
Been requested many times in the past.
Title: Re: [DONE] Magic Llama mod
Post by: kat on March 29, 2011, 08:26:43 AM
Let me ask a few people I know. ;)
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on March 29, 2011, 02:32:24 PM
Nearly 500 replies for this should be enough to prove its stripes.

BigMike
Title: Re: [DONE] Magic Llama mod
Post by: kat on March 29, 2011, 02:38:27 PM
Getting the stripes might not be enough inspiration, though.

I know, from experience, that providing support for a mod can get quite annoying.

It's your mod, so you're expected to provide support for it, yourself.

That can get really time-consuming and bloody annoying, at times, I have to confess.
Title: Re: [DONE] Magic Llama mod
Post by: FireDitto on March 29, 2011, 10:40:46 PM
It's a pity it's not 2x friendly. I'd really love to install it on my site =|
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on May 11, 2011, 12:58:05 AM
I will buy a nice coffee for whoever gets this mod back alive! :D
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on May 11, 2011, 02:07:29 AM
i'll pay for the cookie!!
Title: Re: [DONE] Magic Llama mod
Post by: kat on May 11, 2011, 07:03:09 AM
She would, too. ;)

Hiya, Lissy!
Title: Re: [DONE] Magic Llama mod
Post by: FireDitto on May 25, 2011, 07:04:51 AM
Lol, you guys are great =)
Title: Re: [DONE] Magic Llama mod
Post by: mrselnombre on May 25, 2011, 08:59:07 AM
i'll extend the cookie offer to a bacon sandwich? or a burger of your choice?
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on April 16, 2012, 03:45:11 AM
Another year goes by........ No Llamas have been freed into the world :'(
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on April 18, 2012, 10:01:44 PM
I have it working on 1.1.16, still working out a few kinks in 2.0.2.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on August 01, 2012, 01:54:22 PM
Quote from: Atomic Blaze on April 18, 2012, 10:01:44 PM
I have it working on 1.1.16, still working out a few kinks in 2.0.2.

Atomic Blaze: Any update on the 2.x port? Many thanks!!
Title: Re: [DONE] Magic Llama mod
Post by: FireDitto on August 02, 2012, 04:25:13 AM
Oooh, that would be so much amazing!
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on August 02, 2012, 02:46:30 PM
(http://ic2.pbase.com/o6/93/329493/1/100957208.hpyly9T0.PeruJun083273.jpg)

"We want to be part of SMF 2.x"

(http://i1092.photobucket.com/albums/i420/JanF-blog/PWB%20Peeps%20Holidays/llamaherd.jpg)
Title: Re: [DONE] Magic Llama mod
Post by: FireDitto on March 03, 2013, 12:35:54 AM
Giving this another friendly bump!

Would love to see the llama's again. This was such a fun Mod <3
Title: Re: [DONE] Magic Llama mod
Post by: Suki on March 03, 2013, 08:38:26 AM
What exactly the mod does? The first topic doesn't say much, is some kind of BBC?
Title: Re: [DONE] Magic Llama mod
Post by: Yağız... on March 03, 2013, 09:13:02 AM
Quote from: Suki on March 03, 2013, 08:38:26 AM
What exactly the mod does? The first topic doesn't say much, is some kind of BBC?
www.simplemachines.org/community/index.php?topic=251474.0
Title: Re: [DONE] Magic Llama mod
Post by: Suki on March 03, 2013, 08:01:58 PM
Can somebody please explain what exactly this mod does, I'm interested solely because it has llama on it but if it turns out to be a accountant software then I pass.
Title: Re: [DONE] Magic Llama mod
Post by: Arantor on March 03, 2013, 08:03:44 PM
It sends a llama round the screen, catch it and it boosts your karma.
Title: Re: [DONE] Magic Llama mod
Post by: BigMike on March 03, 2013, 10:18:29 PM
Hey guys,

I have learned a great deal more about PHP, SQL, and Javascript since I first starting using this mod and if I get caught up with work this week I might give it a stab at updating it to SMF 2.x.

I'll keep this updated come the weekend-

Thanks
BigMike
Title: Re: [DONE] Magic Llama mod
Post by: Aquilo on October 24, 2014, 07:48:13 AM
10 year's later I return!!!! where's the Llama's? lol
Title: Re: [DONE] Magic Llama mod
Post by: Atomic Blaze on October 27, 2014, 08:27:18 AM
I rewrote it for 2.0.x here (http://www.simplemachines.org/community/index.php?topic=519895.0)