| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Is there a full list of the variables anywhere? I'm trying to use if / else statements to display certain content on some pages but not all ie. not on main page, but on categories and other pages The wiki page hasn't been created |
| |||
|
I dont understand. You can use Code: Content visible to License Owner only. Im assuming your doing it with blocks - tell us what your trying to achieve.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
I'm trying to change part of the header depending on what type of page the person is on. If you go to http://www.armchair.ie you will see that there are no google ads on the main page, however there are ads on the category pages. What I can't work out is which variables to use for the other non-category pages, excluding the main page. Do you get me? |
| |||
| Code: Content visible to License Owner only. The best answer that I have self tough myself is to look into the templates directory and take your best guess at what each one you find does. Each template variable starts with a <% and ends iwth %> . You can also include files and php using <%include_php file ="filename.php"%> or <%include file ="filename.ext"%> where ".ext" stands for the extention like .html or .txt . There are also some simple script tests you can do using "if" statements etc. Last edited by GremlinGod; 08-12-2006 at 01:52 PM. |
| |||
|
its smarty... all the variables are the same as on the smarty website, except the are using the <% %> instead of the standard ones that use {}
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
| Code: Content visible to License Owner only. |
| |||
|
heres the documentation for smarty : http://smarty.php.net/manual/en/ the chapters 7 and 8 are the most relevant
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
Dody - what about the non-category pages? Do they have a specific variable each? I'm trying to place specific content on certain pages - not just ads, so knowing which variable to use is important. For example, I've moved the "subscribe to category" into the header, but I've got it to only display on category pages, as it would be pointless displaying it on other pages |
| |||
| Code: Content visible to License Owner only. Code: Content visible to License Owner only.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
although you cant check to see what page you are on, you CAN check to see if a variable exists and deside what to do... eg/ my example above... sure not the prettiest solution but it worked for me.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| my website own variables | SKh | v5.x | 1 | 05-26-2006 04:37 AM |
| block and variables | inspireme | v5.x | 1 | 04-17-2006 04:51 PM |
| variables on add_pending | inspireme | v5.x | 4 | 01-17-2005 04:51 PM |
| variables. Im confused | inspireme | v5.x | 4 | 11-15-2004 12:35 PM |
| variables in php script | acio | v5.x | 8 | 06-22-2003 08:24 AM |