Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2005-05-13 05:31:03

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

Re: [plugin] [ORPHAN] bas_img_selector

Mary, this is what I did…

<blockquote>
<code> $bas_cats = array(); $bas_img = bas_get_img(); $bas_img_cat = bas_get_cats($bas_img); $bas_out = bas_prefs_for_js($bas_img_cat); $bas_out.= bas_img_for_js($bas_img); bas_display($bas_out);
</code>
</blockquote>

I continue to get errors. Am I missing something here?


“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

#38 2005-05-13 09:40:54

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] bas_img_selector

sh… same to me…

Offline

#39 2005-05-13 23:58:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] bas_img_selector

(Edit: I screwed up the instructions.)

The plugin still works. To make the errors go away, the plugin code only needs a teensy adjustment.

Instructions

Last edited by Mary (2005-05-17 02:47:03)

Offline

#40 2005-05-15 13:37:19

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] bas_img_selector

BTW, is there any way to make the “Select image” INPUT a little bit smaller? It’s too wide dor 800×600 resolutions.

Offline

#41 2005-05-15 20:15:37

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] bas_img_selector

just tried this and getting the same errors – I’ve tried mary’s suggestion and the one regarding changing the language, both still provided the same teo errors followed by the bad argument. So i’ve deleted it, but if anyone finds a fix for it, would be grateful

Offline

#42 2005-05-16 06:18:11

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

Re: [plugin] [ORPHAN] bas_img_selector

Hi Mary, I changed it. But I still continue to get errors.


“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

#43 2005-05-17 02:45:50

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] bas_img_selector

Oh I am sorry, I had a typo in my instructions (there’s no ending “s”). I’ve edited my posts above to point to this one.

1. Click on “edit” for bas_img_selector

2. Find the bas_get_cats function definition, around line 100:
function bas_gets_cats($basimg)

3. Insert a line right after it:
$bas_cat = array();

4. Save and close. Errors go bye-bye.

Offline

#44 2005-05-17 07:30:26

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] bas_img_selector

In the content area there is:

advanced options
recent articles

is there meant to be a third option? I installed the plugin and where the drop should display there is just a blank space. It did work before, but with errors. used the above fix to remove the errors – so that part worked. Suggestions on this?

Cheers

Offline

#45 2005-05-17 15:22:22

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] bas_img_selector

Hm. Is the plugin “active”? Clear your browser’s cache?

Offline

#46 2005-05-17 17:32:05

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

Re: [plugin] [ORPHAN] bas_img_selector

Thanx Mary. That did the job. Here’s what I did.

<blockquote>
Code line 101
<code>
function bas_get_cats($bas_img){
$bas_cat = array(); <!— <<< hack hack hack —>

</code>
</blockquote>


“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

#47 2005-05-17 17:42:16

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] bas_img_selector

> mary wrote:

> Hm. Is the plugin “active”? Clear your browser’s cache?

Yes it is. And I have cleared the cache but to no avail.

One feature request I would like to propose is two drop down menus as an option – one folder for thumbs and one for larger images. Or not, would they link? Probably not. Maybe I picked the wrong plugin.

Sorry, but in either case I can’t seem to get it working.

Cheers

Last edited by sekhu (2005-05-17 18:06:21)

Offline

#48 2005-05-18 05:19:01

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

Re: [plugin] [ORPHAN] bas_img_selector

I have an idea which will make this script more user friendly. I am not aware of the depth of complication involved in implementing this idea.

Apart from letting the user choose an image can you add an option like “image details”, Clicking on which more details about the selected image would pop-up right under the image selection list (Thumbnails, Alt text, Caption, Dimension of the image etc.)?

Kind Regards,
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

Board footer

Powered by FluxBB