Бормотухи.НЕТ

Вернуться   Бормотухи.НЕТ > Web-мастеру > vBulletin 4.x > Хаки для vBulletin 4.x
Расширенный поиск

Хаки для vBulletin 4.x Скачать хаки для vBulletin 4.x

Ответ
 
Опции темы Поиск в этой теме
Старый 26.04.2012, 15:56 Вверх   #1
Коварный тип
 
Аватар для Serberg
Serberg вне форума
Доп. информация
Хорошо 8WayRun.Com - Random Header

8WayRun.Com - Random Header

Mod Version: 4.0.2 [тема на орге]

Don't forget to click INSTALL!
I'm an unemployed computer programmer... if you appreciate the work I have done on this mod, please don't hesitate in offering me a donation by clicking the "Support Developer" link to the right of this text.
I had to rewrite this mod because it stopped working in vB4x. It now requires a product installation; don't blame me, blame vB4x.

This script does not use Javascript!
I wrote this mod for my own website last year (http://www.8wayrun.com/). I was looking for a way to create a random header situation, while also letting people select the random header through their UserCP and force a header depending on what forum they are on. If you go to my website (http://www.8wayrun.com/), a random character will appear on your header, if you ctrl+refresh, a new character will show up... if you go to our character specific forums, the character in the random header will be forced to the character of that specific forum... I have done my best to make this script as simple as possible.

Product Demo:
http://www.8wayrun.com/

Installation Procedure:
Upload all the files in the "upload" directory of the attached zip file to your forum root.
.
Import the product file called "product-header.xml" in the Product Manager of vBulletin.
.
RANDOM OPTION: Put the images you want randomized into the "header" folder that you just uploaded in the previous step.
This randomized option will work with any JPG, GIF or PNG image extension.
.
SELECTED OPTION: If you want, you can let users SELECT which header they want on places where the script would normally randomize.
Create a new "Single-Selection Menu" profile field in your adminCP.
For each selection option, enter an image's filename as an option.
Set Default: None
Field Required: No
Field Editable: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No
Display Page: Options: Other
After you submit, this field will be given a name (ex: field9). Make sure to remember this name.
This selected option will work with any image extension defined in an image's filename
.
FORCED OPTION: If you want to FORCE an image on specific forum, upload the image, to the "header/forums" directory.
Images are forced by their forum ID, so if the forum you want to force is forum 38, then name the image "38.png".
By default, this selected option will only work with the PNG image extension.
If you want to change this extension to something else, open up the included "header/header.php".
Find and edit the fourth line in this file which by default should state: $forced = ".png";
.
NOTE: This script has a heirarchy of importance when searching for images.
The first thing it will look for is the FORCED OPTION.
If it doesn't find a forced image, it will use the SELECTED OPTION.
If it doesn't find a selected image, it will use the RANDOM OPTION.

Usage Procedure:
Anywhere you want to use this random script, just link to this script, instead of an image.

header/header.php?fid={vb:var forum.forumid}&pid={vb:var
bbuserinfo.field9}


Notice the field9 above, this should match the field name given to you in a previous step.
You can use this script anywhere you would normally use an image; whether it be your logo image, or even the background image to your header or website.
8WayRun.Com - Random Header (3.8 Кб)
  Ответить с цитированием
Cказали cпасибо:
Старый 27.04.2012, 10:27 Вверх   #2
Коренной житель
 
Аватар для KubiK
KubiK вне форума
Доп. информация
По умолчанию

А можно в двух словах, что это за хак? Чёт я переиёл а понять не смог.
  Ответить с цитированием
Старый 27.04.2012, 11:47 Вверх   #3
Грамотный форумчанин
 
Аватар для MicroCip
MicroCip вне форума
Доп. информация
По умолчанию

KubiK, судя по названию это своего рода ротатор шапок. Т.е. шапка меняется через определенное время на другую
  Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 00:56. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc. Перевод: zCarot
 

Время генерации страницы 0.06554 секунды с 11 запросами