Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Image resize problem (http://www.bvlist.com/showthread.php?t=4670)

lovebeer 14th March 2010 13:15

Image resize problem
 
Hi, I can't make the Resize Large Images mod to work.
The mod is from tbdev.net, from here:
http://www.tbdev.net/index.php?showt...&hl=image&st=0

I can't get it to work,

I added this to style.css:

Code:

table.ncode_imageresizer_warning {
    background: #FFFFE1;
    color: #000000;
    border: 1px solid #CCC;
    cursor: pointer;
}

table.ncode_imageresizer_warning td {
    font-size: 12px;
    color: red;
    vertical-align: middle;
    text-decoration: bold;
}

table.ncode_imageresizer_warning td.td1 {
    padding: 5px;
}

table.ncode_imageresizer_warning td.td1 {
    padding: 2px;
}

in global.php I changed this:
Code:

// http://www/image.gif
    $s = preg_replace("/\[img\](http:\/\/[^\s'\"<>]+(\.(jpg|gif|png)))\[\/img\]/i", "", $s);

tho this:
Code:

$s = preg_replace("/\[img\](http:\/\/[^\s'\"<>]+(\.(jpg|gif|png)))\[\/img\]/i", "\"\"", $s);
Changed this:
Code:

    // [img=http://www/image.gif]
    $s = preg_replace("/\[img=(http:\/\/[^\s'\"<>]+(\.(gif|jpg|png)))\]/i", "", $s);

to this:

Code:

$s = preg_replace("/\[img=(http:\/\/[^\s'\"<>]+(\.(gif|jpg|png)))\]/i", "\"\" ", $s);
And added this to my stdhead.php
Code:



There says to add this to bittorrent.php after tag but I don't know where to add it.

The images don't resize, where I'm wrong?

Timisoreanul 14th March 2010 20:20

1 Attachment(s)
Hi, try this:
in your css
Code:

table.ncode_imageresizer_warning {
        background: #FFFFE1;
        color: #000000;
        border: 1px solid #CCC;
        cursor: pointer;
}

table.ncode_imageresizer_warning td {
        font-size: 12px;
        color: red;
        vertical-align: middle;
        text-decoration: bold;
}

table.ncode_imageresizer_warning td.td1 {
        padding: 5px;
}

table.ncode_imageresizer_warning td.td1 {
        padding: 2px;
}

in global
Code:

        // [img=http://www/image.gif]
        $s = preg_replace("/\[img=(http:\/\/[^\s'\"<>]+(\.(gif|jpg|png)))\]/i", "\"\"", $s);

Now make a folder in your root tracker with name scripts download the attach file
end unzip the file end put it in the folder scripts.

Ups :edit remember to add :
Code:



before

lovebeer 14th March 2010 20:35

Don't works, nothing happens, if the image is big don't become smaller :(

Sorry for my english.

Timisoreanul 14th March 2010 20:48

Tell my more detalis. what version of tbdev are you using , where you try to see the img , forum? torrents detalis:
Tips:
try add the ncode_imageresizer.js in to folder js , javascripts or even in to your root folder.
try a diffrent browser ..aka firefox , opera, chrome,
try to see the img, resize in to forums.php.

to bittorrent:
Code:


<?= $title ?>






lovebeer 14th March 2010 21:08

I have TBDEV.NET-12-09-05, I've putted the ncode_imageresizer.js in js, scripts and in htdocs.
I'm using firefox, but tried with internet explorer, the same.
I tried to put a image to forums but don't get smaller.

Timisoreanul 14th March 2010 21:21

Code for stdhead
Code:

\n";?>
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">






lovebeer 16th March 2010 20:41

Thanks, now works!

Birkoff 20th November 2012 13:35

Don't works
 
For me don't working :(
I have this tbdev version:
define ('TBVERSION','TBDEV.NET-NE-1.6');
Url site:
http://scenetraffic.org

Please help me guys!


All times are GMT +2. The time now is 09:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.