Jump to content
Sign in to follow this  
FWR Media

[contribution] CSS Assistant

Recommended Posts

Guest
I have uploaded 1.1.2

 

Don't use 1.1.1 as it will lose the admin session. (Soon to be removed .. I hope).

1.1.2 works, thanks Robert.

Share this post


Link to post
Share on other sites
You mean that you want help with a different contribution?

I was asking for help updating this contrib to have a similar integration as the other one I listed. ;)

 

I've been meaning to do this but I get no feedback here so I thought the contribution dormant and therefore not worth the effort to upgrade.

 

New version added. Integrated into admin under the tools menu.

 

Very simple upgrade for existing users.

 

Also tidied up the search for style="".

 

http://addons.oscommerce.com/info/6007

Thanks so much, I spent about 4 hours trying to do this last night with no success. I learned a bit in the process so it wasn't a total bust. :D

 

Thanks again!

Share this post


Link to post
Share on other sites

Well this died a death it seems :)

Share this post


Link to post
Share on other sites
Well this died a death it seems :)

 

I have been using OSC for a little over a year. Do fairly well with HTML, but PHP is still Grrek at times. But that said, I think i have improved this contribution slightly.

 

In a previous post, a request was made for menu options for file or directory locations. The ability to locate and select a file to use this on with the same format of selecting the file like "Textmaster" uses would be a worthwhile addition.

 

I have made two changes to this admin/cssassitant.php that makes this easier. The first gives a dropdown menu to select the files directory location. Easier than typing in and prevent typos.

 

Original code: (line 119)

 

<td>Path: </td><td><input type="text" name="path" value="includes/classes/" /></td>

 

Change to this:

 

<td>Path: </td>

<td><select name="path">

<option>""</option>

<option>includes/</option>

<option>includes/boxes/</option>

<option>includes/classes/</option>

<option>includes/functions/</option>

<option>includes/languages/</option>

<option>includes/modules/</option>

<option>includes/languages/english/</option>

</select></td>

 

Change number two makes the admin directory the default instead of the admin/includes.

 

Original code: (line 179)

 

$added_path = str_replace(DIR_WS_CATALOG, '', DIR_WS_ADMIN) . 'includes/';

 

Replace with this:

 

$added_path = str_replace(DIR_WS_CATALOG, '', DIR_WS_ADMIN) . '';

 

I will continue to play with this, as I would like all choices to be a menu choice.

 

Fred Brace, PA-C


Frederick C Brace,III PA-C

www.21st-tees.com (osc)

www.tanda-designs.com (osc)

Share this post


Link to post
Share on other sites
Guest
I have been using OSC for a little over a year. Do fairly well with HTML, but PHP is still Grrek at times. But that said, I think i have improved this contribution slightly.

 

In a previous post, a request was made for menu options for file or directory locations. The ability to locate and select a file to use this on with the same format of selecting the file like "Textmaster" uses would be a worthwhile addition.

 

I have made two changes to this admin/cssassitant.php that makes this easier. The first gives a dropdown menu to select the files directory location. Easier than typing in and prevent typos.

 

Original code: (line 119)

 

<td>Path: </td><td><input type="text" name="path" value="includes/classes/" /></td>

 

Change to this:

 

<td>Path: </td>

<td><select name="path">

<option>""</option>

<option>includes/</option>

<option>includes/boxes/</option>

<option>includes/classes/</option>

<option>includes/functions/</option>

<option>includes/languages/</option>

<option>includes/modules/</option>

<option>includes/languages/english/</option>

</select></td>

 

Change number two makes the admin directory the default instead of the admin/includes.

 

Original code: (line 179)

 

$added_path = str_replace(DIR_WS_CATALOG, '', DIR_WS_ADMIN) . 'includes/';

 

Replace with this:

 

$added_path = str_replace(DIR_WS_CATALOG, '', DIR_WS_ADMIN) . '';

 

I will continue to play with this, as I would like all choices to be a menu choice.

 

Fred Brace, PA-C

Hi Fred

 

Those changes work.

I have not used this add on for a while, it is only in one of my old test sites.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×