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¤cy_code=usd)! it is not necessary but I'm posting it just in case! ;D
My mod is better. And anyway, that won't work... but I'm not telling why.... :P.
-[Unknown]
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
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!
HA... HA...
Found it I forgot moveobj.js and global $modSettings; in index.template.php! :P fixed!
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?
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!
YES Finally someone does
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!
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
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
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!
Thats my problem how do you use BoardMod to Upload it is there someone tutorial :'(
Nice one Aquilo but your zip file is corrupted ::)
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.
Yup now it's working thanks......... BTW can i name your mod magic wingedbull in my forum that if you don't mind?
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??
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!
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!
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!
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.
And also where do you upload the MODED files but i keep getting errors
here is an screen shot to where to put your files
http://www.xtram.net/banners/mod_dir.gif
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
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
just remember to backup your forum befor modding it!
Oh um i have two test forum so i dont touch my main
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
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>
Im still getting errors heres a image
(http://www.abhosting.uni.cc/untitled.JPG)
Yess never mind i got it installed now i just got to uplaod the fiiles back to ftp thanks Aquilo
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!!!
You only get errors when you login so register OK
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
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"
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
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!
Once you help me will you update all the files and have them for download Again
the files should be all up to date, but yes I'm goin to go over them again.
Hey that messed up my froum so now what do i do
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!
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 :)
Oh crap, someone didn't kill this cult.
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
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;
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 ::)
we need a post police version :P
another bug ::) my karma in my profile page is +29/-15 and in message display is +29/-
some thing is wrong ?
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.
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.
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.
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
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.
Thank you thats all i wanted to know i Appreciate it :)
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
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.
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
See, I told you my mod was better. It is cross browser.
-[Unknown]
Can you make a Llama mode for me or everyone id be happy :) Becasue yours is the best [Unkown]
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 :)
hehe they look like they are having a ball too! :D
I'm working on geting it to work in FireFox.
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
ok homie let be find boardmod again and see if what step 10 is and see what's wrong.
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.
OK give me a minute ill try that
Ill try tomorrow i got to sleep
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 ;)
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
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
okay, theres a lot of talk about the llamas. What the heck is it? Can I see it somewhere?
::)
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)!
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.
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!
Ill just wait till you finish then ill try installing the llama mod OK :)
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.
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.
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?
Good job Aquilo i'm gonna install the new update and i will post any bugs i see.
Thanks for the new update :)
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.
ok where is a working version of this :P
Thats why i Wish [Unkown] could Please release the Magic Llama Mod That he made But Auqilo is got good one to
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
@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
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!
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
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;
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
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!
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
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
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
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!
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
OK good thanks for registering at my forum Aquilo now can you help me i right now am about to install Update 3
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
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?
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!?
OK ill re download it Upgrade 0.3
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 ::)
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
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
Set what settings for Llamas to appear
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!
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
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".
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
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
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
01001101 01100101 I found the template error also!
rename Llama.template.php to llama.template.php notice the L's
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
check index.php and load.php those where wear that error where coming from for homie, check that the mod is correct!
Thanks Aquilo your llama mod rocks now :)
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)
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
My moveobj.js is still better.
-[Unknown]
Quote from: [Unknown] on April 06, 2004, 10:15:10 AM
My moveobj.js is still better.
-[Unknown]
How much $ ;D
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]
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. ::)
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?
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!
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. ::)
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!
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. ::)
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
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]
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
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>
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]
Is there an actual full WORKING version of this with all these bugs fixed?
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!
YAAAAAAAAAa YOU RocK Aquilo The Llama Master :)
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?
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 :)
ok! :D
Remember to tell us when you finish all that Thanks :)
Regards
Homie
OK it's done! the link is atop the first post of this thread!
Perhaps another color for the text ?
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!!!
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
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>
Quotethe only way I can reproduce this error is to comment out the whole function in karma.php
yes thanks that fixed :)
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
???
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)
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
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
I SAID LLAMAS NOT YAKS!! WHO CARES ABOUT STUPID YAKS!!!!
WE WANT WORKING LLAMA MOD WITH NONE OF THE ABOVE BUGS!!
It works well on my board
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
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?
Only bug I find is the one mentioned about your Llama stats showing up in other peoples profiles.
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...
It just takes too much work to rename a gif!! Ya know?!?!
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.
*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
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!
It works fine on my site
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.
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
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
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.
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
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
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.
Interesting I had to redeclare global $modSettings, $user_info;
before the:
if (($modSettings['freeLlamas'] == 1) && ($user_info['is_guest'] != 1) && ($context['LlamaInfo']['Llamaid'] != ''))
I'm realllllly tempted to install this, but am currently resisting the urge.
Well, I'm still struggling with the Karma +/- Good Evil points showing up in the profile.
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!!
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!!
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?
"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?
Hi Aquilo
Any chance converting this mod to beta6 for charter members ?
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!
Beta 6 isn't going to be public, the next public release will be RC1 ... afaik ;D
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 ;)
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
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 ?
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.
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
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 :).
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?
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)
How about the "Undefined index: llamaoption" and "Undefined variable: modSettings"?
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!
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.
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
Works nice thanks :)
Thank you! :)
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!
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
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!!
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!
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!
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!
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
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>
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?
Thanks again Senkusha :)
Just so everyone knows, this works perfectly with RC2
/me unleashes the llamas on his test board
Works on 1.0 (preview) as well
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?
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
Is it safe to use v.0.8 on the final ?!
Which version is being used on this board ??
Unknown made his own :P, and this does work on SMF1.0 as far as I know ;)
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 ?
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.
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?
I get it on Opera but not on IE. What browser you using?
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()
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.
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.
?
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....
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 ???
Implemented this for the Karma, but now for the "caught Llama's" ??? ;)
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" />' : ' ', '</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" />' : ' ', '</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 :)
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 :-\
Oops,
I had to change
if( $modSettings['llamaMode'] == 0 )
into
if( $modSettings['KarmaMode'] == 0 )
because the errorlog was growing ;)
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 :-\
No, sorry. I'm only using it in the default......
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 ;))
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?
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
Thanks EG. It was there but had a typo in it (glad ya pointed it out). Looks to be working now. ;D
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
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
I have now solved my errormessage. I had to run create_llama_db.php again - then the errormessage was gone :)
/MR.T
If anybody has gotten this to work right, it might be a good idea to turn this into a mod package, right?
I sometimes get this in the errorlog:
Bad Llama id! >:(
What's that?
/MR.T
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.
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?
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 :-\
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
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
so what is the status with this one? on? off? fixed install? needs manual edit after install?
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]
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? ;)
I've asked [Unknown] the same thing. I hope he will reconsider his 'no' answer.
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)...
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
Has anyone got this has a 'package'?
works lovely in 1.0.3 :D
My members love it!
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" />' : ' ', '</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" />' : ' ', '</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 :)
I would pay to have this mod up and working... I've tried coding in what is listed here, but it just aint working...
This, by far, has got to be the most...unique mod I've ever seen on SMF :P.
-Dan The Man
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
true that would be a great help ;)
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?
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.
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!
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
Please :( I really need this mod
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);
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!!
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)
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();
}
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))
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
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.
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
I get blank screen when i want to view in admin page
and how d i enable this?
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
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
I cant even access your page - it gives a load error
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
Well anyone know how i can fix it? the image doesnt show when i enable the "mod"
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
try to empty llama_info table
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 :)
i give up
ill have to wait for the final package which does everything for ya
i cant get it to work
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/
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
Thats the wierd thing, i did the mod but it doesnt show up.
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.
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.
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)
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
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)
Guys, Anyone's having a working link for this mod ?
all links posted aren't working
thx :D
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 :)
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)
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.
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)
Bump :)
I'm going to take a look at it and update it.
woohooo, great news
YOU ARE THE MAN!!! :)
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.
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
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.
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.
Thanks so very much!
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)
Ok I updated the Mod so it would install properly, now I updating the update database scripts.
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.
MegaTinkerCoder send me the file and I'll upload it.
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
It didnt work :'(
Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
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.
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!!
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"
There will be some other quirks you will find them out later. Good luck. ;)
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 ?
I dont think so.
Here you go.
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
wow out for 1.1 ?:D man ur the best Jay!
thanks so much!!
Hehe, tnx :D
This can be fun !
You an change the lama picture right ? (If I rememeber)
Is this going to be available in the mod library or just here?
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..
how can i modify the sql code so it is off by default, in the members profiles?
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
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
:'(
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 ?
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
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. :-\
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.
any news on when the mod runing on SMF will be released please?
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!
sigh...i guess ill never get this mod working for me on my live site
thanks for the info though :D
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
Is it possible to let the users see the llama log?
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?
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)
My llamas are not moving, but otherwise it is working fine. Any idea why?
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
After install all is see is a "View Llama Log"!
Does it automaticly release the lama??
Is there an admin area for options?
in features & settings under Karma is all the settings stuff
Nice!!
Thanks..
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 :)
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
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.
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??)
Snowmen only eat naughty children
Snow men only eat yellow snow!
Duh!
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.
ur lucky it works for u, for me its kaput!
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)
for themes other than default u have to carry out manual modifications to the files
Thougth so. Just need to find out what exactly needs to be done in the thema :)
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?
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? :)
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?
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...
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
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 :(
its a magic mod - it works for some for others not lol
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... :(
What are the odds of someone being able to update this to 1.1.1?
it works on 1.1.1, i use it
Anyone know where I can download this from?
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:
yup. no problem
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
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..........
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?
it does work on 1.1.4 but mine was installed before i patched up to that
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
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.
WOW, I am stoked. Sounds great!
any llamas works on 1.1.5 ? tx
<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...
here can download..
Can you update it to work on 1.1.5?
Quote from: Enders on July 25, 2008, 03:38:41 AM
Can you update it to work on 1.1.5?
X11-bazillion
it does work on 1.1.5
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?
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.
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.
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.
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)
Where's download?
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 for the download.
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
My forum is broken now..
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?
This:
Fatal error: Call to undefined function: loadllamas() in /home/sites/rune-works.net/public_html/forum/index.php on line 168
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..
So what's the good download link because I really want that mod. Btw I fixed the problem on my own.
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
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.
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 :( )
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???
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.
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
You would think 380+ replies for this mod would warrant it's full development, yes?
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.
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 =\
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.
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 :)
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???
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.
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 :-\
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!!
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
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.
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!
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.
The mod works ...... But I still see 2 Lama's. >:(
:(
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.
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???
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)
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,
),
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 ]-----
@ 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 :)
I'm trying to update it to work on 2.0 b3.1, any feature requests?
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 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
I'll check Babylon out and see if there's anything wrong that would make it do that.
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.
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?
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???
What browser are you using, maybe it's a compatibility issue.
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?
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.
karmaGood and karmaBad are variables that take the place of the table names, shouldn't be changed.
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...
There are no edits in index.template.php, I've checked.
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>
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.
is it work for 1.1.7 ?
I haven't tested it on 1.1.7, but it should.
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?
I think it makes a llama fly around the page at random moments. If you manage to click it, you have a point.
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
he is serious :D
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.
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!!
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.
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
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.
I'm still waiting for the SMF 2.0 Beta 4 compatible version. :P
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 :)
Oh just rub it in my face why don't you.... >:(
;D
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.
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?
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
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
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.
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
I tried converting it unsuccessfully..... >:(
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.
Does anyone know what you would need to edit to get a working version for 2.0 beta 4?
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!!!
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
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? :(
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 :(
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
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
Thanks for the tip Sabre™!
I found a problem with my Shout Box and I posted it to the linked thread.
Mike
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 :)
Is there an RC3 version of this mod anywhere?
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... :(
What about a post in "Mod Requests"?
http://www.simplemachines.org/community/index.php?board=79.0
Been requested many times in the past.
Let me ask a few people I know. ;)
Nearly 500 replies for this should be enough to prove its stripes.
BigMike
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.
It's a pity it's not 2x friendly. I'd really love to install it on my site =|
I will buy a nice coffee for whoever gets this mod back alive! :D
i'll pay for the cookie!!
She would, too. ;)
Hiya, Lissy!
Lol, you guys are great =)
i'll extend the cookie offer to a bacon sandwich? or a burger of your choice?
Another year goes by........ No Llamas have been freed into the world :'(
I have it working on 1.1.16, still working out a few kinks in 2.0.2.
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!!
Oooh, that would be so much amazing!
(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)
Giving this another friendly bump!
Would love to see the llama's again. This was such a fun Mod <3
What exactly the mod does? The first topic doesn't say much, is some kind of BBC?
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
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.
It sends a llama round the screen, catch it and it boosts your karma.
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
10 year's later I return!!!! where's the Llama's? lol
I rewrote it for 2.0.x here (http://www.simplemachines.org/community/index.php?topic=519895.0)