by admin on Mon Jan 22, 2007 5:07 am
Please feel free to comment on this MOD in this forum.
- Code: Select all
##############################################################
## MOD Title: Category Displayed as Link
## MOD Author: BetterWindowsSoftware http://betterwindowssoftware.com
## MOD Description: This is a simple MOD that will change each listing's category value to a link that will display items in that category.
## MOD Version: 1.0.0
## PADKit version: PADKit 2.09.
##
## Installation Level: Very Easy
## Installation Time: <5 Minutes
## Files To Edit: (1)
## showpads.php
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
## Before applying this MOD to your site, you should back up all files related to this MOD as well as your database if applicable.
#
#-----[ OPEN ]------------------------------------------
#
showpads.php
#
#-----[ FIND ]------------------------------------------
#
$category = $query["category"];
#
#-----[ AFTER, INSERT ]------------------------------------------
#
// Category as Link MOD begin
$catlinktext = "<a href='showpads.php?cat=".urlencode($category)."'>$category</a>";
// end of Category as Link MOD
#
#-----[ FIND ]------------------------------------------
#
<b>Category:</b> $category
#
#-----[ REPLACE WITH ]------------------------------------------
#
<b>Category:</b> $catlinktext "; /* for Category as Link MOD - changed "$category" to "$catlinktext: */ echo "
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
- Attachments
-
CategoryLinkMOD.zip
- (759 Bytes) Downloaded 132 times