Clickable Screenshot image

Bart

Active Member
Heya,

Where can i edit it so that i can make the "right screenshot" clickable on the members stats page?

And would i be correct in using the following code:

PHP:
<a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow"><IMAGECODE></a>
Thanks :)
 

Basti

Administrator
Staff member
Hey at the moment this is unfortunatly only possible by editing the plugin. That means you need to reapply the change when updating the core or skip uploading this plugin on the next update ( if there is ever a change it would be announced in the plugin thread )
We plan to have plugin child themes available in 0.9 or 1.0, then this would be no issue anymore.

plugins/screenshots/stats_compile_stats.php
Code:
      $TMPL['screenshot'] = "<div class=\"right screenshot\"><img src=\"screens/{$screenshot_url}\" alt=\"{$TMPL['title']}\"/></div>";
would become
Code:
      $TMPL['screenshot'] = "<div class=\"right screenshot\"><a href=\"{$TMPL['url']}\" onclick=\"out(this,'{$TMPL['username']}');\"><img src=\"screens/{$screenshot_url}\" alt=\"{$TMPL['title']}\"/></a></div>";
 

Mark

Administrator
Staff member
I really think this should be included in the plugin for everyone, the screenshot really should be a link out. Any objections?
 

Basti

Administrator
Staff member
This is now included in the 0.8 release and will come together with the update bundle, so make sure to replace the plugins folder as well when updating
 
Top