Announcement

  •  » Extensions
  •  » [resolved] BBcode and watermark

#1 2010-07-28 14:08:08

LadyFirst
Member
Da Nang city
2009-12-09
27

[resolved] BBcode and watermark

1.BBcode

my visitor want to post my image to some forum and website . but they cant take the image url by "right mouse - properties - copy the url link"

i want to add bbcode for my visitor (below the image)
it's like this

http://my-domain.com/piwigo/folder/image-name.jpg

and

<a href="http://my-domain.com"><img src="http://my-domain.com/piwigo/folder/image-name.jpg"></a>


2. Watermark

Can we automatic add watermark when we're uploading images ? (if cant , plz tell me a FREE software )

Thanks a lot and hope you have a nice day

Last edited by LadyFirst (2010-09-17 11:45:17)

Offline

 

#2 2010-07-28 15:52:34

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: [resolved] BBcode and watermark

Offline

 

#3 2010-07-29 04:26:45

LadyFirst
Member
Da Nang city
2009-12-09
27

Re: [resolved] BBcode and watermark

hi Gotcha

im using version 2.1.2 so i cant use 2 plugin above

your plugin is so nice , can you please make it compare with version 2.1.2 ? thanks a lot

Last edited by LadyFirst (2010-09-20 16:03:21)

Offline

 

#4 2010-07-29 09:26:07

mol
Piwigo Team Germany
germany
2010-05-26
108

Re: [resolved] BBcode and watermark

im using version 2.1.2 so i

me too and i use piwishak with 2.1.2

Offline

 

#5 2010-07-29 14:39:43

LadyFirst
Member
Da Nang city
2009-12-09
27

Re: [resolved] BBcode and watermark

I've installed it but i dont know how to use , and im afraid of my visitor cant use

I have a picture , my ideal , i think it's simple with you
Can you write a plugin for that ? (or we can simple edit a php file ?)

once again , thanks a lot

Last edited by LadyFirst (2010-09-17 16:49:34)

Offline

 

#6 2010-07-31 00:09:30

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: [resolved] BBcode and watermark

Hello,

It is necessary to use an template-extension and to insert part of the code of my plugin. I cannot do it immediately (not time).

Last edited by Gotcha (2010-07-31 00:17:21)

Offline

 

#7 2010-08-06 04:13:37

LadyFirst
Member
Da Nang city
2009-12-09
27

Re: [resolved] BBcode and watermark

hi Gotcha
it's me again :)

i used your plugin but have 1 problem
guest can't see the PiwiShak


plz help
and when will you can do the "bbcode on image page" for me ?

thanks

Last edited by LadyFirst (2010-09-20 13:24:38)

Offline

 

#8 2010-08-06 08:22:51

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: [resolved] BBcode and watermark

LadyFirst wrote:

i used your plugin but have 1 problem
guest can't see the PiwiShak

In initialize.inc.php
Check :

Code:

function piwishack_init()
{
  if (is_admin())
  {
    $plugin_name = basename(dirname(__FILE__));
    $plugin_path = dirname(__FILE__).'/';

    include_once($plugin_path.'include/class.inc.php');

    // Create object
    $piwishack = new PiwiShack($plugin_name, $plugin_path);
    set_plugin_data($piwishack->plugin_name, $piwishack);
  }
}

Remplace by :

Code:

function piwishack_init()
{
//  if (is_admin())
//  {
    $plugin_name = basename(dirname(__FILE__));
    $plugin_path = dirname(__FILE__).'/';

    include_once($plugin_path.'include/class.inc.php');

    // Create object
    $piwishack = new PiwiShack($plugin_name, $plugin_path);
    set_plugin_data($piwishack->plugin_name, $piwishack);
//  }
}

In piwishack_controller.php
Check :

Code:

// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok                      |
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);

$piwishack = get_plugin_data('piwishack');

if 
  (
    !is_admin() or
    empty($piwishack) or
    !isset($piwishack->opened) or !$piwishack->opened
  )
{
  echo '
<script type="text/javascript">
  window.close();
</script>';
  exit();
}

Remplaced by :

Code:

// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok                      |
// +-----------------------------------------------------------------------+
// check_status(ACCESS_ADMINISTRATOR);

$piwishack = get_plugin_data('piwishack');

if
(
//    !is_admin() or
    empty($piwishack) or
    !isset($piwishack->opened) or
    !$piwishack->opened
  )
{
echo '
<script type="text/javascript">
    window.close();
    </script>';
exit();
}

LadyFirst wrote:

and when will you can do the "bbcode on image page" for me ?

Can I do it but is it for which template ?

Offline

 

#9 2010-08-08 04:29:44

LadyFirst
Member
Da Nang city
2009-12-09
27

Re: [resolved] BBcode and watermark

It's default template - Sylvia

P.s : piwishak is ok now , thanks
i think your plugin had better have "Share the normal view (clickable) sites on forums. BBcode tags."
Just a suggestion

Last edited by LadyFirst (2010-10-08 11:55:50)

Offline

 

#10 2010-08-16 23:23:38

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: [resolved] BBcode and watermark

Yes, i can do it.

If I do not give a news in one week, you can rewrite again me: -)

Offline

 

#11 2010-08-17 01:56:09

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: [resolved] BBcode and watermark

New version is done !

Offline

 
  •  » Extensions
  •  » [resolved] BBcode and watermark

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact