Author Topic: another minor subdirectory problem  (Read 3084 times)

rhodesengr

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
    • View Profile
another minor subdirectory problem
« on: September 11, 2007, 05:45:16 PM »
So I converted my website over and I really like your program. I had a couple of additional small problems with the subdirectory install. The links to forms and documents to not include the subdir. Is that something I can fix? I uploaded a CV for example in the /forms directory. Also, I had a couple of other random links on my site to internal documents. When i tried to add the /subdir in the link edit screen, it didn't take. It keeps reverting to ../../forms/documentname which brings up www.rhodesengr.com/forms/documents name (no subdir even if I type it in. My current workaround is to just have the document files in the root. I could also move the /form dir up one level. I'd rather fix it internally if possible.

My site is live with SOS. I put a one line php file in the root to redirect to the /subdir.
www.rhodesengr.com

I would also like to remove the "edit site" and "edit page" links at the bottom and I would like to remove the "long description" in the header. If I leave it empty, it still shows a gray bar.

Suggestions/requests:
Would like to edit fonts, sizes, maybe colors in the editor.
Would like to  resize photos within the program.
Would like to control the position of the photo.
Would like to add more than one photo in a section.

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: another minor subdirectory problem
« Reply #1 on: September 11, 2007, 09:25:20 PM »
Quote
The links to forms and documents to not include the subdir. Is that something I can fix?

That would be a bug.  I'll make a patch and post it here.

Quote
I would also like to remove the "edit site" and "edit page" links at the bottom and I would like to remove the "long description" in the header. If I leave it empty, it still shows a gray bar.

Edit 'include/footer.php' to remove the "edit site" and "edit page" links.
The "long description" is added in the template.  Edit the file 'templates/99blue/template.php'.  I think deleting line 47 will work.  If you do this I HIGHLY recommend you make a new template (In case the template is changed in future releases). Here's how: 
  • Copy all the contents of 'templates/99blue/' to another a new directory ('templates/rhodes/' would work)
  • Change the template name in 'templates/rhodes/description.php'  ($template_description_name = "rhodes"; )
  • Change 'templates/rhodes/template.php' to fit your needs.
  • Login to the admin section, click "Look of My Site", click "Change Template", click "Install a Template".
  • Click on "Install" by your template name.

Quote
When i tried to add the /subdir in the link edit screen, it didn't take.
Notice that every page has a base URL in the <head>:

Code: [Select]
<base href="http://www.rhodesengr.com/RE_SOS/" />   
So, any links added in a content section will be relative to the base URL.
It is safe to code the whole url when adding a link.
Instead of 'cv.pdf', use 'http://www.rhodesengr.com/RE_SOS/cv.pdf'

Code: [Select]
Would like to edit fonts, sizes, maybe colors in the editor.
Would like to resize photos within the program.
Would like to control the position of the photo.
Would like to add more than one photo in a section.

Fonts, sizes, colors can be changed in the style sheet in the templates folders and in the editor.  Click 'HTML' in the editor, and you can hard code any HTML.  NOTE: The system attempts to maintain XHTML 1.0 Strict Compatibility and will strip away obsolete tags like '<font>'.  You will have to use CSS.

Example:
Code: [Select]
<p style='color:blue; font-size: 16pt; font-family: Arial, sans-serif;'>Blah Blah Blah</p>
Resizing photos would be way off in the future, although the class handling images will do it with a lot of tweaking.

You can override the position of a photo or add more than one photo in a section by not adding it the normal way.  Upload it and keep the direct URL of the image.  Add it in the editor by editing HTML and doing something like this:

Code: [Select]
<img style='float:left' src='http://www.soswebpages.com/uploads/soslogo.gif>Again, you can't use the obsolete 'align=left'
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: another minor subdirectory problem
« Reply #2 on: September 11, 2007, 10:26:36 PM »
Patch for Subdirectory Install Bug:

http://sourceforge.net/tracker/download.php?group_id=202120&atid=980309&file_id=245258&aid=1792909
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

rhodesengr

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
    • View Profile
Re: another minor subdirectory problem
« Reply #3 on: September 12, 2007, 10:35:27 AM »
So cool. Everything worked:the bug fix and all the guidence to make minor changes. Thanks so much.

About the editor: I have also been playing around with OSCMax. They have the fckeditor which is an improvement over the original editor in OS Commerce. I think fck is opensource so perhaps an upgrade would be to replace the editor  in SOS with fck.