Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
viPortfolio 1.2.6 Beta Release Details »»
viPortfolio 1.2.6 Beta Release
Version: 1.00, by TeddyBare69 TeddyBare69 is offline
Developer Last Online: Apr 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-29-2002 Last Update: Never Installs: 12
Is in Beta Stage  
No support by the author.

======= =======
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 08-07-2002, 05:27 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #93  
Old 08-07-2002, 09:13 PM
TeddyBare69 TeddyBare69 is offline
 
Join Date: Jun 2002
Location: CA, US
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #94  
Old 08-07-2002, 09:51 PM
TeddyBare69 TeddyBare69 is offline
 
Join Date: Jun 2002
Location: CA, US
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #95  
Old 08-08-2002, 07:41 PM
Warrior's Avatar
Warrior Warrior is offline
 
Join Date: May 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #96  
Old 08-09-2002, 12:17 AM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 );
Why 65534? This number should afaik equal the settinggroup ID (in my case 33) or it won't work, at least it didn't for me.

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
Reply With Quote
  #97  
Old 08-09-2002, 06:29 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #98  
Old 08-09-2002, 10:53 AM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
with 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=1,location=0,statusbar=0,menubar=0,resizable=1,width= " + (WIDTH+40) + ",height=" + (HEIGHT+30) + "');");
};

</script>
This will create scrollbars if needed, and also, all images will be visible without having to resize the popup.
Reply With Quote
  #99  
Old 08-09-2002, 11:59 AM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
in the following templates: viPortfolio_add_attachment, viPortfolio_edit_attachment. REPLACE with:

Code:
cols=100"
in both templates.

Search for:

Code:
cols="40"
in the following templates: viPortfolio_edit_editbit, viPortfolio_edit_newbit. REPLACE with:

Code:
cols="100"
in both templates.

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>
REPLACE with:

Code:
<center><smallfont>$image[text]</smallfont></center>
Reply With Quote
  #100  
Old 08-09-2002, 12:47 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #101  
Old 08-09-2002, 04:58 PM
TeddyBare69 TeddyBare69 is offline
 
Join Date: Jun 2002
Location: CA, US
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08729 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete