vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Import unique icon into specific users postbit (https://vborg.vbsupport.ru/showthread.php?t=184771)

TimberFloorAu 07-08-2008 11:21 PM

Import unique icon into specific users postbit
 
Can this be done?

Can we upload an award icon for example: and import it into a specific users postbit , so it shows on their forum posts under their avatar?

We run an awards thing on the site ( actually a few ) and I need to be able to inject a specific icon, for specific users.

Any help muchly appreciated

Ozzy

Dismounted 07-09-2008 05:14 AM

Code:

<if condition="$post['userid'] == X">AWARD FOR USER WITH ID X</if>

TimberFloorAu 07-09-2008 06:59 AM

Quote:

Originally Posted by Dismounted (Post 1570707)
Code:

<if condition="$post['userid'] == X">AWARD FOR USER WITH ID X</if>

Where should I add this code please?

Opserty 07-09-2008 08:02 AM

AdminCP > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit

TimberFloorAu 07-09-2008 08:09 AM

Quote:

Originally Posted by Opserty (Post 1570820)
AdminCP > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit

You 2 are the bizzness !!

Thanks :)

--------------- Added [DATE]1215643262[/DATE] at [TIME]1215643262[/TIME] ---------------

Doesnt this mean tho.... with say 50 different awards... going on within the site, that the postbit.. is gonna increase by 50 lines of code, for every single post?

TimberFloorAu 07-11-2008 12:00 AM

Bump?

Dismounted 07-11-2008 05:17 AM

Basically, yes. 50 lines of basic comparison code that can be done faster than...well, fast. :)


All times are GMT. The time now is 12:38 AM.

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.02003 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
  • (7)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