Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-04-07 18:35:04

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] bas_img_selector

Same for me, I don’t see anything changed. rev272, Firefox 1.0.2, javascript enable.

Offline

#14 2005-04-07 18:50:51

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [plugin] [ORPHAN] bas_img_selector

Strange.. I have rev272, Firefox 1.0.2 and it works for me (?)

Offline

#15 2005-04-07 19:07:29

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] bas_img_selector

works for me. latest txp rev and ff.

Offline

#16 2005-04-07 19:08:55

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_img_selector

Strange. Sorry, but right now I’m behind a proxy and i can’t get the 272 to test.

I’m thinking about where is my mistake, but I cant’t get it.

Perhaps it helps to know your install details.

path form root etc.

Offline

#17 2005-04-07 20:38:14

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [plugin] [ORPHAN] bas_img_selector

Hi Bastian!

I’m using Firefox 1.0.2 (Windows XP) and the lastest revision.
Here are my diagnostic infos:

—-
Textpatternversion: 1.0rc3
Absoluter Pfad der Seite: /www/htdocs/v085298/
$path_to_site: /www/htdocs/v085298/redesign
Textpatternpfad: /www/htdocs/v085298/redesign/textpattern
Schema der URLs: section_title
open_basedir: /www/htdocs/v085298/:/tmp:/usr/bin:/www/htdocs/v085298:/bin:/usr/local/bin:/usr/share/php
Temporärer Ordner: /tmp
Seiten-URL: www.durchgedreht24.de/redesign
PHP-Version: 4.3.10
Register globals: 1
Magic quotes: 0/0
Regionale Einstellungen: de_DE.UTF-8
Server: Apache/1.3.27 (Linux/SuSE) mod_fastcgi/2.4.2 FrontPage/4.0.4.3 PHP/4.3.10 mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6i
Apache-Version: Apache/1.3.27 (Linux/SuSE) mod_fastcgi/2.4.2 FrontPage/4.0.4.3 PHP/4.3.10 mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6i

Voruntersuchung:
————————————
path_to_site stimmt nicht mit document_root überein [ /www/htdocs/v085298/ ]
/www/htdocs/v085298/redesign/textpattern/_update.php noch vorhanden
/www/htdocs/v085298/redesign/textpattern/setup.php noch vorhanden
————————————

Inhalt der .htaccess-Datei:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php

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

Hoffe, es gibt eine Lösung :) Wäre nämlich ne coole Hilfe…

Offline

#18 2005-04-07 20:59:54

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_img_selector

I take a bet, that the problem is:

path_to_site

I used $prefs[“path_from_root”] and while I’m thinking about:
Is there a path_from_root set in rc13?

Perhaps I check it this night. If not I promise it for this weekend.

Have a good night.

Offline

#19 2005-04-08 00:15:49

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: [plugin] [ORPHAN] bas_img_selector

Bastian, The LINK doesnt seem to work for me. Am I the only one who’s facing this prob? Can someone please re-post this plugin?

Vasanth


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#20 2005-04-08 01:38:24

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_img_selector

I clicked the link few seconds ago and it works. I don’t know, why it doesn’t work for you.

Copy the plugin out of this textarea:

<textarea>YTo5OntzOjc6InZlcnNpb24iO3M6MzoiMC4zIjtzOjY6ImF1dGhvciI7czoxODoiQmFzdGlhbiBTYWNrZXJtYW5uIjtzOjEwOiJhdXRob3JfdXJpIjtzOjIwOiJodH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kJcG9zID0gc3RhcnQgKyBvdXQubGVuZ3RoOwoJCWVsc2UKCQkJcG9zID0gc3RhcnQgKyBvdXQubGVuZ3RoIDsKCQlpbnB1dC5zZWxlY3Rpb25TdGFydCA9IHBvczsKCQlpbnB1dC5zZWxlY3Rpb25FbmQgPSBwb3M7Cgl9CgllbHNlCgkJaW5wdXQudmFsdWUgPSBpbnB1dC52YWx1ZSArIG91dDsKfQoKZnVuY3Rpb24gYmFzX2ltZ19pbnNlcnRfZmllbGQoYmFzX3NlbGVjdGVkX2ltZykgewogICAgICAgICBpZihiYXNfcHJlZnNbInplbV9hcnRpY2xlX2ltYWdlIl0gPT0gInRydWUiKXsKCQl2YXIgc2F2ZSA9IGRvY3VtZW50LmZvcm1zWyJhcnRpY2xlIl0uZWxlbWVudHNbIkltYWdlIl0udmFsdWU7CgkJaWYoc2F2ZSA9PSAiIikKCQkJZG9jdW1lbnQuZm9ybXNbImFydGljbGUiXS5lbGVtZW50c1siSW1hZ2UiXS52YWx1ZSA9IGJhc19zZWxlY3RlZF9pbWc7CgkJZWxzZQoJCQlkb2N1bWVudC5mb3Jtc1siYXJ0aWNsZSJdLmVsZW1lbnRzWyJJbWFnZSJdLnZhbHVlID0gc2F2ZSsgIiwiICsgYmFzX3NlbGVjdGVkX2ltZzsKCX0KCWVsc2UKCQlkb2N1bWVudC5mb3Jtc1siYXJ0aWNsZSJdLmVsZW1lbnRzWyJJbWFnZSJdLnZhbHVlID0gYmFzX3NlbGVjdGVkX2ltZzsKfQoKLS0+Cjwvc2NyaXB0PgonOwp9CgoKIjtzOjM6Im1kNSI7czozMjoiOWQxMGU3YWY1Mzk4MTZjZTIwZjliZjc0YjJhMTNhNDUiO30=</textarea>

Offline

#21 2005-04-08 06:15:22

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: [plugin] [ORPHAN] bas_img_selector

Thanks, I checked it out and this works flawlessly!

p.s I have no idea why the links not working for me. (It still is’nt workin)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#22 2005-04-08 08:25:57

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] bas_img_selector

It’s a Textdrive hosting…

Version de Textpattern : 1.0rc3
Document racine : /home/ludysnet/domains/shadowrun.fr/public_html
$path_to_site: /usr/home/ludysnet/domains/shadowrun.fr/public_html
Chemin d’accès à Textpattern : /usr/home/ludysnet/domains/shadowrun.fr/public_html/textpattern
Format des URL: section_title
upload_tmp_dir: /usr/local/www/php/tmp
Répertoire temporaire: /usr/home/ludysnet/domains/shadowrun.fr/public_html/textpattern/tmp
URL du site : shadowrun.fr
Version de PHP : 5.0.3
Magic quotes PHP : 0/0
Locale: fr_FR.UTF-8
Serveur : Apache

contenu du fichier .htaccess : ————————————
  1. shadowrun.fr en dvlp, on filtre par IP
    ErrorDocument 403 /srfa-ouverture.jpg
    Order deny,allow
    Deny from all
    Allow from xx.xx.xx.xx
  1. TXP Rewrites
    RewriteEngine On
    #RewriteCond %{HTTP_HOST} !^frenchlance.shadowrun.fr$ [OR]
    RewriteCond %{REQUEST_URI} !^/frenchlance/.* [OR]
    RewriteCond %{REQUEST_URI} !^/frenchlance/.* [OR]
    RewriteCond %{REQUEST_URI} !^/forums/.* [OR]
    RewriteCond %{REQUEST_URI} !^/wiki/.* [OR]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php

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

Offline

#23 2005-04-08 08:46:46

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] bas_img_selector

Ok I’ve tried on another host, this time I got PHP errors when the plugin is activated.

Version de Textpattern : 1.0rc3
Document racine : /home/shadowfr/www
$path_to_site: /home/shadowfr/www/txp
Chemin d’accès à Textpattern : /home/shadowfr/www/txp/textpattern
Format des URL: section_title
Répertoire temporaire: /home/shadowfr/www/txp/textpattern/tmp
URL du site : www.shadowfrance.net/txp
Version de PHP : 4.3.11
Register globals PHP : 1
Magic quotes PHP : 1/0
Locale: fr_FR
Serveur : Apache

contenu du fichier .htaccess :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) /txp/index.php

The errors are (in write/ tab) :

Warning: array_unique(): The argument should be an array in /home/shadowfr/www/txp/textpattern/lib/txplib_misc.php(304) : eval()’d code on line 106

Warning: array_values(): The argument should be an array in /home/shadowfr/www/txp/textpattern/lib/txplib_misc.php(304) : eval()’d code on line 106

Warning: join(): Bad arguments. in /home/shadowfr/www/txp/textpattern/lib/txplib_misc.php(304) : eval()’d code on line 122

The txplib_misc.php is native for the last revision (273), no hack.

Offline

#24 2005-04-09 22:32:30

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] bas_img_selector

Using rev 277.
XHTML and Textile options do not insert thumb image. The t is missing from file name.

Offline

Board footer

Powered by FluxBB