Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need a small favour

Featured Replies

Hi guys, I need to ask a big favour.

 

My boss wants me to set up hosting, etc and get each site a coming soon page up, so it start getting domain authority until the sites are ready to go live.

 

I was wondering if anybody has a simple bit of code of some kind that can pull the website url and put it on the page?

 

So far this is my page (in HTML)

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>website url here</title>
<style type="text/css">
body {background-color:706F6F;}
h1{text-align:center;font-family:Helvetica;color:FFFFFF;}
p {text-align:center;font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;color:FFFFFF;}
</style>

</head>

<body>
<h1>Website Url Here</h1>
<p>Coming Soon</p>
</body>
</html>

whereever website url here is, I want the url to be auto pulled, so I dont have to edit 140 index files...

 

I am even willing to pay somebody a small fee for their time/script/effort via paypal :D

 

Thank you in advance :D

I pretty sure what you are asking is done automaically when the hosting package is created / goes live with a lot of host providers.

 

Mine does.

  • Author

no, its for a client of his. But I am asking, on behalf of myself - who has been tasked with this massively laborious job. I am sure there is a simpler way then editing 140 index.html files, but I am no script guru.

 

I understand it may seem cheeky, hence why I am willing to pay a small fee for what maybe just a simple script somebody could give me (which they may have just hanging around), so I can just upload the file to all the hosting packages, rather than editing the files, then uploading them.

 

Cheers

 

<h1><?php echo $_SERVER['HTTP_HOST'] ?></h1>

Just trying it now, will respond back in a mo. Thanks :D

Edited by jamesosix

  • Author

I pretty sure what you are asking is done automaically when the hosting package is created / goes live with a lot of host providers.

 

Mine does.

 

Mine doesnt, its on fasthosts (I know - not my choice) :p

 

Will do Oakleaves, cheers :)

  • Author

spifire, works a treat, thanks very much. I owe you a beer! Please check your pm

  • Author

spifire, works a treat, thanks very much. I owe you a beer! Please check your pm

I think a reward system in the forum like that would be a great addition for people who really do help .

 

I have offered spit a bit of cash for some beers or cookies, but he politely declined :o

Edited by jamesosix

That's quite a good idea. Be good to have it implemented into the forum as a Paypal donation or something.

 

There's probably someone on the forum who's good at that sort of thing......

 

:lol:

That's quite a good idea. Be good to have it implemented into the forum as a Paypal donation or something.

 

Based on the response to my beer link, I can't see it catching on... unless I just give really bad advice.

 

Edit: The +Rep button doesn't get used anywhere near as much as it should either. I try to Rep people when I see a good answer, but a lot of people disappear once they've had their questions answered without even bothering to say "yup, that worked" - which makes the thread less useful for the next bod with the same question.

Edited by Renaissance-Design

Thinking about it a bit further, that sort of micropayment system would only really stand a chance of working if there was a clear way to identify Q&A posts, and accompany them with something like (pseudocode):

 

$user has asked $nq questions and rewarded $na answers

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.