Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
$post[backcolor] Details »»
$post[backcolor]
Version: , by Birdie501 Birdie501 is offline
Developer Last Online: Feb 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-05-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi,

i want to modify my postbit! In postbit i have this variable or the background -> $post[backcolor]

the first stands for { firstaltcolor }
the second for { secondaltcolor }

How can i make a table in the postbit that uses the opposite of $post[backcolor] as background.

so if postbit is { firstaltcolor }, the background of the small table is { secondaltcolor }

Thanks you!?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-05-2002, 01:44 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have to edit functions.php

find:
PHP Code:
if ($counter%2==0) {
        
$post[backcolor]={ firstaltcolor };
        
$post[bgclass] = "alt1";
    } else {
        
$post[backcolor]={ secondaltcolor };
        
$post[bgclass] = "alt2";
    } 
and replace with:
PHP Code:
if ($counter%2==0) {
        
$post[backcolor]={ firstaltcolor };
        
$post[backcolor2]={ secondaltcolor };
                                
$post[bgclass] = "alt1";
    } else {
        
$post[backcolor]={ secondaltcolor };
                                
$post[backcolor2]={ firstaltcolor };
        
$post[bgclass] = "alt2";
    } 
then use $post[backcolor2] as opposite
Reply With Quote
  #3  
Old 07-05-2002, 01:46 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Danke! Ich frag in Zukunft einfach gleich Dich!
Reply With Quote
  #4  
Old 07-05-2002, 01:54 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hehe, wär meist einfacher ^^
aber so sehn andre meine guten taten *g*
Reply With Quote
  #5  
Old 07-05-2002, 02:28 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hehe i was ganna ask this one myself . danke.
Reply With Quote
  #6  
Old 07-05-2002, 04:01 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bitte == you're welcome
Reply With Quote
  #7  
Old 07-12-2002, 06:31 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats awesome. I have one question though. do you see this in the PHP code in fucntions

$post[backcolor]

How can i make that not hardcoded and make it look for a template. Because have a lot fo styles and i would like to give some style the bevel effect for that and others non. So it will call for a template for every style. Please help thanks.
Reply With Quote
  #8  
Old 07-12-2002, 09:15 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$post[backcolor] = gettemplate("templatenamehere");

but post[backcolor] isn't hardcoded, it depens on the replacementvars {firstaltcolor} and {secondaltcolor} so its different in your styles to
Reply With Quote
  #9  
Old 07-13-2002, 07:03 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ic. Well the template thingy doesnt work for me. IS there any way to add this to the php file also next to firstl alt {bevel1}

I need to add that some where too.

$post[back] = bgcolor="$post[back]

{bevel1} = style="BORDER-RIGHT: #000022 1px solid; BORDER-TOP: #336699 1px solid; BORDER-LEFT: #336699 1px solid; BORDER-BOTTOM: #000022 1px solid;"

Please help me out. Thanks
Reply With Quote
  #10  
Old 07-14-2002, 07:58 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm not sure, but i think you can perhaps use that:

$post[backcolor]="{firstaltcolor} {blevel1}";
Reply With Quote
Reply


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 11:21 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.04805 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete