#1 (permalink)  
Old 08-12-2006, 08:55 AM
Registered User
 
Join Date: Jul 2006
Posts: 49
blacknight is on a distinguished road
Default List of Variables?

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
  #2 (permalink)  
Old 08-12-2006, 09:17 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

I dont understand.

You can use
Code:
Content visible to License Owner only.
you would put that code into detail_link.html, if you didnt want it displayed on another page you wouldnt add the code.

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 )
  #3 (permalink)  
Old 08-12-2006, 09:24 AM
Registered User
 
Join Date: Jul 2006
Posts: 49
blacknight is on a distinguished road
Default

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?
  #4 (permalink)  
Old 08-12-2006, 01:47 PM
Registered User
 
Join Date: May 2006
Posts: 26
GremlinGod is on a distinguished road
Default

Code:
Content visible to License Owner only.
This question has been beat to death already for months. The answer that you will get is to look at the incomplete documentation site at http://www.indexuguide.com . I know as I have been looking for this list myself.

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.
  #5 (permalink)  
Old 08-12-2006, 07:03 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

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 )
  #6 (permalink)  
Old 08-12-2006, 08:32 PM
Registered User
 
Join Date: May 2006
Posts: 26
GremlinGod is on a distinguished road
Default

Code:
Content visible to License Owner only.
A URL would be helpful. :-) Thank you
  #7 (permalink)  
Old 08-13-2006, 04:15 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

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 )
  #8 (permalink)  
Old 08-13-2006, 06:26 AM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

Code:
Content visible to License Owner only.
Okay, you can detect the category page by identifiying the value of these variables: <%$cat%> or <%$category_path_search_opt%>. But i suggest the latest one. Here is a sample code for your header
Code:
Content visible to License Owner only.
  #9 (permalink)  
Old 08-13-2006, 11:31 AM
Registered User
 
Join Date: Jul 2006
Posts: 49
blacknight is on a distinguished road
Default

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
  #10 (permalink)  
Old 08-13-2006, 02:08 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

Code:
Content visible to License Owner only.
i did that, put htis in your header :
Code:
Content visible to License Owner only.
as i remember i got a bit confused when i did that, but the above seems to be workign great on my site, and i cant remember what the problem was
__________________
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 )
  #11 (permalink)  
Old 08-13-2006, 10:20 PM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

Code:
Content visible to License Owner only.
Currently there's no identified regarding which page is being processed.
  #12 (permalink)  
Old 08-14-2006, 05:26 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

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 )
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 04:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate