vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Title Rotator v4 (https://vborg.vbsupport.ru/showthread.php?t=248565)

A Dead Puppie 08-13-2010 11:16 PM

Title Rotator v4
 
Hey, I recently wanted a title rotator on my forum, where each time you refresh the page on FORUMHOME, the title in the header would change.

I created a plugin with the following data:

PHP Code:

ob_start();
include(
'Title_Rotator.php');
$shuffle ob_get_contents();
ob_end_clean();

$templater vB_Template::create('FORUMHOME');
$templater->register('shuffle'$shuffle);
$templatevalues['shuffle'] = $templater->render();
vB_Template::PreRegister('FORUMHOME'$templatevalues); 

The "Title_Rotator.php" is a file you upload directly onto the server and it goes as:
PHP Code:

<?php
/* Vanguard Title Shuffler -|- Only licensed to be used by Vanguard Gaming or websites that have permission. Copyright 2010 Vanguard Gaming. */
function title()
{
$num rand(110);
$title = array();
$title[1] = "<title>Vanguard Gaming - Bleep Bloop!</title>"//1
$title[2] = "<title>Vanguard Gaming - The Vanguard is always watching.</title>"//2
$title[3] = "<title>Vanguard Gaming - Ferret says hello.</title>";//3
$title[4] = "<title>Vanguard Gaming - Oh Noez!</title>";//4
$title[5] = "<title>Vanguard Gaming - So I heard you liek mudkipz.</title>"//5
$title[6] = "<title>Vanguard Gaming - Your mom says hi!</title>";//6
$title[7] = "<title>Vanguard Gaming - Cr15py says, Pie > Cake!</title>"//7
$title[8] = "<title>Vanguard Gaming - The internet is a series of tubes.</title>"//8
$title[9] = "<title>Vanguard Gaming - In Soviet Russia, cookie eat monster!</title>"//9
$title[10] = "<title>Vanguard Gaming - A perfect 9.5</title>"//10
return $title[$num];
}
$Cr15py_title title();
?>

Now, I've uploaded it on another server and tried it, and worked perfectly without failure.

I bring it into vBulletin, and replace the FORUMHOME code:
Code:

<title>{vb:raw vboptions.bbtitle}</title>
with
PHP Code:

<?php
include("/Title_Rotator.php");
print 
$Cr15py_title;
?>

And it doesn't work because vBulletin filters out direct php. (security i know.)

But what I'm asking is, my setup, is their anyway i can modify it to work with vBulletin? I'm using vbulletin 4.0.4 if it matters.

Thanks in advance.

--------------- Added [DATE]1281807163[/DATE] at [TIME]1281807163[/TIME] ---------------

bump...please help...

A Dead Puppie 08-15-2010 01:51 AM

nothing?

--------------- Added [DATE]1281921598[/DATE] at [TIME]1281921598[/TIME] ---------------

BUMP. please guys....

A Dead Puppie 08-16-2010 02:01 PM

BUMP. 50 views and no response.

A Dead Puppie 08-17-2010 06:40 PM

Bump. Almost 70 views. :(

mmoore5553 08-18-2010 05:05 PM

I use the rotators that are on here to rotate title. Other than that i use an array if i really need to with images.


All times are GMT. The time now is 11:22 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.01527 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete