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

Pages: [1] 2 3
1
Discussion & Troubleshooting / Re: query problems with MySQL 5.0.x
« on: February 21, 2006, 08:36:38 PM »
Ok, please test this (if it all works, I'll post it as a compability fix):

Please note, in each file is possible more then one instance of searched line, that means all of the found lines must be changed as instructed!

In index.phpcategories.phpdetails.phppostcards.phpsearch.phptop.phpincludes/functions.php (two times) find:
Code: [Select]
FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." cReplace with:
Code: [Select]
FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

In member.phpadmin/comments.php find:
Code: [Select]
FROM ".COMMENTS_TABLE." c, ".IMAGES_TABLE." iReplace with:
Code: [Select]
FROM (".COMMENTS_TABLE." c, ".IMAGES_TABLE." i)


In some of the files V@no mentioned before, you can find the lines more than once (e.g. top.php and index.php), replace all these lines.
Also look for (only one space in the middle) in all the files:
Code: [Select]
FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." cReplace with:
Code: [Select]
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
V@no forgot to mention that you also need to edit these files: lightbox.php and includes/page_header.php

Look for:
Code: [Select]
FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." cReplace with:
Code: [Select]
FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

In some plugins for the admin panel (e.g. Batch ZIP Import, Batch Import AND Postcard Viewer

Look for:
Code: [Select]
$PHP_SELFReplace with:
Code: [Select]
$_SERVER['PHP_SELF']

I think everythink has to work now. :D

2
Mods & Plugins (Requests & Discussions) / Re: rating with smileys
« on: January 14, 2006, 04:35:19 PM »
somehow the code in test2.html didn't work when I tried to implend it in the template.

3
I would really like an option to delete some pictures when using "Check New Images", because when I have a lot of pictures I always upload them to my FTP. Often there's still a "bad" image, which I forgot to delete. Now I can only turn that image off but it will appear again the next time I use Check New Image. Now I have to remember the Image name, do to the FTP and delete the image. That's a lot of work, so and delete option would me great.
someone please?

4
I would really like an option to delete some pictures when using "Check New Images", because when I have a lot of pictures I always upload them to my FTP. Often there's still a "bad" image, which I forgot to delete. Now I can only turn that image off but it will appear again the next time I use Check New Image. Now I have to remember the Image name, do to the FTP and delete the image. That's a lot of work, so and delete option would me great.

5
Discussion & Troubleshooting / Re: Creating my own {blah}?
« on: November 12, 2005, 12:46:42 PM »
I'm trying to use 2 different headers (one with a menu and one without).

But how can a create a tag like {header2}
That includes templates/{my_template}/header2.html ?

6
Mods & Plugins (Releases & Support) / Re: [MOD] Post It!
« on: November 12, 2005, 12:11:24 PM »
I did .. I've got the same result!

I noticed something in postit.php file :
  • &lt;img src=&quot;<?php echo $site_url; ?>/data/media/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border=&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br /><br />

You need this codes to show the right code on you page without "parsing" it.

7
Mods & Plugins (Requests & Discussions) / Re: [Req] "Post It!"
« on: November 09, 2005, 08:28:54 AM »
Just add this where ypu want to show it in postit.php
Code: [Select]
<div class="codeheader">BBcode Thumbnail linked to the corresponding page (1):</div>
<div class="code">[URL=<?php echo $_GET["url"]; ?>][IMG]<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>[/IMG][/URL]</div><br /><br />

<div class="codeheader">BBcode Thumbnail linked to the corresponding page (2):</div>
<div class="code">[url=<?php echo $_GET["url"]; ?>][img=<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>[/url][/img]</div><br /><br />

8
Mods & Plugins (Requests & Discussions) / Re: [Req] "Post It!"
« on: November 07, 2005, 06:23:48 PM »
I've edited my first post so please you that for easy install  8)


PS. The wallet ID was send to you by PM ;)

9
Mods & Plugins (Requests & Discussions) / Re: [Req] "Post It!"
« on: November 07, 2005, 04:10:34 PM »
Just replace postit.php with:
Code: [Select]
<?php
$site_url
"http://www.yourpage.com"
?>


<html>
<head>
<title>Post-it</title>
<style type="text/css">
/* A code block - maybe even PHP ;). */
.code
{
color: #000000;
background-color: #FFFFFF;
border: 1px solid #000000;
padding: 3px;
padding-bottom: 20px;
font-family: "courier new", helvetica, "times new roman", serif;
/*  font-family: Courier, 'Courier New', sans-serif, helvetica, "times new roman", serif;*/
font-size: xx-small;
width: 98%;
max-height: 24em;
margin: 1px auto 1px auto;

/* margin-top: 4px;*/
white-space: nowrap;
overflow: auto;
line-height: 1.3em;
}
.codeheader
{
color: #000000;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: x-small;
}
</style>
</head>
<?php
$cat_id 
$_GET["cat_id"];
$thumb $_GET["thumb"];

     $image "data/thumbnails/$cat_id/$thumb";                
     $size 
getimagesize("$image");
       $thumb_height $size[1];
       $thumb_width $size[0];
   $thumb_width_height = (!empty($size[3])) ? " ".$size[3] : "";
       $thumb_height $size[1];
       $thumb_width $size[0];
?>


<body>
<div class="codeheader">Thumbnail linked to the corresponding page:</div>
<div class="code">&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/thumbnails/cat<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>&quot; <?php echo $thumb_width_height?> border&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br />

<div class="codeheader">Large version linked to the corresponding page:</div>
<div class="code">&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/cat<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br /><br />

<div class="codeheader">Large version linked to the corresponding page behind lj-cut:</div>
<div class="code">&lt;lj-cut text=&quot;<?php echo $_GET["name"]; ?> - <?php echo $_GET["width"]; ?> x <?php echo $_GET["height"]; ?> - <?php echo $_GET["size"]; ?>&quot;&gt;<br />&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/cat<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br /><br />

<div class="codeheader">Thumbnail before lj-cut; large version linked to the corresponding page behind lj-cut:</div>
<div class="code">&lt;img src=&quot;<?php echo $site_url?>/data/media/thumbnails/cat<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>&quot; <?php echo $thumb_width_height?> border&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;<br />
&lt;lj-cut text=&quot;<?php echo $_GET["name"]; ?> - <?php echo $_GET["width"]; ?> x <?php echo $_GET["height"]; ?> - <?php echo $_GET["size"]; ?>&quot;&gt;<br />
&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/cat<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;<br />
&lt;/lj-cut&gt;</div>
</body>
</html>
Don't forget to edit $site_url= "http://www.yourpage.com" ;)

I've just made a WMZ account, but is it possible to cash it?

10
Mods & Plugins (Requests & Discussions) / Re: [Req] "Post It!"
« on: November 06, 2005, 09:47:23 PM »
I've made a little solution, it works very simple.
It creates a link to an php page with the information.

This post includes all the modifications below ;)

Open includes/functions.php

Find:
Code: [Select]
  else {
    $user_name = $lang['userlevel_guest'];
    $user_name_link = $user_name;
  }

Add below:
Code: [Select]
if ($detailed_view) {
   $site_template->register_vars(array(
     "media_thumbnail" => $image_row['image_thumb_file'],
     "media_url" => $image_row['image_media_file'],
   ));
 }

Create a new file:
postit.php
with this code:
Code: [Select]
<?php
$site_url
"http://www.yourpage.com"
?>


<html>
<head>
<title>Post-it</title>
<style type="text/css">
/* A code block - maybe even PHP ;). */
.code
{
color: #000000;
background-color: #FFFFFF;
border: 1px solid #000000;
padding: 3px;
padding-bottom: 20px;
font-family: "courier new", helvetica, "times new roman", serif;
/*  font-family: Courier, 'Courier New', sans-serif, helvetica, "times new roman", serif;*/
font-size: x-small;
width: 98%;
max-height: 24em;
margin: 1px auto 1px auto;

/*margin-top: 4px;*/
white-space: nowrap;
overflow: auto;
line-height: 1.3em;
}
.codeheader
{
color: #000000;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: small;
}
</style>
</head>
<?php
$cat_id 
$_GET["cat_id"];
$thumb $_GET["thumb"];

     $image "data/thumbnails/$cat_id/$thumb";                
     $size 
getimagesize("$image");
       $thumb_height $size[1];
       $thumb_width $size[0];
   $thumb_width_height = (!empty($size[3])) ? " ".$size[3] : "";
       $thumb_height $size[1];
       $thumb_width $size[0];
?>


<body>
<div class="codeheader">Thumbnail linked to the corresponding page:</div>
<div class="code">&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>&quot; <?php echo $thumb_width_height?> border=&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br />

<div class="codeheader">Large version linked to the corresponding page:</div>
<div class="code">&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border=&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br /><br />

<div class="codeheader">Large version linked to the corresponding page behind lj-cut:</div>
<div class="code">&lt;lj-cut text=&quot;<?php echo $_GET["name"]; ?> - <?php echo $_GET["width"]; ?> x <?php echo $_GET["height"]; ?> - <?php echo $_GET["size"]; ?>&quot;&gt;<br />&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border=&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;</div><br /><br />

<div class="codeheader">Thumbnail before lj-cut; large version linked to the corresponding page behind lj-cut:</div>
<div class="code">&lt;img src=&quot;<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>&quot; <?php echo $thumb_width_height?> border=&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;<br />
&lt;lj-cut text=&quot;<?php echo $_GET["name"]; ?> - <?php echo $_GET["width"]; ?> x <?php echo $_GET["height"]; ?> - <?php echo $_GET["size"]; ?>&quot;&gt;<br />
&lt;a href=&quot;<?php echo $_GET["url"]; ?>&quot;&gt;<br />
&lt;img src=&quot;<?php echo $site_url?>/data/media/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["media_url"]; ?>&quot; width=&quot;<?php echo $_GET["width"]; ?>&quot; height=&quot;<?php echo $_GET["height"]; ?>&quot; border=&quot;0&quot; alt=&quot;<?php echo $_GET["name"]; ?>&quot; title=&quot;<?php echo $_GET["name"]; ?>&quot; /&gt;&lt;/a&gt;<br />
&lt;/lj-cut&gt;</div>
</body>
</html>

And change: $site_url= "http://www.yourpage.com"

If you want to add BBCODE for the images add this in postit.php:
Code: [Select]
<div class="codeheader">BBcode Thumbnail linked to the corresponding page (1):</div>
<div class="code">[URL=<?php echo $_GET["url"]; ?>][IMG]<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>[/IMG][/URL]</div><br /><br />

<div class="codeheader">BBcode Thumbnail linked to the corresponding page (2):</div>
<div class="code">[url=<?php echo $_GET["url"]; ?>][img=<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>[/url][/img]</div><br /><br />


Open templates/{your_template}/details.php

Add this where you want to show the button:
Code: [Select]
<script language="Javascript1.2" type="text/javascript">
document.write('<a href="/postit.php?url='+window.location.href+'&amp;name={image_name}&amp;cat_id={cat_id}&amp;media_url={media_url}&amp;thumb={media_thumbnail}&amp;height={height}&amp;width={width}&amp;size={image_file_size}" title="Post it!">Post It!</a>');
</script>

The postit page has no design, but you can edit that ;)
And the button isn't a popup, but with some javascript editing you can fix that also :)

11
just use the code from the description:

Open templates/{your_template}/media/jpg.html

Find:
Code: [Select]
alt="{image_name}{if alt_description}, {alt_description}{endif alt_description}"
Replace with:
Code: [Select]
alt="{image_name}{if alt_keywords}, {alt_keywords}{endif alt_keywords}{if alt_description}, {alt_description}{endif alt_description}"
Or:
Code: [Select]
alt="{image_name}{if alt_description}, {alt_description}{endif alt_description}{if alt_keywords}, {alt_keywords}{endif alt_keywords}"

12
Open includes/functions.php

Find:
Code: [Select]
  else {
    $user_name = $lang['userlevel_guest'];
    $user_name_link = $user_name;
  }

Add below:
Code: [Select]
if ($detailed_view) {
$description2 = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 1) : REPLACE_EMPTY;
  if (!empty($image_row['image_keywords'])) {
    $split_keywords2 = explode(" ", $image_row['image_keywords']);
    $keywords2 = "";
    foreach ($split_keywords2 as $key2 => $val2) {
      $keywords2 .= (($keywords2 != "" ) ? ", " : "")."$val2";
    }
}
   $site_template->register_vars(array(
     "alt_keywords" => $keywords2,
     "alt_description" => $description2,
   ));
 }

Open templates/{your_template}/media/jpg.html

Find:
Code: [Select]
alt="{image_name}"

Replace with:
Code: [Select]
alt="{image_name}{if alt_description}, {alt_description}{endif alt_description}"

13
I made a sollution:

Open includes/functions.php

Find:
Code: [Select]
  else {
    $user_name = $lang['userlevel_guest'];
    $user_name_link = $user_name;
  }

Add below:
Code: [Select]
if ($detailed_view) {
  if (!empty($image_row['image_keywords'])) {
    $split_keywords2 = explode(" ", $image_row['image_keywords']);
    $keywords2 = "";
    foreach ($split_keywords2 as $key2 => $val2) {
      $keywords2 .= (($keywords2 != "" ) ? ", " : "")."$val2";
    }
}



   $site_template->register_vars(array(
     "alt_keywords" => $keywords2,
   ));
 }

Open templates/{your_template}/media/jpg.html

Find:
Code: [Select]
alt="{image_name}"

Replace with:
Code: [Select]
alt="{image_name}, {alt_keywords}"

Is there someone who can add the , in the {alt_keywords} because you now you also get a , when there're no keywords?

14
Please someone, I need it because i want google image search can find the images.

15
The is't pretty, but it works:

Open templates/{your_template}/media/jpg.html

Find:
Code: [Select]
{width_height}
Replace width:
Code: [Select]
width="320"height="240"

Pages: [1] 2 3