vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   viPortfolio 1.2.6 Beta Release (https://vborg.vbsupport.ru/showthread.php?t=41691)

TeddyBare69 08-01-2002 06:27 PM

Couple things I remembered while I was looking for the delete fix. Keep in mind this first one was meant as a feature. :rolleyes:

the delete functionality really doesn't do a delete. I am going to make that a configurable option on admin control panel and include a purge in the next release. For now each uploaded file has an uploaded date and an expired date. When you delete an attachment the expired date gets set and it doesn't show. This allows for easy recovery of accidents.

While fixing other bugs, I found that the thumbnails being shown were not actual thumbnails but the same size image as the original with the width and height paramater in html changing there size. This has been fixed in the next release. I have only been able to test this on my server with PHP ver 4.1.2 and MySql 4.0.1-alpha-max and GD 2.0.1. I know that this version of PHP uses different GD functionality for creating and resizing images. I have had difficulty in the past with getting the previous version so there will be an option available to disable the next functionality and stay with the old.

Lastly, I am creating a thinner simplier install wizard. I am hoping this will be ready for the next release but no promises.

more updates coming... :smoke:

Christy 08-01-2002 06:34 PM

Ok, I will uninstall and Standby for a future release..thanks

Also, I have PHP 4.1.1 and the php_gd that came with it

NTLDR 08-01-2002 09:30 PM

Hi,

I've managed to install this hack, but with just one problem, I also get the broken images as described above and the error template (invalid upload one) when I try and view the image/txt file.

I have all the GD stuff enabled that was pointed out above, any ideas?

Other then that great hack, congrats.

TeddyBare69 08-01-2002 11:38 PM

I appreciate the congrats but I won't accept it until sombody tells me they have had success!

I have part of the icon fix. The non graphic file uploads. The problem is that a path is not set correctly in the icons table. The next release comes with the ability for administrators to modify the icons assigned to each file type. For this version I have attached an sql file that will update the icons table to correct the path.

partialy good news on the graphic upload broken thumbnail problem. I had been looking at my server for over an hour trying to figure out how to recreate the problem so I could fix it. I am able to recreate the problem, I just don't know why yet. I went to NTLDRs site and grabbed the parameters that his link was passing and tried them on my working installation. With NTLDRs parameters my installation gives the same errors.

All this means is I am almost at a fix. :cheeky:

TeddyBare69 08-03-2002 09:20 AM

======= =======
viPortfolio Version 1.0.4
======= =======

We have a lot of updates here. Along with a couple additions. View below to see what has changed since 1.0.0. Thanks goes out to everybody that has been helping test this product. It has been greatly appreciated. The manual directions have been included in the zip file.

Note for existing users:
Delete the existing viPortfolio directory if you haven't already. Extract the viPortfolio-1.0.4.zip file in the same location. Pull up the http://{yoursite}/viPortfolio/install.php file in your favorite browser. When you run thru the install the first option will be to uninstall the existing version. This is highly recommended. :) Once you have completed the uninstall than go back to http://{yoursite}/viPortfolio/install.php and run thru the install again.

From what I have seen so far the installer works with the viPortfolio specific templates, icons, and database tables. You can then go back and install the manual edits. This will save you alot of time if you choose to take advantage of it.

Changes:[list=1][*]Delete functionality fixed[*]Added ability to choose whether to archive or delete records added[*]Added bmp functionality[*]Thumbnail creation fixed[*]Admin control options fixed[*]Added manual install directions/Added to the directions from 1.0.0[*]Install script - Removed any code that modifies existing templates or php files.[/list=1]

Credits:
VisibleImpact.com Administrative Director and author: TeddyBare69
VisibleImpact.com Owner and Designer: sengerdw

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.[/list=1]
Demo links:[list=1][*]Members list[*]Public Profile[*]Public Portfolio[/list=1]
Installation Instructions:

Extract the viPortfolio-1.0.4.tgz 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/forums/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 the viInstaller version 1.0.0. The viInstaller 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 viInstaller.

viInstaller known issues:[list=1][*]Editor inoperable
workaround: Use your favorite editor when asked to edit a file or template[*]Uninstall option may not completely uninstall app
workaround: Don't uninstall :)[/list=1]

viPortfolio v1.0.4 developed by: VisibleImpact.com

Christy 08-03-2002 11:44 AM

Ill install it after work and let ya know :)

Kars10 08-03-2002 04:06 PM

Nothing works at all. First ive tried your install.php.
Nothing happend, than i removed all and do it manuelly, and nothing happend at all....
Problems-Problems-Problems.
I dont see the Admin-settings. I see the Link to the settings in Admin-CP but the seetings self dont show.
in my settings table, the settings where build.
Ive make all youre manual says but one error is hunting the next...Believe me this is not my first hack ive installs...

TeddyBare69 08-03-2002 04:49 PM

Hello Minifreunde,

Sorry to hear you are not having fun with this hack. :speechless:

If you could define "nothing" with more detail I can fix it. ;)

Version of PHP, MySQL, WebServer, vBulletin would help. Also screen shots of any error messages you are getting. A link to the website you installed to would be the most help.

This is not my first program I have written but it is my first hack I have written for vBulletin. I appreciate you taking your time to help work out the bugs on this hack. ;)

Kars10 08-03-2002 05:49 PM

Ok. The first problem is, that i didn?t see the "portfolio-link" on user-options, second problem is, i didn?t see the settings in admin cp. The portfolio.php is shown (so i think) correctly...
i have add all tables inside the zip-file. i have all templates in all styles ive offered. So what can the problem be??
Is there modification on php-files needet?? in youre readme i can?t see anything...
I ve want to install on 2.2.5 with Linux / PHP v4.1.1 and My Sql v3.23.51
Please help me... :confused:

Christy 08-03-2002 07:32 PM

ok, php 4.2.2 installed and so i know i h ave the latest gd, heres my error

Warning: imagecreatetruecolor(): requires GD 2.0 or later in c:\inetpub\wwwroot\forum\viPortfolio.php on line 628

Failed to create destination image.

seems to just get that error with jpg files, i uploaded a gif and txt fine but still shows x'ed out on pics

http://www.force137.com/forum/viPortfolio.php?userid=1

TeddyBare69 08-03-2002 09:55 PM

Minifreunde,
In the install directions there is a reference to two other files. the viPortfolio.profile.directions.html and viPortfolio.paperc.directions.html. The only option with those is to manual install them. You have to edit both php files and templates. You can start with http://{yoursite}/viPortfolio.php?userid=1 to see if things are working.

TeddyBare69 08-04-2002 02:44 AM

In the last couple hours I have read more about GD and graphics than I ever wanted to know :)

Hopefully this will fix it.

This fix only updates the viPortfolio.php file. I am attaching a zip file with just that php file in it. If you could extract this one over the previous one and verify that you now have version 1.0.5.

There are some errors in this version. I haven't not pinpointed the exact cause yet. I get error messages saying: Cannot allocate palotte or Cannot allocate colors. Then a try a different image of the same type and it works fine.

I still have not found out why people are not see the thumbnail images instead seeing a broken link. I am still hopeing the thumbnail creation and the broken links are related.

For those a little hesitant that I even have it running on my server ;) My test server is Portfolio Test Server This url will not be valid for very long. I randomly get a new ip address and even more frequently install and uninstall the portfolio. I will leave this available for the next few days though.

TeddyBare69 08-04-2002 02:51 AM

Here is the real version 1.0.5

Kars10 08-04-2002 08:08 AM

Hello Teddy!
Ok if checked youre instruction, and now i see the upload.
The Admin-CP Settings are currently hidden?? I don“t know what can the Problem be.
When i tried to upload a file, this is the result!

Kars10 08-04-2002 08:11 AM

Heres a Screenshot from Phpmyadmin. You see the Pic is saved there...

Kars10 08-04-2002 08:20 AM

And here is the result when i click on the link directly after the upload-options. My Filesize is about 9 k i think....

Kars10 08-04-2002 08:25 AM

Here is my admin-cp....you see, the options?? :confused:

TeddyBare69 08-04-2002 08:57 AM

This is great. I can help fix almost every one of thse problems. ;)

1. Control Panel Settings. Since the settings are already in the table that means you must have ran install_settings.sql. Great. I added additional manual steps to complete the settings update.
Brief directions: Settings won't show until there is a value greater than 0 in the displayorder field. populate that field with a value (I picked max(displayorder) and you are done.
Long directoins:
1. Execute the following query
SELECT MAX(DISPLAYORDER) FROM SETTINGGROUP;
2. Add 1 to the number that is shown and replace the words <i>{highnumber}</i> with the displayed number + 1:
UPDATE SETTINGGROUP SET displayorder=<i>{highnumber}</i> WHERE title LIKE 'viPortfolio%';


What you see after you have uploaded your image is the major issue everybody but me has been getting. That has been part of the reason it hasn't been fixed. I am having an extremely difficult time recreating the problem. Right now there is no fix.

the error message is incorrect. Every time I fix it it somehow gets overwritten by the time I upload to the server. I have gremlins here ;) So here is the fix, I am going to make sure it will also be fixed in the next release.

open the viPortfolio.php file. On the 6th line you will see
$message="
You have exceeded the 75k file upload limit. If you are
having difficulties optimizing your files, we have multiple
people ready with helpful suggestions.
Thank you.
";

replace everything from line 6 thru line 11 with the following line:

$message = $msg;

This will get you more accurate error message.

Kars10 08-04-2002 09:43 AM

Quote:

[i]1. Control Panel Settings. Since the settings are already in the table that means you must have ran install_settings.sql. Great. I added additional manual steps to complete the settings update.
Brief directions: Settings won't show until there is a value greater than 0 in the displayorder field. populate that field with a value (I picked max(displayorder) and you are done.
Long directoins:
1. Execute the following query
SELECT MAX(DISPLAYORDER) FROM SETTINGGROUP;
2. Add 1 to the number that is shown and replace the words <i>{highnumber}</i> with the displayed number + 1:
UPDATE SETTINGGROUP SET displayorder=<i>{highnumber}</i> WHERE title LIKE 'viPortfolio%';[/B]
I have alright done this. But it dosen?t help me. Ive see the Link in the CP, and when i click i get the result from the last Screenshot...
I Promise i did all you explain... :ermm:

TeddyBare69 08-04-2002 11:48 AM

Quote:

Originally posted by Minifreunde


I have alright done this. But it dosen?t help me. Ive see the Link in the CP, and when i click i get the result from the last Screenshot...
I Promise i did all you explain... :ermm:

Never once thought you were trying to pull a fast one on me :o All this time you are thinking you are going to get a 50% discount on the cost of the software :nervous: Little did you know it was free :classic:

I believed you sooooo much that I went back and double checked what I wrote and then reread what the installer was doing and you are absolutely correct.

I missed a third step. Thanks for being persistant! :)

UPDATE setting SET settinggroupid = <i>{highnumber}</i> WHERE settinggroupid = 65534

Sorry about the frustration and I will try and keep my simple mistakes at a minimum so we can actually get this working. :rambo:

Kars10 08-04-2002 12:44 PM

Hi Teddy!!
Ok, now i got the options!! This point is going to you!! Great...
but look at my Screen-Shot :knockedout:

Kars10 08-04-2002 12:49 PM

here i get no options to choice between...
Hope i dont confuse you. :cry:

NTLDR 08-04-2002 06:28 PM

After trying to update to the latest vesion and manually editing the DB I have got this hack to work almost properly, the replace donsen't seem to work for me, nor do JPEG images, I get the following error with 1.0.5:

Quote:

Warning: Color index out of range in ./viPortfolio.php on line 725
Setting pixel for color1
Other than that it seems to be working fine.

Kars10 08-05-2002 11:11 AM

Now if i want to upload something...i get a #!@j?! Parse Error!!
Oh man, this is wierd!! Please have a look at the Screen-Shot! :(

TeddyBare69 08-05-2002 12:06 PM

Couple more fixes.

NTLDR, ALL
I believe I have fixed the color allocating problem.
There are a couple other fixes also so I am uploading a new version 1.0.7.
This version has the color fix, better PHP version checking support and control panel fixes.

Minifreunde,
take a look at the permissions and owner of http://{forum basedirectory}/tmp . This directory needs to be set with write access of your webserver userid. For me that user is nobody, in production it is web. You would be safe setting the permissions to 777 in unix or granting permissions to all in windows.

Looking at the screen shot of your settings, looks like multiple installs. You can clean out the settings for viPortfolio with the following SQL.
DELETE setting
FROM setting s, settinggroup g
WHERE s.settinggroupid = g.settinggroupid
AND g.title like 'viPortfolio%';

then you will need to reinsert the settings by executing the sql in viPortfolio/database/insert_settings.sql.

then execute the following sql
SELECT settinggroupid, displayorder
FROM settinggroup
WHERE title like 'viPortfolio%';

ensure that the displayorder is not 0 and use the number in settinggroupid column as highnumber for the following sql.

UPDATE setting
SET settinggroupid = <i>{highnumber}</i>
WHERE settinggroupid = 65534

This will be fixed in the next version.

Kars10 08-05-2002 01:24 PM

Hello Teddy, this was the result of the first query... :o

Christy 08-05-2002 03:47 PM

Well, im stumped. I just uninstalled then reinstalled with latest vesion and am still getting the x's for the pics

http://www.force137.com/forum/viPortfolio.php?userid=1

I should be doing everything write, only thing I dont do is add the links for the users as im waiting till i know it works.

I install tables, install templates, upload viportfolio.php and this time i also upped gdthumb.php even though im not sure what it was for.

NTLDR 08-05-2002 04:27 PM

Quote:

Originally posted by TeddyBare69
I believe I have fixed the color allocating problem.
This seems to be far worse for me I get:

Code:

Warning: Color index out of range in /.../viPortfolio.php on line 633

Warning: Color index out of range in /.../viPortfolio.php on line 634

Warning: Color index out of range in /.../viPortfolio.php on line 635

Warning: Color index out of range in /.../viPortfolio.php on line 636

In a constant loop now when I try to upload a JPEG Image :( However the image does seem to have uploaded, but I just get a black 100*100 square as the thumbnail for it.

Uploading to replace a file doesn't work either still.

TeddyBare69 08-05-2002 05:23 PM

for Minifreunde,
don't you have mysql 4 or newer?

select *
from settinggroup
where title like 'viPortfolio%';

delete
from setting
where settinggroupid = {number from above}

sorry about the mix up. the mysql manual said the previous sql was compatible with mysql 4.0.2 and above.

NTLDR,
Have you tried other images?

can you either upload your graphic to this site or log onto my test board and upload the image there.
Test site
username guest
password guest

Christy,
If you could try and login and upload your image here also. I haven't tried fixing the missing image problem directly because I can't recreate it here.

Christy 08-05-2002 05:33 PM

Ok I logged into your site and was able to upload them both fine. I just used your installer logo as a gif and jpg

Not sure whats up with mine, I also tried using php_gd2.dll and get the same results, heers an image of my phpinfo

TeddyBare69 08-05-2002 06:03 PM

The gdthumb.php was a php file I was using to testing the thumbnail functionality. I have modified it a little bit more to make it a useful testing tool for you also.

I have attached the gdthumb.php file below. If you could copy this to you viPortfolio/ directory and run it with http://{yoursite}/viPortfolio/gdthumb.php it will try and convert the installerlogo.jpg file to a thumbnail and save it to a file with a link to be able to view the new file.

This will verify if it is my code or something to do with GD or PHP.

Christy 08-05-2002 06:40 PM

Ok, ran it and it outputted this

Creating blank thumbnail image
starting resampling

using greater than 2.0 gd

Writting thumbnail to ./th0.jpg

and the link went to a thumbnail of your logo, so it worked

NTLDR 08-05-2002 06:53 PM

Quote:

Originally posted by TeddyBare69
NTLDR,
Have you tried other images?

GIF images work fine, I get the thumbnail and the link to the picture works, its just JPEGs, the one I use is your installer logo.

TeddyBare69 08-05-2002 08:08 PM

so I guess I got some work in front of me :) There has to be something I missed in the manual directions that my installer is doing? ;'(

My plans are to get the installer working figure out what was missed in the manual directions. I have an idea what it might be but I don't think I will have an update until tomorrow morning.

If anybody needs me I will be in coding land :)

Christy 08-05-2002 08:43 PM

well, seems it was my fault. I have been doing it manually and must have missed something. I just did it with the installer and everything works perfectly :)

http://www.force137.com/forum/viPortfolio.php?userid=1

TeddyBare69 08-05-2002 08:55 PM

I just went out and looked at it :) That is great!

TeddyBare69 08-06-2002 01:54 AM

The timing on this probably isn't the best but I found out what the problem with the icons not showing up. It turns out that I got the directions out of order. You have to run the install_mimes.sql before the install_icons.sql. The icons file sets the mime types with the default icons. Without the mime types, nothing happens.

So now I believe the outstanding issues are still allocating colors? NTLDR, are you still having this issue?

Minifreunde,
were are we at with your install?

Kars10 08-06-2002 07:00 AM

@ Teddy, ok Christy got it with the installer working. If i want to clean my DB from all ViPortfolio and run the install again, what must i exactly do. I dont want to miss a table or produce a major error.
@ Christy, witch version of viPortfolio did you use?? Some help from you? :confused:

TeddyBare69 08-06-2002 09:33 AM

Minifreunde,
I know I have made a couple mistakes already but I can still help if you want? :disappointed:

I have taken out the parts of the install.php that didn't work. I believe she would have run the install.php script in your viPortfolio/ directory. While walking thru the install , on the third screen, it will ask you if you want to uninstall. There will be red box with a button that says "UNINSTALL viPortfolio Application". Click on that button and the next screen will show you a list of things that are being deleted. Go to the next screen and everything is gone. Now rerun the install.php script and again and go thru the steps to install.

You also have choice B :) If you rerun the install_icons.sql file this will update your mime table and you will see icons in your portfolio.

Version 1.0.7 is the latest and greatest. I have updated the first post in this thread with the new version if you still need to download it.

Kars10 08-06-2002 11:09 AM

@ Teddy, i want youre help. I ask christy because he got it working.
Ok i download youre latest version and test it!! :)


All times are GMT. The time now is 10:10 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.01460 seconds
  • Memory Usage 1,857KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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