vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forum Skin in Profile (https://vborg.vbsupport.ru/showthread.php?t=92512)

Dream 07-18-2005 10:00 PM

Forum Skin in Profile
 
This adds which style the member is using to browse the forums in his profile.

It will only get styles chosen in the UserCP. The "quick style chooser" saves the style in cookies, so its impossible to get it.

It adds a query to member.php.

Installation
- Install "Forum Skin in Profile 0.2.xml" plugin
- Edit MEMBERINFO template

find

Code:

                        <if condition="$show['usernotes']">
add before

Code:

                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        Forum Skin: $userstyle
                                </div>
                        </div>

Change to "Style" if you dont like calling it a "Forum Skin".


plugin "Forum Skin in Profile 0.2" in "member_complete"

PHP Code:

if ($userinfo['styleid'] != 0) {
$title $db->query_first("SELECT title FROM ".TABLE_PREFIX."style WHERE styleid = ".$userinfo['styleid']);
$userstyle '<a href="index.php?styleid='.$userinfo['styleid'].'">';
$userstyle .= $title['title'];
$userstyle .= '</a>';
} else {
$userstyle '<em>default</em>';



Allan 07-19-2005 09:23 PM

screen please :)

Dream 07-19-2005 10:11 PM

when I saw your name in last post I knew the message :)

Allan 07-19-2005 10:20 PM

Quote:

Originally Posted by Dream
when I saw your name in last post I knew the message :)

lol :p

H?h?, the problem is that often converters do not put a screen, but for the foreign languages as mine, it is sometimes difficult to understand some hack without screen, thank you for your understanding Dream ;)

Dream 07-19-2005 10:25 PM

small update to do the query just when needed

no problem, added a screenshot

Allan 07-19-2005 10:28 PM

Quote:

Originally Posted by Dream
small update to do the query just when needed

no problem, added a screenshot

thanks ;)

FleaBag 07-31-2005 02:00 PM

I installed in RC1, it's just showing 'default' whichever skin I choose [as admin] - it seems to work for regular users.

Dream 08-01-2005 01:52 AM

Quote:

Originally Posted by FleaBag
I installed in RC1, it's just showing 'default' whichever skin I choose [as admin] - it seems to work for regular users.

you have to choose the skin in your usercp, choosing the style with the quick style chooser doesnt work, as stated in the first post.

FleaBag 08-01-2005 09:56 AM

Ah right, thanks. I didn't even know you could choose it in the UserCP.

csidlernet 10-05-2005 03:08 AM

/me installs


All times are GMT. The time now is 04:46 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.01441 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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