Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2005, 11:15 PM
larryd larryd is offline
 
Join Date: Nov 2001
Location: Newark, DE
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VB3 & Photopost (GALLERY BUTTON)

I know this can be done because I managed to do it in VB2 and if I recall it was much simpler in VB3 but I can't for the life of me find it on the forums.

I'd like a button to appear down by the edit/quote buttons that says gallery if that persons gallery in photopost has any pictures. If it does not have any pictures then the button would not appear. Can anyone remind me how to do this?
Reply With Quote
  #2  
Old 04-29-2005, 11:38 PM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?goto=newpost&t=73040" target="_blank">https://vborg.vbsupport.ru/showt...ewpost&t=73040</a>
Reply With Quote
  #3  
Old 04-30-2005, 12:29 AM
larryd larryd is offline
 
Join Date: Nov 2001
Location: Newark, DE
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Though useful that is not what I'm looking for. I just want users to have a gallery image on the showthread I guess in postbit that would open up another window with that users gallery.
Reply With Quote
  #4  
Old 04-30-2005, 02:07 AM
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Location: New York City
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by larryd
Though useful that is not what I'm looking for. I just want users to have a gallery image on the showthread I guess in postbit that would open up another window with that users gallery.
Do you mean like these? (see attachments). I have links to the users photo gallery in the postbit member drop down menu (with lastest photo), and the member profile info, with user select in the UserCP - options.
If you want to know how, just post here. The one for the lastest photo in the postbit is a hack from here or from the devs at Photopost. I forget which right now. I'll have to find it.

The link to the gallery is done with creating custom profile fields, and then adding the appropiate conditional in the postbit and memberinfo templates along with the proper url code to link it to the user's photo gallery. If you wanted the link to be where the 'Edit' buttons, etc are, that's no problem. It's just a matter of where you place the conditional and you could use an image for the link instead of a text link.

John

PS; If you want to see the real thing, go to this thread and use this members' drop down menu.
Attached Images
File Type: gif Screen001.GIF (56.0 KB, 0 views)
File Type: gif Screen002.GIF (38.4 KB, 0 views)
File Type: gif Screen003.GIF (12.4 KB, 0 views)
Reply With Quote
  #5  
Old 04-30-2005, 02:19 AM
larryd larryd is offline
 
Join Date: Nov 2001
Location: Newark, DE
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats actually really nice. It would do the job; the only difference is I'd prefer for it to be on the bar where edit/reply etc etc is. That way the person browsing can see wether or not the user they are viewing a post from has a gallery or not without hitting the drop down.
Reply With Quote
  #6  
Old 04-30-2005, 10:58 AM
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Location: New York City
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by larryd
Thats actually really nice. It would do the job; the only difference is I'd prefer for it to be on the bar where edit/reply etc etc is. That way the person browsing can see wether or not the user they are viewing a post from has a gallery or not without hitting the drop down.
Like this? See this thread again.

Here's how:
In the User Profile Field Manager:
Create a New User Profile field - Profile Field Type - Multiple-Selection Checkbox
With these attributes:
1 - Title - Show Link to Photo Gallery
2 - Description - Checking this box will show a link to your Photo Gallery in postview.
3 - Limit Selection - 2
4 - Boxes Per Line - 1
5 - Options (Enter the options that the user can choose from. Separate each option with a new-line (carriage return):
Check Box for Yes
Uncheck for No
6 - Display Order - Your option
7 - Field Required - No
8 - Field Editable by User - Yes
9 - Private Field - No
10 - Field Searchable on Members List - No
11 - Show on Members List - Your Option (I have No. Takes up too much space.
And you'll have to edit the memberlist template to add it anyway)
12 - Display Page - Which page displays this option? - Options:Other

Save and make note of the field number. Replace x below with this new field number.
User can select the Yes/No option in their UserCP under 'Edit Options'
And you, as Admin, can check it off in a members Profile in the 'Users' control panel.
If the Box is Checked, then the if conditional $post['fieldx'] is true, and the link is displayed.

Edit the postbit template (backup,backup,backup!!):
Find -
HTML Code:
<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
Add Above (x being the number of the field you created above. target="_blank" your choice. Edit the name of your photopost directory.) -
HTML Code:
<if condition="$post['fieldx']">
<a target="_blank" href="/directory_name_of_your_photopost/showgallery.php?cat=500&ppuser=$userinfo[userid]"><img src="$stylevar[imgdir_button]/gallery.gif" alt="View this Members' Photo Gallery" border="0" /></a>
</if>
Photopost has a button in it's image folder called - gallery.gif -
Just copy it into the images/buttons/ folder of your forum, or make your own.

John

PS; This is not automatically made true when a user uploads photos. If a user has photos in the gallery, or has just uploaded photos, either they or you will have to - "Check Box for Yes"
Attached Images
File Type: gif Screen001.GIF (86.3 KB, 0 views)
Reply With Quote
  #7  
Old 04-30-2005, 02:52 PM
larryd larryd is offline
 
Join Date: Nov 2001
Location: Newark, DE
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is probably what I will end up doing; thanks for the work. Just one question... Is there any way to Vbulletin to automatically know wether or not the user has images uploaded to the gallery in Photo Post?

I wrote my own script back in VB2 but if I recall I think I added a column to the table that designated wether or not the user had photos based upon an action they did in Photopost.
Reply With Quote
  #8  
Old 05-14-2005, 01:55 PM
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Location: New York City
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by larryd
This is probably what I will end up doing; thanks for the work. Just one question... Is there any way to Vbulletin to automatically know wether or not the user has images uploaded to the gallery in Photo Post?
I wrote my own script back in VB2 but if I recall I think I added a column to the table that designated wether or not the user had photos based upon an action they did in Photopost.
Yes. See this Post
Reply With Quote
  #9  
Old 08-17-2005, 11:43 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wirewolf
Do you mean like these? (see attachments). I have links to the users photo gallery in the postbit member drop down menu (with lastest photo), and the member profile info, with user select in the UserCP - options.
If you want to know how, just post here. The one for the lastest photo in the postbit is a hack from here or from the devs at Photopost. I forget which right now. I'll have to find it.

The link to the gallery is done with creating custom profile fields, and then adding the appropiate conditional in the postbit and memberinfo templates along with the proper url code to link it to the user's photo gallery. If you wanted the link to be where the 'Edit' buttons, etc are, that's no problem. It's just a matter of where you place the conditional and you could use an image for the link instead of a text link.

John

PS; If you want to see the real thing, go to this thread and use this members' drop down menu.

CAN YOU SHOW ME HOW TO DO THIS, its just what ive been looking for... PLEASE!! :-)

Peace
Reply With Quote
  #10  
Old 08-18-2005, 02:02 AM
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Location: New York City
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nymyth
CAN YOU SHOW ME HOW TO DO THIS, its just what ive been looking for... PLEASE!! :-)

Peace
Go to this thread and follow the instructions:
https://vborg.vbsupport.ru/showthrea...threadid=81395
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:46 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.05007 seconds
  • Memory Usage 2,290KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete