Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Category by pictures

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Category by pictures

More
11 years 8 months ago #10056 by tillhunter
Category by pictures was created by tillhunter
Hello.
I want set every category by picture. I have 3 category and now i can choose from list. But i wnat set it like in picture
prntscr.com/6dqxq4

3 pictures for every category and under picture name of category. And dont need drop list. How can i do it ?
More
11 years 8 months ago #10087 by tompap
Replied by tompap on topic Category by pictures
Hello,

You need to overrive the views/edit/tmpl/default.php

and replace the code part "categories" and do a loop of categories and display images.
More
11 years 8 months ago #10199 by tillhunter
Replied by tillhunter on topic Category by pictures
Try to understand how to do that but cant. Pleasy help in this way.
More
11 years 8 months ago #10231 by tompap
Replied by tompap on topic Category by pictures
Ok, this is normally a custom work, but we will send you some guide and code for that , but only next week.

Regards,
More
11 years 7 months ago #10233 by tillhunter
Replied by tillhunter on topic Category by pictures
Thank you.
Waiting
Best regards
More
11 years 7 months ago #10241 by loic
Replied by loic on topic Category by pictures
Hello,

Here is the code you need to put in the override, in the edit view, replace this code from line 102 to 115:
<?php
                    switch($this->conf->single_category_selection_type) {
                        default:
                        case 'normal':
                                JHTMLAdsmanagerCategory::displayNormalCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                        case 'color':
                                JHTMLAdsmanagerCategory::displayColorCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                        case 'combobox':
                                JHTMLAdsmanagerCategory::displayComboboxCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                            break;
                        case 'cascade':
                                JHTMLAdsmanagerCategory::displaySplitCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break;
                    }
                ?>

By this:
<?php
					foreach($this->cats as $cat) {
						$imgsrc = TTools::getCatImageUrl($cat->id);
						echo '<input type="radio" name="category" class="'.$selectid.'" />&nbsp;<img src="'.$imgsrc.'" />&nbsp;'.$cat->name;
					}
                ?>

And replace the line 123 to 147:
jQ(document).ready(function() {
			<?php if ($without_page_reload == 1) {?>
			jQ('#category').change(function() {
				updateFields();
                <?php foreach($this->fields as $field) { 
                    if (@$field->options->is_conditional_field == 1) { ?>
                dependency('<?php echo $field->name?>',
                           '<?php echo $field->options->conditional_parent_name?>',
                           '<?php echo $field->options->conditional_parent_value?>');
                    <?php } 
                }?>
			});
			<?php } else { ?>
			jQ('#categoryselect').change(function() {
				if (jQ(this).val() != "") {
					url = "<?php echo $write_url?>";
					if (url.indexOf("?") != -1) {
						location.href = "<?php echo $write_url?>&catid="+jQ(this).val();
					} else {
						location.href = "<?php echo $write_url?>?catid="+jQ(this).val();
					}
				}
			});
			<?php } ?>
		});

By this:
jQ(document).ready(function() {
			<?php if ($without_page_reload == 1) {?>
			jQ('input.category').click(function() {
				updateFields();
                <?php foreach($this->fields as $field) { 
                    if (@$field->options->is_conditional_field == 1) { ?>
                dependency('<?php echo $field->name?>',
                           '<?php echo $field->options->conditional_parent_name?>',
                           '<?php echo $field->options->conditional_parent_value?>');
                    <?php } 
                }?>
			});
			<?php } else { ?>
			jQ('input.categoryselect').click(function() {
				if (jQ(this).val() != "") {
					url = "<?php echo $write_url?>";
					if (url.indexOf("?") != -1) {
						location.href = "<?php echo $write_url?>&catid="+jQ(this).val();
					} else {
						location.href = "<?php echo $write_url?>?catid="+jQ(this).val();
					}
				}
			});
			<?php } ?>
		});

Best regards.
Time to create page: 0.093 seconds
Powered by Kunena Forum