Author Topic: [Req] "Post It!"  (Read 44938 times)

0 Members and 1 Guest are viewing this topic.

Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
[Req] "Post It!"
« on: November 02, 2005, 08:00:10 PM »
Idea
The idea is that visitors would have possibility to post images from your gallery anywhere in the Internet (forums, guestbook, blogs, livejournal, etc.)
To perform this we need a new button called for e.g "Post It!" under every single image.
Once the button is pressed pop-up window will show-up.

The window will contain 4 different posting codes:
1) Large version of an image linked to the corresponding page on your site;
2) Thumbnail linked to the corresponding page with large version on your site;
3) Large version linked to the corresponding page on your gallery behind lj-cut;
4) Thumbnail before lj-cut; large version linked to the corresponding page on your gallery behind lj-cut;

Options 3,4 would be useful for positing in livejournal (http://livejournal.com).

The code will look like this
1)
Code: [Select]
<a href="http://www.yoursite.com/img#.htm"><img src="http://www.yoursite.com/data/thumbnails/cat#/thumbnail_name.extension" width="" height="" border"0" alt="image_name" title="image_name /></a>2)
Code: [Select]
<a href="http://www.yoursite.com/img#.htm"><img src="http://www.yoursite.com/data/media/cat#/image_name.extension" width="" height="" border"0" alt="image_name" title="image_name /></a>
3)
Code: [Select]
<lj-cut text="image_name - image_width x image_height - image_size">
<a href="http://www.yoursite.com/img#.htm"><img src="http://www.yoursite.com/data/media/cat#/image_name.extension" width="" height="" border"0" alt="image_name" title="image_name /></a>

4)
Code: [Select]
<img src="http://www.yoursite.com/data/thumbnails/cat#/thumbnail_name.extension" width="" height="" border"0" alt="image_name" title="image_name />
<lj-cut text="image_name - image_width x image_height - image_size">
<a href="http://www.yoursite.com/img#.htm"><img src="http://www.yoursite.com/data/media/cat#/image_name.extension" width="" height="" border"0" alt="image_name" title="image_name /></a>
</lj-cut>
*mod-rewrite is enabled (read about this mod http://www.4homepages.de/forum/index.php?topic=6729.0)
*image_name, image_size - should be taken from 4images db fields
*image_width, image_height - i guess the mod will have to determine them...

Target
- Increase site popularity.

Possible problems
- Traffic overruns (your site have to be really pop ;)

If you can write this mod I have 30$ on my webmoney (http://wmtransfer.com/) account and I would gladly
share them with you !
Update: The MOD was successfully written by ruudvroon he gets 30 WMZ.

Known issues
- Doesn't work with images hosted remotely

Things to improve
- Statistics for "Post It!" in ACP and in top.php
- Post all images in category at once

PS.If you have any thoughts about this, please comment !
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Req] "Post It!"
« Reply #1 on: November 02, 2005, 11:12:53 PM »
Make the same of Imageshack ? people can post in everywhere using url /tags  for (full image,thumbnails...? right ??

 :wink:

Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [Req] "Post It!"
« Reply #2 on: November 02, 2005, 11:18:59 PM »
Make the same of Imageshack ? people can post in everywhere using url /tags  for (full image,thumbnails...? right ??

 :wink:

Yep, but not in such a great scale :)
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Req] "Post It!"
« Reply #3 on: November 02, 2005, 11:44:26 PM »
i see ...

This can be a good ideia to increase popularity, but can be bad for who just use your gallery just to host  :roll: your own pics.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: [Req] "Post It!"
« Reply #4 on: November 04, 2005, 04:48:49 PM »
I would also like something like this ;D

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [Req] "Post It!"
« Reply #5 on: November 04, 2005, 05:41:53 PM »
I would like this to..


Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [Req] "Post It!"
« Reply #6 on: November 04, 2005, 07:25:09 PM »
just to host  :roll: your own pics.
It is not allowed in my case.
Users can only store personal photos & photos made by themselves.
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Req] "Post It!"
« Reply #7 on: November 04, 2005, 11:21:49 PM »
yes i know ....  :wink:

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
Re: [Req] "Post It!"
« Reply #8 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 :)

Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [Req] "Post It!"
« Reply #9 on: November 07, 2005, 01:48:53 PM »

Great!
Everything works fine just few corrections:

1)to postit.php
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>

<body>
<div class="codeheader">Code 1:</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; 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 /><div class="codeheader">Code 2:</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">Code 3:</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">Code 4:</div>
<div class="code">&lt;img src=&quot;<?php echo $site_url?>/data/thumbnails/<?php echo $_GET["cat_id"]; ?>/<?php echo $_GET["thumb"]; ?>&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;<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>
+ a small problem: width&height of thumbnails are taken from large image not from a thumbnail =(

If you get this bug fixed leave your WMZ ID here ;)
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
Re: [Req] "Post It!"
« Reply #10 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?

Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [Req] "Post It!"
« Reply #11 on: November 07, 2005, 05:50:37 PM »
There were few mistakes in your last code.
I've fixed them and modified css (for my needs).

Of course you can cash money, read FAQ (http://wmtransfer.com/keeper_hotline.shtml) to find out how.
And, please, be sure you gave me the id of your WMZ (US Dollars) Wallet not your General ID in Webmoney System!
* WMZ-Wallet ID has a prefix Z before the 12-digit number.

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>
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
Re: [Req] "Post It!"
« Reply #12 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 ;)

Offline kindian

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: [Req] "Post It!"
« Reply #13 on: November 09, 2005, 01:42:22 AM »
can someone add bbcode like [img] tags, like imageshack uses?

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
Re: [Req] "Post It!"
« Reply #14 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 />