vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Simple Profile Pic Gallery (https://vborg.vbsupport.ru/showthread.php?t=99134)

StarBuG 11-05-2005 04:39 PM

I have a suggestion.

Many members asked me (for the former gallery I used) how to add a picture to the gallery.

So I made a short explanation above the gallery.

To add this

Find:

Code:

<option value="desc"<if condition="$sortorder == 'desc'"> selected="selected"</if>>$vbphrase[rr_pic_gallery_desc]</option>
      <option value="asc"<if condition="$sortorder == 'asc'"> selected="selected"</if>>$vbphrase[rr_pic_gallery_asc]</option>
      </select>&nbsp;
      $gobutton
    </td>
  </tr>
</table>

below that add:

Code:

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr><td class="thead" align="center"><h3>How to add your picture here</h3></td></tr>
<tr><td class="thead" align="center">To add your picture to this list click on <a href="usercp.php" target="_blank">User CP</a> in the Forum Navigation then In "Settings & Options" click on <a href="profile.php?do=editprofilepic" target="_blank">Edit Profile Picture.</a></td></tr>
<tr><td class="thead" align="center">There you can either upload your photo or link to it. We hope you like this feature.</td></tr>
</table>

<br />

Example can be found here:
http://www.hiphop-battles.com/forum/picgallery.php


One more Request:

Can you pleace add your script to the "who is online" Location plz

So that it does not show the url but instead "Picture Gallery" or something

Christine 11-05-2005 04:43 PM

@ SuperFly -- Okay, then blow away the gallery mod and fix the other one for making smilies. :D

I can assure you this is working, and as it isn't using any file edits or plugins, it isn't stepping on anything. Other than a vB setting for display row/column, phrases and new templates -- it isn't touching anything else in the system.

Christine 11-05-2005 04:43 PM

@ StarBuG -- VERY nice. Thanks!

StarBuG 11-05-2005 05:01 PM

Quote:

Originally Posted by Christine
@ StarBuG -- VERY nice. Thanks!

I got the location thing solved but it could be made better with phrases and such:

for anyone who wants to know:

In the Plugin Manager:

#1 click on [Add New Plugin]
#2 Hook Location = online_location_process
#3 Title = Profile Picture Who is Online Location
#4 Plugin php code:
Code:

if($filename=='picgallery.php'){$userinfo['activity'] = 'Picture Gallery';}
#5 SAVE

#6 click on [Add New Plugin]
#7 Hook Location = online_location_unknown
#8 Title = Profile Picture Who is Online Unknown Location
#9 Plugin php code:
Code:

if($userinfo['activity'] == "Picture Gallery") {
        $userinfo['where'] = "<a href=\"picgallery.php" . $vbulletin->session->vars[sessionurl_q] . "\">Forum Profile Picture Gallery</a>";
        $userinfo['action'] = "Viewing Profile Pictures";
        $handled = true;
}

#10 SAVE

Hope this helps

Christine 11-05-2005 05:06 PM

Another nice one. :)

I am using Andreas' WhoseOnline addition found here: https://vborg.vbsupport.ru/showthrea...threadid=83247

Much easier way of adding in all of the custom files if you have more than one.

StarBuG 11-05-2005 05:30 PM

Quote:

Originally Posted by Christine
Another nice one. :)

I am using Andreas' WhoseOnline addition found here: https://vborg.vbsupport.ru/showthrea...threadid=83247

Much easier way of adding in all of the custom files if you have more than one.

You could/should implement the location directly into the product.xml

I think most users would appreciate this ;)

o1dirtydog 11-05-2005 07:48 PM

works like a charm...

Alien 11-06-2005 06:33 PM

This is *awesome*!

Works great, but not yet making it live until the ability to view a specified thumbnail size is created as we don't use the default size we allow slightly larger picture sizes for our members. Even at 2 pics per column it scrolls to the right. Look forward to seeing a fix for this!

Christine 11-06-2005 06:51 PM

Fixed?

Thumbnailing isn't a feature of this hack. It is designed to work with the vB default profile pic feature using the limits set up in the AdminCP. If you allow those pics to be ginormous, then you may want to add a thumbnailing routine to it?

That, or you can limit the view to 175x175 px in the templates so that all pics show up that size (noting that it will skew smaller pics that wouldn't have been thumbnailed anyway).

Alien 11-06-2005 07:01 PM

Quote:

Originally Posted by Christine
Fixed?

Thumbnailing isn't a feature of this hack. It is designed to work with the vB default profile pic feature using the limits set up in the AdminCP. If you allow those pics to be ginormous, then you may want to add a thumbnailing routine to it?

That, or you can limit the view to 175x175 px in the templates so that all pics show up that size (noting that it will skew smaller pics that wouldn't have been thumbnailed anyway).

"Fixed" was a poor choice of words. I was just hoping that this feature would make it into this product or someone would come along and create an add-on for it to limit the sizes.

I'm only starting to learn php and wouldn't know how to do that sort of thing yet.


All times are GMT. The time now is 05:19 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.04527 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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