Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Epideme

Pages: [1]
1
Beginners - Learning PHP / Re: Alt-text problems
« on: July 04, 2011, 10:53:16 PM »
I do have Notepad++, though tend to use Dreamweaver CS4 as my text editor.
If i am totally honest, i didnt understand even a little bit of that, i'm a total novice at this.
But i do really appreciate the help, i have just changed them all by hand anyhow, but thank you anyway.

2
MySQL database / Re: Finding an old SQL file
« on: July 04, 2011, 10:50:54 PM »
I just started again from scratch. *Shrugs* C'est la vie.
Thanks for the help anyway though.

3
General PHP Help / CAPTCHA Suggestions
« on: June 29, 2011, 04:03:28 PM »
Hi, i have a phpbb3 forum - at the moment it's just a developer's forum, but with the completion of my website nearing, i plan to set it up to be a normal forum, but already i am getting 2 or 3 spam memberships a day. I don't want to have to accept all the memberships myself (it's effort and annoying as hell for the people joining), and it's already set to activation email, so i was wondering if anyone had any suggestions and links to particularly good CAPTCHA's, at the moment it's just using the standard words in an image CAPTCHA

4
Beginners - Learning PHP / Re: Mouseover Image Change Script
« on: June 29, 2011, 11:42:27 AM »
Okay i've managed to fix it, turns out that code does work, but i was using it slightly wrong, i got confused with the labels i was using in the document.label.src bit

5
Beginners - Learning PHP / Re: Alt-text problems
« on: June 29, 2011, 08:23:12 AM »
Ahh, cosmic, absolutely brilliant, that's fixed it... now to repeat that 67 more times... fun.
Thank you so much, that's been bugging me for the best part of 2 years.
I really appreciate it, thank you ;D  ;D

6
Beginners - Learning PHP / Alt-text problems
« on: June 28, 2011, 03:08:10 PM »
Hi all,
on the following 4 pages:
http://www.bathingwithtoasters.com/signs.php
http://www.bathingwithtoasters.com/signs2.php
http://www.bathingwithtoasters.com/signs3.php
http://www.bathingwithtoasters.com/dxfiles.php
There should be alt-text on all the images (except 2 of them on signs3), in my Firefox 5 browser, i have never been able to see the alt-text by hover the mouse over it (only by viewing image properties), and that has been that way since Firefox 2. However i used to be able to see them in my other browsers: IE8, Opera 10, Chrome, but no longer can.
I originally presumed it was a problem with my installation of firefox (though i can see alt-text everywhere else like XKCD), but since then cannot view it at all, so first i was wondering if any of you can see the alt-text when you hover the mouse over the images, and second, why is it not working on my PC

For example, this is the code for the left top image on signs.php
PHP Code: [Select]
<p style="text-align:center"><img src="signs/1.jpg" alt="Decisions, Decisions..." width="200" height="200" /></p>
This might be one of those times where it's better, not to flip a coin over it.<br />


The caption i can see just fine, that is just ordinary text, but the alt text 'Decisions, Decisions...' I can't see by hovering the mouseover it, in any browser, but there's  nothing fancy about the code, i am guessing it is not the code that is the problem, but though it was worth checking with you guys first, and thirdly, if there is anything i can add to the code, to help with compatibility to get around this problem.

Any help would be much appreciated,
Thanks in advance,
Nick

7
Beginners - Learning PHP / Mouseover Image Change Script
« on: June 28, 2011, 02:57:21 PM »
Hi, I have a page here: http://www.bathingwithtoasters.com/signs3.php
The 6th image on the right hand column (the one with the billboard about speeding) or image 12 as i will refer to it, should change to image12a (an alternative image on the same theme), when the user hovers the mouseover the first image. However, this doesn't seem to be working for me.
PHP Code: [Select]

<p style="text-align:center"><img src="signs3/12.jpg" alt="" width="200" height="200" /><a href="#"  onMouseOver"if (document.images) document.signs3_12.src= '/signs3/12.jpg';" onMouseOut"if (document.images) document.signs3_12a.src= '/signs3/12a.jpg';"><!--<img src="/signs3/12a.jpg" name=signs3_12a border=0>--></a></p>


The images are stored in the folder /signs3/X.jpg where X is 12 and 12a for the default and mouseover images respectively. This is the code i was given by a friend, and works elsewhere on that same site (half-way down /index.php)

I commented the last bit out, because it made the 2 images appear side by side, now, nothing happens, can anyone suggest either what is wrong with this code, or a better code for mouseover image changes?

Thanks in advance,
Nick

8
Beginners - Learning PHP / Re: Generating Thumbnails
« on: June 12, 2011, 10:28:07 PM »
Hi codeguru, thanks for that, with a bit of jiggery pokery it's all working, beautifully, that was really painless and even a total novice like me could pick it up and the instructions were nice and clear. Thanks a lot. :)

9
Beginners - Learning PHP / Generating Thumbnails
« on: June 11, 2011, 08:25:51 PM »
Hi, i have a page with about 30 images on, that i wish to display thumbnails for, and when clicked on, display the full images, i have the full images already on the server. Is there a way to generate thumbnails, without individually opening all the images in an image editor, resizing them, resaving them? Is there anyway of just generating them from the main image in the browser, and displaying the thumbnail, with a click on link to the main image?

applicable page is http://www.bathingwithtoasters.com/headliners (though it won't be of any help i imagine)
I'm writing it in dreamweaver cs4 if it makes much difference

And the page's source code is:
PHP Code: [Select]
<?php require "prehead.php"?>
<!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>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<?php require "metadata.php"?>
<title>Headliners - Bathing With Toasters</title>
</head>

<body>
<?php include "1head.php"?>

<div>
<h2><img alt="Headliners" src="image/headliners2.png" /></h2>

<table>
<tr>
<td>Daily Express</td>
<td>
<a href="headliners/Express1.png"><img src="headliners/Express1_thumbnail.png" width="150" height="75" border="0"></a>
<a href="headliners/Express2.png"><img src="headliners/Express2_thumbnail.png" width="150" height="94" border="0" /></a>
<a href="headliners/Express3.png"><img src="headliners/Express3_thumbnail.png" width="150" height="75" border="0"></a>
<a href="headliners/Express4.png"><img src="headliners/Express4_thumbnail.png" width="150" height="99" border="0"></a>
<a href="headliners/Express5.png"><img src="headliners/Express5_thumbnail.png" width="150" height="109" border="0"></a>
</td>
</tr>
<tr><td>Guardian</td><td>
<a href="headliners/guardian1.png"><img src="headliners/guardian1_thumbnail.png" width="150" height="42" border="0"></a>
<a href="headliners/guardian2.png"><img src="headliners/guardian2_thumbnail.png" width="150" height="69" border="0"></a>
<a href="headliners/guardian3.png"><img src="headliners/guardian3_thumbnail.png" width="150" height="69" border="0"></a>
</td></tr>
<tr><td>Hello</td><td>
<a href="headliners/hello1.png"><img src="headliners/hello1_thumbnail.png" width="150" height="155" border="0"></a>
<a href="headliners/hello2.png"><img src="headliners/hello2_thumbnail.png" width="150" height="200" border="0"></a>
<a href="headliners/hello3.png"><img src="headliners/hello3_thumbnail.png" width="150" height="187" border="0"></a>

</td></tr>
<tr><td>Independent</td><td>
<a href="headliners/Independent1.png"><img src="headliners/Independent1_thumbnail.png" width="150" height="87" border="0"></a>
<a href="headliners/Independent2.png"><img src="headliners/Independent2_thumbnail.png" width="150" height="75" border="0"></a>

</td></tr>
<tr><td>Daily Mail</td><td>
<a href="headliners/mail1.png"><img src="headliners/mail1_thumbnail.png" width="150" height="97" border="0"></a>
<a href="headliners/mail2.png"><img src="headliners/mail2_thumbnail.png" width="150" height="97" border="0"></a>
<a href="headliners/mail3.png"><img src="headliners/mail3_thumbnail.png" width="150" height="98" border="0"></a>
<a href="headliners/mail4.png"><img src="headliners/mail4_thumbnail.png" width="150" height="97" border="0"></a>
<a href="headliners/mail5.png"><img src="headliners/mail5_thumbnail.png" width="150" height="114" border="0"></a>

</td></tr>
<tr><td>News of the World</td><td>
<a href="headliners/News1.png"><img src="headliners/News1_thumbnail.png" width="150" height="72" border="0"></a>
<a href="headliners/News2.png"><img src="headliners/News2_thumbnail.png" width="150" height="115" border="0"></a>
<a href="headliners/News3.png"><img src="headliners/News3_thumbnail.png" width="150" height="115" border="0"></a>
</td></tr>
<tr><td>Observer</td><td>
<a href="headliners/Observer1.png"><img src="headliners/Observer1_thumbnail.png" width="150" height="45" border="0"></a>
</td></tr>
<tr><td>Daily Star</td><td>
<a href="headliners/Star1.png"><img src="headliners/Star1_thumbnail.png" width="150" height="150" border="0"></a>
<a href="headliners/Star2.png"><img src="headliners/Star2_thumbnail.png" width="150" height="181" border="0"></a>
<a href="headliners/Star3.png"><img src="headliners/Star3_thumbnail.png" width="150" height="181" border="0"></a>
<a href="headliners/Star4.png"><img src="headliners/Star4_thumbnail.png" width="150" height="94" border="0"></a>
</td></tr>
<tr><td>The Sun</td><td>
<a href="headliners/sun1.png"><img src="headliners/sun1_thumbnail.png" width="150" height="118" border="0"></a>
<a href="headliners/sun2.png"><img src="headliners/sun2_thumbnail.png" width="150" height="98" border="0"></a>
<a href="headliners/sun3.png"><img src="headliners/sun3_thumbnail.png" width="150" height="98" border="0"></a>
</td></tr>
<tr><td>Sunday Mail</td><td>
<a href="headliners/sundaymail1.png"><img src="headliners/sundaymail1_thumbnail.png" width="150" height="56" border="0"></a>
</td></tr>
<tr><td>The Times</td><td>
<a href="headliners/times1.png"><img src="headliners/times1_thumbnail.png" width="150" height="68" border="0"></a>
</td></tr>
<tr><td>Westmorland Gazette</td><td>
<a href="headliners/westmorland1.png"><img src="headliners/westmorland1_thumbnail.png" width="150" height="52" border="0"></a>
</td>
</tr>
</table>

</div>

<?php include "1foot.php"?>
</body>

</html>


Thank you for any help :)

10
General PHP Help / Re: Preloading script not working
« on: June 10, 2011, 09:43:45 PM »
On closer inspection this seems to have worked on some pages and not others, which seems odd as they are all made from the same template, for example: http://www.bathingwithtoasters.com/downloads.php, should i just repeat the same change on all those subsequent pages that have this problem?

or better still is there a quick way of doing it to all pages concerned?

11
General PHP Help / Re: Preloading script not working
« on: June 10, 2011, 05:29:05 PM »
Seems to have fixed it! Thanks David :)

12
General PHP Help / Re: Preloading script not working
« on: June 10, 2011, 05:01:33 PM »
Hi david, thanks for getting back to me. I have had a look and there isn't an awful lot in the top of index.php, all i can think is maybe the link, or the title are some how in the wrong place or things are out of order

PHP Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?
php require "prehead.php"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Bathing With Toasters</title>
<?php require "metadata.php"?>
<link href="cutenews/rss.php" rel="alternate" type="application/rss+xml" title="BathingWithToasters News RSS Feed" />

</head>
<div>
<?php include "1head.php"?>
      <br />


And just in case it is needed: metadata.php
PHP Code: [Select]
<script type="text/JavaScript">
<!--
function 
MM_findObj(nd) { //v4.01
  
var p,i,x;  if(!dd=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    
d=parent.frames[n.substring(p+1)].documentn=n.substring(0,p);}
  if(!(
x=d[n])&&d.allx=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(
i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!
&& d.getElementByIdx=d.getElementById(n); return x;
}

function 
MM_preloadImages() { //v3.0
  
var d=document; if(d.images){ if(!d.MM_pd.MM_p=new Array();
    var 
i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0i<a.lengthi++)
    if (
a[i].indexOf("#")!=0){ d.MM_p[j]=new Imaged.MM_p[j++].src=a[i];}}
}

function 
MM_swapImgRestore() { //v3.0
  
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function 
MM_swapImage() { //v3.0
  
var i,j=0,x,a=MM_swapImage.argumentsdocument.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((
x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrcx.oSrc=x.srcx.src=a[i+2];}
}
//-->
</script>
<SCRIPT LANGUAGE="JavaScript1.1">
imghead1 = new Image
imghead1.src = "image/home1.png"
imghead2 = new Image
imghead2.src = "image/projects1.png"
imghead3 = new Image
imghead3.src = "image/features1.png"
imghead4 = new Image
imghead4.src = "image/contact1.png"
imghead5 = new Image
imghead5.src = "image/forum1.png"
imghead6 = new Image
imghead6.src = "image/store1.png"
</SCRIPT>
<link href="featuredcontentglider.css" rel="stylesheet" type="text/css" />
<link href="format.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="transparent.ico" >
<!--<link rel="icon" href="animated_favicon1.gif" type="image/gif" >-->



and the 1head.php code:
PHP Code: [Select]
        <div align="center">
  <
table border="0" class="style1">
    <
tr>
      <
td width="623" height="116"><div align="center"><img src="image/logo.png" width="623" height="114" /></div></td>
      <
td width="61">&nbsp;</td>
            </
tr>
    </
table>

<
a href=index.php  onMouseOver"if (document.images) document.home.src= 'image/home1.png';" onMouseOut"if (document.images) document.home.src= 'image/home.png';">
<
img src="image/home.png" name=home border=0></a>
<
a href=projects.php  onMouseOver"if (document.images) document.projects.src= 'image/projects1a.png';" onMouseOut"if (document.images) document.projects.src= 'image/projects.png';">
<
img src="image/projects.png" name=projects border=0></a>
<
a href=features.php  onMouseOver"if (document.images) document.features.src= 'image/features1.png';" onMouseOut"if (document.images) document.features.src= 'image/features.png';">
<
img src="image/features.png" name=features border=0></a>
<
a href="contact.php"  onMouseOver"if (document.images) document.contact.src= 'image/contact1a.png';" onMouseOut"if (document.images) document.contact.src= 'image/contact.png';">
<
img src="image/contact.png" name=contact border=0></a>
<
a href="downloads.php"  onMouseOver"if (document.images) document.downloads.src= 'image/downloads1.png';" onMouseOut"if (document.images) document.downloads.src= 'image/downloads.png';">
<
img src="image/downloads.png" name=downloads border=0></a>
<
a href="/forum"  onMouseOver"if (document.images) document.forum.src= 'image/forum1.png';" onMouseOut"if (document.images) document.forum.src= 'image/forum.png';">
<
img src="image/forum.png" name=forum border=0></a>
<
a href="http://bathingwithtoasters.spreadshirt.net"  onMouseOver"if (document.images) document.store.src= 'image/store1a.png';" onMouseOut"if (document.images) document.store.src= 'image/store.png';">
<
img src="image/store.png" name=store border=0></a>
  <!--<
style type="text/css">
	
@
import url(http://www.google.com/cse/api/branding.css);
</style>-->
  </
div>
</
div>
<
p align="center">
</
div>
<
p align="center">
<
div align="right" style="width: 310; float: right">
<
form action="http://www.google.com/cse" id="cse-search-box">
  <
div class="right">
    <
input type="hidden" name="cx" value="006896422554874866618:8qeqfzh5wuc" />
    <
input type="hidden" name="ie" value="UTF-8" />
    <
input type="text" name="q" size="31" />
    <
input type="submit" name="sa" value="Search" />
  </
div>
</
form>

<
script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
</div>
<div align="center"><?php include "rthoughts.php"?></div>
	
  </p>
	
  <!--<p style="font-size:6pt">&nbsp;</p>-->
<p><hr /></p>



Sorry for the bombardment of code, and thanks for the help, i really appreciate it.

13
General PHP Help / Preloading script not working
« on: June 10, 2011, 04:06:21 PM »
Hi, i have recently restarted a website that i let languish a few years ago again and got it back online (www.bathingwithtoasters.com), but as you can see at the top there are 2 warnings about the prehead script. I haven't spoken to the guy who did my coding in a little while, and i know virtually nothing of PHP, so was basically wondering what to do.

I am pretty sure the code concerned codes for a cookie, to remember the images when you mouseover the menu buttons, as they had to reload a lot previously, and it took far too long, but am not certain. The complete code is as follows:

PHP Code: [Select]
<?php
if (isset($_COOKIE['amount']))
$amount $_COOKIE['amount'];
else 
$amount 1;
$page $_SERVER['PHP_SELF'];

if (isset(
$_COOKIE['page']) && $_COOKIE['page']==$_SERVER['PHP_SELF']) $amount=$_COOKIE['amount']+1;
else 
$strange="yes";

setcookie('page'$pagetime()+3600);
setcookie('amount'$amounttime()+3600); ?>


If i need to post any other code or whatever, jsut say and i will add it. I did recently change hosting so this may also be relevant. I regretfully probably need layman's terms for any help, as i'm pretty new to PHP, thanks for any help you can offer.

Nick

14
MySQL database / Finding an old SQL file
« on: June 10, 2011, 03:59:47 PM »
Hi, i have a website at (http://www.bathingwithtoasters.com), and i did have it on hosting by byethost, anyway, turns out they aren't overly fond of it when i don't pay them. and the hosting ran out about a year ago, recently i decided to revive the website with my local copy of the files, and put it on hostmonster, i've got the website working, but i can't see to get the forum working. I have created a new database, and a new user and added them to the database, and changed the config.php file, but, apparently i need to import the SQL file for the database, i downloaded the entire server via coreftp before the hosting went dead so i had all the files but the only sql files i can find are in forum>noninstall>schemas and are:
firebird_schema.sql
schema_data.sql
mysql_40_schema.sql
sqlite_schema.sql
mssql_schema.sql
postgres_schema.sql
mysql_41_schema.sql
oracle_schema.sql

the old hosting account name was something like cafescii_ and user cafescii_mason (apparently i should expect the sql file to have cafescii somewhere in it's name, but i can't find any other sql files other than the ones above.

Can anyone help tell me what i am looking for in order ot import it via phpmyadmin? or tell me a workaround whereby i can keep the old forum posts / members in tact? I must confess i'm a complete novice at this, thanks for any help :)

Nick

Pages: [1]