Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Poster with glossy style
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-05-15 10:22:55
In header.php find

</head>

above add

<script type="text/javascript" src="js/glossy.js"></script>

save and close

This modification can be use everywhere you want (in last torrents with poster, recommended torrents etc)

example in torrents-details.php find

if ($row["image1"] != "" OR $row["image2"] != "") {

if ($row["image1"] != "")

$img1 = "<a href=".$site_config["SITEURL"]."/uploads/images/$row[image1] rel=gb_imageset[nice_pics] title=" . $shortname . "><IMG  src=".$site_config["SITEURL"]."/uploads/images/$row[image1] width=300 height=400 border=0></a>";

if ($row["image2"] != "")

$img2 = "<a href=".$site_config["SITEURL"]."/uploads/images/$row[image2] rel=gb_imageset[nice_pics] title=" . $shortname . "><IMG  src=".$site_config["SITEURL"]."/uploads/images/$row[image2] width=300 height=400 border=0></a>";

print("<CENTER>". $img1 . "&nbsp&nbsp" . $img2."</CENTER><BR>");

}

replace whit

if ($row["image1"] != "" OR $row["image2"] != "") {

if ($row["image1"] != "")

$img1 = "<a href=".$site_config["SITEURL"]."/uploads/images/$row[image1] rel=gb_imageset[nice_pics] title=" . $shortname . "><IMG class=glossy src=".$site_config["SITEURL"]."/uploads/images/$row[image1] width=300 height=400 border=0></a>";

if ($row["image2"] != "")

$img2 = "<a href=".$site_config["SITEURL"]."/uploads/images/$row[image2] rel=gb_imageset[nice_pics] title=" . $shortname . "><IMG class=glossy src=".$site_config["SITEURL"]."/uploads/images/$row[image2] width=300 height=400 border=0></a>";

print("<CENTER>". $img1 . "&nbsp&nbsp" . $img2."</CENTER><BR>");

}

so this part  code you can add where ever you want

class=glossy




<IMG   HERE COME THE CODE  src=".$site_config["SITEURL"]


DONE!

example:





Download attach file and put in js folder in your root directoryDownload attach file and fut in js folder in your root directory :blink:

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4083"]glossy.rar[/url]
glossy.rar
Download
Unknown User
2010-05-16 04:34:45
thanks for this mod , but i have tested and , maybe you miss somethig beacause , i have no chage , i apply for my lates images and torrent details and no chage !

andi dont have this part:

rel=gb_imageset[nice_pics]
Unknown User
2010-05-16 05:42:11
"XxBeliaLxX, post: 63442":
thanks for this mod , but i have tested and , maybe you miss somethig beacause , i have no chage , i apply for my lates images and torrent details and no chage !andi dont have this part:

rel=gb_imageset[nice_pics]

you need just in torrent-details.php where are the code for image 1 and 2  to add after  <IMG  this part  class=glossy or post you torrent-details.php and i will do that for you m8
Unknown User
2010-05-16 06:21:12
hi blastro , i put it in this query :

in lates image block :

$img1 = "<a href='$site_config[sITEURL]/torrents-details.php?id=$row[id]'><img class=glossy border='0' src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=105></a>";


and in torrent-details:

$img1 = "<a href='/uploads/images/$row[image1]' rel='lightbox'><IMG class=glossy src=".$site_config["SITEURL"]."/uploads/images/$row[image1] width=225 border=0></a>";
Unknown User
2010-05-16 06:23:16
"XxBeliaLxX, post: 63444":
hi blastro , i put it in this query :


$img1 = "<a href='$site_config[sITEURL]/torrents-details.php?id=$row[id]'><img class=glossy border='0' src='uploads/images/$row[image1]' alt=\"$altname / $cat\" width=105></a>";

and do you see any changes now?
Unknown User
2010-05-16 06:24:10
nop its the fisrt place i place it, and i dont see any change mista !! ^^
Unknown User
2010-05-16 06:43:27
hm strane normaly must work i have testen on 5 other themes and works fine

example one mine header.php looks here now

</style>
<script type="text/javascript" src="js/glossy.js"></script>

</head>

<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

and glossy.js in js folder right?

se now on other 2 theme i have



Unknown User
2010-05-16 19:46:12
well i dont know why , but   itry another time , and nothing change...

But question , this effect is apply automatiquely to all images , or is apply when new torrent is posted ?
Unknown User
2010-05-16 21:13:42
"XxBeliaLxX, post: 63453":
well i dont know why , but   itry another time , and nothing change...
But question , this effect is apply automatiquely to all images , or is apply when new torrent is posted ?
try in you latestimage-block.php and see if work. after you add glossy automaticly wil take efect  :blink:
Unknown User
2010-05-16 22:05:13
maybe i have another javascript and is block this effect , im gonna recheck the code of my header and  im gonna  try another time !
Unknown User
2010-05-16 23:01:00
"XxBeliaLxX, post: 63456":
maybe i have another javascript and is block this effect , im gonna recheck the code of my header and  im gonna  try another time !
yeah that can be to so i have some other javascript added for mine site i check all before i finish whit some mods or addons that can be problem to if you have some javascript in you header and is note done to take efect or you dont have javascript that maybe is needed for some addon you have done before or you have just left like this,example if i cant figure out and want work i remove all again so i am sure is clean.
Unknown User
2010-05-17 00:12:09
i would love this also , but same for me , it don't work  :blink:

it may need js before another or something silly like that , will play with it and post results
Unknown User
2010-05-17 12:40:41
"SJC2TK, post: 63460":
i would love this also , but same for me , it don't work  :blink:
it may need js before another or something silly like that , will play with it and post results

It is actually working just some codes breaking it in index file so the solution...

open up functions.php and search..

function stdfoot() {

global $site_config, $CURUSER, $THEME, $LANGUAGE;
add after...




echo '<script type="text/javascript" src="'.$site_config["SITEURL"].'/backend/glossy.js"></script>';



and change backend to your glossy path ;)
Unknown User
2010-05-17 13:29:35
thanks cooly mate .......will try soon as my site back up :blink:
Unknown User
2010-06-14 15:58:56
Worked for me with cooly's suggestion  :blink:  awesome
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728