PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   "How Do I..." Questions (http://www.photoplog.com/forum/forumdisplay.php?f=7)
-   -   Multiple skins/Nav Bar (http://www.photoplog.com/forum/showthread.php?t=3040)

Reflux 11-02-2009 12:26 AM

Multiple skins/Nav Bar
 
Hello,
I was using the search tool on this site and when I kept looking for an answer I got multiple answers for my problem but none work.

GhostFreak had acquired the plugin for ShujinAnime.com and since I work with him to make the site better, I was hoping to make the plugin work with multiple skins.

now the numbers for our skins are 7, 12, 16, 18, & 23

I know the code was:
Code:

ACP -> Plugin System -> Add New Plugin

Product: PhotoPlog
Hook Location: style_fetch
Title: PhotoPlog Style Fetch
Plugin PHP Code:

if (defined('PHOTOPLOG_FWD'))
{
        $styleid = 1; // or 2 or 3 etc
        $vbulletin->options['styleid'] = $styleid;
}

Plugin is Active: Yes

so I was not aware how to plug this in correctly.

I tried multiple times get this going and I am frustrated.

I also was looking for a way to add it to the nav bar on each skin, but I am not happy with the end result I've done myself.

Morgan 11-03-2009 03:42 PM

One idea would be the array_rand PHP function to set $styleid to a random value from the array of style IDs.


All times are GMT. The time now is 04:39 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.