Wed Jul 16 2008, 04:28PM
Some of the pages on my site are generated by my own php pages. In general I build them up using a $content variable that I add HTML code to.

When doing that I know how to use the lightview class by using for example:

<a href=”image1.jpg” class=”lightview” title=”my caption”><img src=”image1_thumb.jpg” width=”50? height=”100?/></a>

but is there a way I can use the thumb class in the same way, to mirror the functionality given by the bbcode
[thumb=w,h,far|title|group|float][/thumb]
?

Back to top
Thu Jul 17 2008, 12:00AM
The image src attribute should be something like
{ e_PLUGIN }sgallery/includes/sgal_thumb.php?src=relative_path+parameters


where relative_path is the relative path from sgallery/includes/ to your image and parameters could be all allowed by phpThumb API GET parameters e.g.
q=80+wp=90+wl=120+hp=120+hl=90+iar=0+bg=373737

Full list of parameters could be found here - http://phpthumb.sourceforge.net/demo/docs/phpthumb.readme.txt
However you should disable the security setting from within phpThumb.config.php first.
Back to top
Moderators: SonicE, veskoto, SecretR, Stoewarius, steved, McFly, Cameron, yanniiwanow
Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF

Jump:     Back to top