PDA

View Full Version : Simplifying HTML Design with Scripts


RyanLanane
02-09-2005, 03:59 PM
I am looking for a script where I can put in say, for example...

<Sponser1> and i puts my sponser in there
<Footer1> and it puts in the specified footer

Etc... Are there any such programs out there?

Ryan

NickPapageorgio
02-09-2005, 04:23 PM
Do it with include files. :ph34r:

RyanLanane
02-09-2005, 04:55 PM
That went over my head (whooooosh)

I see 4 others viewing this thread so I guess there is a demand for this any scripters out there, hint hint hint !! :D

sarettah
02-09-2005, 04:56 PM
There are gallery building scripts that do that. I don't know which ones are free and which ones work.

I do that within my system(s), but it is all custom stuff that runs proprietary.

Easy enough to put together a simple builder script though.

PornoDoggy
02-09-2005, 05:00 PM
You have a pm ...

gonzo
02-09-2005, 05:46 PM
I simplfied mine very easily.
I outsourced them to Forests guys...

$7 a gallery they look great they are fast and they convert.

Yug
02-09-2005, 07:52 PM
Originally posted by NickPapageorgio@Feb 9 2005, 01:24 PM
Do it with include files. :ph34r:
Agreed. Heres a quick rundown.

Make sure you rename all your files as .php

Lets say you have 3 files:

index.php
footer.php
sponsor.php


This is the contents of your index.php:

<html>
<head>
<title>index</title>
</head>
<body>
<?php include("sponsor.php"); ?>
I am an index file, woohoo!<br>
<?php include("footer.php"); ?>


This is the contents of your sponsor.php:

I am MR sponsor!<br>


This is the contents of your footer.php:

I am a footer
</body>
</html>


When u upload them, then goto load index.php in your browser, the end code when you view the source will look like this:

<html>
<head>
<title>index</title>
</head>
<body>
I am MR sponsor!<br>
I am an index file, woohoo!<br>
I am a footer
</body>
</html>


And in your browser it should look like this:

I am MR sponsor!
I am an index file, woohoo!
I am a footer


I'm 90% sure that this works, as it works for me, but im not a programmer so if i fucked it up can someone let me know?

sarettah
02-09-2005, 08:02 PM
<?php include("sponsor.php"); ?>

If you are going to do it with php, then you would probably want to pass in a var to identify what sponsor to pull in and possibly what banner to use (or a pointer to a table that has that info... That way you can change out a particular sponsor/banner/ad on the fly or rotate through banners.


You could handle it via ssi though too....

Inabon
02-09-2005, 08:12 PM
there is no easy way or premade solution... at least from your description.

there are php solutions and perl solutions.

perl you would have to create a script that makes changes according to the variable you want to use when rendering html

with php or asp you would have to create your layout where you would put calls to a database that you create with the fields you need EG tittle link url zone.

with the zone field you may control where the link shows up if you divide your site in zones.

depending on your traffic and how complicated your zoning and dynamic data may or may not overload your server.

hit me up if you want custom stuff made :)

BillPMB
02-09-2005, 08:52 PM
Or you can use a free host script on the gallery domain and do it that way pretty easily too. (just don't run the free host, use it for galleries of your own)

You can change out sponsors accross thousands upon millions of galleries with a few clicks

Inabon
02-09-2005, 09:04 PM
Originally posted by BillPMB@Feb 9 2005, 05:53 PM
Or you can use a free host script on the gallery domain and do it that way pretty easily too. (just don't run the free host, use it for galleries of your own)

You can change out sponsors accross thousands upon millions of galleries with a few clicks
or he can use remotethumbs we do that automatically too :)

RyanLanane
02-09-2005, 09:24 PM
Thanks guys, I got the answers I needed and alot more to go off of in the future. Keep in mind, I am an old man rebuilding from the VERY bottom so buyin scripts is not really in my agenda right now.

The php stuff will work great for simply changing the footer and using the same gallery with multiple pages ... say 3 TGP buttons per page.

I also purchased Advanced Submitter which I am yet to Tinker with.

This reminds me of the Old days and what the boards used to be like Nick - not necessarily swapping secrets that double your income overnight BUT very helpful people willing to offer any advise on business they can help with.

Things have evolved so much, I dare say it... But how the hell can I not succeed ?

PornoDoggy
02-09-2005, 11:37 PM
It's probably been two years since I tried using SSI, but the Brownie tgp script didn't like them at all.

JerryW
02-10-2005, 05:35 AM
You might take a look at http://phpadsnew.com It's free, let's you control the elements on the pages (sponsers, footers, etc) and can do click out tracking as well. Tracking ad performance is a lot more important today with a lot of low quality traffic lying around. Lot's of fancy features for when your empire gets big again

RyanLanane
02-10-2005, 07:24 AM
Thanks Jerry .... I'm back to the up 2 days sleep 6 hour schedule, Lots of caffeine :D Lots of pain in the ass coding to get the foundation for this setup but I think I have a pretty damn good business plan setup on how to attack this. Hopefully I don't max out the 10 mbps line I have been given :wacko:

arnette
02-10-2005, 09:04 AM
I can easily make a little script for you that will do exactly what you are after. ICQ me 243680554

NickPapageorgio
02-10-2005, 09:23 AM
Also, for a little php reading up I highly recommend http://www.phpfreaks.com

I learned alot just from reading through tutorials and dissecting scripts from that place.

PornoDoggy
02-10-2005, 12:36 PM
Looks like an interesting link ...

TheEnforcer
02-10-2005, 12:44 PM
Originally posted by NickPapageorgio@Feb 10 2005, 09:24 AM
Also, for a little php reading up I highly recommend http://www.phpfreaks.com

I learned alot just from reading through tutorials and dissecting scripts from that place.
I'll have to check that out. Bookmarked it already. When it comes to coding and shit I just have never caught on as the stuff just drives me nuts. i know it can make your life much easier but I just am not a techie at all and have always kinda stayed away from it.

mojobill
02-10-2005, 12:46 PM
If you are not techie, you can accomplish much the same results using SSI... especially in conjunction with a global alias on your server.

Works pretty much like the php include above.... does not track, of course, but its damn easy to make global changes to ads....

;-)

NickPapageorgio
02-10-2005, 02:39 PM
Originally posted by TheEnforcer+Feb 10 2005, 09:45 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (TheEnforcer @ Feb 10 2005, 09:45 AM)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-NickPapageorgio@Feb 10 2005, 09:24 AM
Also, for a little php reading up I highly recommend http://www.phpfreaks.com

I learned alot just from reading through tutorials and dissecting scripts from that place.
I'll have to check that out. Bookmarked it already. When it comes to coding and shit I just have never caught on as the stuff just drives me nuts. i know it can make your life much easier but I just am not a techie at all and have always kinda stayed away from it. [/b][/quote]
Trust me...I am NO techie lol. I have played around with php in the past and I understand the language somewhat but I am no guru. What I usually do is download a script that is close to what I need and then modify it to my needs. :ph34r:

If I can't figure it out I hire someone to do it.

That being said, that site seemed to have sections that were a bit more set up for regular tech idiots like me. Easy to read and step by step.

I highly recommend the php/mySQL marriage however. That can definitely make your life easier once you finger it all out.

sarettah
02-10-2005, 07:41 PM
Originally posted by arnette@Feb 10 2005, 09:05 AM
I can easily make a little script for you that will do exactly what you are after. ICQ me 243680554
If you can say that honestly after reading a 2 line description then you are a much better programmer than I am :wnw: