The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How do smileys work

View previous topic View next topic Go down

In progress How do smileys work

Post by The Crocodile on January 18th 2012, 1:01 am

Well when you want to post a topic you have the smiley box on the right side, right?
You just click on the smiley and it appears in the post box. How does this go? I want to make a kind of shop for my page where you have images which you just need to click and they or their name will appear in the dialog box below. The dialog box would be there as a quick pm to an admin. May somebody help me to do this?

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

In progress Re: How do smileys work

Post by The Crocodile on January 18th 2012, 12:17 pm

could you provide me with that script and could you please tell me the way how to make that on my site, currently what i have are only simple widgets for that shop
http://www.advancedduelacademy.com/?pid=4

As you see there is a table with items members can buy with forum points (in my case ADA cash)
What i want is this: At the bottom below the table there has to be like a quick reply box which will be direct pm to my account in that forum. Each item will have its own icon, now with the smiley javascript, when the icons are clicked, their name shall apear in the quick reply box. Below the box shall be the "send" button to send the pm to me.

Is this possible to make?

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

In progress Re: How do smileys work

Post by LGforum on January 18th 2012, 1:24 pm

You'll need to write a function which adds it to the correct box.
I didn't look at your link, so I apologise for that, but I dont have time, but for example if you have a textbox with an ID of 'text' then this will be your function:

Code:

function insertText(text) {
document.getElementById('text').value+=text;
}

Then on your buttons or links or pictures or whatever, you'll call that function ONCLICK, specifiying the text parameter like so:

Code:

<div onclick="insertText('testing text');">Click to insert 'testing text'</div>

Hope that makes sense.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: How do smileys work

Post by The Crocodile on January 18th 2012, 7:46 pm

nice i needed some extra help for the coding (where to put codes and stuff) but no prob (you know im not into css or html haha)
The thing about smiley script is settled.

LOOK HERE:
http://www.advancedduelacademy.com/?pid=6

It looks very nice now.
But one more thing, when you click send it says "No post mode specified"
I want that box there to be a quick Private message to my account there.
How can i make the send button work :l

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

In progress Re: How do smileys work

Post by LGforum on January 19th 2012, 12:00 am

You'll need to understand more about how the forms work on your forum.
Just look around at the different forms and you'll soon figure out what the idfferent inputs mean and what is neeeded.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: How do smileys work

Post by The Crocodile on January 19th 2012, 2:11 am

here the code for send and preview buttons
Code:
<fieldset xmlns="http://www.w3.org/1999/xhtml" class="submit-buttons"><input type="hidden" value="00aa3835b1d3e552fc7a1b7230ac3f31" name="auth[]"/><input type="hidden" value="1e2ac68f4aa4b7acce8a927d4f15c817" name="auth[]"/><input type="hidden" value="inbox" name="folder"/><input type="hidden" value="post" name="mode"/><input type="hidden" value="1326896463" name="new_pm_time"/><input type="hidden" value="" name="lt"/><input type="submit" tabindex="5" value="Preview" name="preview" class="button2"/>  <input type="submit" accesskey="s" tabindex="6" value="Send" name="post" class="button1"/></fieldset>

Thats the code i copied from the reply box to my account (simply selected those and right mouse click then "view selection source")
but when i click send on that site, it says no mode specified, but the whole code is simply copied from a working button (although its position was in the pm box for my account)

since it says no mode specified, as everybody can see there is really no tag for "mode" or whatever it shall be there, if somebody can figure out what the problem is tell me please


The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

In progress Re: How do smileys work

Post by LGforum on January 19th 2012, 2:41 am

There are unique parts of the form. The values change all the time, that's why it's not sending.
The button was a 'working button' at the time but now that values needed have changed and will do every page refresh.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: How do smileys work

Post by The Crocodile on January 19th 2012, 11:38 am

but there must be a way to make it be the right value on its own
some code that can do that, i believe there is one just like for the real private messages.
but i guess its kinda more complicated :|

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

In progress Re: How do smileys work

Post by LGforum on January 19th 2012, 4:18 pm

Its a lot more complicated than simply copying and pasting i'm afraid. Only a few forums have made their editors. Wink

The values are set server-side when the page is loaded i'm afraid, so no way of knowing what value your gonna get.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum