Mapping Tips Application

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Mapping Tips Application

Post by m4rine »

OK - i know some of my ideas have been real bad but take a look at this pls - and i dont mind it gettin absoblutely flamed for this but i did put lot of work into PHP of it:

"The 'Mapping Tips' application created by me (m4rine) allows all the users from all the different mapping sites to submit their tips into one database, then show the tips. The mapping sites may use their own templates with their pages - to retrive the tips all they need to do is add a small line of code to one page. They can do this with any of the application pages - so they can enable people to view the tips, submit a tip (instantly added to the database), host the tips on their own sites, submit feedback and read about the application all through one line of code - and no pages are a must - you may just want to show the tips and nothing else! Everything is done via the LevelEdit server - you don't need to download any files at all.

Advantages

Imagine you have 30 mapping sites. 200 visitors a week for each. If you wrote your own tips page with no form to allow others to submit tips, then it isn't going to be updated often, and people may not want to e-mail their tips. If you do have a form on your site, then which is going to get greater content - 30 seperate tips pages or one big database which all 30 sites submit their forms to and display tips from? This application solves both problems - it allows users to instantly submit tips and it combines all the tips into one database - so instead of 200 submitted tips for each site, you get 6000 tips from all the mapping sites - which is a lot more practical.

Anyone may submit thier tips at any time - if someone submits a tip in your site it goes straight through to the main database instantly, appearing on any tips page from any site using the information from our server. This means even if you are not interested in hosting the tips, you can still submit your tips.

Interested? Go to the LevelEdit application use here."

many thanks,

m4rine
Last edited by m4rine on Fri Mar 12, 2004 9:29 pm, edited 1 time in total.
"We must become the change we want to see in the world" (Mahatma Gandhi)
User avatar
ziptie2k2
Major
Posts: 326
Joined: Wed Jan 21, 2004 5:19 pm
Contact:

Post by ziptie2k2 »

I like this idea m4rine, this is the way all noob's should start out. All you need now is the experts to go and submit some of there tips.
I once was lost, but now........... I'm still lost!
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Hm... yes... a tip of the day app. Brilliant thinking.
Admin .MAP Forums
Image
Head above heels.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

html or php

Post by tltrude »

Step one says this line from step two can be added to an HTML page.

<?php include('http://www.leveledit.com/tips/mapping_tips/mapping_tips.php'); ?>

But step 3 says to change it to a .php extention. So, which is it? It did nothing when I added it to an html page. I tried changing the extention of the page to .php and my Windows ME says I don't have "hphp.exe" or something like that.

I'm lost!
Last edited by tltrude on Thu Mar 11, 2004 6:50 am, edited 1 time in total.
Tom Trude,

Image
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

Bravo !!! Nice job M4rine!

Looks like your gettin PHP down. :wink:
"all the governments in the world are corrupt and in the hands of the Illuminati"
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Re: html or php

Post by Bjarne BZR »

tltrude wrote:It did nothing when I added it to an html page. I tried changing the extention of the page to .php and my Windows ME says I don't have "hphp.exe" or something like that.

I'm lost!
For your webserver to execute PHP code, it must have a PHP interpreter installed. If you want to test locally I suggest the open source Apache server with the a PHP module installed.

Most host providers have PHP support.
Admin .MAP Forums
Image
Head above heels.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

so........

Post by tltrude »

So, you are saying I can't test it on my computer, and must upload it to the server to see it? I don't really want to turn my html page into a php page!

http://smallsumo.leveledit.com/tltrude/index.html

It is at the bottom of the above page and it still doesn't do anything.
Tom Trude,

Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

tltrude - to put it on the site you have to insert to your html then change the .html to .php - this does not damage your html content in any way - php is embedded in html and has html output. .map pages are php.

also u can have ur own tltrude.leveledit.com thing if u want but smallsumos site is great i think - hes got loads of maps, bot maps, gr8 stuff.

EDIT: I have changed something in the code - now when u add a tip before if you put:
hi, im "bob", im 'cool'
it would appear on the mapping tips page as:
hi, im \"bob\", im \'cool\'
- it inserted a slash b4 every quote. this was down to php syntax - when assigning a variable (i could explain but id bor all non-programmers). but anyway, originaly the 'enter' didnt work - if you made a new paragraph it would appear on one line, but i fixed this befor i made it public. two simple functions did the job. please not that ziptie2k2 post on it was before the modification, and i will edit the tip without the slashes.

cheers,

m4rine
"We must become the change we want to see in the world" (Mahatma Gandhi)
Post Reply