vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - vBStatus - Facebook Style Status Display (v4) (https://vborg.vbsupport.ru/showthread.php?t=181283)

imk 06-12-2009 09:37 PM

is it possible to have them feed onto forumhome? or index, like the facebook updates?

forexforum 06-21-2009 04:32 PM

Quote:

Originally Posted by code707 (Post 1803079)
Hi, I installed this but my problem is, it doesnt 'edit' the status. the link is there but its not doing anything

problem fixed.

https://vborg.vbsupport.ru/showpost....&postcount=391

SamirDarji 07-09-2009 04:48 PM

Anyone tried it on 3.8.3?

Oyobiia 07-12-2009 02:26 PM

I have problems with this, when users click edit the drop down menu for the username shows up :/

DonHouston 07-12-2009 02:44 PM

Quote:

Originally Posted by imk (Post 1828606)
is it possible to have them feed onto forumhome? or index, like the facebook updates?

i'd like to know this as well since i have a perfect spot where they could update it in my header which would also allow me to eliminate he "edit" int he post bit and profile :)

Majidm 07-14-2009 03:46 AM

Hi, nice mod.

Why are these functions in att_include.php?

Code:

class AttilitusImage{
   
function vbimghost_imgtype ($val){
   
    $types = array(
      1 => '.GIF',
      2 => '.JPG',
      3 => '.PNG',
      4 => '.SWF',
      5 => '.PSD',
      6 => '.BMP',
      7 => '.TIFF',
      8 => '.TIFF',
      9 => '.JPC',
      10 => '.JP2',
      11 => '.JPX',
      12 => '.JB2',
      13 => '.SWC',
      14 => '.IFF',
      15 => '.WBMP',
      16 => '.XBM'
  );
  if ($val > 16 )
          return  false;
  else
          return strtolower($types[$val]);
}

function resize($filename,$imagew,$imageh){
$filepath="$directory/$filename";
$filepath=$filename;
                if(!$dime = getimagesize($filepath)){
                    eval(standard_error("Not an Image"));
                }
                $fileext=$this->vbimghost_imgtype($dime[2]); 
           
        switch ($fileext){
            case (".gif"):
                    $srcImg = imagecreatefromgif($filepath);
                    $colortrans = imagecolortransparent($srcImg);
                    $thumbImg = imagecreate($imagew, $imageh);
                    imagepalettecopy($thumbImg,$srcImg);
                    imagefill($thumbImg,0,0,$colortrans);
                    imagecolortransparent($thumbImg,$colortrans);
                    imagecopyresized($thumbImg,$srcImg,0,0,0,0,$imagew,$imageh,$dime[0],$dime[1]);
                    imagegif($thumbImg,$filepath);
                break;
            case (".jpg"):
            case (".jpeg"):
                    $srcImg = imagecreatefromjpeg($filepath);
                    if (function_exists('imagecreatetruecolor')){
                        $thumbImg = imagecreatetruecolor($imagew,$imageh);
                        imagecopyresampled($thumbImg,$srcImg,0,0,0,0,$imagew,$imageh,$dime[0],$dime[1]);
                    }else{
                        $thumbImg = imagecreate($imagew,$imageh);
                        imagecopyresized($thumbImg,$srcImg,0,0,0,0,$imagew,$imageh,$dime[0],$dime[1]);
                    }
                    imagejpeg($thumbImg,$filepath,75);
                break;
            case (".png"):
                    $srcImg = imagecreatefrompng($filepath);
                    if (function_exists('imagecreatetruecolor')){
                        $thumbImg = imagecreatetruecolor($imagew,$imageh);
                        imagecopyresampled($thumbImg,$srcImg,0,0,0,0,$imagew,$imageh,$dime[0],$dime[1]);
                    }else{
                        $thumbImg = imagecreate($imagew,$imageh);
                        imagecopyresized($thumbImg,$srcImg,0,0,0,0,$imagew,$imageh,$dime[0],$dime[1]);
                    }
                    imagepng($thumbImg,$filepath);
                   
                break;
                default:
                    return false;
                    break;
        }
    imagedestroy($srcImg);
    imagedestroy($thumbImg);
    return true;
}

function upload($file,$filename,$directory,$maxw,$maxh){
            $AllowedExtensions=".jpg|.gif|.jpeg|.png";
            $AllowedExtensions=explode("|",strtolower($AllowedExtensions));
           
            $upfilename = str_replace("'","",$file['name']);
            $upfilesize = ($file['size']/1024);
            $upfiletype = $file['type'];
            $upfiletname = $file['tmp_name'];
            $upfileerro = $file['error'];
            $fileext =trim(strtolower(strrchr($upfilename, '.')));
            //fix for getimagesize errors
            $tmpname = "tmp_".uniqid($userid).$fileext;
            if(move_uploaded_file($upfiletname, $directory."/".$tmpname)){
                $upfiletname = $directory."/".$tmpname;
            }
           
            if ($upfilename!="")
            {
               
                if(!$dime = getimagesize($upfiletname)){
                    eval(standard_error("Not an Image"));
                }
               
                if (!$dime){
                    eval(standard_error("Error image size not defined"));   
                }
               
                $fileext = $this->vbimghost_imgtype($dime[2]);
                                $this->Uploaded_EXT=$fileext;
                if(! in_array($fileext,$AllowedExtensions)){
                    eval(standard_error("Image extension is not allowed."));   
                }
                         
                //If Width or Height are off resize.
                if($dime[0] > $maxw)
                {
                    $ResizeRatio=($maxw/$dime[0]);
                    $NewWidth=$ResizeRatio*$dime[0];
                    $NewHeight=$ResizeRatio*$dime[1];
                   
                    $this->resize($upfiletname,$NewWidth,$NewHeight);
                }else if($dime[1] > $maxh){
                    $ResizeRatio=($maxh/$dime[1]);
                    $NewWidth=$ResizeRatio*$dime[0];
                    $NewHeight=$ResizeRatio*$dime[1];
                   
                    $this->resize($upfiletname,$NewWidth,$NewHeight);   
                   
                }
           
                @copy($upfiletname, $directory."/".$filename.$fileext);
                //remove temp file
                unlink($upfiletname); 
                }
            }

}


Pcwolfx? 07-15-2009 10:39 AM

not support another charcters.

Itchy Nips 07-15-2009 07:23 PM

nice mod! voted and installed. Kudos to the coder!

just a note:
I modified it a little to fit and look a little nicer on my forum. If anyone is interested:

I commented out the:
$post[username] ... so it does not display the username before the status. I felt it was sorta redundant since it gets displayed right under the user's name anyway.

I also added:
<br><hr> ... after the EDIT link so it displays a little bar right under the status. This breaks up the status and the rest of the 'stuff' that appears on the left (ie. the avatar, post count, etc..)

Quote:

Originally Posted by SamirDarji (Post 1845879)
Anyone tried it on 3.8.3?

it worked for me on 3.8.3

SamirDarji 07-15-2009 08:06 PM

Thank you for the confirmation on 3.8.3. :)

I didn't see the little bar between the status and username when I looked at your site as a guest.

ArcadeSyndicate 07-16-2009 11:25 PM

Quote:

Originally Posted by imk (Post 1828606)
is it possible to have them feed onto forumhome? or index, like the facebook updates?

that is exactly what i am looking for too.


All times are GMT. The time now is 05:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01493 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete