Search in support tickets

#339 – Bad Links / Missing Info. in Documentation

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 06 August 2018 22:10 CEST
cledsom
Joomla! version : 3.8.11
PHP version : 7.0.31
AdsManager version :3.1.11

I've been trying to find information on the adsmanager "home" layout. IN your documentation, there are broken links and missing information. This is the page:

https://www.joomprod.com/support/doc/adsmanager.html?page=/getting_started_with_adsmanager/displaying_ads


Custom templates



See "Template override" in Configuration .



You need to modify views/detail/tmpl/default.php See here for a list of overridable views in AdsManager. !


Please supply information on changing the layout and styling for "home" view.

Thanks in advance.
Custom Fields
Joomla Version
Joomla! 3.8.11
PHP Version
7.0.31
Product
AdsManager
Product Version
3.1.11
Attachment
Monday, 06 August 2018 22:45 CEST
cledsom
Hello again. I've found another bad link in documentation. From this page:

https://www.joomprod.com/support/doc/adsmanager.html?page=/functionnality_of_adsmanager/configuration

Clicking any of the links under Configuration takes users to:

https://www.joomprod.com/

I'd like to know how to make the thumbnail display in multiple columns. I've found com_adsmanager/views/details/tmpl/default.php and have been working with it. I'm not skilled enough in PHP though to be able to change the columns. I tried CSS by expanding the available space hoping the thumbnails would tile - but no luck.

Also, I simply duplicated default.php so I had a back up. What is the correct procedure for modifying tmpl files for your software? Should I be creating duplicates in my template?

This is the block I've been messing with for multiple columns of thumbnails:

<div class="span4 adsmanager-images text-center">
<?php
$this->loadScriptImage($this->conf->image_display);
if (count($this->content->images) == 0)
$image_found = 0;
else
$image_found = 1;
?>
<div class="adsmanager_ads_image">
<?php
foreach($this->content->images as $img)
{
$thumbnail = JURI_IMAGES_FOLDER."/".$img->thumbnail;
$image = JURI_IMAGES_FOLDER."/".$img->image;
switch($this->conf->image_display)
{
case 'popup':
echo "<a href=\"javascript:popup('$image');\"><img src='".$thumbnail."' alt=\"".htmlspecialchars($this->content->ad_headline)."\" /></a>";
break;
case 'lightbox':
case 'lytebox':
echo "<a href='".$image."' rel='lytebox[roadtrip".$this-&gt;content-&gt;id."]'><img src='".$thumbnail."' alt=\"".htmlspecialchars($this->content->ad_headline)."\" /></a>";
break;
case 'highslide':
echo "<a id='thumb".$this->content->id."' class='highslide' onclick='return hs.expand (this)' href='".$image."'><img src='".$thumbnail."' alt=\"".htmlspecialchars($this->content->ad_headline)."\" /></a>";
break;
case 'default':
default:
echo "<a href='".$image."' target='_blank'><img src='".$thumbnail."' alt=\"".htmlspecialchars($this->content->ad_headline)."\" /></a>";
break;
}
}
if (($image_found == 0)&&($conf->nb_images > 0))
{
echo '<img src="'.ADSMANAGER_NOPIC_IMG.'" alt="nopic" />';
}?>
</div>

Attachment
Tuesday, 07 August 2018 13:27 CEST
loic
Hello,

The article explaining the template override is here -> https://www.joomprod.com/support/doc/customization/40-documentation/222-doc-view-override.html

For the list view, It is not possible to duplicate the image display without customizing the code.

Also, we don't provide support for custom modification.

Best regards.
 
Tuesday, 07 August 2018 15:40 CEST
cledsom
Ok,

Do you have links for the several other articles that are missing from documentation?

I'm not sure what you mean by duplicate the image display - I'm looking for a way to display two columns of thumbnails instead of one. I understand you don't supply code customization, but is there documentation somewhere that will help make this happen?

Regards
Thursday, 09 August 2018 16:24 CEST
loic
Hello,

We cannot provide a documentation for custom code because we cannot know in advance what will be needed by an user.

For the link, they are not missing, it seems that the anchors doesn't redirect to the correct paragraph anymore.
Juste scroll down the page to find the correct part of the code.

I can answer your questions regarding the component but not regarding the custom code.

Best regards.
 

Please rate this ticket

Help us improve our support services by rating this ticket from one to five stars, according to how much you are satisfied from the handling of this ticket, one being not satisfied and five being very satisfied.