![]() |
![]() |
![]() |
|
|||||||
| Existing Templates Want to adjust logo or center some piece of text in your directory? Get advice on how to do it in this forum dedicated to pre-installed templates. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Jul 2006
Posts: 18
![]() |
Looking for help on customizing the greenleaf template to dispaly an image and a discription for each category on the front page like this site: http://www.amishhome.net/ or this site: http://www.raz-sports.com/sports-web-directories.html
|
|
|
|
|
|
#2 |
|
eSyndiCat Support Team
Join Date: Sep 2005
Posts: 1,421
![]() |
Right now the script allows you to display Alexa thumbs in listsings. Go to Admin Panel >> Configuration >> Link Details page >> enable Alexa thumbnails.
If you want to display some custom images this will require script/template modification. |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Feb 2006
Location: UK
Posts: 579
![]() |
The only way I can see that you could mirror the design of an image and a description for each category would be to create a new index.htm page and then create a table with an image cell and a description cell.
You would then have to manually update this page everytime you created a new category. But I think it would allow you to link to the category listing by using the URL that is automatically created by eSyn. If you look at a URL for a standard category for example "Business" it's something like: www.yourdirectory.com/directoryfolder/business - and that should work.
__________________
LIFE IS SHORT ENOUGH SO DON'T MESS WITH ME FOOL! eSyndicat "integrated" into e107 CMS Yarm-Online BikerLinx |
|
|
|
|
|
#4 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,568
![]() |
hello sam123,
For this purpose necessary to make a changes in a database and several files In the database necessary to create an additional field for storage URL of a picture. ***Open table yoursprefix_categories and execute SQL query*** Code:
ALTER TABLE `yoursprefix_categories` ADD `url_pic` TEXT NOT NULL ; For this action you can use phpMyAdmin or other methods. after that, ***open file admin\suggest-category.php and find block of code:*** PHP Code:
PHP Code:
PHP Code:
PHP Code:
***Open file Layput.php in yours temlate*** ***About 202 line find code*** PHP Code:
PHP Code:
PHP Code:
PHP Code:
in <img height=\"80\" width=\"80\" src=\"".$value['url_pic']."\"> Let me know if you have questions. |
|
|
|
|
|
#5 |
|
Join Date: Jan 2009
Posts: 14
![]() |
I am using skystarsblue template...i did not find the exact code as mentioned above for layout.php and also couldnt not find exact code as mentioned for category description in the "suggestcategory.php. Is it because of the template or [do I have to first do the phpMyadmin thing and only then it should show up?]...Kindly give some suggestion..is there some difference in template? ..what needs to be done.
|
|
|
|
|
|
#6 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,568
![]() |
The path to a picture can be relative(admin/img/logo.gif) or absolute(http://www.esyndicat.com/forum/images/misc/logo.gif)
|
|
|
|
|
|
#7 |
|
Join Date: Jul 2006
Posts: 18
![]() |
Thanks so much Dave for the excellent guide it worked. The editor_categories page also needs to be changed to give the option to modify the image, which i'm not sure myself how to do it. One final detail: how to we display the category discription on the index page?
Thanks, Sam |
|
|
|
|
|
#8 |
|
Join Date: Jul 2006
Posts: 18
![]() |
Okay, Dave I figured out the change required for the edit page. the page admin/edit-category.php needs the same changes as we did in the admin/suggest-category.php page
|
|
|
|
|
|
#9 | |
|
Super Moderator
Join Date: Oct 2005
Location: (California)
Posts: 5,299
![]() ![]() ![]() ![]() |
Quote:
I came up with this a long time ago. I hope this is what you want. Please backup file before editing. ![]() Open layout.php Find: (It appears twice) PHP Code:
PHP Code:
If you would rather use the meta-category description Use this code instead: PHP Code:
![]()
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks! |
|
|
|
|
|
|
#10 |
|
Join Date: Jul 2006
Posts: 18
![]() |
Thanks Greg that's exactly what I was looking for, it worked great. Currently I'm faced with a small problem here.
When I set the categories in admin config to display only 1 column the width of the column will stay the same size not streching out till the end of the div. I tried editing the css to 100% but it didn't help, here: div.categories div.col { float: left; height: 100%; text-align: left; width: 100%; padding-top: 15px; position: relative; } Thanks again |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|