Jump to content

Gutspiller

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Everything posted by Gutspiller

  1. Can I still get help with this problem? I think it will only be a single line of code that will give me the results that I need.
  2. Counting actual time passing isn't as important. As I know how many games are released daily, I can simply do it like clockwork from how many recent games. So if I want a weeks worth of stats, all I need to do is do the code for the latest 50 games. In the code that I gave the var "gplays" is gameplays, "gId" is the number that organizes the games (lower = older, higher or latest # = newer game, "gName" is for game name, "gDescription" is for game description, and "gThumb" is for the game thumbnail. I don't need any help with the layout so the game name, description and thumb can be ignored, but I'm pretty sure a statement can be created with the gplays and the gId variables using some type of "ORDER" command to organize the games in the way I want it to. Looking at the code I posted in the original post, I simply need it to allow a range of the "gId" variable, and a range for the "gplays" variable. Can somebody help me with that? From what I understand of it myself, it should only be changes to this line: $query4 = "SELECT gId, gName, gDescription, gThumb, gplays FROM games ORDER BY gId DESC LIMIT 100"; But where it states "ORDER BY gId" in that code, I need it to have code that allows the variable that I use, whether it be the "gId" (game id) or the "gplays" (gameplays) to be within a range from one number to another. The gameplay variable "gplays" I need a range from one number to another. The game id variable "gId" I need it to be a range from the ending, or very last number (could be 99999 if that works to 100 games back, 200 games back, etc. Once the code is setup, I can plug in what numbers those two variables should be, but I don't know how the statement should look. Please help.
  3. I stumble around PHP as I know very little of it. I'm trying to figure out how to create a page that shows the most played games from my site for the last hour, day, week, and month AND (if possible) the games from the last hour, day, week, and month that have a certain amount of plays. (IE: games for the last month that have 1000 plays or more, 2000 plays or more, etc. The code block that I have to display the latest 100 games looks like this: if (strlen($gid) == 0) { $query4 = "SELECT gId, gName, gDescription, gThumb, gplays FROM games ORDER BY gId DESC LIMIT 100"; $result4 = mysql_query($query4) or die("Borked Query"); while (list ($id, $name, $description, $thumb, $played) = mysql_fetch_row($result4)) { and (if needed) I have this code that displays the 100 most played games: if (strlen($gid) == 0) { $query4 = "SELECT gId, gName, gDescription, gThumb, gplays FROM games ORDER BY gplays DESC LIMIT 100"; $result4 = mysql_query($query4) or die("Borked Query"); while (list ($id, $name, $description, $thumb, $played) = mysql_fetch_row($result4)) { Can somebody please give me an example using these two codes of how I can get my requested pages? If it is impossible to calculate the time as there is no date stamp that I know of or see in the code, please help me with how I could do it not based on time (hour,day,week.month), but instead by the last 100 games, 200 games, 300 games, etc. Thanks for any help you can supply me with!
  4. I have a image hosting site and it's getting hammered by hotlinkers. Fullsized image URLs look like this: http://www.dumpt.com/img/files/1esn8w0g20mmlddwdumo.jpg Thumbnail URLs look like this: http://www.dumpt.com/img/files/1esn8w0g20mmlddwdumo_thumb.jpg So the thumbnails just add a _thumb at the end of the filename. I've heard that it's possible through htaccess to make it so people that call the fullsize images from their websites and forums are switched what picture they get so that instead of getting the image 1esn8w0g20mmlddwdumo.jpg they get the image 1esn8w0g20mmlddwdumo_thumb.jpg Can somebody help me with this so that my site continues to show the full images, but that any other site that tries to call the fullsize of an image instead gets the thumbnail? Thanks for any help that can be provided!
  5. Can somebody help me or direct me to a tutorial that will allow me to have a zoom-in and zoom-out feature on a page that contains an embedded flash game? I want it so that when a zoom-in button is clicked, it will increase the size of the flash game and when the zoom-out button is clicked it will decrease the size of the flash game. I have no coding experience and I don't know how to do this at all. Can anybody give me the pieces of code to accomplish this or direct me to a tutorial that could help me do it? Thanks for any help.
  6. Where exactly do I put that? Do I put it within this code? <!-- Begin function popUpSMALLER(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=348,height=261,left = 466,top = 349.5');"); } // End -->
  7. Hopefully the title wasn't too confusing. Tried to give it some detail. Basically is what I happening right now is I have a flash game running in the main browser window. I have a button on that page, that when clicked opens a popup with the flash game running in full screen. The problem with this is that the flash game continues to run in the parent window as well as the popup. I want it so that when the fullscreen button is clicked that the parent window goes to a default page that has no flash game on it, or goes back to the sites frontpage, while the popup continues to open the flash game in the fullscreen popup. Can anybody help me with how to do this? Unfortunately I know very little coding and would need something that was a step step of what to do or the exact code that I could copy and paste into my site. Here's an example of the type of page I'm talking about: http://www.arcadeupload.com/arcade/showphoto.php/photo/920/limit/views Can anybody please help me with this so I can give this feature a little bit more polish? I'd appreciate any help somebody can give me. Thank you!
  8. I am currently using this code: [code] <BODY TEXT="#FFFFFF" bgcolor="#2A3A4A" style="background-position: center top; background-repeat: no-repeat; background-image: url(http://www.gamersgallery.com/images/main_menu_side_background.jpg)" bgproperties="fixed" LEFTMARGIN="0" TOPMARGIN="0" bottommargin=0 rightmargin=0  MARGINWIDTH="0" MARGINHEIGHT="0"> [/code] The problem is that it only works in IE, but in FireFox it scrolls. Does anybody know what code I need so that it doesn't scroll in BOTH IE and FF? Thanks for any info you can give me.
  9. Can I still get some help on this? I think this will work, but I don't have specific links as mentioned above for the image and the url for the image to link to, instead it's a chunk of code that needs to be rerun from my ad company without refreshing the whole page.
  10. [!--quoteo(post=370815:date=May 3 2006, 04:14 AM:name=Callmaster)--][div class=\'quotetop\']QUOTE(Callmaster @ May 3 2006, 04:14 AM) [snapback]370815[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi gutspiller what kind of content are we looking at? eg Text, DB query etc. and how is it displayed? (Table, text field, html,..)? I have no clue about javascripting at all, but if we'd have a db query or text data to be displayed, a flash movie could do the job? I am goint to get something up, that parses through a text file and displays the content in a part of the webpage. Basically telling me what my perl-scripts are doing right now. Havent found alternate techniques yet, so id probably go for a flash based thing. Callmaster [/quote] Sorry, I should have been more clear. The code that I want "refreshed" every few minutes is banner code. The code is provided by an ad company and it looks something like this: [code] <!-- BEGIN: AdSolution-Website-Tag 4.3 : CuttingTheEdge - Gaming Network / 3DNewz_468X60_Top --> <script type="text/javascript" language="javascript" src="http://as.ad-flow.com/dat/dlv/aslmain.js"></script> <script language="javascript" type="text/javascript"> Ads_kid=0;Ads_bid=0;Ads_xl=468;Ads_yl=60;Ads_xp='';Ads_yp='';Ads_xp1='';Ads_yp1='';Ads_opt=0;Ads_par='';Ads_cnturl=''; </script> <script type="text/javascript" language="javascript" src="http://as.ad-flow.com/dat/cjf/00/00/76/93.js"></script> <!-- END:AdSolution-Tag 4.3 --> [/code] I don't think a flash movie would work in this case since the banner itself could be flash and needs to be clickable. I was told by another person that javascript would be the best way to do this. Can I still get some instructions on how to do this? I know I could actually start making money on my site if I could just get this to work. :( Thanks for any assistance.
  11. I just have code that I want to be refreshed, but I don't want the whole page itself to be refreshed, just a specific section. I am trying not to use an iframe. Can somebody help a noobie on what code I should put in my page to do this for me? Thanks.
  12. This looks close to what I need, but I don't have images, links and text. I have one chunk of code supplied by an ad company. That code does the rotating. All I need is for that same chunk of code to refresh. How would I modify the code you provided so that it would work with one peice of code, instead of multiple links, images and text? Thanks for your help!
  13. I have knowledge of how javascript works. I was talking in this thread: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90049\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90049[/a] and it seems that javascript is going to work the best for me. Figured I would more pinpoint my request in this forum. I have the banner code from my ad company and the code stays the same. It's not like images and hyperlinks, but the code that grabs the info from the ad company. Is all I need the javascript code that will refresh my ad code every 30 seconds without refreshing the rest of the page. Can somebody please help me out on how I would set this up so that it would work? I would really appreciate any help I can get. I'm not making much money and banners in iframes grab the keyboard control focus away from my onine arcade when people play the games in the window. Please help.
  14. I found these two resources, but I don't know enough to change them to fit my site: [a href=\"http://www.vbulletin.org/forum/showthread.php?p=609945\" target=\"_blank\"]http://www.vbulletin.org/forum/showthread.php?p=609945[/a] [a href=\"http://forums.invisionpower.com/lofiversion/index.php/t191265.html\" target=\"_blank\"]http://forums.invisionpower.com/lofiversio...hp/t191265.html[/a] Can somebody please help me sort out a working version of the htaccess that will block a watermark.php file? EDIT: I also tried this that I was given by someone else and it didn't work either: [code] SetEnvIfNoCase Referer "^http://www.yourdomain.net/" allowed=1 SetEnvIfNoCase Referer "^http://yourdomain.net/" allowed=1 SetEnvIfNoCase Referer "^$" allowed=1 Order Allow,Deny Allow from env=allowed <Files "*.php"> Order Allow,Deny Deny from all </Files> [/code]
  15. It's someone elses script and I don't know coding. Getting an htaccess to block php hotlinking seems (if possible) to be the easiest way for me to get this accomplished. Does anybody know how to get the htaccess to block php hotlinking?
  16. The script works fine by itself, but calls medium and fullsize images through a watermark.php file, but not thumbnails. I want to keep the thumbnails hotlinkable while blocking the medium and fullsize images that are called through this watermark.php file. Is there a way to have a htaccess block the hotlinking of images from my site that are called through this watermark.php file? I tried this: [code] RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?domain\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png|php|PHP)$ http://www.domain.com/images/banners/hotlinker.gif [L] [/code] But it didn't work and still allows images to be hotlinked. Any ideas? (I don't know enough programming to tell the script to store the images in different directories than the thumbs so that won't work) EDIT: The medium size url looks like this: [a href=\"http://www.domain.com/images/watermark.php?file=107&size=1\" target=\"_blank\"]http://www.domain.com/images/watermark.php?file=107&size=1[/a] and the fullsize image url looks like this: [a href=\"http://www.domain.com/images/watermark.php?file=107\" target=\"_blank\"]http://www.domain.com/images/watermark.php?file=107[/a]
  17. Is there another way to refresh? I don't have the specific links, I just need their ad code refreshed every 30 seconds and they handle what banner will be shown. Isn't it possible to use something that just refreshes itself every 30 seconds and within the code I insert the ad code? If nothing else, couldn't something peppered with AJAX work? (from what I know about how it can dynamically change things on a page without reloading the whole page, this seems like it would be small compared to what AJAX is capable of.) Can you give me more help? I would relaly appreciate it. I was making some good advertising money finally with my banner refreshing... but after I saw that it was interfering with content I had to remove it. Thanks for any help anybody can provide me.
  18. That looks like it might work, but I don't know much about coding other than following peoples instructions. My ad code is provided by an ad company so it's already in a script tag not site url and ad image. Can you help me with what exactly I need to put into the page code to get it to refresh every 30 seconds?
  19. [!--quoteo(post=362900:date=Apr 8 2006, 08:31 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Apr 8 2006, 08:31 PM) [snapback]362900[/snapback][/div][div class=\'quotemain\'][!--quotec--] you will need the gd library functions!!!! here is your starting point - have fun learning ;) [a href=\"http://uk.php.net/manual/en/ref.image.php\" target=\"_blank\"]PHP Image Functions[/a] [/quote] I have the gd lib on my server, but I don't know jack about coding. I was hoping for somebody to either post a script or something that I could just insert into the other script that I'm using. I don't know php at all, hence the php newbie forum.
  20. I want to be able to shrink my images like on imageshack. Example: [a href=\"http://img375.imageshack.us/my.php?image=imageomatic40tl.jpg\" target=\"_blank\"]http://img375.imageshack.us/my.php?image=imageomatic40tl.jpg[/a] The first image is basically the large image just with it's width and height lower than what they really are. When you click the image the image width and height adjust to the native size without reloading the page. Can somebody point me or create something for me that does this? I really need this for a site I'm working on. Thanks for any help you can provide.
  21. I don't see any ID in my flash code where the game is embedded. If you think javascript is a better way to go, can you please give me the code of how I would use it? It would just refresh the banner right?
  22. Can somebody help me with getting my iframe refreshing not to steal focus? I am using a simple meta refresh tag in the iframe, but when it refreshes sometimes it steals the focus from the page that the iframe is on, to the page that is in the iframe. Can somebody help me fix this problem? If nothing else, I was thinking perhaps iframe isn't the way to go and I should try something with AJAX to force that part of the page to be refreshed. Is something like that possible? I just need it to refresh every 30 seconds, but I do not know how to do that. Can somebody please help me fix my problem? Thanks for any help you can provide!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.