The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How can change the Poll Widget Code like this?

5 posters

Page 1 of 2 1, 2  Next

Go down

Solved How can change the Poll Widget Code like this?

Post by Van-Helsing September 10th 2014, 9:26 am

Hello,
How can I change the Poll widget like this http://prntscr.com/4lf50p ?


Last edited by Black-Shadow on October 11th 2014, 1:33 pm; edited 3 times in total
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by SLGray September 10th 2014, 9:31 am

Do a search for poll codes for widgets and create a customized widget.


How can change the Poll Widget Code like this? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 10th 2014, 9:51 am

Hi SLGray,
I have search for it but I didn't find something similar, I have a similar code in templates for the poll posts but and I have try to adapt it on widget but its not working correctly. I must modify the portal templates poll_ballot and poll_result but I don't know how can I do this.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Ange Tuteur September 10th 2014, 5:44 pm

I don't know about that widget, but I know you can show the results by the title attribute. Some CSS for phpbb3 :
Code:
.module td[title*="%"]:after { content:attr(title) }
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 11th 2014, 1:38 am

Hello Ange,
I need to modify the portal templates for the widget to be the same with poll posts. My forum version is PunBB.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 14th 2014, 12:22 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 15th 2014, 12:23 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 16th 2014, 12:36 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 17th 2014, 12:40 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 18th 2014, 10:37 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 19th 2014, 5:33 pm

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 21st 2014, 11:43 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 27th 2014, 11:09 pm

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 29th 2014, 12:41 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing September 30th 2014, 1:46 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 3rd 2014, 12:00 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 4th 2014, 12:13 am

Bump
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 4th 2014, 8:51 am

ok so after seeing a 1000 bumps "lol" i figured i would give this a try

and this is what i came up with only prob is you cant make the options to long or it will mess up

How can change the Poll Widget Code like this? Poleresults_zps5ed47e20

just replace everything in the

Admin panel- Display - Templates - general - viewtopic_poll_result

with
Code:
<!----Created by: TheTwistedKilla---->

<table style="width: 30%;" align="center" border="1" cellpadding="1" cellspacing="1">
      
 <tbody>
 <tr>
          <td>
<div class="mainhead clearfix">
   <p class="options">{CLOSE_POLL}</p>
  
  <p class="h2"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/bargraph_zps7e3a1416.png" alt="Smiley face" height="42" width="42"> <strong>{POLL_QUESTION}</strong></p>
         <p class="total"  align="right"><strong>Votes : {TOTAL_VOTES}</strong>
</div>
          </td></tr><td>

 
<table>
 <tr>
        <th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
   <th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
         <th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
  
  </tr>
  <tr>

  <td>{poll_option.POLL_OPTION_CAPTION}</td>
    <td>{poll_option.POLL_OPTION_PERCENT}</td>
    <td>[ {poll_option.POLL_OPTION_RESULT} ]</td>

    </tr>
</table>
 
 <dl>
 <dt>&nbsp;</dt>
 <dd>{L_POLL_HIDE_RESULT}</dd>
 </dl>
 
 
 <div class="frm-buttons">
 
 <!-- BEGIN cancel_vote -->
 <em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br /><br />
 <!-- END cancel_vote -->
 </div>

          </td>              
  
</tbody>
</table>
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 4th 2014, 8:59 am

Hello,
Is this code for poll widget? I am asking that because you are modifing the template viewtopic_poll result. If this code is for the poll topics I have it, furthermore it has changes on the template viewtopic_poll_ballot. I need to adapt this code for the widget too.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 4th 2014, 9:08 am

do you have code for a vote widget so i can modify it
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 4th 2014, 7:26 pm

Hello,
Here are the codes of templates:

Template: viewtopic_poll_ballot

Spoiler:

Template: viewtopic_poll_result

Spoiler:

I think the modifications must be done in portal templates poll_ballot, mod_poll and poll_result.


Last edited by Black-Shadow on October 5th 2014, 1:18 pm; edited 1 time in total
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 5th 2014, 3:11 am

where are you planning on putting the poll ?? need know about what size its gonna be
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 5th 2014, 9:45 am

Hello,
I am planning to change the the format of the poll widget http://prntscr.com/4t74pk and make it the same like the poll posts like this http://prntscr.com/4t7523
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 5th 2014, 2:35 pm

i know that but are you gonna put it on side of the forum  or in middle of portal or what
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 5th 2014, 4:20 pm

ok man this is about as close as i can get hope works for you

just replace everything in "poll_result" template


with


Code:
<style type="text/css">
<!--
td { vertical-align: top; }
.leftcolumn { max-width: 20%;}
.centercolumn { width: 50px; }
.rightcolumn { min-width:30%;}
.leftcolumnb { width: 40%;}
.centercolumnb { min-width:70px;}
.rightcolumnb { min-width:30%;}
.tabletoo { width:74%;}
-->
</style>

<div class="mainheadclearfix">
 
  <p class="h2"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/bargraph_zps7e3a1416.png" width="40" height="40"> <strong>{POLL_QUESTION}</strong></p>
    
</div>
  <table class="tabletoo">
    <td class="tabletoo"><p class="total"  align="right">[<strong>{TOTAL_VOTES} Vote</strong>]</p></td>
          </table>
<div class="maincontent frm">
 <fieldset class="frmset">
 <!-- BEGIN poll_option -->
 <dl>

    
 <table>
<tr>
<th class="leftcolumnb"> </th>
<th class="centercolumnb"> <th>
<th class="rightcolumnb"> <th>
    </tr>
  <tr>

    <td class="leftcolumn">{poll_option.POLL_OPTION_CAPTION}</td>
    <td class="centercolumn"><p align="right">{poll_option.POLL_OPTION_PERCENT}</p></td>
    <td class="rightcolumn"><p align="right">[{poll_option.POLL_OPTION_RESULT}]</p></td>

    </tr>
</table>

 </dl>
 <!-- END poll_option -->
 <!-- BEGIN switch_hide_result -->
 <dl>
 <dt>&nbsp;</dt>
 <dd>{L_POLL_HIDE_RESULT}</dd>
 </dl>
 <!-- END switch_hide_result -->
 </fieldset>
 <div class="frm-buttons">
 
 <!-- BEGIN cancel_vote -->
 <em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br /><br />
 <!-- END cancel_vote -->
 </div>
</div>
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 5th 2014, 8:09 pm

Hello,
What other changes must be done in the mod_poll and and poll_ballot templates?
Its too close to the request poll widget but the buttons etc "Cancel Vote" is missing and there is a strange line in the widget http://prntscr.com/4tc6ul .
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 5th 2014, 8:31 pm

the img isnt working for me but ill prob end up needing a test acct for your site to login to to mod it for ur theme
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 5th 2014, 8:45 pm

Ok I will pm you the testing account details.
Furthermore the poll choice displayed with the old style of voting not with the black bullets http://prntscr.com/4tdltc . I am thinking and the other templates need modification.

Here are the templates if they can help you.

mod_poll template:
Spoiler:

poll_ballot template:
Spoiler:

poll_result template:
Spoiler:
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by Van-Helsing October 11th 2014, 1:24 pm

Hello,
I have been adapt the codes and made the widget.
The problem is solved.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can change the Poll Widget Code like this?

Post by _Twisted_Mods_ October 11th 2014, 1:44 pm

sorry shadow i got caught up in stuff and forgot about helping you with the other half... glad you got it all figured out tho
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

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