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)
-   -   Own Threads/Posts/Profile Link in UserCP (https://vborg.vbsupport.ru/showthread.php?t=103248)

sinan318 01-03-2006 08:39 PM

Thanks. nice and easy! :)

Toky0 02-05-2006 11:46 PM

/me clicks install.

This is pretty cool, thanks!

Nathan2006 03-29-2006 12:13 PM

That's a lot simpler for members now

Thank you:D

Install

Borgs8472 03-30-2006 01:00 AM

I've changed this from a template hack to a plugin. (Because I'm calling the little template elsewhere too now).

Possibly easier to manage in upgrades etc.

bada_bing 03-30-2006 02:46 AM

I like this but is there a way so that it only appears for certain usergroups?
Will this work on 3.5.3 ?

Thanks

Borgs8472 03-30-2006 12:29 PM

^ ^
Sure. I'm not making a whole admin interface for this, but if you surround the 'usercp_ownpostsbit' template or the $usercp_ownpostsbit entry with:

<if condition="$bbuserinfo[usergroupid] == X">
$usercp_ownpostsbit
</if>

Where x is the usergroup id. There's a slightly different conditional if you want to define multiple groups.

This works with 3.5.anything

Nathan2006 03-30-2006 09:12 PM

Thank you Borgs8472

For the update its a lot easier now :)

Borgs8472 03-30-2006 09:17 PM

^ ^
I'm glad you think so, cause it was 100 times harder to code! :D

dsotmoon 03-30-2006 10:11 PM

i would love to add this for multiple usergroups, could you give me the conditional you mentioned and a sample of where to add it?

thanks!


Quote:

Originally Posted by Borgs8472
^ ^
Sure. I'm not making a whole admin interface for this, but if you surround the 'usercp_ownpostsbit' template or the $usercp_ownpostsbit entry with:

<if condition="$bbuserinfo[usergroupid] == X">
$usercp_ownpostsbit
</if>

Where x is the usergroup id. There's a slightly different conditional if you want to define multiple groups.

This works with 3.5.anything


Borgs8472 03-30-2006 10:51 PM

Wrap
Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
where X Y and Z are the usergroups you want it to show for around the variable so instead of adding just
$usercp_ownpostsbit
you're adding
Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
$usercp_ownpostsbit
</if>



All times are GMT. The time now is 02:10 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.01173 seconds
  • Memory Usage 1,730KB
  • 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_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