Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 358
Likes: 1
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Likes: 1
File not found: scripts/chevroletwav.inc.php

I added an island which works "some" of the time. It has a link to an imbedded WAV file. But about half of the time, the link is red-x'ed out and the above error message occurs if you click on it.

Did I need to do something differently in order to edit/save the island file properly?


--BIll B
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Is it possible for you to post your code for the island. The error message looks like it's trying to be called by ubbthreads.php?ubb=chevroletwav Seeing the code itself will help figure out the exact problem.

Joined: Oct 2006
Posts: 358
Likes: 1
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Likes: 1
Yep, you betcha!... Thanks.. this has been an annoyance for two weeks now.

/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<center>
In your
<a href="chevrolet.wav">
<img src="bowtie4.gif" width="140" height="59" alt="Dinah says Hi!!"></a>

</center>
EOF;


--BIll B
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, I'm pretty sure it's happening because it's trying to load from the same directory. I'm going to guess that you have search engine friendly urls turned on.

What I would do is change all of the filenames to the full url

So, something like:

PHP Code

/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<center>
In your
<a href="http://www.domain.com/path/to/chevrolet.wav">
<img src="http://www.domain.com/path/to/bowtie4.gif" width="140" height="59" alt="Dinah says Hi!!"></a>

</center>
EOF;
 

Joined: Oct 2006
Posts: 358
Likes: 1
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Likes: 1
Okay, I made the change and just emailed a user in So. Oregon who had the biggest problem with it... I should know shortly if that fixes it. Yes, I have friendly urls turned on.

And with the full url path entered into the code, it works for me as before... so at least we're not going backwards!!


--BIll B
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
I figure i'll make a comment since i'm against embedding sounds on sites...

It's wise to keep in mind that most modern browsers now adays allow tabbed browsing, and lots of users (myself included) go and load multiple tabs; so if sounds loop you'll have one hell of a mess when visiting sites that would sometimes just end with people disabling sounds on their computer when visiting your site.

Ofcoarse this is generally most annoying on flash files that loop sounds wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,659
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,659
Likes: 1
Originally Posted by Gizmo
I figure i'll make a comment since i'm against embedding sounds on sites...


While I agree with everything you've said, he's not embedding/autoplaying/looping the sound -- it's just a link. wink



GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 8.1.34 / MySQL 5.7.23-23 / Apache 2.4.67
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Originally Posted by jgeoff
Originally Posted by Gizmo
I figure i'll make a comment since i'm against embedding sounds on sites...


While I agree with everything you've said, he's not embedding/autoplaying/looping the sound -- it's just a link. wink
actually, it sounded like he was embedding it, but not in a loop; i was posting on an "in general" stance wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2006
Posts: 358
Likes: 1
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Likes: 1
Here's the latest status. Everything now works all of the time!

My users are happy. You see.... they WANT the sound to be available to them. And by having it available as a link, THEY choose when to listen to it or not.

While I agree with everything that you've said... (ha ha)... I think that I've struck a happy medium with everyone.

You can take a look at
http://vccachat.org/forum/ubbthreads.php

Thanks much for your help... and boo hiss on non-relative links.


Last edited by Bill B; 12/29/2006 6:05 AM.

--BIll B
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
haha, someone agrees with me, thats just scary hehe...

Looks good smile


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)