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 - uksoreeyes

Pages: 1 2 [3] 4 5 6
31
Plugins / [Plugin] Postcard Viewer
« on: May 20, 2003, 04:31:07 AM »
nope this is how it stands
Code: [Select]
$image_media_file = $row['image_media_file'];
Its just the image display I have problems with, I can have all the other information displayed on the page from the postcards table except for the image.

32
Plugins / [Plugin] Postcard Viewer
« on: May 20, 2003, 03:52:22 AM »
Ok I've removed all the p's and that i from the $row...

Now When I execute the script I get the following error:
Quote

Parse error: parse error in \www\myleeneklass.com\htdocs\admin\plugins\postcard.php on line 48


On line 48 is: ?>

33
Plugins / [Plugin] Postcard Viewer
« on: May 20, 2003, 01:57:46 AM »
Sorry for posting in the wrong forum, I just realised  :oops:

34
Plugins / [Plugin] Postcard Viewer
« on: May 20, 2003, 01:53:30 AM »
Hi I am writing a little mod so I can view postcards people have sent from my site. I have come up with the following code but it needs a tiny tweak which I'm having problems with. Can anyone help? Heres the code.
Code: [Select]
<?PHP

$result = "SELECT p.postcard_id, p.image_id, p.postcard_date, p.postcard_bg_color, p.postcard_border_color, p.postcard_font_color, p.postcard_font_face, p.postcard_sender_name, p.postcard_sender_email, p.postcard_recipient_name, p.postcard_recipient_email, p.postcard_headline, p.postcard_message, i.image_name, i.cat_id, i.image_media_file, i.image_thumb_file, p.postcard_confirm
            FROM ".POSTCARDS_TABLE." p, ".IMAGES_TABLE." i
            WHERE p.image_id = i.image_id";
while($row = mysql_fetch_array($result))
{    
    $postcard_id = $row["postcard_id"];
$postcard_date = date("D d M, Y g:i a", $row["postcard_date"]);
$image_id = $row["p.image_id"];
$postcard_bg_color = $row["p.postcard_bg_color"];
$postcard_border_color = $row["p.postcard_border_color"];
$postcard_font_color = $row["p.postcard_font_color"];
$postcard_font_face = $row["p.postcard_font_face"];
$postcard_sender_name = $row["p.postcard_sender_name"];
$postcard_sender_email = $row["p.postcard_sender_email"];
$postcard_recipient_name = $row["p.postcard_recipient_name"];
$postcard_recipient_email = $row["p.postcard_recipient_email"];
$postcard_headline = $row["p.postcard_headline"];
$postcard_message = $row["p.postcard_message"];
$cat_id = $row['i.cat_id'];
$image_media_file = $row[i.'image_media_file'];

echo <<<END
<table cellspacing="0" cellpadding="1" align="center" border="0">
  <tbody>
    <tr>
      <td bgcolor="$postcard_border_color"><table cellspacing="0" cellpadding="10" bgcolor="$postcard_bg_color" border="0">
  <tbody>
    <tr>
      <td valign="top"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_date</font><br><a href="/details.php?image_id=$image_id" target="_blank"><img src="/data/media/$cat_id/$image_media_file" border="0"></a><br>
        <br> <font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_name - </font>
<a href="mailto:$postcard_recipient_email"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_email</font></a></td>
      <td valign="top" width="200" height="250"><div align="right"><img src="/templates/myleeneklass/images/stamp.gif" border="0"></div>
        <br> <br> <b><font face="$postcard_font_face" color="$postcard_font_color" size="4">$postcard_headline</font></b><br>
        <br> <font face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_message</font><br>
        <br> <font face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_name</font><br> <a href="mailto:$postcard_sender_email"><font
                  face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_email</font></a></td>
    </tr>
  </tbody>
</table></td>
    </tr>
  </tbody>
</table><br>
END;
}  

?>

Thanks in advance

Carl

35
Mods & Plugins (Requests & Discussions) / phpbb intergration cookie
« on: May 13, 2003, 12:32:34 PM »
Thank you so much, works perfect. I've been trying to figure this out for so long.  :D

36
Mods & Plugins (Requests & Discussions) / phpbb intergration cookie
« on: May 10, 2003, 12:17:03 AM »
I have noticed that since intergrating 4images with phpbb, when I check the 'Remember Me' box on the login form on either 4images login or phpbb login. When I leave my site then come back maybe 15 minutes later I have to again log in.

Can anyone please tell me what might be wrong?

I have visited other people 4images sites on here and signed up and during login I have checked the 'Remember Me' box. I then visit the site a week later and I am already logged in as I should be.

Help would be nice, thanks

Carl

37
Installation, Update & Configuration / print stats
« on: May 10, 2003, 12:03:55 AM »
Yeah I was wondering where it went. I seen it in the morning and thought is try it on the night time only to find it gone lol. Hope you get it done soon.

38
Installation, Update & Configuration / print stats
« on: May 04, 2003, 01:37:36 PM »
well is there anyway to move it just above my control panel link?, i would like to use it.

39
Installation, Update & Configuration / print stats
« on: May 04, 2003, 06:47:28 AM »
I've had this script for about 6 months now and only just discovered that if you add:
Code: [Select]
define('PRINT_STATS', '1');
to includes/constants.php you get some useful information pronted at the bottom of your page. Information like this:
Quote
Page generated in 1.425211 seconds with 14 queries, spending 0.178000 seconds doing MySQL queries and 1.247211 doing PHP things. GZIP compression disabled

I was wondering if its possible to take it one step further by being able to place it in another location on the page using the same methord as the control panel link.

for example if you put {PRINT_STATS} on the top of your page, the print stats would be displayed there.

Please someone guide me in the right direction with this, It gives much more accurate information than my current counter.

Carl

40
It's ok I know how it works now, I'm having a dumb day lol ignore me

41
Great idea for a mod, I wish it would work with the phpbb intergration because this mod is just what my site needs.

42
Discussion & Troubleshooting / Shoutbox help
« on: May 01, 2003, 12:08:28 PM »
Yeah that will work for now, just as long as it stops messages in the shoutbox having no names above them. Thanks for your help you have given me some ideas which I will try out tonight when the site is less busy and people won't see any major errors.

If I find the solution I'll let you know :)

43
Discussion & Troubleshooting / Shoutbox help
« on: May 01, 2003, 11:54:11 AM »
Yeah you got that error because I was trying out a few bits of code which didn't work. Site should load now.
Quote
maybe because your browser cached the webpage u dont see it, but see page without "style"...

Thats the same problem I'm getting, the error page doesnt have the styles because there all included in the header which if you look at the source you can see it hasn't loaded it. I don't know why it's doing this.

44
Discussion & Troubleshooting / Shoutbox help
« on: May 01, 2003, 11:22:51 AM »
yep it has the {header} at the top and the {footer} at the bottom. I dont quite understand. I dont know if this helps but the address in the address bar reads mydomain.com/shout.php

Maybe theres someting missing from that file?

45
Discussion & Troubleshooting / Shoutbox help
« on: May 01, 2003, 11:11:47 AM »
Me again I added this piece of code to my shout.php below require(ROOT_PATH.'includes/sessions.php');
Code: [Select]
include(ROOT_PATH.'includes/page_header.php');
and its fixed the broken images problem, but the page still doesnt include the header or footer of the page

Pages: 1 2 [3] 4 5 6