php help
Hello all! Im new here at greenguy & Jim.
Im doing some research for my site, and was looking on sublimepie.com, and would like to find out how they have the 4 pics at the top that have links but also rotate after a refreshed page with another set. I have been looking at random image scripts, but cant seem to find one that would handle more than 1 image shown at a time. Then I was thinking it was a banner and each image seperatly linked with hotspots or what have you, but now im thinking its a php script that displays random html? Could this be it? Any help is greatly appreciated Thank you |
Quote:
Welcome to GG&Jim |
wow, ok awsome! ty warrior! Any idea on where to find a good php script for this? or basically a php script that can show anything i specify at random, including tables or banners?
I also noticed that the domain name is banners.sublimedirectory.com, is this where they just have the banners stored? |
i would suggest phpadsnew :)
|
Quote:
But if you are looking for something simple that doesn't require databases, you can employ a tiny script that I found here at GG&Jim's. Place this PHP statement on your page where you want your adverstising to appear: $file = "bannerlist.txt"; $banners = file($file); srand((float) microtime() * 1235689); $selected = array_rand($banners); $SelBanner = trim($banners[$selected]); if ($SelBanner=="") { $SelBanner = trim($banners[0]); }; echo $SelBanner; ?> You'll notice that it pulls it's info from a file called bannerlist.txt. So make a text document with that name and upload it to the same directory as the page with the PHP code above. Put each separate banner, text link, or whatever on its own line. It can pull in entire tables, just make sure you get rid of any carriage returns so that the entire table is on one line on bannerlist.txt. Each banner or link will appear randomly with each page refresh. Here's a page that uses that code to control the banners before the listings: http://www.filthyearl.com/hot-babes/ This is the bannerlist.txt for that page: http://www.filthyearl.com/hot-babes/bannerlist.txt And to answer your question about where to store banners, be creative in naming your banner directory or place them any image folder. You really shouldn't use the term 'banner' in your exposed page code. A lot of surfers are using ad blocking software that will block any image or link with that term. |
I give another plug for phpadsnew, totally awesome script. Been using it for a long time.
ronnie |
guys I thank you very very much for the help, you have been great!! Its good to find a board where you can get help instantly. I look forward to my stay here at GG & Jim!! Im not much of a programmer but i have downloaded phpadsnew and will read all documentation and give it a shot. Im assuming that phpadsnew will do everything that you have mentioned in the php code you provided warrior? probably a stupid question ;) and you should change your name, not by any means are you useless!! :)
|
Phpadsnew will do much more than that little code I posted. It's one of those scripts that, when you log in to the admin for the first time, you'll be amazed that it's free. If you run in to trouble you can typically get some help with it here. There are a few posters here that run and know phpadsnew damn well. I should get off my lazy ass and install it on Filthy Earl and re-install it on Whoring Wives.
|
For sure, it is amazing it is free, for all it can do.
ronnie |
One quick question before i attempt to install this baby! I read in another post on the boards that it can suck alot of juice from your server. being as how Me and my partner are getting ready to launch our first site, we didnt go nuts on a hosting package, the one we went with is webairs starter package. Would you think this is sufficient to run phpadsnew?
|
Vox, back when WhoringWives was on a virtual account I ran phpadsnew on it without any complaints from my host. How much of a resource hog it could be, would be dependent on your traffic and brand new site probably isn't going to pull down the amount of traffic that is going to cause any issues. Personally, I wouldn't worry.
Does Webair really charge $49.95 per month for Cpanel? I've only ever seen dedicated servers charge for Cpanel. As a price comparison, on my dedicated server I pay $25 per month for Cpanel/WHM with Fantastico. |
Just installed phpAdsNew myself and it was a breeze. Figuring out how to set everything up and actually make it work with my LL script is another story. :(
I've only played with it since yesterday though so I might still get the hang of it... :D But be forewarned, it's a monster of a script. |
Somewhere on this board, Cleo has a fairly informative document about phpadsnew. I did some cursory searches, but I thought there was a longer document somewhere.
http://www.greenguysboard.com/board/...ight=phpadsnew http://www.greenguysboard.com/board/...=1934#post1934 |
then i will give it a shot and see if i can figure this out. yes unfortunatley webair does charge that much for cpanel, but i opted not to go with it. There control panel is also great. Other than that the company has been awsome so far... I have no complaints and they have awsome support.
|
Hey everyone. I have this thing installed and have been reading, but this program has really thrown me for a loop and have no idea where to begin for the direction I am trying to use it for. Can anyone give some pointers as to what I should do?
|
basically i set it up as the spnosor is the adveratiser so click on add advratiser and follow the set up for it. then each campaign is one of that sponsors sites. then you go in and put the banners you want for that site... this is basically the database from which you get the ads for the various publishers and zones.
your publishers are your sites or niches or whatever you want to set them up as. within them you have your zones which is specific pages or banner sizes or whatever and they will have specific banners from the adveratisers and campaigns you set up first. once you have your zones filled with the banners you want to show then you get the invocation code and paste it on the page you want the banners in that zone to show up on. theres lots more to it than that but thats a starting place at least :) |
Here is that post,
Quote:
|
Sorry everyone for being such a pain, but Im still lost when it comes to this. It seems like an awsome program and would like to get to know it. Everything you have posted has been informative but the way you describe yourselves using PAN is for 1 specific banner. The banners i am trying to integrate is like the ones used on sublimepie. I will have a total of 3 photos each one for a different website and not one specifically. this is what i am trying to figure out. I dont get how you assign campaigns and zones and then enter in the HTML code to display my tables with the 3 image links. Once again i do appologize i know Im a total noob! I will begin reading from the beginning again ;)
|
You have to make at least one zone.
Fill this zone up with ads. In your case thumbs linked to a sponsor. Get the invocation code for this zone and put this code on your page. |
Wow! ok, I have it working. I do have another couple questions though. (probably more to follow :( ) but for now, what i did was create a campaign and then a zone, then linked the campaign to the zone, is that right? Second.. I added the html for each banner to the campaign, now does this display at random?
|
yup it does display at random....jumped the gun on that question ;)
|
you can alter that by changing the weight of certain banners in the campaign. If I recall, a banner can belong to multiple campaigns, and an advertiser can manage multiple campaigns.
So, if you set the weight of your favorite banner to 3, and the rest are 1, then, your favorite banner will come up 3 times as frequently. Still somewhat random. What I have done in the past is run a bunch of impressions, 5000-10000 of each banner, then, weed out the lower clicking ones. There is a better way to do this which I haven't engineered yet. :) After a while, you get a stack of banners that pull clicks. Then you can use that info when building galleries, freesites, etc. so that you know which banners pull better. You can run multiple campaigns on the same page (i.e. your 'three' image scenario above), but, there used to be something called grouping that would prevent duplicate banners in different campaigns from being displayed in the same pageview. Or, you could manage it yourself by putting distinct banners in each campaign, and having each 'spot' be a campaign. Once you play with it you'll start picking up the tricks. |
Quote:
|
That won't work on a shtml page. :( I'm not even sure how to modify it that one to make it function that way.
|
Well, Iit took me hours but I figured it out for shtml..I am a script idiot but I did it!!
make a php page with the script. make a text file called bannerlist,txt or you can change it then include it on your shtml with ban.php being the name you give the file test page is here kewlies.. |
All times are GMT -4. The time now is 12:50 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc