vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Browsers List (https://vborg.vbsupport.ru/showthread.php?t=131221)

napukjon 11-09-2006 10:00 PM

Browsers List
 
What does this do?
This will add a dropdown to your profile with a list of different browsers for people choose from, to say which one there using to browse the web.

Once selected in your profile it will then display the image for the browser in your postbit(_legacy). :)

Known Bugs
N/A

As far as im aware this would work in both 3.5 and 3.6. If someone can test3.5 for me that would be great thanks.

I know it works properly in 3.6 because thats what im using :cool:

Enjoy!!! and dont forget to press install!!! :D

Neo_Angelo 11-10-2006 07:05 PM

thats an awsome hack. very useful for us admins. thanks a lot ^_^ *Neo clicks install*

EDIT: where do we put the code for the images to show up next to the username in postbit_legacy?

da420 11-10-2006 07:47 PM

Quote:

Originally Posted by Neo_Angelo
thats an awsome hack. very useful for us admins. thanks a lot ^_^ *Neo clicks install*

EDIT: where do we put the code for the images to show up next to the username in postbit_legacy?

If ya read the install txt file you'd have seen this instruction. ;)

Quote:

Find:
Code:

$post[iplogged]
                 
        </td>

(If you cant find this, just search for $post[iplogged])


Add Before the next </td>:
Code:

<img src="/images/browsers/$post[fieldx].png" alt="$post[fieldx]" />



x being the number of the field you just created for the browsers drop down.

Neo_Angelo 11-10-2006 08:10 PM

no i meant where in the postbit_legacy do i add this code to make the image appear next to the username instead of next to IP log?

i want it to be like this:

Neo_Angelo(web browser image here)

instead of:

on|Rep|IP|(browser image)

bolly.beats 11-10-2006 08:28 PM

U told

2. Go into ACP and create a new profile field > Single Selection Menu.
Then enter the following information:

Where is the option for Creating new profile field. :-ss

akanevsky 11-10-2006 09:14 PM

How about making it detect the browser automatically?

da420 11-10-2006 09:55 PM

Quote:

Originally Posted by Psionic Vision
How about making it detect the browser automatically?

I would definately install it if it did that. ;)

napukjon 11-10-2006 11:18 PM

If i had the knowledge i would think about doing that deffinetly. Something to deffinetly look into. Cheers Guys.

And if you would like to it appear next to your username simply:

Find:
Code:

                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
Add after:
Code:

&nbsp;<img src="/images/browsers/$post[fieldx].png" alt="$post[fieldx]" />
Changing the x's for the field number

napukjon 11-10-2006 11:23 PM

Quote:

Originally Posted by bolly.beats
U told

2. Go into ACP and create a new profile field > Single Selection Menu.
Then enter the following information:

Where is the option for Creating new profile field. :-ss


In your ACP there should be a menu for profile fields. Its where your user management is. Click on it, and select new profile field....etc etc

Stromba 11-11-2006 07:58 AM

Great hack.. Well done and thanks for share it with use

bolly.beats 11-11-2006 09:13 AM

Quote:

Originally Posted by napukjon
In your ACP there should be a menu for profile fields. Its where your user management is. Click on it, and select new profile field....etc etc

Thanks a lot bro:)

napukjon 11-11-2006 10:02 AM

No probs. Enjoy!

Garyk 11-19-2006 03:36 PM

ok im a little confused with this is the x a value that we are supposed to replace and if so what do i replace it with

MThornback 11-19-2006 09:02 PM

you should add

Code:

<if condition="$post[fieldxx]">

</if>

around your code so it doesn't show up as a broken image for people who haven't selected it.

Bison 11-23-2006 02:51 PM

Would be a great hack if it detected the browser automatically ...


All times are GMT. The time now is 09:49 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.01185 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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