If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Option request  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi all,
I have a simple request. I would like to have a button next to the vote button which when cliked will pop a window with an image in it. I would love to have an option right between the Question option and OPtion 1 window which says like:

Image: and then you have to fill up the link, and the size of the window.

so just tryed to put:

<input type="button" onClick="window.open( "http://www.google.com/" )" value="Image"> in the template script and works however I would like to it be poll specific diferent polls different images you know.

Let say the Image option is left blank for the link..this would mean that there will be no image so dont display the image button.

thanx..

ms

PS I hope that makes sense..
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

To my knowledge you can put ANYTHING as the option, even HTML and javascript.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Excellent, thank you that was verry good.

Just for information:

in the Question window you can paste:

<INPUT type="button" value="Image" onClick="window.open('http://www.yourdomain.com/img.jpg','mywindow','width=600,height=500')">

and it works just fine

One more quetion : Is there an option to make the Question window multi- line rather than a single line ? thnx
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Tried <br> ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



sorry did not get that one...were should I put the tag..
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Where ever you want to start on a new line.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



sorry may be I wasnt clear..

when you create a new Poll you need to put a Question right. This window is just one line I want to make it larger multi-line like the window Im using right now to type this msg. See if you have a single line question is fine, however if you want to describe something and ask the question that you need more space..
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Just a case of editting the admin HTML then to change the <input to a <textarea> instead.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



well I think the options are generated on the fly by using $poll_options however I dont know exactly where these are generated...any idea which file to edit..
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum