php forum
php mysql forum
php mysql smarty
 
Topic Options
#216657 - 05/14/02 07:10 AM Graphical Poll Result (Index Pal 3&4)
bmh Offline
Power User

Registered: 10/23/00
Posts: 77
Loc: Australia- Melbourne
Hi Every one..... <br /><br />This is a quik and small modification in how to convert the normal line result into graphical one for your poll ....<br /><br />Note : This modification will effect the (index pals 3 & 4 Addons) which is created by the Just Dave .<br /><br />By the way ... i am not sure of (index pal 4 ) , but i think if you will find the same line which give the result of the poll ... i am sure you should able to change it according to this modification.<br /><br /><br /><br />How to do quik changes : <br /><br />[:"blue"]First : [/] <br />In pollpal.php file, find this line :<br /><br /> $pollString .= "<TR><TD ALIGN=LEFT VALIGN=TOP CLASS=\"lighttable\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><TR><TD ALIGN=LEFT WIDTH=50 CLASS=\"lighttable\">$percent%</TD><TD ALIGN=LEFT CLASS=\"lighttable\"><table width=\"$percent2%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"pollcolor\"><tr><td>&nbsp;</td></tr></table></TD></TR></TABLE>";<br /><br /> <br /><br />And replace it with this one :<br /><br /> $pollString .= "<TR><TD ALIGN=right VALIGN=TOP CLASS=\"lighttable\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><TR><TD ALIGN=right WIDTH=50 CLASS=\"lighttable\">$percent%</TD><TD ALIGN=right CLASS=\"lighttable\"><table background=\"http://www.yoursite.com/anywhere/gold-pollbg.jpg\" width=\"$percent2%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>&nbsp;</td></tr></table></TD></TR></TABLE>";<br /><br /><br /><br />[:"blue"]Second : [/] <br /><br />you have to change the URL used in the above line to mach your site ... this URL to link the Image file only <br /><br />http://www.yoursite.com/anywhere/gold-pollbg.jpg<br /><br /><br />[:"blue"]Third and Last : [/] <br /><br />you will find in the attachement file 4 images ... for customize your poll result color ..... upload the files to your website .... and select one of that image ....<br />e.g. : change the link and choose one of this choices : <br />http://www.yoursite.com/anywhere/gold-pollbg.jpg<br />http://www.yoursite.com/anywhere/green-pollbg.jpg<br />http://www.yoursite.com/anywhere/blue-pollbg.jpg<br />http://www.yoursite.com/anywhere/red-pollbg.jpg<br /><br /><br /><br />Thats all .... <br /><br />Regards<br />BMH


Attachments
47697-poll-bg.zip (60 downloads)


Top
#216658 - 05/14/02 05:15 PM Re: Graphical Poll Result (Index Pal 3&4) [Re: kog]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I was thinking of doing something very simular to this. Thanks. <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />I would recommend using the style sheets, particularly the .pollcolor {} class to set the background that way it could vary from sheet to sheet. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top


Who's Online
0 registered (), 22 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks