TinyPortal

General => Chit chat => Topic started by: akulion on September 16, 2006, 10:39:05 AM

Title: My second mod [waiting approval]
Post by: akulion on September 16, 2006, 10:39:05 AM
:D

My second mod (http://mods.simplemachines.org/index.php?mod=471)

I was hoping to put the mood bears into the post template itself but I couldnt figure it out...

anyone wana give me some guidelines so i could attempt it?
thanks
Title: Re: My second mod [waiting approval]
Post by: alan s on September 16, 2006, 11:30:35 AM
I like it akulion. I could probably help you out with the post template bit if you could tell me exactly what you wanted to do.

Also I'd say your mod is also compatible with RC3 because nothing in the profile.template.php has been changed in it since RC2 , all the mods i originaly made for the RC2 profile worked perfectly with RC3 aswell.
Title: Re: My second mod [waiting approval]
Post by: akulion on September 16, 2006, 05:59:13 PM
thanks alan

well i just wanted that the dropdown list for moods appears next to the "fonts" etc and when the user defines a mood for their post it appears in the post like:

Posters Mood: <img>

i can manage putting the drop down list there and all but i cant get the code to post
Title: Re: My second mod [waiting approval]
Post by: Porky on September 16, 2006, 06:06:17 PM
you forgot a mood   "Horney" lol ;D
Title: Re: My second mod [waiting approval]
Post by: akulion on September 16, 2006, 06:06:52 PM
lool there werent any bears with a hardon :2funny:
Title: Re: My second mod [waiting approval]
Post by: alan s on September 16, 2006, 07:01:45 PM
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimages60.affili.net%2F124%2F135124_1.jpg&hash=98df8ade9189e8459300ef05dd22365ad71c59a0) :P:P

Hmmm , im not sure about the drop down field because whenever i try to add javascript functions to the post.template it always ends up screwing up the template some way or another. What i'd advice is adding a small version of the bear to the post.template.php in the additional options section under the attachment field.
Title: Re: My second mod [waiting approval]
Post by: Porky on September 16, 2006, 08:14:11 PM
That was the same bear I was thinking of
Title: Re: My second mod [waiting approval]
Post by: akulion on September 16, 2006, 08:21:33 PM
there is a post under tips and tricks (very old from [unknown]s days) which teahes you how to modify / add thingies to the post template on SMF

ill take that as a starting point i think - ill have to search for it again first though lol
Title: Re: My second mod [waiting approval]
Post by: alan s on September 16, 2006, 09:03:15 PM
I can ask in the Charter Member coding forum for you if you would like. Responses usually come quicker than in the normal coding forums.
Title: Re: My second mod [waiting approval]
Post by: akulion on September 16, 2006, 09:10:23 PM
thanks for the offr that would be very nice

:D
Title: Re: My second mod [waiting approval]
Post by: Jpg on September 17, 2006, 06:46:49 AM
No sleepy/tired?

Well I like it anyway. Very Cute...lol...
Title: Re: My second mod [waiting approval]
Post by: akulion on September 17, 2006, 07:09:23 AM
glad u liked it :D
Title: Re: My second mod [waiting approval]
Post by: mnichols7 on September 17, 2006, 11:57:16 AM
I loved it!  I am already using one mood mod but I would gladly trade it for this one.  I like the horny little devil thing but for different reasons from you guys,  ;)

I am also using your way of life mod and most of my members use it.  You are doing great, keeping coming up with different mods!  :up:
Title: Re: My second mod [waiting approval]
Post by: alan s on September 17, 2006, 11:58:47 AM
I asked via the Cm Board akulion , havnt reply yet though.
Title: Re: My second mod [waiting approval]
Post by: alan s on September 17, 2006, 09:21:23 PM
Recieved some code from winrules , i tweaked it a bit and here it is!


//Print a drop down list of available mood bears! !

  if (!isset($context['disabled_tags']['url']))
echo '
<select onchange="surroundText(\'[img]\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/img]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">Choose Your Mood</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value=', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>
<option value="', $settings['default_theme_url'] , '/images/bears/bear.gif">Bear Name</option>

</select>';


When i tested it i placed it before the code for the drop down colour box ( around line 800 ).

I assume you know how to package it since you created 2 mods already.
Title: Re: My second mod [waiting approval]
Post by: akulion on September 17, 2006, 09:57:25 PM
thanks ill give it a try soon :D
Title: Re: My second mod [waiting approval]
Post by: Xarcell on September 19, 2006, 08:21:28 AM
Nice mod.

Would be nicer if modified to changed. Maybe use text strings and overwrite images?

I like the mood thing, just not the bears.
Title: Re: My second mod [waiting approval]
Post by: alan s on September 19, 2006, 04:44:40 PM
Maybe you could post a mirror link to the mod akulion because the mod approval system is very disorganised at smf.......it could be another few weeks before it gets approved.......
Title: Re: My second mod [waiting approval]
Post by: akulion on September 19, 2006, 06:05:05 PM
Quote from: Xarcell on September 19, 2006, 08:21:28 AM
Nice mod.
Would be nicer if modified to changed. Maybe use text strings and overwrite images?
I like the mood thing, just not the bears.

You mean as in simply display text instead of images? Or something else?

Quote from: Alan S on September 19, 2006, 04:44:40 PM
Maybe you could post a mirror link to the mod akulion because the mod approval system is very disorganised at smf.......it could be another few weeks before it gets approved.......

here you go (http://path-to-peace.net/misc/bear_tabs10.zip)

Title: Re: My second mod [waiting approval]
Post by: alan s on September 19, 2006, 10:00:51 PM
Nice mod. Doesnt work on rc3 though so i just edited the package_info and changed the package info code to

<require-dir name="images" destination="$themedir" />

and put the bear images in a folder called images so it looks neater.

Hope you dont mind.

Bear.zip (http://theteenzone.net/bear.zip)

Heres the package i ended up with just in case you have no idea what im saying.
Title: Re: My second mod [waiting approval]
Post by: akulion on September 19, 2006, 10:15:37 PM
no problem man

thanks for editing and making it rc3 compliant ;)
Title: Re: My second mod [waiting approval]
Post by: Xarcell on September 20, 2006, 05:15:52 AM
I like images better than text.
Title: Re: My second mod [waiting approval]
Post by: Xarcell on September 20, 2006, 05:17:33 AM
Dude, you know what would be really cool?

Use some of those smilies as moods that we discussed in teh smiely thread. That would be awesome. You could create alot of moods with alot of matching animated smiley gif's...