The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
viPortfolio 1.2.6 Beta Release Details »» | |||||||||||||||||||||||||
======= =======
viPortfolio Version 1.2.6 ======= ======= This is our first hack. And not our last. We have spent a lot of time polishing it for stability and interface. Thanks for the patience and support so far. We have installed and tested in vBulletin 2.2.6. For those with older versions, please post your results. Credits: VisibleImpact.com Administrative Director and author: TeddyBare69 VisibleImpact.com Owner and Designer: sengerdw Courages testers at vBulletin.org hellsatan, stangpower, Christy, Sketch, NTLDR, Apok2002, Martin64 Description: For those that need a separate interface in the user control panel to upload files - download this. Features:[list=1][*]New profile navigation bar to view a portfolio/upload gallery[*]New profile navigation bar for members to change their portfolio/upload gallery[*]Admin and moderators may change descriptions and delete file configuration options maintained in admin control panel.[*]86 different file types support via either thumbnail or default icon view.[*]ImageMagick not needed![*]Display who uses their portfolio in the members list.[*]Support for vbHacker from Chen located at vbHacker 1.0.1 is included in the install.[/list=1] Demo links:[list=1][*]Members list[*]Public Profile[*]Public Portfolio[/list=1] Installation Instructions: Extract the viPortfolio-1.2.6.zip file which will create a viPortfolio subdirectory. Upload the directory to your root Web server directory where your forum code is located. From a Web browser run: http://{yourserver}/viPortfolio/install.php and follow the steps. .: Remove the viPortfolio subdirectory after installation :. We would appreciate any feedback regarding this hack. Interface, changes for future versions and so on. We will offer support for this hack - we will not be responsible for errors - as always, BACK UP YOUR data base. We have spent a lot of time on this and all we ask is that our copyright notice remain in tact at the bottom of portfolio pages. Thanks! Along with viPortfolio we are making use of a new install.php version 1.2.6. The install.php has not had the amount of testing that viPortfolio has. With that said we are looking for your assistance in notifying VisibleImpact.com of any error messages or difficulties you may have with the install. *** Updated installer **** I have totaly rewritten the installer to take out all the flash and make it a simple step by step install. Atleast I hope that is what it is It is definately worth trying. viPortfolio v1.2.6 developed by: VisibleImpact.com Show Your Support
|
Comments |
#92
|
||||
|
||||
Hello Teddy!
Me again. I need help. Please-Please-Please!!!! Can you please tell me the steps to integrate the viportfolio.php in my "Whos online" ?? Mean, User X edit his portfolio or User x watch the portfolio... This is very important for me. |
#93
|
|||
|
|||
Minifreunde,
sorry it took me so long. I am not positive of what you are asking for but I think it is this: To change the location column in the whosonline page to say if a user is editting or viewing a portfolio. If that is what you are looking for here are the directions. To add Portfolio activity to whosonline location status. 1. search for "n show" (should be line 40) insert the following code on the line directly above this line. case 'viewportfolio': $userinfo[where] = "Viewing ".$userinfo['portfolioinfo']; break; case 'editportfolio': $userinfo[where] = "Editing ".$userinfo['portfolioinfo']; break; 2. edit online.php source file. search for the word "Showthread". Don't forget the uppercase S ( should be line 354 ) on the next line you will see: switch($filename) { directly below that line insert the following code ( should be line 356 ) case 'viPortfolio.php': if(strstr($token1,'user')) { $userinfo['activity'] = 'viewportfolio'; $userinfo['portfolioinfo'] = "<a href='viPortfolio.php?action=view&".$token1."'> Portfolio</a>"; } else if ( strstr( $token1, 'edit' ) ) { $userinfo['activity'] = 'editportfolio'; $userinfo['portfolioinfo'] = "<a href='viPortfolio.php?action=view&".$token2."'> Portfolio</a>"; } else if ( strstr( $token2, 'user') ) { $blowup = explode( '=', $token2 ); $userinfo['activity'] = 'viewportfolio'; $userinfo['portfolioinfo'] = "<a href='viPortfolio.php?action=view&userid=".$blowup[1]."'> Portfolio</a>"; } break; 3. now edit viPortfolio.php search for the word "urllocation" the first occurance of this word, the line will look like below $urllocation ="viPortfolio.php?viPortfolioid=".$image[viPortfolioid]; replace that line with the following line: $urllocation ="viPortfolio.php?user=".$userid."&viPortfolioid=" .$image[viPortfolioid]; go three lines down and replace that line with: $urllocation ="viPortfolio.php?user=".$userid."&viPortfolioid=" .$image[viPortfolioid]; 4. still editting viPortfolio.php search for "View". remembering the uppercase V four lines below that insert the following $DB_site->query("UPDATE user SET lastactivity='".time()."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'"); 5. still edittnig viPortfolio.php search for "Edit". remembering the uppercase E two lines below that insert the following $DB_site->query("UPDATE user SET lastactivity='".time()."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'"); you are done. |
#94
|
|||
|
|||
If you want a paperclip in the user line for the whos online window:
To add paperclip icon to whosonline listing 1. edit template whosonlinebit . Insert the following code on the second line of the whosonline template. <td bgcolor="#F1F1F1">$userinfo[portfolio]</td> 2. still editing template whosonline . Search for "User". On the line above first occurance of "User" insert the following code. <td bgcolor="#006633"><smallfont color="#FFCC00"><b>Portfolio</b></smallfont></td> 3. edit online.php source file. search for the word: "onlinebit_ip" the second occurance of this word you will see: eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";"); } Insert the following code on the line directly below the "}" // Add a paperclip to the left of the username. global $DB_site; $count=$DB_site->query_first(" SELECT COUNT(*) AS 'count' FROM viPortfolio WHERE userid = ".$bbuserinfo['userid']." AND enddate is NULL "); if ( $count > 0 ) { if ( $count > 1 ) $alt="Member ".$userinfo['username']." has ".$count['count']." portfolio attachments."; else $alt="Member ".$userinfo['username']." has ".$count['count']." portfolio attachment."; $userinfo['portfolio'] = "<A HREF='portfolio.php?s=$session[sessionhash]&userid=".$userinfo['userid']."&action=view'>"; $userinfo['portfolio'] .= "<IMG BORDER=0 SRC='https://vborg.vbsupport.ru/greentek/paperclip.gif' ALT='".$alt."' TITLE='".$alt."'/></A>"; } else { $userinfo['portfolio'] = 'N/A'; } // Add a paperclip to the left of the username. you are done. |
#95
|
||||
|
||||
Nice install Christy
http://www.force137.com/forum/viPortfolio.php?userid=1 Minifreunde, do you have a screen shot example of your end-result of the BETA install? |
#96
|
||||
|
||||
Installed this one and it's sweet! But I must say, it wasn't easy. First, I tried the install file, but all it did was to create the tables and that was it. It gave me a ton of errors so after giving that a few tries I decided to do it manually, and that worked at once. Some clearer instructions for manual installations would help, really. But great work you guys.
One question though: Code:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Debugging Level', 'ploglevel', 1, 'Logging Level for changing the amount of debug information the portfolio displays', '', 1 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Total File Upload Limit', 'ptotalimages', 9, 'The number of files each user is allowed to upload', '', 2 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Total Files Shown per Row', 'pimagesperrow', 3, 'The amount of files horizontaly displayed', '', 3 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Maximum Image Size', 'pmaximagesize', 75, 'The maximum kilo bytes allowed for each upload', '', 4 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Allowed Image Mime Types', 'pimagetypes', 'doc txt gif jpg jpeg png bmp', 'The supported file types for this forum', '', 5 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Thumbnail Width', 'pthumbwidth', 100, 'The width of the thumbnails that are created from original images', '', 6 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Thumbnail Height', 'pthumbheight', 100, 'The height of the thumbnails that are created from original images', '', 7 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Max Length of Descriptive Text', 'ptextlength', 100, 'The maximum allowed characters for each file description', '', 8 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'The point that a long sentence gets split', 'plinewrap', 30, 'The maximum width of each line before a line is seperated and placed on the next line', '', 9 ); INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL, 65534 , 'Choice between deleting files permanently or archiveing', 'pdeleteimages', 'delete', 'If you want to permenantly delete archive files on user requests choose yes, if you would like files to be archived and still remain in the database choose no.', 'yesno', 10 ); I recommend having a look at bottom settinggroup through the Admin CP and assign that group instead (Options -> vBulletin Options). Another thing...how about adding some <smallfont > to the viPortfolio.php file? I did that and to do so, just edit the lines below this of viPortfolio.php: // version of software installing |
#97
|
||||
|
||||
Hello Guys!!
In my Case the installation wasen?t easy too. But after my third or fourth installation all becoms Routine... @ Sengerdw, heres a Screenshot. I got four Styles in my Forum. This is my "Softgreen-Style. Hope you like it! @ Teddy, much thanx to you. Youre online-thing works great for me!! :classic: |
#98
|
||||
|
||||
Right, I have a few more suggestions for you.
In the template "viPortfolio_view" REPLACE this: Code:
<script language="javascript"> function popUp(URL, WIDTH, HEIGHT) { day = new Date() id = day.getTime(); eval("page" + id + " = window.open(URL, \"" + id + "\", 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width= " + (WIDTH+20) + ",height=" + HEIGHT + "');"); }; </script> Code:
<script language="javascript"> function popUp(URL, WIDTH, HEIGHT) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, \"" + id + "\", 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width= " + (WIDTH+40) + ",height=" + (HEIGHT+30) + "');"); }; </script> |
#99
|
||||
|
||||
Finally, (yes, I promise to shut up after this ), if you want your text to be a bit wider before it breaks to a new row than it originally is, search for this:
Code:
cols="20" Code:
cols=100" Search for: Code:
cols="40" Code:
cols="100" Additionally, if you want to center the text and skip the image filename (I see no use of showing that), open the template viPortfolio_view_textbit and search for this: Code:
<smallfont>$image[filename] $image[text]</smallfont> Code:
<center><smallfont>$image[text]</smallfont></center> |
#100
|
||||
|
||||
Hello Martin64!!
I test your code but i get an Errormessage with it. Look, heres the Orginal-Code from Viportfolio_view. With this code all works. aranoid: Code:
<script language="javascript"> function popUp(URL, WIDTH, HEIGHT) { day = new Date() id = day.getTime(); eval("page" + id + " = window.open(URL, \"" + id + "\", 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width= " + (WIDTH+20) + ",height=" + HEIGHT + "');"); }; </script> |
#101
|
|||
|
|||
I do apologize for the install problems. That was an attempt to make the install a little easier. :ermm: It kind of backfired on me though :dead:
I am in the process of making a better installer that can be used to install other hacks also. This will go thru the standard beta testing just like a normal hack would. For the text wrapping functionality. I have a setting in the admin control panel to change the length of the text. I didn't put the ability to change the width of the box that the text is in though. If that is something people would want to have more control over it would be a simple addition. About the pop up window size. In my testing just setting the window to the size of the graphic created a window that was too small in some browsers but not others. I don't remember which browers did what. With the settings that are in there the popup will always show the whole image. With the filesize maximum set to only 75k there shouldn't be an image bigger than 1024x768 so the popup window will always fit inside a screen. The use of the 65354 number in the settings. The install program inserts the settings into the table with that value preset. Then inserts a row into the settinggroup table. The id that is given to the settinggroup is used to replace all settings with 65354 assigned to them. Without knowing what the largest setting identifier before inserting the settings I choose to use the highest number possible and then replace it later. Thanks Martin64 for the suggestions. I think I will take the filename out of the next release. Here is an option, if the user doesn't put a description for the file they upload than the program will use the filename, otherwise only insert the text that they put for the file. Anymore suggestions are more than welcome! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|