Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Title Rotater Details »»
Title Rotater
Version: 1.2, by Null Parameter Null Parameter is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.3 Rating:
Released: 09-15-2008 Last Update: 09-16-2008 Installs: 23
Uses Plugins
Re-useable Code  
No support by the author.

Title Rotater
--------------------------------------
Created By: Null Parameter

This mod is tested with 3.7.3, but may work with earlier versions.

Please leave any comments, suggestions or bugs.

Description
This mod takes a list of admin defined possible titles and chooses one randomly to be displayed as the page title for FORUMHOME. Both a prefix and postfix can be defined to encapsulate the random title.

You may also use the keyword {username} to specify the current user's name.

See the attached image for the ACP options panel.

Demo
You can see my site use this on FORUMHOME, here:
http://www.xforgery.com/forum/index.php
Refresh it a few times to see different titles.

Although, it doesn't use the postfix option.


Limitations
  • This mod will not work if you have altered the default title in the FORUMHOME or FORUMDISPLAY template, or if a style doesn't use the same format.

    The Title code in FORUMHOME should appear like this:
    Code:
    <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>

    The Title code in FORUMDISPLAY should appear like this:
    Code:
    <title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>

Fixes

* Version 1.2
  • Changed {username} occurences for unregistered users to $vbphrase[guest]
  • Added FORUMDISPLAY capabilities
  • Added Options to enable/disable individually on FORUMHOME & FORUMDISPLAY
  • Reworded a few things

This is the first mod that I decided to make into a releasable form, so I hope you like it.

Show Your Support

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

Comments
  #2  
Old 09-16-2008, 03:08 PM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, might use it
Reply With Quote
  #3  
Old 09-16-2008, 06:34 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this suppose to be what i requested here: https://vborg.vbsupport.ru/showthread.php?t=190365

this is not what i wanted, its close, but no good for what i would like to do.
Reply With Quote
  #4  
Old 09-16-2008, 07:22 PM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GoTTi View Post
is this suppose to be what i requested here: https://vborg.vbsupport.ru/showthread.php?t=190365

this is not what i wanted, its close, but no good for what i would like to do.
No, I wasn't responding to any request. Although, something similar might be done to make a similar affect for forum descriptions.
Reply With Quote
  #5  
Old 09-16-2008, 08:43 PM
Ninja Tom Ninja Tom is offline
 
Join Date: Jun 2008
Location: Virginia
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Null Parameter View Post
No, I wasn't responding to any request. Although, something similar might be done to make a similar affect for forum descriptions.
Liar. You responded to my request, just not formally.
Reply With Quote
  #6  
Old 09-16-2008, 09:25 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a solution to display nothing instead of the "unregistered" username for guests. Just put the if-conditional around the {username}, it must look like this then:

<if condition="$show['member']"> {username} </if>
Reply With Quote
  #7  
Old 09-16-2008, 10:00 PM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerofix View Post
Here's a solution to display nothing instead of the "unregistered" username for guests. Just put the if-conditional around the {username}, it must look like this then:

<if condition="$show['member']"> {username} </if>
I had considered doing that as well, but decided against it because if {username} appeared inside of a sentence then leaving it blank might make the sentence appear funny.

I thought about adding an option to disable the mod for Guests. Think this would be a good idea?
Reply With Quote
  #8  
Old 09-17-2008, 01:18 AM
ahmedeldeep's Avatar
ahmedeldeep ahmedeldeep is offline
 
Join Date: Jun 2007
Location: Egypt
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #9  
Old 09-17-2008, 07:24 AM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't this work?:

Code:
<if condition="$show['member']"> {username} 
<else />
$vbphrase[guest]
</if>
Reply With Quote
  #10  
Old 09-17-2008, 07:27 AM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hahaha COOL mod.

+install.
Reply With Quote
Reply

Thread Tools

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 01:19 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.04521 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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