![]() |
What if the images are smaller than the 175x175 thumbnail I am setting -- would that cause it to cough?
Here is a sample of the first images: 137x191 175x173 134x165 175x170 168x154 172x175 Most are within these dimensions as I had them all sized for an html gallery that we had been using. |
That is odd, if it worked the first time through with 100x100.
Try 200x200, maybe that works (just for testing). Are the images up to #7 actually being resized properly? There might be something up with those #7-#11 images, like you mentioned. I'll look into why it might be doing this. |
Hello,
i need a little bit of help please. I just installed this hack on vb3.0.0 and did all the modifications, uploads and database queries. All without any errors. In the AdminCP i have now the options and i can set them BUT: - where is the link to this new gallery ? Is this not in the modifications ? Do i have to manually edit my navbar to add the link to album.php ? - when i go to my control panel ( normal user ) and i try to upload a file larger then 100x100 it rejects it. How do i set the size for the pictures ? I searched through all admin settings, but i did not find it. Please help me. Thanks in advance. Cheers, Pseudomiizer |
What is a good size to allow for profile pics?
|
Bob,
I have all of mine set to the approx. dimensions above for displaying in rows of 3 for 800x600 resolution. Velocd, I will try 200x200. Tonight, I took a datadump of the customprofilepic table and uploaded it to my test server, deleted the thumbnaildata field all together, and then readded the field under profilepicdata. I then reset thumbnails to 175 and attempted to resize, and it locked up here: albumcp.php?do=rebuildthumbs&startat=21&perpage=20 With the thumbnaildata field cleared, it ran through the first 20 pics just fine, but then kept cycling back through startat=21&perpage=20. I opened another browser program and set the URL for startat=41&perpage=20 to see if I could maybe skip over any problem pics, but it wouldn't take that -- it just refreshed itself to 21 & 20 and kept cycling though those over and over again. All of the photos are .jpg format, and all original sizes are as mentioned. If I add a new photo with the 175 limit, it also works fine - it is just trying to change them once they have been added and the limit is changed after that time. This has me baffled. |
Quote:
PHP Code:
Quote:
That is in Options > Message Attachment Options > Thumbnail Size :) |
Speaking of permissions, if anyone is interested in tying the permissions on the album to the memberlist security field, just add this to album.php:
PHP Code:
|
Quote:
|
Quote:
Warning: Division by zero in /home/vietmyen/public_html/album.php on line 151 Warning: Division by zero in /home/vietmyen/public_html/includes/functions.php on line 1707 There seems to have been a slight problem with the Vietmyen Net database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. Database error in vBulletin 3.0.0: Invalid SQL: SELECT user.userid, dateline, comment, user.username, user.usertitle, user.joindate, user.usergroupid FROM customprofilepic LEFT JOIN user USING (userid) WHERE visible=1 ORDER BY posts desc LIMIT 0, mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9 mysql error number: 1064 Date: Monday 12th of April 2004 10:55:27 PM |
Hello Christine,
thanks for all your answers. Point 1: This is fine. Now i will add a link to my menu, but after reading your second answer with the permissions how about addind this to the memberlist as a pop-up like the search button ? This would make more sense if you already are tying it to memberlist. Point2: I tried to set it to 200 and rebuild the attachment update counters and i tried to set it to 500 and updated the attachment counters. It is STILL 100x100. Something is going wrong here. Any idea why ? Cheers, Pseudomizer |
Hi Pseudomizer,
I have it tied to the permissions, but set as a seperate link for navigation. Sure, you can change that, and with all the links I have going on up there now, I may look at that myself! As far as the rebuild -- you need to run the rebuild function in the vB3 Member Album > Approve Images section as the attachment rebuild is for the attachment table. |
Hi Christine,
i fully understood what you mean but it does not work. After installing all the modifications, templates and uploads my "Approve Images" section is completly empty. Only if i upload one image which is less than 100x100 pixel in my control panel, i get the options in the "Approve Images" section to rebuild the profile picture thumbnails. I could live with that but here is the problem now: Member attachment options -> Thumbnailsize -> 500 Maintenance -> Update Counters -> Message Thumbnails > Rebuild done vB3 Member Album -> Approve Images -> Rebuild profile picture thumbnails done Now if i try to upload any image i still have the damn restriction of 100x100 pixel. Why ? Where is the error ? Cheers, Pseudomizer |
Pseudo, you have the thumbnail sizes confused with the actual profile picture size.
As I mentioned on the first page of this thread to Vivi Ornitier, to change the profile image dimensions, you have to edit usergroups. Each usergroup has its own defined size. https://vborg.vbsupport.ru/showpost....4&postcount=14 |
Perfect. Thank you so much. Sorry for being unable to find that error in previous messages. A small hint in the instructions would save you a lot of time answering these kind of requests. :-)
But good work, nice hack. I will try to convert my existing pictures from your old member photo gallery hack into this new hack because all old database entries are still there. Cheers, Pseudomizer |
Quote:
Quote:
I don't have a lot of time to debug it now, but one troubleshooting solution I can provide is to erase the $perpage chunk of code, and re-generate all thumbnails in one process. I've attached a customized albumcp.php that does just this. Be sure to rename it albumcp.php to use it. If it still doesn't work, and locks up, then there might be a problem with the actual GD-image handling functions. (although I sort of doubt it) |
Quote:
when I type: http://mydomain.com/album.php I got error like as I report here. |
No errors occured when running the install.html queries? The value of $vboptions['album_perpage'] must be blank if nothing is outputting, which means the setting must not exist in the table.
Run this query from PhpMyAdmin, and show me the results. [sql]SELECT * FROM setting WHERE varname='album_perpage'[/sql] |
Here is the result that I attachment when I run
SELECT * FROM setting WHERE varname='album_perpage' When I run album.php from my website I got number 18. That's it. I did't see anything else. |
2-3 pics would be even betterm why not?
|
Review the thread, I've already explained. I have a very tight schedule with college, my job, and other coding projects, therefore don't have time to spend for "add-ons" to my hacks released at vBulletin.org.
|
Thanks, Velocd -- the albumcp_debug.php worked great!
|
Quote:
Then i went straight to my ACP clicked on the member photo options and saved them once. After this my division by zero error in album.php and functions.php was gone. I thought that could be interesting for all of you. Cheers, Pseudomizer |
Velocd can you enhanced this mod to make it into a personals page? I also like the idea of using profile (for members own pic)
|
Mike. I'm getting this for all the signatures:
Quote:
|
Hi Bob,
That field is only captured when there is a change made and it is saved - the default is 0. You can default a date of your choice in there by running this script: UPDATE usertextfield SET sigdateline = 'unixtimestamp' Good thing you have that tool, aye? :p |
Quote:
Is there a way to not have it show a last update time until it actually is updated? That would be better I think. ;) |
Yep, and that actually makes more sense. Will update the install.html.
In the template album_sig_list, find: HTML Code:
<br /><br />Last modified:<br />$user[sigdate], <font class="time">$user[sigtime]</font> HTML Code:
<if condition="$user[sigdateline]"><br /><br />Last modified:<br />$user[sigdate], <font class="time">$user[sigtime]</font></if> Quote:
|
Quote:
Something like this : http://www.chillicrap.com/Personals/ |
Review the thread. I've mentioned many a times I don't plan to build add-ons for this hack.
No multiple images, no commenting system, yadda yadda. You are free to do so yourself. |
Hello,
i would like to know if there is anyone interested in an upgrade path from this hack for version 2.3.x to version 3.0.0 ? I have created a script to migrate all the pictures from the old hack into the new hack. The only disadvantage will be that all comments will be cut off after 40 characters because the new entry field in the user options is limited to 40 characters which was 255 characters before. If people are interested to migrate please respond in here. I am more then happy to help out because Velocd has done a great job with these 2 hacks. If you are not sure which hack i am talking about here is the link to the old vb2.3.x hack: https://vborg.vbsupport.ru/showthrea...hlight=gallery Cheers, |
Quote:
hehe u can do the personals... i would be glad to purchase it from you (u can make it commercial! I haven seen any personals yet... to integrate into vb3) |
Quote:
|
Quote:
The comment field in the table customprofilepic is varchar(255), meaning it can hold up to 255 characters. I only set the INPUT maxlength value to 40, as I thought that was suitable for this hack. Both can be changed. |
Quote:
But no one is interested in this script so far. I am fine with the 40 characters. Cheers, |
If you want, I can place the script as an attachment in the first post, so people will see it more easily.
Defiantly a good incentive for people to upgrade if they currently have the old member gallery. ;) |
Quote:
sorry for the delay but i implemented some small bugfixes into this script and made it more userfriendly with screen outputs. I have added an installation instruction into the ZIP file how to install it and how to run it. Please note that i highly recommend all users who want to use this script to backup their existing database BEFORE they run this script. Enjoy this script. Cheers, |
Hello Velocd,
PLEASE DO NOT USE THE CODE BELOW!!! This code was quick and dirty and a better version with only 1 query can be found here: https://vborg.vbsupport.ru/showpost....0&postcount=82 i just have created another add-on for your hack. What it does ? It implements a random picture on your portal ( tested with vbindex 3.0.0 Build 5 ). What do you have to do ? It's very simple. Here are the instructions: Open your vbindex.php from your webroot directory and do the following: vbindex.php: Find: PHP Code:
PHP Code:
Open vbindex_customblock_3: Find: PHP Code:
PHP Code:
P.S.: If you are using another portal software then you could adopt this script for your use. You just have to find the correct template from your portal software and insert the variable for the output. Cheers, |
Eventually got it going after having a fiddle with my database. It really is quite difficult to deal with! Thanks for this hack - keep uo the excellent work.
|
Quote:
|
Quote:
Oh oh. Thanks for this hint. This was a quick and dirty implementation for a request. I did not thought about performance because i tested in on my test forum. :disappointed: But you are right. I will change the PHP code and i will have a look into this how i could reduce it to 1 or 0 queries. :nervous: Thanks for this hint. Cheers, |
All times are GMT. The time now is 08:31 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:
|