vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   VBGallery Userid code (https://vborg.vbsupport.ru/showthread.php?t=122516)

futuredood 07-29-2006 10:30 PM

VBGallery Userid code
 
I would've put this in the Photopost forums, but nobody seems to reply over their. I'm trying to do some custom coding for the template, and I can't seem to call the $userinfo[userid] anywhere in the template. I've tried $cats[userid], $post[userid], etc. but can't seem to get it.

Does anyone know how to call it? Thanks in advance.

Freesteyelz 07-29-2006 10:49 PM

I haven't tried a template conditional but in uploadphoto.php I used:

Code:

$User['userid']
To call UserIDs. I did post a hack in PhotoPost to allow only selected users (via Userid) to upload multimedia files but no one replied. :D

futuredood 07-29-2006 11:03 PM

Quote:

Originally Posted by Freesteyelz
I haven't tried a template conditional but in uploadphoto.php I used:

Code:

$User['userid']
To call UserIDs. I did post a hack in PhotoPost to allow only selected users (via Userid) to upload multimedia files but no one replied. :D

Hmm I'm looking for the template file mainly, thanks though.

Freesteyelz 07-30-2006 03:36 AM

That's basically the same code you'd use in the templates. I'm not exactly sure what you're trying to call but if you go to showproduct.tmpl and in the comment codes add the above code it will display the user's ID #.

futuredood 08-02-2006 10:48 AM

Quote:

Originally Posted by Freesteyelz
That's basically the same code you'd use in the templates. I'm not exactly sure what you're trying to call but if you go to showproduct.tmpl and in the comment codes add the above code it will display the user's ID #.

I'm not sure if you're using the same VBGallery b/c their isn't any shotproduct.tmpl. In the browseimage template, I'm trying to call the $user[userid] function to convert the drop down sort fields into links users can click. I can't seem to get the userid to show up for some reason, links only show up as u="blank" even though I put u=$user[userid].

Am I doing something wrong?

Freesteyelz 08-02-2006 11:16 PM

Ahh...I am using PhotoPost Pro. I should have read your title better. Sorry about that. :)


All times are GMT. The time now is 07:15 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.01800 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete