vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Halfway done but, post specific mood avatars? (https://vborg.vbsupport.ru/showthread.php?t=75836)

WhisperPntr 02-06-2005 03:03 PM

Halfway done but, post specific mood avatars?
 
1 Attachment(s)
just wondering if any of you requesters are interested in post specific mood avatars.

It's a bit hard to explain this without including the said screenshots but think of a livejournal mood icon and having that per comment on vbulletin :)

I need to learn more about what is efficient vbulletin/php/sql coding as well as get down the aesthetics. But I think with some help from the intelligent and giving coders that are on here, I will come up to speed.


Lastly, if the user has an image there is a query sent to a table called usermoods. I am looking to incorporate a queryless system that uses username written files to store and read from the url links. is this a viable solution or even worse?

Here are some screens and if you have any advice to give I'd love to hear it.
Thank you!

tehste 02-06-2005 03:52 PM

This can be done by creating a custom profile field (and no queries)
you would upload mood images to images/mood/
and say for an example you had: happy.gif, sad.gif, ill.gif you would create a dropdown field with the values: "happy, sad, ill"
the field will bee called fieldX (eg: field28) and can be displayed using: $bbuserinfo[fieldX] ($bbuserinfo[field28])

so to display the image in the postbit add this to the template:
Code:

<if condition="$post[field28]">
<img src="images/mood/$post[field28].gif" alt="$post[field28]">
</if>

($post[field28] may need changing to whatever field number)

etc... simple way to do what you want...


All times are GMT. The time now is 11:57 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.00925 seconds
  • Memory Usage 1,708KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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