View Single Post
  #289  
Old 01-25-2005, 07:42 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lanc3lot
It works ok... But just in case, is there any uninstall script to have?
Please see my message above this one.

Quote:
Originally Posted by lanc3lot
Also, what is the "load" of page, that creates
No significient load. It is performance friendly. It just adds a single query to forum home page loads, provided that you installed as it is. However if you change the installation or working of the hack and say applied the announcements in all forum pages (hack of the hack 1), then additional query applies for all vb pages. My recommendation is to run it as it is, ie in main page only.



Quote:
In your first Hack, of the hack, u say: (at the end)
Now put
$dfh_announcement_headercode
$dfh_announcement_popup
$dfh_announcement
variable in any template you like

What do u mean with that? I must do something else, so this will work on every page?
The hack is coded to work only in forum home page. However some users want to display the announcements in different pages or in every vb pages so hack of the hack you mentioned aims to do it. The template you need to modify will change according to the page you like to display the announcement so I can not tell you to "modify template X" in this scenario. It depends on your intention. However for all vb pages, the template to modify will be "header". Hope this helps.


Quote:
Is there any way, i can "change" the background color of the table of the announcement, the color of the text and the font size of the text?

I tried a code like:
Code:
<td style="background-color:#000000;color:#FF6600;font-size:9px;">
but it didnt work Can i do it differently?
You mean the color and font of popup announcement right?

Edit template "dfh_announcement_popup" and change the section that says "background-color: lime;" for the bg color. And for the font change this section:

PHP Code:
<div class="normalfont">$dfh_announcement_popuptopaste</div
to something like this:
PHP Code:
<font size='10'>$dfh_announcement_popuptopaste</font

Quote:
Something last...To add more than one announcement, i just write them under the first one?
You can have more than one announcements in the conditional format. But only one of them will be showed to the user (the higher one) where the conditional applies.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02817 seconds
  • Memory Usage 1,784KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete