View Full Version : Stats on my homepage not changing?
bc_2005
04-02-2007, 08:23 AM
Not sure if I accidently deleted part of the source or something, but the stats on the main page never change now. only when you view a video, do the actual stats show correctly (amount of views today, online, etc...) here is my home page. if anyone can tell whats wrong please let me know. thanks!
http://www.piitb.net/index.php
bc_2005
04-03-2007, 10:46 AM
does anyone know? what part of the php code tells it to update the stats? please help. thanks so much. here is the code I was working with, but cant figure it out
<td class="alt1">
<form action="search.php" method="get" name="site_search">
<input name="action" value="search" type="hidden">
<input class="bginput" name="search" onfocus="this.value=''" value="SEARCH" style="border: 1px solid rgb(0, 0, 0); padding: 1px 4px; width: 110px; font-family: arial; color: rgb(0, 0, 0); font-size: 10pt; margin-left: 2px; margin-right: 0pt; margin-bottom: 0pt; background-color: rgb(255, 255, 255);" size="13" type="text" /> <input type="submit" class="button" value="Go" /></form>
<div class="smallfont"><br>
»
<span style="color: #FF6600; text-decoration: none">Total Videos</span></a><font color="#FF6600">:
</font>233<br>
»
<span style="color: #FF6600">Total Views: </span>667<br>
»
<span style="color: #FF6600">Viewed Today: </span>17<br>
<br>
»
<span style="color: #FF6600">Online Now: </span>0<br>
</div>
</td>
well if this is the code directly from your site, then yes it is wrong. your stats aren't updating because they are hard coded. what you most likely did was viewed the source of your page, made the edit, and copied the page source as the update.
All hope isn't lost though, all you need to do is change the physical numbers (16) etc back to the php codes. open the original file, and you will see what I am talking about. If you need further help, please let me know.
bc_2005
04-04-2007, 12:38 AM
well if this is the code directly from your site, then yes it is wrong. your stats aren't updating because they are hard coded. what you most likely did was viewed the source of your page, made the edit, and copied the page source as the update.
All hope isn't lost though, all you need to do is change the physical numbers (16) etc back to the php codes. open the original file, and you will see what I am talking about. If you need further help, please let me know.wow im an idiot lol. I got it fixed :D thanks :p
bc_2005
04-04-2007, 12:39 AM
Also, is there ever going to be a way to let users upload videos? Even if we pay you for that capability? just wondering
blank
04-10-2007, 08:46 PM
Also, is there ever going to be a way to let users upload videos? Even if we pay you for that capability? just wonderingyes a much more feature packed version is planned but both Kip and I have been sidetracked by other things lately. My niece died and now my sister is living with me so there has been quite a mess to sort through so coding was put on the backburner.
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.