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

   Graphical Poll Result (Index Pal 3&4) to Del.icio.us Add to del.icio.us
  Digg Graphical Poll Result (Index Pal 3&4) Digg it
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 (50 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 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 6
Chris Bale 4
Gizmo 4
FREAK1 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks