Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Personalized/Gag Threads, Posts, and Signatures (Beta 1) Details »»
Personalized/Gag Threads, Posts, and Signatures (Beta 1)
Version: 1.0.4, by Kaezul Kaezul is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.0 Rating:
Released: 08-06-2006 Last Update: 08-08-2006 Installs: 64
Uses Plugins
Is in Beta Stage  
No support by the author.

Personalized/Gag Threads, Posts, and Signatures
As requested in this thread

Demo here (Must register or login with test/test)
(Note: Please don't change the test account. It's annoying.)

What this addon does:

This addon allows your users to use replacement variables in their posts and signatures which will substitute the viewer's information for the variable, in order to make the viewer of the post think that it's addressed specifically to them.

For example, you are viewing a post/signature and your username is Joe.
If the post/signature (or the post title) contains the text {username}, it will be replaced with Joe, but only for the viewer.

The only problem I have run into is with unregistered members - their info will not display correctly, if at all. I'm not quite sure how to go about remedying this problem just yet. I'm open to suggestions.

This addon will operate on who's online, the navbar, search results, forum display, thread listing, profiles, and single posts. If you are using a third-party addon like vBAdvanced CMPS, the variables will not parse correctly in those addons. Provided that this addon is successful, I may release updated versions to include major products like vBAdvanced and Top X Stats.

I have provided an AdminCP vBulletin Options group to edit which variables can be parsed (see attachment).

Please note that this is only a test. In no way is this hack fully polished and completed.

Here are testing screenshots of the variables, and the result.






You may use this addon however you see fit. If you do decide to use it, you have permission to modify it in any way you see fit - just be sure to provide credit where it's due.

If you have any suggestions, questions, comments, etc, please post them here.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-17-2011, 01:12 PM
Zylantex Zylantex is offline
 
Join Date: Sep 2009
Location: France
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to get this to work in a thread title?
Such as "Welcome {username} to the forum".
Reply With Quote
  #43  
Old 03-30-2011, 07:47 AM
nofxpunkerbrian nofxpunkerbrian is offline
 
Join Date: Aug 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I recieve this error when searching for new posts using this addition:

Warning: Invalid argument supplied for foreach() in [path]/packages/vbforum/search/result/thread.php(193) : eval()'d code on line 1
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 06:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03620 seconds
  • Memory Usage 2,214KB
  • Queries Executed 17 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete