vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Link In Postbit (based upon profile fields) (https://vborg.vbsupport.ru/showthread.php?t=218293)

Wired1 07-09-2009 10:00 PM

Link In Postbit (based upon profile fields)
 
1 Attachment(s)
Created in a couple of min from a thread request.

Note: Hit INSTALL for support!

Takes two profile fields and creates a link in the postbit of any post a user makes. One field for the URL, another for the name of the link itself. See the attached pic for an example. The link that says location is where you will see the link.

Conditional statement involved so that if the URL field isn't filled in, a dead link won't show up in the postbit.

All you have to do is to edit the Link In Postbit template so that the correct profile fields are referenced.

One template, 2 plugins. The template is cached.

To Install: Upload the Product!

Note: If you want to combine a profile field plus a known URL, change the template to something like this (it will vary depending on your need):

Code:

<if condition="$post['field1']">
        <a href="http://www.google.com/$post[field1]">$post[field2]</a>
</if>


Wired1 07-10-2009 09:33 AM

Reserved for future use.

Qwest 07-10-2009 12:52 PM

Is this usergoup permission based so that we can have members pay a subscription to be able to have a link like this in their postbit?

actiwork 07-10-2009 01:08 PM

could you make a real example?
Thx

jaderollie 07-10-2009 02:37 PM

yes is there an example please???

Wired1 07-10-2009 05:45 PM

Qwest: If you wanted you could just throw another conditional around the template.

actiwork, jaderollie: check the attached pic. It shows what the mod does. If you mean how to change the field numbers, the example's in the top post. Just change the field IDs in the template.

jaderollie 07-10-2009 09:16 PM

Quote:

Originally Posted by Wired1 (Post 1846479)
Qwest: If you wanted you could just throw another conditional around the template.

actiwork, jaderollie: check the attached pic. It shows what the mod does. If you mean how to change the field numbers, the example's in the top post. Just change the field IDs in the template.

thanks im a noob :(
wheres the picture please ??????

oz_girl 07-11-2009 04:36 AM

Reserved

Wired1 07-11-2009 05:26 AM

jade: first post

oz: why would you reserve a post?

thedudleys 07-11-2009 05:58 AM

can you provide the code to make it usergroup based only?


All times are GMT. The time now is 11:29 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.01039 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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