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
Auto-Resize Images & More Tags
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-12-23 09:38:42
I have ajax shoutbox , maybe this is a problem ??
Unknown User
2012-12-23 15:54:54
The videos are not supported very well by shoutbox, I think that the autorefresh immediately acts and  they are stopped.

Youtube/google video code was not designed to be used there, it was designed to be used in the torrents description.
Unknown User
2012-12-23 18:36:30
ajax shoutbox might be causing it, it might be refreshing.. Dont know!!! I just know they kind of work in the stock shoutbox and the shoutbox with multi rooms in it, witch my dev site has.
Unknown User
2012-12-26 09:09:30
Running v2.08   till 3.0 is here LOL

Righto... I attached a screenshot, what I am asking is.... WHY does this not work for the "image1" and "image2" that we can put via the torrents-upload page:



I don't really want the members inserting linked pics into the descriptions, I would much prefer to use the "image" 1 and 2 fields for this, however it doesnt resize them ? How can I do that?
Unknown User
2012-12-27 19:12:42
It is curious what you say, at my tracker it works very well...
Unknown User
2012-12-27 19:52:10
its because image1 and image2 dont use the function to display the image..

in torrents-details

changing


if ($row["image1"] != "" OR $row["image2"] != "") {
if ($row["image1"] != "")
$img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' width='150' border='0' alt='' />";
if ($row["image2"] != "")
$img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' width='150' border='0' alt='' />";
print("<center>". $img1 . "  " . $img2."</center><br />");
}


to


if ($row["image1"] != "" OR $row["image2"] != "") {
if ($row["image1"] != "")
   $img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' border='0' alt="" onload="NcodeImageResizer.createOn(this);"/>";
if ($row["image2"] != "")
   $img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' border='0' alt="" onload="NcodeImageResizer.createOn(this);"/>";
   print("<center>". $img1 . "  " . $img2."</center><br />");
}

should fix it, i am not 100% sure lol i use the lightbox mod myself.

Edit: Seems to work atleast for me LOL!!!

Unknown User
2012-12-28 05:57:34
Quote:
BIGMAX SAID:
It is curious what you say, at my tracker it works very well...

ermmm...   for image1 and image2???????? or only if you use it in a url?????

Anyway....

OK... This is what I did? However, this gives me a full-size image only... no resize option.... if I add the code "width='150' " in, it only displays a thumbnail, still no msg for resize option?

Quote:
//end download box
echo "<fieldset class='download'><legend><b>Details</b></legend>";

echo "<table cellpadding='3' border='0' width='100%'>";

print("<tr><td align='left'><b>".T_("NAME").":</b></td><td>" . $shortname . "</td></tr>n");

// inserted image here :: CODE HAS BEEN ALTERED :

echo "<br />";

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

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

//    $img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' width='150' border='0' alt='' />";

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

//    $img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' width='150' border='0' alt='' />";

//  print("<center>". $img1 . "&amp;nbsp;&amp;nbsp;" . $img2."</center><br />");

//}

// Replace with this to enable picture resize MOD :

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

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

$img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' border='0' alt="" &#111;nload="NcodeImageResizer.createOn(this);"/>";

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

$img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' width='150' border='0' alt="" &#111;nload="NcodeImageResizer.createOn(this);"/>";

print("<center>". $img1 . "&amp;nbsp;&amp;nbsp;" . $img2."</center><br />");

}

// end pic resize MOD code

if ($row["external"]=='yes'){

print ("<br /><b>Tracker:</b><br /> ".htmlspecialchars($row['announce'])."<br />");

}

// end image insert




Edit:   As an alternative, Arcticwolf, instead of putting huge effort into this, you mentioned using the lightbox mod yourself.... do you perhaps have the code or a post with the code then I rather try that  ??? Or even another way to achieve this?

:D
Unknown User
2012-12-28 06:32:11
biggest thing i noticed if the ncode_imageresizer.js thing from the 1st post is not loading in your theme then does nothing!!! I thought I was using an lightbox addon or something but it was for something else.. come to find out it was just this.. I know the code works fine.... Maybe your image is too small to be resized. The default code in the 1st post is like 640 or something.. An bit to big if you ask me LOL... 400 might be better option, look at the 1st post of this topic to see what I mean.. And also you have to have the css in every theme too.. I know it works I made an test image1 it was something like 1200x800 or something LOL and it resized fine.

I like said in another post you might have to move the js from scripts to js or something and then call from there.. Some servers/os or what ever blocked scripts dir from being able to be used

this in header.php of your themes works fine.


<script type="text/javascript" src='<?php echo $site_config["SITEURL"];?>/js/ncode_imageresizer.js'></script>
<script type="text/javascript">
<!--

NcodeImageResizer.MODE = 'newwindow';
NcodeImageResizer.MAXWIDTH =320;
NcodeImageResizer.MAXHEIGHT = 200;
NcodeImageResizer.Msg1 = 'Click this bar to view the full image.';
NcodeImageResizer.Msg2 = 'This image has been resized. Click this bar to view the full image.';
NcodeImageResizer.Msg3 = 'This image has been resized. Click this bar to view the full image.';
NcodeImageResizer.Msg4 = 'Click this bar to view the small image.';
//-->
</script>
again copy the ncode_imageresizer.js from scripts/ to js/

that is if its right before </head>

On my dev site it was not working cause the js was not loaded.. Might just be your issue.. You could also attach or image link your image and I could test that LOL!!!

Once you get it working you could mess around with the resize numbers in the header.php until you like it LOL!!

For an testing reason I would only modify 1 theme that you currently using right now.. Then once works, copy the modications into your other themes if you have them..
Unknown User
2012-12-28 07:24:44
ALLRIGHT !!!!!!! Arctic --- it was the size of the image in the header.php, it was too large.......

LOL.... Ur a STAR..... I changed the size to 320 and 200 as per your code instead of the original 640, and VOILA !!!!

Thanks very very much, lol now to play with this for the forums and so on lol and see if it actually works THERE....
Unknown User
2013-03-07 11:20:25
Hello

does not work with the NB H20 themes you have an idea why (2.08vn)
Unknown User
2013-03-07 21:04:14
it might be an .js loading issue or conflict with another, 1st off I would check to make sure the .js is even loaded in the header in that theme. 1 draw back with having multi themes and custom java scripts is they have to be loaded in each 1 of the themes in the header.php.. some work if you have an site like mine and have like 20+ themes all active..
2014-12-22 14:13:41
thanks working
Unknown User
2014-12-27 14:53:54
Working for me .. this is very nice... thanks.
2025-11-28 12:13:48
work  TT 3.0 php7.4
Last edited by leech24 on 2025-12-15 07:06:11
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728