![]() |
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. ;) |
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. |
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. |
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? |
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 ); 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 |
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: |
Right, I have a few more suggestions for you. :)
In the template "viPortfolio_view" REPLACE this: Code:
<script language="javascript"> Code:
<script language="javascript"> |
Finally, (yes, I promise to shut up after this :p), 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> |
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. :paranoid: Code:
<script language="javascript"> |
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. :cool: 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! :) |
All times are GMT. The time now is 12:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|