XFileMirror - Display host "image" instead of "domain"

Message
Author
kjbweb
Posts: 10
Joined: Sep 06, 2011 4:24 pm

Display host "image" instead of "domain"

#1 Postby kjbweb » Sep 09, 2011 4:10 pm

Within "cgi-bin/Plugins/uploaded.pm" I've modified what was this:

Code: Select all

plugin_id => 1007,
plugin_prefix=>'ul',
domain=>'uploaded.to',
name=>'uploaded',
can_login => 1,
upload=>1,
download=>1,
To this:

Code: Select all

plugin_id => 1007,
plugin_prefix=>'ul',
domain=>'uploaded.to',
image=>'uploaded.jpg',
name=>'uploaded',
can_login => 1,
upload=>1,
download=>1,
Note the addition of "image" and a filename.

I'd like for each checkbox to display that image instead of the domain text, it does not however appear to return "uploaded.jpg" when I call the following in the template file however:

Code: Select all

<TMPL_VAR image>
Though it does return the domain text when "domain" is called however.

Excuse my Perl noobishness, I'm guessing I need to have the script pre-load the values before trying to call them in the template; my only question is, how?!

nik0la
Posts: 102
Joined: Dec 30, 2009 1:50 pm

#2 Postby nik0la » Sep 11, 2011 7:28 pm

you can do that in css, with label

example:

#services label[for="rapidshare.com"] { background:url(images/rapidshare.jpg) no-repeat scroll 0 0 #e4e4e4; }


I dont know how to split the file hostings in 3 rows, currently they are listed in 2 rows and when you add images its not look so good :)