NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Poll Script and Stats Script

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
2 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 08-02-2005, 08:29 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Question Poll Script and Stats Script


Hi,
I am looking for a poll script (free one ) along with a who is online and the webstats script which will show unique hits and the hits for the present day alon g with the total visits so far.
????: NamePros.com http://www.namepros.com/programming/111976-poll-script-and-stats-script.html

Also please help me out and tell me how to insert those scripts into html page .
I would be placing them on this site:

HELP PLEASE

As you can see there i have put a cgi based script but the thing is that i have to rename all .cgi files into pl files and i am not sure if SSI is enable i will ask the host if its enabled cause most scripts that need to insert virutal path need ssi .

So can someone provide with a working link to the above 2 scripts.

Also is it possible to insert php code into that html file cause i installed a php based poll but i cannot insert it into the html index.html file.

Here is the code:
Code:
<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>
<?php

/* path */
$poll_path = "/home/httpd/vhosts/h-log.com/httpdocs/polls";

require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
require $poll_path."/include/class_pollcomment.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new pollcomment();

/* question */
echo $php_poll->get_poll_question(2);


/* poll */
$php_poll->set_template_set("plain");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
echo $php_poll->poll_process(2);


/* construct the form */
$php_poll->set_template("poll_form");
$php_poll->set_form_error(array(
    "name" => "Please enter your name.",
// "email" => "You must specify your e-mail address.",
    "message" => "You must specify a message."
));
$html_form = $php_poll->comment_process(2);


/* poll comments */
$php_poll->set_template("poll_comment");
$php_poll->set_comments_per_page(5);
$php_poll->set_date_format("d/m/Y H:i");
$php_poll->data_order_by("time","desc");
echo $php_poll->view_poll_comments(2);
echo $php_poll->get_comment_pages(2);

/* form */
echo $html_form;

?>
Working Example of the above code is :
HERE

Can some one help me insert that code into html if there doesnt exists a free poll based script which can be inserted?

Thanks Guys.
killerid is offline  
Old 08-02-2005, 08:34 AM   #2 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
I'll look more into those scripts in a minute..

The only way I know of inserting PHP into HTML is adding your PHP and renaming the .html file with the .php extension.

I'll go search now for those scripts

-Eric
Eric is offline  
Old 08-02-2005, 09:10 AM THREAD STARTER               #3 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Originally Posted by SecondVersion
I'll look more into those scripts in a minute..
????: NamePros.com http://www.namepros.com/showthread.php?t=111976

The only way I know of inserting PHP into HTML is adding your PHP and renaming the .html file with the .php extension.

I'll go search now for those scripts

-Eric
Thanks i will be back gotta go to college ..
killerid is offline  
Old 08-02-2005, 11:42 AM THREAD STARTER               #4 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Hey thanks man i got the polls running used advanced poll script provided in the application vault of the hosting itself . I say that hosting is pretty amazing.

Now i need that Stats Script.
killerid is offline  
Old 08-02-2005, 11:52 AM   #5 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by killerid
Hey thanks man i got the polls running used advanced poll script provided in the application vault of the hosting itself . I say that hosting is pretty amazing.

Now i need that Stats Script.
Np bro...glad to help I think I may know of where to find you your stats script Give me a few, I would have gotten both earlier but I had to leave.
????: NamePros.com http://www.namepros.com/showthread.php?t=111976


-Eric

http://www.refdev.com/free_scripts/P...sis/more4.html

See if you can find anything there. Don't have too much time to look around, but you may find what you need at that link
Eric is offline  
Old 08-02-2005, 12:48 PM THREAD STARTER               #6 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 




Hey thanks dude , i looked over there but the thing is that they dont provide demo so it would nice if u could remember the name so it would make my life easier instead of downloading all of them and testing one by one .

Thanks Dude.

And did u vote on my the site ? HEHEHEE..
killerid is offline  
Old 08-02-2005, 03:20 PM   #7 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Ok, well If I get some spare time I'll upload and test a few If not, I'll just search a little, lol
Eric is offline  
Old 08-02-2005, 05:41 PM THREAD STARTER               #8 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Thanks again . And i will try some of the script myself mostly those 3 top downloaded ones.

And the thing that disappoints me is that there are so many users registered here and yet only one dude cares to help out.

Its really a sad situation that mostly one or 2 people help out and rest are just sitting ducks who even if they know something or some script they using dont care about telling about it.

Wake up people and realize what u guys are doing to the community here.
killerid is offline  
Old 08-02-2005, 11:36 PM THREAD STARTER               #9 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



There u go dude , i finally added some script will try to add awstats script for personal viewing of stats but for now i used these scripts:
Advanced Poll Script
UseronlineScript : simple Script to display how many users are online.
For unique and page hits used Some Stats simple script dont remember but will post it in downloads section of site soon.

Well the thing i need to ask is how do u change the color of the lines displayed i want to change the color for the line say page hits to green and size too so how do i change that right now i use this code to instert the stats into the php file:
????: NamePros.com http://www.namepros.com/showthread.php?t=111976
<? include 'index1.php' ?>

Also is there a script out there to add news section i tried Fnews(Fantastic News) script but it stinks very bad. Sorry if the maker of the script is here .But really i dont like it at all.

While at it can somone suggest a nice shotbox which can be hid with a click of button and popup when shout button is pressed.
Last edited by killerid; 08-03-2005 at 12:39 AM.
killerid is offline  
Old 08-03-2005, 05:48 AM   #10 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by killerid
There u go dude , i finally added some script will try to add awstats script for personal viewing of stats but for now i used these scripts:
Advanced Poll Script
UseronlineScript : simple Script to display how many users are online.
For unique and page hits used Some Stats simple script dont remember but will post it in downloads section of site soon.

Well the thing i need to ask is how do u change the color of the lines displayed i want to change the color for the line say page hits to green and size too so how do i change that right now i use this code to instert the stats into the php file:
<? include 'index1.php' ?>

Also is there a script out there to add news section i tried Fnews(Fantastic News) script but it stinks very bad. Sorry if the maker of the script is here .But really i dont like it at all.
????: NamePros.com http://www.namepros.com/showthread.php?t=111976

While at it can somone suggest a nice shotbox which can be hid with a click of button and popup when shout button is pressed.
I would have to see your include file (index1.php) But to clarify, you're wanting to change the colors on the users online? Looks like a remotely hosted service... If you could show me that file I will show you how to change color etc, if it allows you too
Eric is offline  
Old 08-04-2005, 12:14 AM THREAD STARTER               #11 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Ok dude added download script on site so go to downloads section on site and look at the useronline script . I figured some things about changing color of line by inserting this code into that line :
????: NamePros.com http://www.namepros.com/showthread.php?t=111976
<font color = "#code"> it worked on the easy download script and i think it would work on the other one too . but maybe if u get time look at the scripts and tell what code to use to change the font color.

Plus i am now looking for password protecting directories. I used to had htedit script but its cgi config are kinda confusing so i couldnt get it to work before does anyone here knows simple way to do the same. Dont tell that its included in cpanel itself, cause i know that but i want a url link to password protect directories not via cpanel all the time.
killerid is offline  
Old 08-04-2005, 06:26 PM   #12 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
The usersonline script:
About the font:
Find this code..Will be in users.php
PHP Code:
if ($user == 1){
    echo 
"<b>$user</b> User Online";

else{
    echo 
"<b>$user</b> Users Online";
}
?> 
Replace with:
PHP Code:
if ($user == 1){
    echo 
"<font color=color><b>$user</b> User Online</font>";

else{
    echo 
"<font color=color><b>$user</b> Users Online</font>";
}
?> 
About the password protection, there is a PHP script called AngelinaProtect. I will have to find the URL, or just google it.
????: NamePros.com http://www.namepros.com/showthread.php?t=111976

Hope this helps.
Eric is offline  
Old 08-04-2005, 07:50 PM THREAD STARTER               #13 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



I found this place it has some nice scripts with demos

http://www.finalwebsites.com/

i cant seem to find the download link for the above script u mentioned.
killerid is offline  
Old 08-05-2005, 09:40 AM THREAD STARTER               #14 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Hey dudes does anyone know how to put a scrolling from right to left newsstrip on the header of the site?
killerid is offline  
Old 08-05-2005, 09:50 AM   #15 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by killerid
i cant seem to find the download link for the above script u mentioned.
http://www.belgradecafe.com/php/angelinaprotect/
????: NamePros.com http://www.namepros.com/showthread.php?t=111976

Originally Posted by killerid
Hey dudes does anyone know how to put a scrolling from right to left newsstrip on the header of the site?
http://www.hscripts.com/scripts/php/...lTextMover.php

Something like this?
Eric is offline  
Old 08-05-2005, 07:30 PM THREAD STARTER               #16 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 





Regarding first link i found that link already but u cannot download the script cause the download page is :
http://www.belgradecafe.com/download...tect-V1.00.zip
and its 404 error.

Plus yaa that script the horizontaltext mover pretty cool thing an lol u can make it go faster i made it full speed and looked cool


I will installe it today i guess. And fix the cutenews template designs according to main site design..

Plus can i be greddy and ask for a nice cool gallery script and i have still not found a nice statistics script yet which will display complete stats on the main page. can awstats be installed and used on any host?
killerid is offline  
Old 08-05-2005, 09:09 PM   #17 (permalink)
Account Suspended
 
Refrozen's Avatar
Join Date: Jun 2005
Posts: 745
Refrozen will become famous soon enoughRefrozen will become famous soon enough
 



Originally Posted by SecondVersion
I'll look more into those scripts in a minute..

The only way I know of inserting PHP into HTML is adding your PHP and renaming the .html file with the .php extension.

I'll go search now for those scripts

-Eric
You can use .htaccess "Force-type" comamnd to force it to run *.html's through the PHP parser. GOOGLE IT!
Refrozen is offline  
Old 08-06-2005, 03:21 AM THREAD STARTER               #18 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Thanks i did force type google but most of the links came were talking about messing with the apache server if u have and example .htaccess file it would be nice for everyone here also.



And the site is almost done added cutenews script for news as couldnt find any other good news . tried FWnews also which just loooked too awful.


Well i am still looking for a gallery script so does anyone have expereince of any gallery scripts or demo places?

I got enough mods for the forums so wont be bothering u guys about the forums. By the way forums are now open.
Last edited by killerid; 08-06-2005 at 05:06 AM.
killerid is offline  
Old 08-06-2005, 11:15 AM   #19 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by killerid
Thanks i did force type google but most of the links came were talking about messing with the apache server if u have and example .htaccess file it would be nice for everyone here also.
????: NamePros.com http://www.namepros.com/showthread.php?t=111976



And the site is almost done added cutenews script for news as couldnt find any other good news . tried FWnews also which just loooked too awful.


Well i am still looking for a gallery script so does anyone have expereince of any gallery scripts or demo places?

I got enough mods for the forums so wont be bothering u guys about the forums. By the way forums are now open.
Gallery Script? Try 4images.. If you have cpanel w/fantastico It's already there
Eric is offline  
Old 08-06-2005, 11:49 AM THREAD STARTER               #20 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Originally Posted by SecondVersion
Gallery Script? Try 4images.. If you have cpanel w/fantastico It's already there
I have only Plesk and the script in there is some gallery script which i installed on the site but i dont like it though as there is no option for other users to register and post images.
killerid is offline  
Old 08-06-2005, 01:03 PM   #21 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by killerid
I have only Plesk and the script in there is some gallery script which i installed on the site but i dont like it though as there is no option for other users to register and post images.
http://www.4homepages.de/4images/download.php
????: NamePros.com http://www.namepros.com/showthread.php?t=111976
Both German and English instructions
Eric is offline  
Old 08-06-2005, 01:59 PM THREAD STARTER               #22 (permalink)
Account Closed
Join Date: Jun 2005
Posts: 189
killerid is an unknown quantity at this point
 



Nice script but one drawback holds me back from using it :

There is no option to view full image in your browser.

So i guess i wont be using it any other script u got in mind?
killerid is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Website Stats Script cyberoptik Website Development 3 03-30-2005 09:38 AM
[Turnkey]Sites For Sale Some with (Google PR) lfhost Turnkey Websites For Sale 3 01-31-2005 09:16 AM

 
All times are GMT -7. The time now is 12:10 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger