TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 19, 2024, 07:32:42 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 128
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 53
  • Total: 53

My second mod [waiting approval]

Started by akulion, September 16, 2006, 10:39:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

:D

My second mod

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

alan s

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.

akulion

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

Porky


akulion

lool there werent any bears with a hardon :2funny:

alan s

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

Porky

That was the same bear I was thinking of

akulion

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

alan s

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.

akulion

thanks for the offr that would be very nice

:D

Jpg

No sleepy/tired?

Well I like it anyway. Very Cute...lol...


mnichols7

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:

alan s

I asked via the Cm Board akulion , havnt reply yet though.

alan s

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.

akulion


Xarcell

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.

alan s

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

akulion

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


alan s

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

Heres the package i ended up with just in case you have no idea what im saying.

akulion

no problem man

thanks for editing and making it rc3 compliant ;)

Xarcell


Xarcell

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