vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Looking for a hack... (https://vborg.vbsupport.ru/showthread.php?t=206781)

Eclyps19 02-27-2009 11:17 AM

Looking for a hack...
 
I'm looking for a hack that will do what I need (or something close to it)

When you register on our forums, you can select games you own. I would like a hack that would look at the selection and display the icons of that game under the users avatar.

I would also like a hack that will add an icon under the users avatar depending on what usergroups they are a part of.

I believe I can program this myself in the templates, but I'd much rather use a hack if one is available.

Thanks!

Lynne 02-27-2009 02:52 PM

See Custom Profile Fields for selecting the games. Then there is an Article (do a search in the Articles forum) to show how to display them in the postbit.

For icons based on usergroups, see User Ranks

Eclyps19 02-27-2009 06:07 PM

unfortunately the article you're referring to simply says "I don't recommend it" when talking about what I'm trying to achieve.

Thanks for the tip about ranks though. Wasn't aware you could use images for that

Lynne 02-27-2009 08:41 PM

If you know any php, then you could probably write up some code yourself for the games icons.

Eclyps19 03-02-2009 11:59 AM

unfortunately I can't figure out how to reference each check box within a field. I can reference a field just fine. Any ideas?

Lynne 03-02-2009 02:01 PM

I'm not sure what you mean. If you have having problems with the html, just google "forms html" and you should find several tutorials.

Eclyps19 03-02-2009 02:08 PM

Say I want to reference a profile field that contains a string

<if condition="$post['field1']">

Now lets say field1 actually contains 15 check boxes. I need a function that will look at each check box and see if it's checked. Instead of looking at field1 as a whole, I need to look at all of the parts of field1.

Get it?

Lynne 03-02-2009 02:42 PM

I see what you want, but I don't know how to do that, sorry. I think I saw something over on vb.com that explains how to do that. You should search over there.


All times are GMT. The time now is 04:01 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.01829 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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