vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Custom Postbit Question (https://vborg.vbsupport.ru/showthread.php?t=288455)

GameVB 09-29-2012 08:53 AM

Custom Postbit Question
 
Hey guys well I am getting into Vbulletin skins and Modifications and I have a simple question.

How would I go about making a custom postbit where users can set type in their subject and select from a list of images.

For example:

Sports: https://vborg.vbsupport.ru/external/2012/09/7.png Football

kh99 09-29-2012 12:42 PM

I'm not sure what you mean - do you want users to be able to type in a subject in the postbit? What you can do is create a custom profile fields that allow a user to select a sport, for instance, then use the values of those field in the postbit template to decide what image to display (or create a plugin that decides and sets a varibale that's used in the postbit template).

GameVB 09-29-2012 06:02 PM

Quote:

Originally Posted by kh99 (Post 2369465)
I'm not sure what you mean - do you want users to be able to type in a subject in the postbit? What you can do is create a custom profile fields that allow a user to select a sport, for instance, then use the values of those field in the postbit template to decide what image to display (or create a plugin that decides and sets a varibale that's used in the postbit template).

Yes that is what I wand =D

Sorry for any missunderstandings

kh99 09-29-2012 08:27 PM

I'm still not sure I understand, but: here's a mod that lets you select a country and displays the flag in the postbit: www.vbulletin.org/forum/showthread.php?t=229511

You could modify that to do what you want. Instead of pasting the options file in the Options box when creating the custom profile field, enter your sport options. Then you just need images named the same as the options (instead of the flag images that come with the mod), for instance, Football.gif, Baseball.gif, etc. Anyway, I hope that makes sense.

GameVB 09-29-2012 11:39 PM

Quote:

Originally Posted by kh99 (Post 2369611)
I'm still not sure I understand, but: here's a mod that lets you select a country and displays the flag in the postbit: www.vbulletin.org/forum/showthread.php?t=229511

You could modify that to do what you want. Instead of pasting the options file in the Options box when creating the custom profile field, enter your sport options. Then you just need images named the same as the options (instead of the flag images that come with the mod), for instance, Football.gif, Baseball.gif, etc. Anyway, I hope that makes sense.

Thanks a lot man.

I actually plan on reading the mod from top to bottom to understand how it works.


All times are GMT. The time now is 01:12 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.00991 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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