|
|
|
|
 |
IndexU Category Specific Block Mod for IndexU v5.40. Full instructions on how to use this product are included.
Please note free products for IndexU do not come with any support. You can typically find us on the Nicecoder forums and receive assistance there as time permits.
Readme/Instructions
Current Version 1.00 released for IndexU 5.40. The Category Specific Block Mod should work with any 5.x version of IndexU but it has not been tested on any other version not stated here.
Until now, all blocks were considered global, that is, text in a block stays the same no matter where on the site you are. This addon/mod will allow users to have specific text in a block depending on what category a user is viewing. This can be a great addition for selling category specific advertising, privately entered sponsored links or anything else you can think of that may be shown that is specific to each category.
This mod works both with and without mod_rewrite.
While this addon/mod does require a lot of user input, it also allows for default text to be displayed in case any category is not specifically entered.
This mod requires the following file: block.catmod.php
This mod also requires one of the following files depending on the theme you are using
blackjuice/block.catmod.html
bluesmooth/block.catmod.html
cleandex/block.catmod.html
kosmos/block.catmod.html
portaldex/block.catmod.html
worlddex/block.catmod.html
There is no text to change in block.catmod.php. This file gets uploaded to /your/path/to/indexu/blocks/
The file block.catmod.html gets uploaded to /your/path/to/indexu/themes/yourtheme/blocks/
CHMOD block.catmod.html to either 777 or 666 depending on your system.
Inside the block.catmod.html you will find the following
<%if $cat == 1%>
This IS category #1
<%elseif $cat == 2%>
This IS category #2
<%elseif $cat == 3%>
This IS category #3
<%elseif $cat == 4%>
<%block_links1%>
<%else%>
This is NOT a category listed
<%/if%>
A breakdown is provided below
<%if $cat == 1%> <- If $cat (the category you are viewing)
is equal to 1 then display the next line(s)
This IS category #1 <- The text for Category 1, can contain
any data including html
<%elseif $cat == 2%> <- If $cat (the category you are viewing)
is equal to 2 then display the next line(s)
This IS category #2 <- The text for Category 2, can contain
any data including html
<%elseif $cat == 3%> <- If $cat (the category you are viewing)
is equal to 3 then display the next line(s)
This IS category #3 <- The text for Category 3, can contain
any data including html
<%elseif $cat == 4%> <- If $cat (the category you are viewing)
is equal to 4 then display the next line(s)
<%block_links1%> <- The text for Category 4, this shows how
you can use a new block instead of text
<%else%> <- If you are NOT in a category listed above, display
the following data
This is NOT a category listed <-- default data
<%/if%> <- end of statement
Users can add as many of the elseif statements as they wish. One thing you must remember is that if you have 100 categories or more this file can get quite large. You may want to simply call additional blocks instead of inserting the text into this block. That will help you to better organize your data.
CHMOD
After uploading, CHMOD block.catmod.html to 777 or 666
Notes
Depending on which theme you use you will need to add this block to your site. Typically this block will be added to footer.html. Open footer.html in your admin panel and add <%block_catmod%> where you would like the block to appear.
License/Cost
Provided free of charge within the limits of the included license file
Troubleshooting/Problems
Please leave me a message at the Nicecoder forum. Note that I will not respond to private messages unless there is a security issue with the provided script.
Credits
IndexU Category Specific Block Mod written by Bruce Peresky (http://www.avtronics.net)
|
|
 |
|
|
|