vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Member Album 2.0 (https://vborg.vbsupport.ru/showthread.php?t=63733)

Boofo 06-16-2004 05:22 AM

Is there a way to have this send an email to the Admin when a new pic has been uploaded? I had a user upload a pic and I didn't even know it was there ro be verified until I accidentally checked this in the Admin CP. ;)

Erwin 06-16-2004 05:52 AM

Quote:

Originally Posted by Pseudomizer
Then please open a new thread for your advertising and publish your own hack.

Cheers,

I think you misunderstood Ted - when he said gallery in action, he means he is using this hack, and just wanted to show another gallery using this hack in action. :)

Pseudomizer 06-16-2004 09:06 AM

Upps. Then i am very sorry. I apologize for that. The word "another". Sorry again.

Cheers,

highlander_RD 06-16-2004 09:32 PM

Since I succesfully installed this *must have* hack migrating pics from vB2, I found the way to add a "comment" into the album_image_list:

1) Add this code in profile.php just below:
require_once('./includes/functions_upload.php');
process_image_upload('profilepic', $avatarurl);
PHP Code:

        $DB_site->query("UPDATE " TABLE_PREFIX "customprofilepic SET comment = '" addslashes($_POST['commento']) . "' WHERE userid = $bbuserinfo[userid]"); 

2) Add this code in template modifyprofilepic, just below:
<tr>
<td><phrase 1="$permissions[profilepicmaxwidth]" 2="$permissions[profilepicmaxheight]" 3="$permissions[profilepicmaxsize]">$vbphrase[note_maximum_size_x_y_or_z]</phrase></td>
</tr>
Code:

<tr><td>
Comment: <br />
<input type="text" class="bginput" name="commento" size="50" maxlength="100" /></td></tr>

3) In the same template modifyprofilepic replace
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] </label></div>
with this:
Code:

<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] - <i>$profilepic[comment]</i></label></div>
4) In template album_image_list the comment will appear as follows:
Code:

    <td valign="top" style="padding-left: 20px"><a style="font-size:11pt" href="member.php?$session[sessionurl]u=$image[userid]"><b>$image[musername]</b></a><br /><span class="smallfont">$image[usertitle]<br /><br /><i>$image[comment]</i></span><br />
    </td>

It works fine for me, if you want to check, my beta link to have a screenshot is:
http://www.egcommunity.it/forumbeta/album.php?
(Sorry, need to be registered in order to view the photo gallery!)

;-)

Boofo 06-16-2004 09:43 PM

Quote:

Originally Posted by highlander_RD
Since I succesfully installed this *must have* hack migrating pics from vB2, I found the way to add a "comment" into the album_image_list:

1) Add this code in profile.php just below:
require_once('./includes/functions_upload.php');
process_image_upload('profilepic', $avatarurl);
PHP Code:

        $DB_site->query("UPDATE " TABLE_PREFIX "customprofilepic SET comment = '" addslashes($_POST['commento']) . "' WHERE userid = $bbuserinfo[userid]"); 

2) Add this code in template modifyprofilepic, just below:
<tr>
<td><phrase 1="$permissions[profilepicmaxwidth]" 2="$permissions[profilepicmaxheight]" 3="$permissions[profilepicmaxsize]">$vbphrase[note_maximum_size_x_y_or_z]</phrase></td>
</tr>
Code:

<tr><td>
Comment: <br />
<input type="text" class="bginput" name="commento" size="50" maxlength="100" /></td></tr>

3) In the same template modifyprofilepic replace
<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] </label></div>
with this:
Code:

<div class="smallfont" style="margin-top:$stylevar[formspacer]px"><label for="profilepic"><input type="checkbox" name="deleteprofilepic" value="1" id="profilepic">$vbphrase[delete_current_profile_pic] - <i>$profilepic[comment]</i></label></div>
4) In template album_image_list the comment will appear as follows:
Code:

<td valign="top" style="padding-left: 20px"><a style="font-size:11pt" href="member.php?$session[sessionurl]u=$image[userid]"><b>$image[musername]</b></a><br /><span class="smallfont">$image[usertitle]<br /><br /><i>$image[comment]</i></span><br />
</td>

It works fine for me, if you want to check, my beta link to have a screenshot is:
http://www.egcommunity.it/forumbeta/album.php?
(Sorry, need to be registered in order to view the photo gallery!)

;-)

How about a screenshot then? ;)

highlander_RD 06-17-2004 11:10 PM

Quote:

Originally Posted by Boofo
How about a screenshot then? ;)

Yes, here they are! :rolleyes: :squareeyed:
the modifyprofilepic page with the input field and the comment below the photo:

Pseudomizer 06-17-2004 11:21 PM

Quote:

Originally Posted by highlander_RD
Yes, here they are! :rolleyes: :squareeyed:
the modifyprofilepic page with the input field and the comment below the photo:

Sorry, but for my understanding. You are running Member Photo album v2.0 on VB 3.0.x and you want to migrate the pics from the member album VB2.3.x to this new version ? Is this correct ?

Cheers,

highlander_RD 06-17-2004 11:23 PM

and here the screenshot of the photo gallery (the comments are on the right in italic fonts):

highlander_RD 06-17-2004 11:28 PM

Quote:

Originally Posted by Pseudomizer
Sorry, but for my understanding. You are running Member Photo album v2.0 on VB 3.0.x and you want to migrate the pics from the member album VB2.3.x to this new version ? Is this correct ?

Cheers,

No.
I had on vB 2.2.9 vb Member Photo by Velocd with the "comment" field.
I installed Member Photo Album v2.0 on vB 3.0.1 but I didn' find the "comment" field, so I just added this option that was present on the earlier version.

Thanks

Pseudomizer 06-18-2004 08:18 PM

Quote:

Originally Posted by highlander_RD
No.
I had on vB 2.2.9 vb Member Photo by Velocd with the "comment" field.
I installed Member Photo Album v2.0 on vB 3.0.1 but I didn' find the "comment" field, so I just added this option that was present on the earlier version.

Thanks

Ok. The reason why i asked was if you have seen my migration script from the old version to this new version. But you don't need it any more.

Cheers,


All times are GMT. The time now is 02:24 AM.

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.01256 seconds
  • Memory Usage 1,760KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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