![]() |
Quote:
Has to be parsed in the TPL files to effectively show up on screen: |
enge919
make sure these lines are in the code for "fixedsidepanel_1.php" Code:
$fixedsidepanel1=mysql_result($resultall,0,"content"); I noticed just last night while working on the new CMS system that that the TITLE assign line was missing in some templates for fixed side panels. My Apologies for the inconvinience. :oops: That should fix the problem |
This worked like a charm chikira!
One more question to leon (or anyone) What does it mean "Has to be parsed in the TPL files to effectively show up on screen:" and where is the code supposed to be inserted in the product.php, cart.php and search.php for the panels to show up? Thanks for the fast responses. |
Hi... this is how the system works (breif history of smarty)!
1. PHP Scripts call a library called SMARTY. SMARTY contains a whole load of special functions for processing templates. 2. The PHP scripts then process code from the database or other variables and assigns them (parses them) over to the templates. 3. The templates replace areas that are assigned with the information from the PHP scripts. Its all interwoven to create a very powerful combination of programming code and easy to use templates. It take a little practice to get the hang of the advanced features of Smarty but it is a very powerful system when you get the hand of it! :wink: |
Also (forgot to answer this in my last post)
Open those other files in a text editior and look for the line that says Code:
include ("catagories.php"); and add Code:
include ("fixedsidepanel_1.php"); just below it. You will need to do the same for any other elements you are using (ie randomsidepanel_1.php etc... The new system I am building will make life a lot easier because I personally feel my origanal system has too many flaws. So my advice is use this as a temporary solution until I release TotalCMS. :twisted: (by the way its not a sad face..... just Twisted... ) |
Thanks man! That was way too easy. Last night I was adding "require" before "include ("fixedsidepanel_1.php");"
Thanks again... One other thing, With the rotating panel, I assume as the name implies, it will rotate different pictures (if this is correct), How do I actually use thus feature? |
basically in the administrator you just create a new item with the page type matching the group you want it to match too.
IE if your panel is ROTATINGSIDEPANEL_1 then all the grouped images are going to be "rotatingsidepanel_1" in thier assigned pagetypes. Hope that helps! :twisted: |
Humm, I did already try that and thats wht sparked the question. Whatever is the last page I create assignd to rotatingsidepanel1 is the only picture that shows.
I know you're hard at work on the new CMS (which I am really looking forward to), but is there possibly another bug in this version? Is anyone else having the same problem? |
Quote:
Couldnt say it any better. |
Quote:
Great news. |
All times are GMT -8. The time now is 09:29 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.