Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 12-08-2011, 07:21 PM
Valker Valker is offline
 
Join Date: Jul 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Random or spezified changing backgrounds

hey guys!

I was wondering if there is an option, css, in the template, as mod or aomething else, that the background, changes randomly or if i switch to another part of the forum (forum->cms; and so on).

Does someone has a clue ?
Reply With Quote
  #2  
Old 12-08-2011, 10:58 PM
setishock setishock is offline
 
Join Date: Feb 2008
Location: Houma, La.
Posts: 1,177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Copy this file > http://www.alistapart.com/d/randomizer/rotate.txt
and save it to notepad as > rotate.php
Next make a folder and put the images you want to use and the rotate.php file in it.
Upload that to your ftp and make note of the path to get to them.
Go in to the acp and navigate to the theme you want to setup and find doc_background in the stylesvars. Refer to the attached image. When you set the path it should be in this format > url(yourforum.com/path/to/images/rotate.php)
In the attachment I set the offsets to push the image down from behind the header and navbar. You may not have to do that but it helps to know how. Here's my setup using the php file > http://www.animeappeal.com/?styleid=111 You'll also note the Greetings! sidebar block makes use of the php file also. Click on the header or jump to another page. The images changes each time.
Attached Images
File Type: jpg rotate setup.jpg (119.6 KB, 0 views)
Reply With Quote
Благодарность от:
PretorianoAlfa
  #3  
Old 12-09-2011, 10:00 PM
Valker Valker is offline
 
Join Date: Jul 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

But: this does only inclue the background image and not more ? atm i?d like to have a mod to switch between different styles. This mithg be much more confortable fpr me to make the pages much more custom.

Like, see my (not finalised) forum: http://www.trinitas-gilde.com/content.php

in my case: i have 3 main categories (home = cms - forum = forum - member= showgroups) there will be (media = vbtube) in a few month.

So, i?d like to have for each direction a different background, but it would be better if not only the background would change randomly, but if the whole css or style changes.

I thought of changing the 2 files: FORUMHOME (forum.php?) SHOWGROUPS (showgroups.php) .. so that CMS is standart and if you switch to these sites you change the background and maybe some other pictures via css.

May this work ?

There are actually even SHOWGROUPS.css but if i change f.e. ".pagepattern" its just lower ranked than the Other "pagepattern" in the other css.

Do i have to change the tranking of this css in the specific files ?
Or should i make an other css which i then rank higher ?

Im not shure of the re ranking may occure errors.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 PM.


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.03706 seconds
  • Memory Usage 2,192KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (1)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete