| View previous topic :: View next topic |
| Author |
Message |
Tedmiller
Joined: 14 Apr 2006 Posts: 98
|
Posted: Wed Feb 06, 2008 5:35 am Post subject: How to add "http" in web address |
|
|
When people include their name, email address, and web site, I don't think any of them ever add "http://" in the web site. As a result, the link ends up being "http://www.tedmiller.com/www.examplewebsite.com."
How can I add the http automatically? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Feb 06, 2008 3:04 pm Post subject: |
|
|
Hi Ted,
Are you talking about in the event notes? Is this using the default HTML editor that comes with Thyme? |
|
| Back to top |
|
 |
Tedmiller
Joined: 14 Apr 2006 Posts: 98
|
Posted: Wed Feb 06, 2008 4:52 pm Post subject: |
|
|
| I'm referring to the field just before the event Notes. Just before adding details of their event, there are fields for the submitter's name, email address, then URL. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Feb 06, 2008 5:10 pm Post subject: |
|
|
Hi Ted,
This should already be done. I'm sorry, I can't remember if you've customized Thyme. Maybe you have and so have not updated class.event.php. Here are the lines that should go after
in include/classes/class.event.php:
| Code: |
# URL
######
if($this->url && !strpos($this->url,"://"))
$this->url = 'http://' . $this->url;
|
Actually .. this was done even as far back as 1.1. Can you tell me if those lines already exist in the file please? They may not appear exactly after that portion, but searching for "url" in that file should display a similar snippet. |
|
| Back to top |
|
 |
Tedmiller
Joined: 14 Apr 2006 Posts: 98
|
Posted: Fri Feb 08, 2008 6:30 am Post subject: class.event.php |
|
|
I'm sheepishly starting to think there's some user error here. I was looking for an example to show you what happens... and I couldn't find one. Granted, I've edited a lot of the submissions to add HTTP, but not all of them.
I'm running into the "www.tedmiller.com/submittedwebsite.com" issue while checking and editing submissions.
I think I'm seeing that Thyme adds the HTTP:// is added AFTER the event is approved and appears live on the calendar. Is this correct? So I'm wasting my time adding "http://" to those submissions? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Fri Feb 08, 2008 6:53 pm Post subject: |
|
|
| Ah yes.. that is not in the requests, but will be added once approved. So you should not have to do that. |
|
| Back to top |
|
 |
|