vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Link to topic in profile/postbit? (https://vborg.vbsupport.ru/showthread.php?t=197370)

ray- 11-27-2008 09:42 AM

Link to topic in profile/postbit?
 
I'm wondering if there's any mod available where a link in the postbit will appear, when the user has a thread in a specific forum.

Probably not clear enough, so
here's an example I found.
When a user has a thread in the forum called 'progress blog', a link to that thread is added in the user's postbit (progress blog)
As you can see, alanandlexie has a thread in the progress blogs, Lil_paul doesn't.
Don't know if it's being hard coded over there, but I guess not.

Any ideas?

SEOvB 11-27-2008 09:49 AM

Thats usually done by allowing users to enter a threadid into a custom profile field then checking if it exists in the postbit

<if condition="$post[fieldX]">
<a href="showthread.php?t=$post[fieldX]">Custom Text</a>
</if>

ray- 11-27-2008 10:50 AM

Hm, that's pretty easy.
Thanks for the help!

ray- 12-05-2008 09:45 PM

I got this working:
Code:

<if condition="$post[field5]"><a href="showthread.php?t=$post[field5]"><img class="inlineimg" src="images/xtreme/statusicon/diary.gif" alt="Diary of $post[username]" border="0" /></a></if>
But now I want to show this icon only if that user is in a specific usergroup.
I tried this:
Code:

<if condition="is_member_of($bbuserinfo, 1)">
              <div>
<if condition="$post[field5]"><a href="showthread.php?t=$post[field5]"><img class="inlineimg" src="images/xtreme/statusicon/diary.gif" alt="Diary of $post[username]" border="0" /></a></if>
              </div>
</if>

But that doesn't work.
I've searched the forums, but it looks like using ' <if condition="is_member_of($bbuserinfo, 1)">' is the only way to do this. What am I doing wrong here?

Lynne 12-05-2008 10:22 PM

$bbuserinfo is for you, the viewer. If you are wanting to use the condition based on the person who's profile, or post, you are viewing, you would use $userinfo or $post, respectively.

ray- 12-06-2008 08:38 AM

Thanks, $post did the job.


All times are GMT. The time now is 01:07 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.00976 seconds
  • Memory Usage 1,720KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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