porting smarty templates??

General project discussion. NOT for help questions.
Post Reply
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

porting smarty templates??

Post by newagekat »

Hello:

I'm using CMSMS v1.0.2 on linux server running PHP v4.3.11, MySQL v4.0.25-standard, and Apache v1.3.33 (Unix).  Here's the punch line: we have 14 working days before we launch - no exceptions.

We're working on a job posting site http://www.globalsolutionscanada.com/index.php

Install at root, as always, went fine.  customization of template, news module, and calendar, very nice.  I have a few questions:
  • Do you notice the  "false" that appears over the calendar.  where is that coming from?
  • the horizontal nav does not always allow for mouse over.  See Employer or Register links. suggestions would be welcome.


now for the hardcore question.  Within the root directory, where CMSMS is installed, we have a directory housing a job posting commercial software.  the software seems to be using SSI for page display.  in order to maintain a consistent navigation, we would like to use the same horizontal and vertical nav smarty template that we are currently using on the cmsms side.  you can view the current page at: http://globalsolutionscanada.com/jobs/index.php. it's pretty ugly.

Question:
  • is this possible?  If so, how do I implement that?  I doubt somehow that

    Code: Select all

    <div id="menu_horiz">
    {menu template='simple_navigation.tpl' number_of_levels='1'}
       </div>
    will do the trick.  currently the menu is html.
  • we also want to add to the cmsms admin section, a link to the job posting admin and have the login pre-configured to save the client some time
  • lastly, has anyone created a glass design theme for cmsms admin?  Sure would save me a lot of time to redo.  If not where exacly is the documentation for that - if any?
Your assistance is much appreciated.  when things slow down for me, I really should find the time to wrtie up some documentations for you folks - my way of saying thank you. I'm a wiz at docs for dummies  ;)

with much gratitude

Karima
cyberman

Re: porting smarty templates??

Post by cyberman »

newagekat wrote:
  • the horizontal nav does not always allow for mouse over.  See Employer or Register links. suggestions would be welcome.
You should check the size (or z-index) of div.slogan - it's located over menu.
we would like to use the same horizontal and vertical nav smarty template that we are currently using on the cmsms side. 

is this possible?  If so, how do I implement that?
You can embed your commercial software via iframe with embed tag (directory plugins) or piiframe (CMSms Forge).

Don't know the size of your software but perhaps a userdefined plugin can do the job too.
we also want to add to the cmsms admin section, a link to the job posting admin and have the login pre-configured to save the client some time
An admin section you can create only with a new module. Search for Skeleton / ModuleMaker module on CMSms Forge - it will helps you to do that.
has anyone created a glass design theme for cmsms admin?  Sure would save me a lot of time to redo.  If not where exacly is the documentation for that - if any?
If I'm right there's no glass design theme for cmsms admin panel. It's a little bit more difficult to create a theme for backend than frontend. There's no documentation available.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: porting smarty templates??

Post by Dr.CSS »

Your .slogan div is over the menu, take out the height for it and give it 12%...
As for the Calendar and false Found it on Line 83 in the  function.displaycalendar.php ...which you will find in modules/calendar

    echo "DEBUG inline = ".(!$debug) ? 'false' : 'true' . '';

delete the word false, just the word not the ' '  have no idea where to set debug so this will have to do for now till the Dev for calendar swings around....

.slogan
{
width: 200px;
position: relative;
top: 12%;
left: 0;
text-transform: uppercase;
color: white;
font-family: arial narrow, trebuchez ms, sans-serif;
padding-left: 2%;
text-align: center;
}
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: porting smarty templates??

Post by newagekat »

Mark, thank you.  fixed the nav. I also noticed that if I view source and copy paste the navigation structure, the nav works in the commercial software due to absolute URL.  I realize that adding new pages will not happen dynamically, but it's a small price to pay given my time frame.  I'm totally agains iframes, but thanks for the suggestions, cyberman.

Questions:
mark wrote: As for the Calendar and false Found it on Line 83 in the  function.displaycalendar.php ...which you will find in modules/calendar

    echo "DEBUG inline = ".(!$debug) ? 'false' : 'true' . '';

delete the word false, just the word not the ' '  have no idea where to set debug so this will have to do for now till the Dev for calendar swings around....
I installed calendar v0.7.3 from module manager.  when I ftp to the folder you mentioned, it was blank.  What the ...?

ideas anyone?

thank again.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: porting smarty templates??

Post by calguy1000 »

a) Regarding the DEBUG line, you should be able to just delete the whole line.

b) Regarding 'embedding' other applications into CMS
    There are three ways to accomplish this:

      a) The fetchurl plugin may be able to help, it literally embeddes the source for one page into anothyer
      b) The iframe method as mentioned above
      c) Pseudo-embedding. 
          If you look at the forum link on the top of this page, you'll notice it's a link to forum.cmsmadesimple.org, the forum is not embedded within
          an install of CMS, it just looks that way.  This was done by making the templates, and styles look similar.
 
          We created a theme for SMF that made it look like CMS, including the top navigation.  There's no integration, it just looks that way.
 
          I've taken that one step further in a site I've been working on, and I've modified SMF's theme to use the stylesheet from CMS made simple, t
          thereby giving me one spot for changing the CSS.

          Maybe something like this can be done for your commercial application?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: porting smarty templates??

Post by newagekat »

Thanks callguy1000.  I will attempt the templating, might be easier.

regarding the calendar.  when I installed the calendar from module manager, it created a folder inside the module directory, but no files.  Today, I noticed a preference tab with a field.  Should I edit the url to point to my site to download the pages?

i would test that assumption, but the server is very slow all of a sudden.

Thanks everyone for your valuable input.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: porting smarty templates??

Post by calguy1000 »

well, when installing a module via XML, the permissions of any generated file would depend on your umask (which is in the  SiteAdmin->Global Settings page).  So if that's not set properly, you may not be able to see if there are any files there.

Send me a screen capture of a: your Extensions->Modules page, and b:  (if it shows) your 'Content -> Calendar page(s)'

infact, post em here, it'll be easier.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: porting smarty templates??

Post by newagekat »

thanks for the input, calguy1000. 

in MyAdmin -> Global Settings, the info is 022

under the content -> calendar, i can create categories, events, edit the templates for calendar, list, upcoming, events, and settings.

However, something is off.  Because the calendar files are not downloaded to my server, I cannot get rid of the 'false' that appears on the calendar page here: http://globalsolutionscanada.com/events/ as suggested by Mark in my original post.

Also, when I click the next arrow to view October (in the large calendar), notice the change in the calendar size. I don't know why this happens.

Furthermore, if I click on the next arrow to view october list of events, again, the large calendar changes.  And if that was not enough, if I click on More >> then nothing at all happens.  i don't know where to find the {$event.url}

I downloaded the XML code, but the page is encrypted.

on the event template, the code is:
Left column:

Code: Select all

{cms_module module="Calendar" display="list" date_format="%b %d/%C"}
<hr>
<!-- Start News -->
      <div id="news"><h1>News</h1>
          {news number="3" detailpage="news"}
      </div>
<!-- End News -->

(tried it with and without table_id="big")
main content section: 

Code: Select all

{cms_module module="Calendar" table_id="big"}
I have uninstalled and removed the software and did a clean install with permissions.  Still no better.

the template settings for calendar, list, upcoming, and events are at default.  However, in my earlier attempts, I had modified the layout within the event and list templates.  My changes are in the attached file.

This is my first time using calendar or news.  I really would prefer a step by step on how to proceed.  Thanks for your support. At least on this forum, you folks actually answer questions.  your assistance and time is much appreciated.  Once this project is off my plate, i will make it a point to make a donation.

[gelöscht durch Administrator]
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: porting smarty templates?? calendar issues

Post by newagekat »

For anyone who has experienced the same problem as I have in regards to the calendar 0.7.3.  when installing from Module Manager, here's the missing step:

look at the size of the application, then go to PREFERENCE tab and make sure that

Code: Select all


Download Chunk Size (Kb):

The maximum amount of data to download from the server in one chunk (when installing a module)
is set high enough that all the files will download and you will be able to see them using FTP.

Now Mark, I can change the function file you mentioned below.  Thanks.

Karima
Post Reply

Return to “General Discussion”