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
bar complete account
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Requests

2022-09-18 17:25:30
Hi !  😊

I searched the forum for the mode for the progress bar for "Profile bar complete"
here is a snippet of the line of code in the account.php file:
//Profile bar complete
   #if ($site_config['BARREPROFIL']){
$var = explode( ' ', 'avatar-20 gender-20 clients-20 signature-20 title-20' );

       $data = array();
       foreach ( $var as $k => $v )
       {
               $var = explode( '-', $v );
               $data[$var[ 0 ]] = ( int ) $var[ 1 ];
       }        
       $percentage = $text = null;
       foreach ( $data as $k => $v )
       {
               if ( ! empty( $CURUSER[ $k ] ) )
               {
                        $percentage += $v;
               }
               else
               {
                        $text .= '<b>' . ucwords( $k ) . '</b> (+' . $v . '%) ';
               }
       }
       ////
       begin_frame(T_('PRO_COMPLETE'));      
       if ( $text != null )
       {
           echo sprintf(T_('PRO_COMPLETE_INFO'), $text);
           }
       #}
       ?>
       <?php echo sprintf(T_('PRO_PERCENT'), ( int ) $percentage ); ?>
       <div class="profile_bar"><span style="width: <?php echo (int) $percentage; ?>%; "></span></div>
&nbsp;
       <?php
       end_frame();

//Profile bar complete


Thank you for your help
2022-09-18 17:37:12
You have a big hug from me mate,
Thanks for this


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-18 20:15:01
mine is similar with a style added, but its basically the same as spirit
	   $var = explode( ' ', 'avatar-20 gender-20 client-20 signature-20 title-20' );
 
       $data = array();
       foreach ( $var as $k => $v )
       {
               $var = explode( '-', $v );
               $data[$var[ 0 ]] = ( int ) $var[ 1 ];
       }
       
       $percentage = $text = null;
       
       foreach ( $data as $k => $v )
       {
               if ( ! empty( $CURUSER[ $k ] ) )
               {
                        $percentage += $v;
               }
               else
               {
                        $text .= '<b>' . ucwords( $k ) . '</b> (+' . $v . '%) ';
               }
       }
       
       begin_frame( T_('PRO_COMPLETE') );
       
       if ( $text != null )
       {
                echo sprintf( T_('PRO_COMPLETE_INFO'), $text );
       }
       
       ?>
       
       <style type="text/css">
       .profile_bar { background:red; height:16px; font-size:1px; }
       .profile_bar span { background: green; height: 16px; display: block; }
       </style>
       
       <?php echo sprintf( T_('PRO_PERCENT'), ( int ) $percentage ); ?>
       <div class="profile_bar"><span style="width: <?php echo ( int ) $percentage; ?>%; "></span> </div>

       <?php
       end_frame();

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2022-09-18 20:18:30
Botanicar, lol
2022-09-18 20:19:35
thank you for answering Micro Monkey but what is it missing? images, js?

2022-09-18 20:20:55
it just makes it look like this
Screenshot 2022-09-18 161806.jpg
File missing

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2022-09-18 22:30:56
ok, but on my side I just have that!

2022-09-18 22:32:37

2022-09-19 10:55:54
language
//profile complete mod
$LANG['PRO_COMPLETE_INFO'] = 'Completing the following fields in your account will result in the progress bar increasing: <br />%s<br /><br />';  
$LANG['PRO_COMPLETE'] = 'Profile Completion';
$LANG['PRO_PERCENT']  = 'Your Profile is %d &#37; Complete.';

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2022-09-25 18:30:41
Thank you MicroMonkey it helps but I still don't have the bar in gradient color image
2022-09-25 19:19:37
@spiritblue
do you have that in css part of theme:


.profile_bar {
 height: 16px;
 border-radius: 4px;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
 background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
 background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
 background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
 -webkit-transition: 0.4s linear;
 -moz-transition: 0.4s linear;
 -o-transition: 0.4s linear;
 transition: 0.4s linear;
 -webkit-transition-property: width, background-color;
 -moz-transition-property: width, background-color;
 -o-transition-property: width, background-color;
 transition-property: width, background-color;
 -webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
 box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-25 19:51:57
haaaaaa!
voilà / ago, here is the missing element

/* Barre Profil user */
.profile_bar {
  background:red;
  height:16px;
  font-size:1px;
}
.profile_bar span {
  background: green;
  height: 16px;
  display: block;
}
.profile_bar {
height: 16px;
border-radius: 4px;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
-webkit-transition: 0.4s linear;
-moz-transition: 0.4s linear;
-o-transition: 0.4s linear;
transition: 0.4s linear;
-webkit-transition-property: width, background-color;
-moz-transition-property: width, background-color;
-o-transition-property: width, background-color;
transition-property: width, background-color;
-webkit-box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}


big thanks Botanicar 👍
Last edited by spiritblue on 2022-09-25 20:02:40
2022-09-25 21:49:38
NP @spiritblue you'r welcome

would be cool to have one instead



attach my idea
progres bar one.zip
File missing



www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2022-09-25 21:51:13
2022-09-26 01:15:17
cool Botanica, let me watch and get back to you with that  😉
2022-10-12 11:22:58
Something for you @spiritblue and of course to others too

in css:


/******  ProgresBar  *******/

progress:not(value) {
   
}

progress[value] {
   
   appearance: none;
   border: none;
   width: 100%; height: 20px;
   background-color: whiteSmoke;
   border-radius: 3px;
   box-shadow: 0 2px 3px rgba(0,0,0,.5) inset;
   color: royalblue;
   position: relative;
   margin: 0 0 1.5em;
}

progress[value]::-webkit-progress-bar {
   background-color: whiteSmoke;
   border-radius: 3px;
   box-shadow: 0 2px 3px rgba(0,0,0,.5) inset;
}

progress[value]::-webkit-progress-value {
   position: relative;
   
   background-size: 35px 20px, 100% 100%, 100% 100%;
   border-radius:3px;
   
   /* Let's animate this */
   animation: animate-stripes 5s linear infinite;
}

@keyframes animate-stripes { 100% { background-position: -100px 0; } }


progress[value]::-webkit-progress-value:after {
   /* Only webkit/blink browsers understand pseudo elements on pseudo classes. A rare phenomenon! */
   content: '';
   position: absolute;
   
   width:5px; height:5px;
   top:7px; right:7px;
   
   background-color: white;
   border-radius: 100%;
}

progress[value]::-moz-progress-bar {
   /* Gradient background with Stripes */
   background-image:
   -moz-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -moz-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -moz-linear-gradient( left, #09c, #f44);
   
   background-size: 35px 20px, 100% 100%, 100% 100%;
   border-radius:3px;
   
   
}

/* Fallback technique styles */
.progress-bar {
   background-color: whiteSmoke;
   border-radius: 3px;
   box-shadow: 0 2px 3px rgba(0,0,0,.5) inset;

   /* Dimensions should be similar to the parent progress element. */
   width: 100%; height:20px;
}

.progress-bar span {
   background-color: royalblue;
   border-radius: 3px;
   
   display: block;
   text-indent: -9999px;
}

p[data-value] {
 
 position: relative;
}

p[data-value]:after {
   content: attr(data-value) '%';
   position: absolute; right:0;
}

.html5::-webkit-progress-value,
.python::-webkit-progress-value  {
   /* Gradient background with Stripes */
   background-image:
   -webkit-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -webkit-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -webkit-linear-gradient( left, #09c, #f44);
}

.css3::-webkit-progress-value,
.php::-webkit-progress-value
{
   /* Gradient background with Stripes */
   background-image:
   -webkit-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -webkit-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -webkit-linear-gradient( left, #09c, #ff0);
}

.jquery::-webkit-progress-value,
.node-js::-webkit-progress-value
{
   /* Gradient background with Stripes */
   background-image:
   -webkit-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -webkit-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -webkit-linear-gradient( left, #09c, #690);
}

.html5::-moz-progress-bar,
.php::-moz-progress-bar {
   /* Gradient background with Stripes */
   background-image:
   -moz-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -moz-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -moz-linear-gradient( left, #09c, #f44);
}

.css3::-moz-progress-bar,
.php::-moz-progress-bar {
{
   /* Gradient background with Stripes */
   background-image:
   -moz-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -moz-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -moz-linear-gradient( left, #09c, #ff0);
}

.jquery::-moz-progress-bar,
.node-js::-moz-progress-bar {
   /* Gradient background with Stripes */
   background-image:
   -moz-linear-gradient( 135deg,
                                                    transparent,
                                                    transparent 33%,
                                                    rgba(0,0,0,.1) 33%,
                                                    rgba(0,0,0,.1) 66%,
                                                    transparent 66%),
   -moz-linear-gradient( top,
                                                       rgba(255, 255, 255, .25),
                                                       rgba(0,0,0,.2)),
    -moz-linear-gradient( left, #09c, #690);
}



in account.php


//== Progress pecents
  $var = explode( ' ', 'avatar-10 gender-10 country-10 client-10 signature-10 title-10 age-10 birthday-10 seedbox-10 level-10' );
//== Progress pecents  
       $data = array();
       foreach ( $var as $k => $v )
       {
               $var = explode( '-', $v );
               $data[$var[ 0 ]] = ( int ) $var[ 1 ];
       }
       
       $percentage = $text = null;
       
       foreach ( $data as $k => $v )
       {
               if ( ! empty( $CURUSER[ $k ] ) )
               {
                        $percentage += $v;
               }
               else
               {
                        $text .= '<font color="red">' . ucwords( $k ) . ' (+' . $v . '%) </font>';
               }
       }
       
       begin_frame( T_('PRO_COMPLETE') );

       ?>
<table class="table_table" width="90%" align="center" border="0"><tr><td width="90%"><br />
<?php

       if ( $text != null ) {
echo sprintf( T_('PRO_COMPLETE_INFO'), $text );
}

?>
       <?php

echo sprintf( T_('PRO_PERCENT'), ( int ) $percentage );

?>
<progress max="100" value="<?php echo ( int ) $percentage; ?>" class="html5">
       <div class="progress-bar"><span style="width: <?php echo ( int ) $percentage; ?>%; "></span> </div>
</div></progress></td></tr></table><br />
       <?php
       end_frame();







www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
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