Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2008, 09:42 AM
ray- ray- is offline
 
Join Date: Dec 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 11-27-2008, 09:49 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 11-27-2008, 10:50 AM
ray- ray- is offline
 
Join Date: Dec 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm, that's pretty easy.
Thanks for the help!
Reply With Quote
  #4  
Old 12-05-2008, 09:45 PM
ray- ray- is offline
 
Join Date: Dec 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 12-05-2008, 10:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$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.
Reply With Quote
  #6  
Old 12-06-2008, 08:38 AM
ray- ray- is offline
 
Join Date: Dec 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, $post did the job.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47 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.05091 seconds
  • Memory Usage 2,203KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete