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.

icons in new post

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

Solved icons in new post

Post by qmars(pkq) on Wed 16 Jul - 6:10

First topic message reminder :

hello
i have to problem
1. how can i remove these spaces between icons

2. when i click on my host an image it doesnt work but after that when i click on my host an music it work at host an image mini browser

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down


Solved Re: icons in new post

Post by APE on Sat 26 Jul - 17:27

He's link is here >> http://lemon-13.full-forum.com




APE
Manager
Manager

Male Posts : 8609
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: icons in new post

Post by qmars(pkq) on Sun 27 Jul - 2:37

http://lemon-13.full-forum.com/
username : Removed
password : Removed

Please DO NOT pass passwords and user names to your forum in main forum please use the pm system for Safety and security Reasons
Warning given.

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Solved Re: icons in new post

Post by qmars(pkq) on Fri 1 Aug - 12:29

@Ange Tuteur wrote:Please provide a link to your forum.

Thanks.
http://lemon-13.full-forum.com/

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Solved Re: icons in new post

Post by qmars(pkq) on Sat 2 Aug - 5:09

i sent u user name and password on ur private message bro Ange Tuteur

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Solved Re: icons in new post

Post by Ange Tuteur on Sat 2 Aug - 7:15

Hi,

I made it a bit more simple to have multiple upload buttons, so delete both your scripts and create a script for the following code :

Title : your choice
Placement : in all the pages
Code:
$(function(){$(function(){
 newHost('imageUpload', 'http://lemon-13.com/up.png', 'http://lemon-13.com/upload-Center', '250px', '500px');
 newHost('musicUpload', 'http://lemon-13.com/mu.jpg', 'http://lemon-13.com/m%20up/index.html', '400px', '600px');
 
 function newHost(name, image, upload, height, width) {
  $('.sceditor-button-servimg').after('<a class="sceditor-button sceditor-button-'+name+'"><div style="background-image:url('+image+')"></div></a>');
  $('body').append('<div id="'+name+'_container" class="sceditor-dropdown" style="display:none;"></div>');
 
  $('.sceditor-button-'+name+'').click(function() {
  var X = $('.sceditor-button-'+name+'').offset().left;
  var Y = $('.sceditor-button-'+name+'').offset().top + 25;
 
  if (!document.getElementById(''+name+'_frame') && $('#'+name+'_container').css('display') == 'none') $('#'+name+'_container').show().css('left',X + 'px').css('top',Y + 'px').append('<iframe id="'+name+'_frame" style="border:none;height:'+height+';width:'+width+';" src="'+upload+'"></iframe>');
  else if ($('#'+name+'_container').css('display') == 'none') $('#'+name+'_container').show().css('left',X + 'px').css('top',Y + 'px');
  else $('#'+name+'_container').hide();
  });
 
  $('.sceditor-button:not(.sceditor-button-'+name+'), .sceditor-container textarea, .sceditor-container iframe').click(function() { $('#'+name+'_container').hide() });
  $('.sceditor-container iframe').contents().mousedown(function() { $('#'+name+'_container').hide() });
  $('.sceditor-button-source').click(function() { $('.sceditor-button-'+name+'').removeClass('disabled') });
 }
})});

All you need to write is :
Code:
newHost(name, image, upload, height, width)

In the following order :

name : the unique name of the button, it MUST NOT be the same as other host buttons.
image : the image of the button
upload : the url of the upload location
height : the height of the frame
width : the width of the frame

There's already two at the top to give an example. Hopefully this will work for you Wink

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: icons in new post

Post by qmars(pkq) on Sat 2 Aug - 7:23

wow
tnx u so much!
it was work!
and how make these icon biger than other
and how can i remove others icon as like as spoiler and...

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Solved Re: icons in new post

Post by Ange Tuteur on Sat 2 Aug - 7:26

You're welcome

@qmars(pkq) wrote:wow
tnx u so much!
it was work!
and how make these icon biger than other
and how can i remove others icon as like as spoiler and...
I believe you should open a new topic for these questions, since they were not originally mentioned in the first post or topic title.

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top


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