Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 03-12-2004, 07:19 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PAINTBALLM
any chance of getting more in depth so if that user has their own gallery, it shows a "Gallery" button in their postbit
Easy, it would be SQL. Just check against the cpg11d_albums table for the userid, if it exists, he has an album. If not.. well, he doesn't.

I can write this out later, I'm getting ready to take off from work.
Reply With Quote
  #22  
Old 03-12-2004, 07:39 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So if I understand this correctly its Catagories first then Albums, right? ugh! We need each user to have thier own gallery and it would be a plus if they could put thier own work into thier own catagories though I guess at this junction that may not be too big a deal. I may try out gallery and work on intergrating that instead.

edit: let me clarify this by saying that I am looking for a nice easy way to pull up a users gallery which I don't think coppermine is capable of as it currently stands. :ermm:

As for showing a gallery button in the postbit, I was thinking of having a secondary usergroup for gallery users and using a bit of php in the template to show the link for anyone in that usergroup. The users album can be made to correspond with their member ID's so the link in the post bit should be a fairly simple thing that way.
Reply With Quote
  #23  
Old 03-12-2004, 08:38 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reeve of shinra
So if I understand this correctly its Catagories first then Albums, right? ugh! We need each user to have thier own gallery and it would be a plus if they could put thier own work into thier own catagories though I guess at this junction that may not be too big a deal. I may try out gallery and work on intergrating that instead.

edit: let me clarify this by saying that I am looking for a nice easy way to pull up a users gallery which I don't think coppermine is capable of as it currently stands. :ermm:

As for showing a gallery button in the postbit, I was thinking of having a secondary usergroup for gallery users and using a bit of php in the template to show the link for anyone in that usergroup. The users album can be made to correspond with their member ID's so the link in the post bit should be a fairly simple thing that way.
Of course you can pull up a users gallery easily. For instance, on my forum you can access a gallery via http://www.mysite.com/gallery/users?username

It doesn't get much easier than that.

Also, the vBulletin -> Coppermine bridge already synchronizes albums with userid. All the groundwork is layed, you just need to grab it from the SQL DB.
Reply With Quote
  #24  
Old 03-12-2004, 09:36 PM
PAINTBALLM's Avatar
PAINTBALLM PAINTBALLM is offline
 
Join Date: Oct 2003
Location: Orlando, FL
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could someone give us info on how to do the navbar and header & footer so it works 100% with vbulletins templates..
Reply With Quote
  #25  
Old 03-12-2004, 10:40 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PAINTBALLM
could someone give us info on how to do the navbar and header & footer so it works 100% with vbulletins templates..
It's a minor pain in the butt. You need to copy the login code from the vB template and apply it in the coppermine template and tweak it yourself. It's not going to be the same for everyone. See mine @ http://www.sffba.net/gallery/
Reply With Quote
  #26  
Old 03-12-2004, 10:59 PM
PAINTBALLM's Avatar
PAINTBALLM PAINTBALLM is offline
 
Join Date: Oct 2003
Location: Orlando, FL
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok w/e so your saying, copy the same code that calls the header and footer, global, and navbar in index.php into the gallery php files... and i should be good to go? As long as i change the path so it can work in a different directory?
Reply With Quote
  #27  
Old 03-18-2004, 08:55 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mangus - could you give me step by step of how to make my coppermine look like my vb -- as you did? Im still green at all this........ and skinning coppermine is a bit beyond my abilities yet --- I just figured out how to add something to the navbar LOL
Reply With Quote
  #28  
Old 03-31-2004, 01:53 AM
WreckRman2 WreckRman2 is offline
 
Join Date: Dec 2001
Location: Indianapolis, IN
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

magnus, any news on an update? Your site looks best by far.

BTW, did you get the gallery/users?username hack off the Coppermind forums? I wrote that little script.
Reply With Quote
  #29  
Old 04-04-2004, 11:18 PM
www.alfisti.net www.alfisti.net is offline
 
Join Date: Dec 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ciao,

a little bit offtopic...

I use the following link in postbit:
<a href="/gallery/thumbnails.php?album=lastupby&uid=$post[userid]"><img src="gallerypic.gif" border="0" alt="Gallerypictures of $post[username]"> $post[username]?s Gallery</a>

I want to display the link only for user who have uploaded pictures.
But I don?t know how to code a script to use a parameter with the if-clause

the table cpm_pictures has an owner_id field so it can?t be difficult for a programmer
Can somebody help me please?

Thanks
Andr?
Reply With Quote
  #30  
Old 04-04-2004, 11:37 PM
PAINTBALLM's Avatar
PAINTBALLM PAINTBALLM is offline
 
Join Date: Oct 2003
Location: Orlando, FL
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if coppermine was fully integrated an IF statement would work.
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 10:27 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.03900 seconds
  • Memory Usage 2,270KB
  • 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
  • (3)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
  • (3)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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete