Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-07 17:12:12

Nichod
Member
Registered: 2005-06-06
Posts: 119

<txp:hak_article_thumb /> not working.

In my continued saga of getting txp to do what I want. I’m trying to setup the article page so when I create an article the thumbnail is automatically loaded from the selected primary image. Now hak is partially working in that it is referencing the photo, but its referencing the full size version rather then the thumbnail.

This is the code:<br />

<code>
<div class=“container”>
<div class=“wrap”>
<div class=“title”><txp:permlink><txp:title /></txp:permlink></div>
<div class=“subtitle”><txp:posted /><br />
<txp:if_comments>
<p>(<txp:comments_count/>) <txp:comments_invite showcount=“0” /></p>
<txp:else />
nope
</txp:if_comments></div>
</div>
<div class=“article”>
<txp:body />
<p><txp:hak_article_thumb /></p>
<p><txp:comments_invite showcount=“0” /></p>
</div>
</div>
</code>
<br />
I’m using the version of hak posted here

Offline

#2 2005-12-07 19:18:37

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

Re: <txp:hak_article_thumb /> not working.

Is the thumbnail properly associated with the image in the images tab? Can you maybe post the <img /> tag that is getting generated? Also what are you putting in the article image field?


Shoving is the answer – pusher robot

Offline

#3 2005-12-07 21:54:33

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: <txp:hak_article_thumb /> not working.

<code> /images/2.jpg </code>

Offline

#4 2005-12-07 22:07:10

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

Re: <txp:hak_article_thumb /> not working.

that’s bizarro, all hak_article_thumb does is add a “t” to the id so it pulls the thumbnail. Do you just have the “2” in the article image field?


Shoving is the answer – pusher robot

Offline

#5 2005-12-08 00:20:33

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: <txp:hak_article_thumb /> not working.

yes. not sure what is going on here. kind of disappointed because it seems like a powerful option. Its showing the image. But the fullsize version not its associated thumbnail.

Last edited by Nichod (2005-12-08 00:22:00)

Offline

#6 2005-12-08 00:33:47

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

Re: <txp:hak_article_thumb /> not working.

I’ll see if I can find anything, I’m just not being able to replicate it. I use it on my site exactly the same way you are and it’s working fine.

Does the thumb shows up fine in the images tab? Also, just make sure, this is using Textpattern 4.0 or higher right?

Last edited by hakjoon (2005-12-08 00:57:17)


Shoving is the answer – pusher robot

Offline

#7 2005-12-08 01:07:11

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: <txp:hak_article_thumb /> not working.

Yeah the thumb displays fine in the images tab. I’m using the latest version downloaded from the resource site. And 4.0.2 of textpattern.

Offline

#8 2005-12-08 02:01:11

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

Re: <txp:hak_article_thumb /> not working.

You could see if the other article_image plugins work also. The one included in upm_img_popper does almost everything mine does.

I think you saw this already but Mary linked them here

I’d be curious to know if they behave properly because it could help me figure out what is going on with my plugin.


Shoving is the answer – pusher robot

Offline

#9 2005-12-08 03:01:23

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: <txp:hak_article_thumb /> not working.

I couldn’t get the other ones to work either, but I preferred yours. I’ll try the upm_img_popper next. Its the only one I haven’t tried. The other plugins simply wouldn’t load. I’d like to think its something I’m doing wrong, so if anyone has any ideas on what mistake I am making. Please let me know.

Last edited by Nichod (2005-12-08 03:02:31)

Offline

#10 2005-12-08 03:05:06

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

Re: <txp:hak_article_thumb /> not working.

Anything in your diagnostics tab? It definitely seems like something is off.

Last edited by hakjoon (2005-12-08 03:05:29)


Shoving is the answer – pusher robot

Offline

#11 2005-12-08 03:59:55

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: <txp:hak_article_thumb /> not working.

<code>
Textpattern version: 4.0.2 (r1076)
last_update: 2005-12-05 02:28:51/2005-11-01 15:01:07
Document root: /home/vizualds/public_html
$path_to_site: /home/vizualds/public_html
Textpattern path: /home/vizualds/public_html/textpattern
Permanent link mode: section_id_title
Temp folder: /tmp
Site URL: www.vizualds.com
PHP version: 4.4.1
Register globals: 1
server_time: 2005-12-07 22:58:52
MySQL: 4.0.25-standard-log
Locale: en_US.UTF-8
Server: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
Apache version: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: OK

PHP extensions: xmlrpc/0.51, xml, tokenizer/0.1, swf, standard/4.4.1, sockets, session, posix, pcre, overload, mysql, mhash, mcrypt, imap, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.3 2005/10/10 06:07:16 helly Exp $, curl, ctype, calendar, bcmath, zlib/1.1, openssl, apache
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
</code>

Offline

#12 2005-12-08 14:01:58

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

Re: <txp:hak_article_thumb /> not working.

I noticed your server has register_globals on I wonder if that could cause something. You should try uncommenting the line for
#php_value register_globals 0 in the .htaccess See if that does anything. Otherwise I would recommend maybe posting something troubleshooting to see if zem or Sencer notice anything odd. They definitely know what to look for better then I do. It definetly seems like something is not behaving as expected if so many of these plugins are acting up.


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB