Quote:
Originally Posted by obmob
Well... went online with 2.3.0, everything was fine till i bumped into extra attributes added to certain entries.
I used it to add extra wallpaper size for some i had done. So, the attribute "widescreen" was used and it used to appear as a link, and hits to it were also added to the total count.
I had edited links_viewone_entity for that to happen.
Well, i tried the same this time, but no success, now, even if the attribute is a text i see the whole image in the attribute field.
Also a download link and a magnifier lenz.
If i change the attribute to be an image instead of a URL, te result is a thumbnail, but with no download link, just the magnifier.
In the end if i use this method, the hits are not counted.
Question:
Is there a way to show the thumbnail, but also be able to count hits... or, to hide the big image from my linkbit while the attribute is just a URL, would prefer to show the thumb and click on it to download.
Hope I was clear 
|
*Edited*
I think I understand. I've removed the possibility to download images for extra attributes. The fix is straightforward. (Line numbers assume that you have installed version 2.3.0-RC5 - they might be slightly different with earlier versions.)
Edit includes/local_links_entities.php, around line 1159 find:
PHP Code:
case ENTITY_TYPE_IMAGE :
case ENTITY_TYPE_IMAGEUPLOAD :
if ($links_defaults['link_imagesize']) {
$entityimgurl = $RESIZE_SCRIPT.'.php?'.$vbulletin->session->vars['sessionurl'].'linkid='.$linkid.'&entityid='.$entityid;
and add line after:
PHP Code:
$entitysave = ldm_seo_url("jump", $linkcatid, $linkid, $entityid, $pagenumber);
Edit includes/local_links_main_fetch.php, around line 547 fine:
PHP Code:
entity.entityvalue AS linkurl, entity.entityvalue AS linkfile,
and change to:
PHP Code:
entity.entityvalue AS linkurl, '' AS linkfile,
(that is two single quotes, not one double quote)