vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Web Browser of Choice - In Postbit (https://vborg.vbsupport.ru/showthread.php?t=175406)

PoetJA-1975 04-06-2008 10:00 PM

Web Browser of Choice - In Postbit
 
Howdy hi - This is a simple template modification that will show your Members' browser of choice in their postbit... The choices (matching images included) I have included are Internet Explorer, Konqueror, Netscape, Mozilla, Firefox, Safari, Camino, Opera & Flock web browsers. Of course there is the option to select "Other" as well.

This simple mod should be able to work with any of the 3.x series vBulletin....

https://vborg.vbsupport.ru/external/2008/12/94.jpg

INSTRUCTIONS ----------------

### Step 1 ###

Upload the included "browser" folder to your forum images folder
** Don't change the image file names **


### Step 2 ###

Create a new custom profile field:
AdminCP --> User Profile Fields --> Add New User Profile Field
Select Single-Selection Menu...


Fill in the following options:
  • Title: Web Browser of Choice

  • Description: Please select the browser you most surf the internet with (aka your web browser of choice).

  • Options: (List below - One option per line - Order doesn't matter)
    Internet Explorer
    Konqueror
    Netscape
    Mozilla
    Firefox
    Safari
    Camino
    Opera
    Flock
    Other
  • Set Default: Yes - but No First Blank Option

  • Field Editable by User: Yes

  • Allow user to input their own value for this option: No

  • Which page displays this option? Edit Profile

Click the save button.


### Step 3 ###

Edit your postbit and/or postbit_legacy template:
AdminCP --> Style Manager --> (select your style) Edit Templates --> Postbit Templates --> postbit OR postbit_legacy

Find:
HTML Code:

<div>
$vbphrase[posts]: $post[posts]
</div>


Underneath - Add:
HTML Code:

<if condition="$post[fieldX]">
<div>$post[username] Surfs The Web With: <img src="images/browser/$post[fieldX].gif" align="middle" title="$post[username] Surfs With The $post[fieldX] Web Browser." width="17" height="15" border="0"></div>
</if>

** Be sure to fill in the [fieldX] with the field number of your newly created profile field - for instance if the profile field name is field17 - Then the above code would include $post[field17] for each time it appears **

-----------------------------------
-----------------------------------
THAT'S IT = Enjoy!

Jacquii Cooke,
Webmistress of Poetry in Color Forum
http://JPiCForum.info

PoetJA-1975 04-07-2008 07:27 AM

I like it = 1st post reserved :D

Jacquii.

TTG 04-07-2008 12:00 PM

Installed and working on 3.7.0 :up:

PoetJA-1975 04-07-2008 05:49 PM

Wonderful! Glad you like ;)

Jacquii.

PoetJA-1975 04-09-2008 09:30 AM

Oops - forgot to include the Safari.gif image - I attached it to the 1st post - so you can just save it to your local computer as Safari.gif (capital "S") and upload it to the images/browser folder.

JAcquii.


All times are GMT. The time now is 06:50 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.01144 seconds
  • Memory Usage 1,725KB
  • 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_html_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