PDA

View Full Version : Miscellaneous Hacks - Title Rotater


Null Parameter
09-15-2008, 10:00 PM
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:
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>


The Title code in FORUMDISPLAY should appear like this:
<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
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
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
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?:

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

murekhalir
09-17-2008, 07:27 AM
hahaha COOL mod.

+install.

Null Parameter
09-17-2008, 11:24 AM
Doesn't this work?:

<if condition="$show['member']"> {username}
<else />
$vbphrase[guest]
</if>
I guess something like that would do the job :p
I'll upload a version with that change later today.

iogames
09-17-2008, 05:28 PM
how can this be used for FORUMDISPLAY?
and how affects SEO?

Null Parameter
09-17-2008, 06:30 PM
how can this be used for FORUMDISPLAY?
and how affects SEO?
I just added into the latest version the ability to apply this to FORUMDISPLAY, it is now an additional option, along with the ability to enable/disable either of the two locations.

And I am not too familiar with how SEO works, so I am unable to comment on this.

iogames
09-17-2008, 08:03 PM
Check this: https://vborg.vbsupport.ru/showthread.php?t=156894

It supposes to be more friendly to search engines, boosting your indexing capabilities

Null Parameter
09-17-2008, 08:27 PM
Check this: https://vborg.vbsupport.ru/showthread.php?t=156894

It supposes to be more friendly to search engines, boosting your indexing capabilities
I still couldn't tell you as I am not really familiar with SEO. I'm not sure how much the title of a page plays into optimization for search engines. Although, I know that there are main stream sites (http://www.bungie.net) that do something similar to this.

jonbaker
11-17-2008, 08:03 PM
okay, does the "demo" still work? maybe i am jsut not knowledgeable in this.

does this mod randomly rotate "forums/images/misc/header.gif"

if not, can someone link me to a mod that does?

Null Parameter
11-18-2008, 04:10 AM
Yes, the demo is still running.

No, this mod doesn't rotate a header image, only the webpage title (found at the top of the browser).

Canadians360
08-18-2009, 07:04 PM
Well looky here I didnt know you actually put products up null. I gotta this is great if you have a fun community and like to hang some of your better moments above your board.