vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - [vBD]-Facebook Bar..!! (https://vborg.vbsupport.ru/showthread.php?t=217585)

Shevko 08-24-2009 07:28 PM

Hmm Its Good :)

But Dnt Like Facebook :)

jambo_1969 08-25-2009 08:09 AM

Quote:

Originally Posted by gr8whtd0pe (Post 1873595)
Good basic script once I cleaned up the code, CSS and made it able to be hidden by the user in the USER CP.

Good job!

All this is people are <div> tags with stuff in them, you can put what ever you want in them.

http://www.wvmotorsports.com you have to be a member to see it though...

EDIT: test account:
User: Test
Pass: vbulletin

Can you share ?

gr8whtd0pe 08-25-2009 12:52 PM

Sure!

Go to your admincp and add a new user profile field.

Kind: Single-Selection Radio Buttons
Title: Floating Bar
Description: Choose to hide or show the bar that floats at the bottom of the screen here.<a id="bar" name="bar"></a> (- that part will come in handy later)
Options: Show(press enter)Hide
Field Required: Yes, Always
Editable then no, no, no.

I put it under Options: other for display page.

The code:
Code:

<if condition="$bbuserinfo[userid]">
<if condition="$vbulletin->userinfo['fieldX'] == Hide">
<else />
<!--[if lte IE 6]>
<![endif]-->
<br /><br />
His <div> tags go here...
</if>
</if>

Several things happen there, if they choose Hide, it doesn't show anything, if its IE6 it hides, because IE6 does not display it correctly. If its show and not IE6 it adds spaces to the bottom of the footer and prints the bar. For that part to work I put it between:

Code:

</form>
and
Code:

<if condition="$show['dst_correction']">
Then all you have to do is add a link on there somewhere pointing to: profile.php?do=editoptions#bar

questions?

Quote:

Originally Posted by Shevko (Post 1873628)
Hmm Its Good :)

But Dnt Like Facebook :)

Huh? Was that for me?

jambo_1969 08-25-2009 03:25 PM

Cheers for that mate - perfect !

jambo_1969 08-25-2009 03:39 PM

[edit] - works like a charm.

Template edit required is in the footer template (obviously)....

Thanks again

gr8whtd0pe 08-25-2009 03:42 PM

Quote:

Originally Posted by jambo_1969 (Post 1874145)
[edit] - works like a charm.

Template edit required is in the footer template (obviously)....

Thanks again

Yeah lol, if you dont want to put it where I did, just get rid of the <br>'s in the code and put it where ever.

Gald it works for ya though. :up:

BiZiMDiYaR 08-25-2009 10:11 PM

Quote:

Originally Posted by gr8whtd0pe (Post 1874047)
Sure!

Go to your admincp and add a new user profile field.

Kind: Single-Selection Radio Buttons
Title: Floating Bar
Description: Choose to hide or show the bar that floats at the bottom of the screen here.<a id="bar" name="bar"></a> (- that part will come in handy later)
Options: Show(press enter)Hide
Field Required: Yes, Always
Editable then no, no, no.

I put it under Options: other for display page.

The code:
Code:

<if condition="$bbuserinfo[userid]">
<if condition="$vbulletin->userinfo['fieldX'] == Hide">
<else />
<!--[if lte IE 6]>
<![endif]-->
<br /><br />
His <div> tags go here...
</if>
</if>

Several things happen there, if they choose Hide, it doesn't show anything, if its IE6 it hides, because IE6 does not display it correctly. If its show and not IE6 it adds spaces to the bottom of the footer and prints the bar. For that part to work I put it between:

Code:

</form>
and
Code:

<if condition="$show['dst_correction']">
Then all you have to do is add a link on there somewhere pointing to: profile.php?do=editoptions#bar

questions?



Huh? Was that for me?

Hi,

I think this should be added to the normal code, as the HIDE part is something some users want.. so should be added but the threadowner, of course with permission :-)
But I have another problem, where is the CSS ? I don't see any additional css... I onyl see editor css, is this the one to add the code ? Could you please mentioned the correct place for this.

Thanks.


Merhaba,

Su yukardaki adamin yazdigi bence coda eklenmesi lazim, gizlenmesi bence cok kisinin istedigi birseydir, coduna ekle adamin iziniyle :).
Benim ama baska sorunum vardi... su CSS nerde ? bende aditional css yok, tek editor css var... oraya mi eklencek bu cod.. ? Tam yeri soylermisin ?


Saygilarimla,

Toshifira 08-26-2009 03:40 AM

Wow, nice modifications, thanks :]

Shevko 08-26-2009 06:54 AM

Ok I Add This Options Other Version..

Please Click Mark As Installed..

gr8whtd0pe 08-26-2009 03:49 PM

Quote:

Originally Posted by BiZiMDiYaR (Post 1874411)
Hi,
But I have another problem, where is the CSS ? I don't see any additional css... I onyl see editor css, is this the one to add the code ? Could you please mentioned the correct place for this.

There is no additional CSS...

All you do to add this is create the user field and replace
Code:

<if condition="$bbuserinfo[userid]">
With:
Code:

<if condition="$bbuserinfo[userid]">
<if condition="$vbulletin->userinfo['fieldX'] == Hide">
<else />
<!--[if lte IE 6]>
<![endif]-->
<br /><br />

then replace:
Code:

<!-- Shevko Facebook BAR -->
<else />
</if>

With:
Code:

</if>
</if>

That's it.


All times are GMT. The time now is 08:59 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.01171 seconds
  • Memory Usage 1,749KB
  • 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
  • (10)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete