Results 1 to 7 of 7

Thread: Voting script??

  1. #1
    Join Date
    Jul 2005

    Voting script??

    Not sure if i am in right place! But am looking for script and information on it. I want a vote section where you cannot click "no" and have to vote yes.
    Here is an example

    Please help, any info greatly appreciated


  2. #2
    Join Date
    Jul 2005


    I can't do it all for you because I'm at work and don't have the right tools with me, but I can tell you what to do.

    I think the best way to do it would be to take the example you found there, copy it, edit it, then use it yourself.

    Firstly, if you right-click it, you can see it uses Macromedia Flash Player 7. That means that the voting field is a .swf file. You'll need to copy that file so we can edit it. I'll assume you're using Internet Explorer or something very similar. Go to Tools->Internet Options, then in the Temporary Internet Files box, click 'Delete Files...'. Check the box to delete offline content as well, then click 'OK'. Now, open your temporary Internet folder (which you can find by clicking 'Settings' and then 'View Files...' in the Internet Options window). It should be empty. Refresh your example page there and then refresh your temporary Internet folder and you should find that there are now 4 files in there. One of them will be 'encuesta_marca.swf'. Copy that to your desktop or something.

    Now, you'll need some decompiling software. You can find that here:
    Use the free trial version. You'll need to register first.

    After you install the Flash decompiler, run the program and have it open the encuesta_marca.swf file that you copied. It should decompile it and give you the source code for the voting box. All you have to do is edit some of the code so it asks your question and says 'Yes' or 'No', then publish/compile the new file as 'yourvoteboxfilename.swf' and you're laughing!

    It's a bit long-winded and seems a bit complicated, but it works.

  3. #3
    Join Date
    Jul 2005

    Thank you!......................but

    Thank you very much for your reply.
    I followed as you said, but found trouble in the decomplier, as it says it only decompiles the 1st 2 actions, as it is only trial version.

    Also not sure, if I am to edit it in the decompiler or not?............and will I be able to copy it into my html page............??..........if i get that far!!

    many thanks for your help


  4. #4
    Join Date
    Jun 2005
    do you need to do it in flash?

    you can do something similar with simple scripting.. for example, set up a form with radios for yes and no with a submit button.. your script would automatically switch the selection to yes if the no button was clicked.

    not as "flashy" but same basic idea. there's other cute things you can do along the same lines....

    if it really MUST be flash, the effect being used is a simple one to apply... just run through the flash tutorials and it'll be pretty clear (sorry, nowhere near my computer with flash installed, so can't point ya any closer in the right direction)

  5. #5
    Join Date
    Jul 2005

    flash or not

    Thank you.

    I dont think it has to be in flash, it is just that the only example I have found of what I want is in flash.

    I thought it might be simple, but for me it is proving difficult!.........I thought i could acquire the code and alter the text for my subject..........and place it into a simple html page...........


  6. #6
    Join Date
    Jun 2005
    you can try something like this
    Rigged Voting
    <script type="text/javascript">
    function selectYes() {
    theForm.YesOrNo[0].checked = true;
    theForm.YesOrNo[1].checked = false;
    <form name="theForm">
    <input type="radio" name="YesOrNo" value="Yes">Yes</input>
    <input type="radio" name="YesOrNo" value="No" onclick="selectYes()">No</input>

  7. #7
    Join Date
    Jul 2005
    Yeah, when you decompile the .swf file you might have to edit it in Flash. There's probably a trial version of that too though.

    The only alternative (which I'm not suggesting you do) is to download cracked versions of the software involved.

    Or you could just use the simple radio button idea. That'll work, but it's not quite as fun, what with it not jumping around all over the place and whatnot.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.12187 seconds
  • Memory Usage 2,893KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates