vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Title Rotater (https://vborg.vbsupport.ru/showthread.php?t=191055)

Null Parameter 09-15-2008 10:00 PM

Title Rotater
 
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.

M-Tuning 09-16-2008 03:08 PM

Nice idea, might use it :D

GoTTi 09-16-2008 06:34 PM

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.

Null Parameter 09-16-2008 07:22 PM

Quote:

Originally Posted by GoTTi (Post 1623546)
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.

Ninja Tom 09-16-2008 08:43 PM

Quote:

Originally Posted by Null Parameter (Post 1623586)
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. :D

nerofix 09-16-2008 09:25 PM

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>

Null Parameter 09-16-2008 10:00 PM

Quote:

Originally Posted by nerofix (Post 1623668)
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?

ahmedeldeep 09-17-2008 01:18 AM

thank you

M-Tuning 09-17-2008 07:24 AM

Doesn't this work?:

Code:

<if condition="$show['member']"> {username}
<else />
$vbphrase[guest]
</if>


murekhalir 09-17-2008 07:27 AM

hahaha COOL mod.

+install.


All times are GMT. The time now is 08:51 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.01937 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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