Announcement

  •  » Extensions
  •  » [resolved] Add info BBcode [img][/img]

#1 2012-01-03 08:21:12

Zaxon688
Member
2012-01-03
3

[resolved] Add info BBcode [img][/img]

I was curious if anyone else have made a plugin of some kind to show the url of the photo with [\url=][\img][/img][/url] around it. (i cant figure out how to make piwishack work publicly and would prefer one that works also on chrome.)

I found a post
http://piwigo.org/forum/viewtopic.php?id=16284
that speaks of it but i didn't really see anything that came from it.

Ideally it would be like the photo in the post
http://piwigo.org/forum/postgallery.php … bbcode.jpg

Any help would be appreciated :)

Offline

 

#2 2012-01-03 19:12:13

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

Re: [resolved] Add info BBcode [img][/img]

Hi,

You can adpater PiwiShack behavior as desired.
What is the syntax to display?

(Put an example please)

Offline

 

#3 2012-01-03 22:46:16

Zaxon688
Member
2012-01-03
3

Re: [resolved] Add info BBcode [img][/img]

hello Gotcha,
The Syntax i wish to display is
Forum link: ['url=http://www.mydomain.com][/url]['img]http://www.ImageLink/ImageName.jpg[/img]
without the single quotes
Just somewhere under the info of the picture.

I think this image has exactly what i want:
http://piwigo.org/forum/postgallery.php … bbcode.jpg

piwishack actually does have that on the pop up window but I do not want it on a popup just on the same page as the image.

Thanks for the quick response :)

Offline

 

#4 2012-01-04 15:22:04

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] Add info BBcode [img][/img]

hi,
does this is good for you ?
http://www.tm-screenmania.com/picture.p … y/featured

I will make you a little template extension

Offline

 

#5 2012-01-04 15:29:28

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] Add info BBcode [img][/img]

well if you know how to do, create a new template extension (with LocalFilesEditor) from picture.tpl and add this after
<table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}">

Code:

<tr id="bbcode">
    <td class="label">BBcode</td>
    <td class="value">[url=http://www.tm-screenmania.com/{$current.U_IMG}][img]http://www.tm-screenmania.com/{$current.THUMB_SRC}[/img][/url]</td>
  </tr>

(don't forget to replace your domain ^^)

and go to Configuration->Templates to activate it

Offline

 

#6 2012-01-04 22:54:33

Zaxon688
Member
2012-01-03
3

Re: [resolved] Add info BBcode [img][/img]

Thanks mistic100 I manage to get exactly what i want from what you told me :D


I used this code:

Code:

<table>
        <tr id="bbcode">
          <td class="label">Forum BBC Code:</td>
        <td class="value">[url=http://mydomainname.com/{$current.U_IMG}][img]http://mydomainname.com/{$SRC_IMG}[/img][/url]</td>
     </tr>  
</table>

Thanks to all for the quick help

Offline

 

#7 2016-11-15 12:26:45

Kardamilas
Guest

Re: [resolved] Add info BBcode [img][/img]

Goodevening to all,
sorry for digging this up but is exactly what i need and i cant find something relative
on the web.

Probably since 2012 this was resolved the picture.tpl file changed a lot.
I cant find :

<table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}">

to add the code is needed.

Can you help me on this?

Thanks in advance

 
  •  » Extensions
  •  » [resolved] Add info BBcode [img][/img]

Board footer

Powered by FluxBB

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