vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Postbit - Adding Image/Awares to specific Users (https://vborg.vbsupport.ru/showthread.php?t=217266)

Fulla 06-27-2009 02:39 PM

Postbit - Adding Image/Awares to specific Users
 
I'm attempting to add an Award Image for a User who won a contest on my forum.
I've played around with postbit a little in the past & read quite a few tuts, so have a basic grasp of how it works.

Here's the current code I came up with, hoping I can get some help to complete it.
Is $username correct? Is this best way to insert an image?
Code:

<if condition="$username['Maledict Dominus']">
<div>
<a href="(Link to Contest Thread)"> <img src="(Link to Image)" border="0"/ ></a>
</div>
</if>

Here is an example, the dice image is an award icon, you can click on it, to be directed to the contest itself:
https://vborg.vbsupport.ru/external/2009/06/11.jpg

Thx for any help.

DragonBlade 06-27-2009 02:57 PM

Code:

<if condition="$username['Maledict Dominus']">
Should be
Code:

<if condition="$post['username']  == 'Maledict Dominus'">
if its in the postbit. :3

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

Oh, also...
Code:

<img src="(Link to Image)" border="0"/ >
Switch the spacing at the end around a bit...
Code:

<img src="(Link to Image)" border="0" />
Not really sure if that will AFFECT anything, but I hate seeing it the former way. I will hurt you if you don't change it.

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

One MORE thing... You're probably well aware of this one, though, if you're adept at HTML. Add a title="(This Text Will Appear when Hovering Over The Award)" in the Image bit to get a bit more fancy. :3

Fulla 06-27-2009 03:24 PM

Thx alot for help. I tried the following, but nothing happened at all!?!

Code:

<if condition="$post['username']  == 'Maledict Dominus'">
<div>
<a href="http://gamingcraft.net/forum/showthread.php?t=205"> <img src="http://www.gamingcraft.net/awards/diablo.jpg" border="0" /></a>
</div>
</if>

EDIT: Woops spelt name incorrectly, works fine now.

How do I add that title in sorry?

DragonBlade 06-27-2009 03:27 PM

Code:

<img src="http://www.gamingcraft.net/awards/diablo.jpg" border="0" title="Whatever you want to put in the title" />
And great. :3


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