Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#229 2008-09-04 14:14:20

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_article_image

Can you post the tag code you are using?

Last edited by hakjoon (2008-09-04 14:15:00)


Shoving is the answer – pusher robot

Offline

#230 2008-09-16 08:27:35

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: hak_article_image

Hi Patrick,

This is the code in my form:

<txp:hak_article_thumb link=“1” linktype=“image” rel=“lightbox[gallery]” limit=“999” wraptag=“ul” break=“li” class=“thumbnails” />

Offline

#231 2008-09-16 13:50:31

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_article_image

try

<txp:hak_article_thumb link=“1” linktype=“image” linktitle="txp:caption" rel=“lightbox[gallery]” limit=“999” wraptag=“ul” break=“li” class=“thumbnails” />


Shoving is the answer – pusher robot

Offline

#232 2008-09-17 10:16:10

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: hak_article_image

Dear All,
Greetings!
I am trying to use hak_article_image plugin but no idea formatting the text and image. Either Image gone down the bottom left or If I take the image with margin-top: -ve value it goes up right hand side because I want the picture top right and text should go left the picture. But the text went beneath the image. No idea to formatting text and image.

Many thanks to the plugin author as well.
Sheru

Offline

#233 2008-09-17 12:00:33

Viktor
Member
From: Nürnberg
Registered: 2008-09-12
Posts: 21
Website

Re: hak_article_image

Fits perfectly for my portfolio. Thank you!

Offline

#234 2008-09-17 14:52:59

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_article_image

Sheru,

I’m not quite understanding what your problem is. It sounds like you just need to do [image] [text] and float the image right.


Shoving is the answer – pusher robot

Offline

#235 2008-09-18 04:03:18

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: hak_article_image

Thank you Patrick for your post.

Actually it’s about the text and image. I floated the image toward the right. It aligned to right but could not manage the text. I could not set or float the text toward left. Actually text went beneath the image.

Anyway thank you so much for your help.
Sheru

Offline

#236 2008-11-12 08:13:13

elstrausso
Member
Registered: 2008-09-25
Posts: 49
Website

Re: hak_article_image

Building a Portfolio section for my site and I’m attempting to add a white border/background around each individual article image added via the “hak article image” plugin. So far I’ve had no success doing this, its encapsulating all images in one giant border, instead of being applied individually.

My site link for Example:
http://thedept.com/index.php?id=5

Here is my Code :
<txp:hak_article_image wraptag=“p” class=“cellblocker” />

Here is the CSS:
.cellblocker
{ background: #ffffff; margin-bottom: 8px; padding: 8px; margin-right: 8px; -moz-border-radius: 5px; -webkit-border-radius: 5px; width: 445px;

}

Has anyone had any success doing this with “hak article image”, or have a possible tip for accomplishing this simple border issue?

thanks,
Elstrausso

Offline

#237 2008-11-12 15:12:28

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_article_image

The class gets applied to the wraptag You cna use a form to target the individual images or just do.


.cellblocker img
{
 background: #ffffff; 
margin-bottom: 8px; 
padding: 8px; 
margin-right: 8px; 
-moz-border-radius: 5px; 
-webkit-border-radius: 5px; 
width: 445px;

}

Shoving is the answer – pusher robot

Offline

#238 2008-12-03 15:35:38

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: hak_article_image

Hi Patrick,

Your plug-in is working really well on my site, but having recently put it into ‘debugging’ mode to check another page I got this error, which was repeated a few times…

tag_error <txp:hak_article_image_link type="page" anchor="" section="" category="" popup="0" popwidth="0" popheight="0" rel="" class="" title=""> -> Notice: Undefined variable: attribs on line 146
textpattern/lib/txplib_misc.php(574) : eval()'d code:146 hak_article_image_link()
textpattern/publish.php:970 hak_article_image_link() processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/lib/txplib_misc.php(574) : eval()'d code:72 parse()
textpattern/lib/txplib_misc.php(574) : eval()'d code:4 hak_article_image()
textpattern/publish.php:970 hak_article_thumb() processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/lib/txplib_misc.php:1460 parse()
tag_error <txp:hak_article_image_link type="page" anchor="" section="" category="" popup="0" popwidth="0" popheight="0" rel="" class="" title=""> -> Notice: Undefined variable: attribs on line 146
textpattern/lib/txplib_misc.php(574) : eval()'d code:146 hak_article_image_link()
textpattern/publish.php:970 hak_article_image_link() processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/lib/txplib_misc.php(574) : eval()'d code:72 parse()
textpattern/lib/txplib_misc.php(574) : eval()'d code:4 hak_article_image()
textpattern/publish.php:970 hak_article_thumb() processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/lib/txplib_misc.php:1460 parse()

It’s probably very simple but I’ve having difficulty working out what’s actually wrong – could you point me in the right direction? Thanks.

Offline

#239 2008-12-03 18:23:17

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_article_image

That variable doesn’t get initialized in one of the paths. There are two ways to fix it. Giving it a class or a title will fix the problem. It lacking those two parameters is what causes the variable not be initialized.

Otherwise you can look for this bit of text.

 if (!empty($title)) {
            switch(strtolower($title)) {

and replace it with

$attribs = ''; 
if (!empty($title)) {
            switch(strtolower($title)) {

I’ll try to get a version that fixes this out shortly.


Shoving is the answer – pusher robot

Offline

#240 2008-12-03 18:32:17

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: hak_article_image

Thanks Patrick, that replacement code has done the trick.

Offline

Board footer

Powered by FluxBB