vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=43194)

Logician 02-12-2003 06:56 PM

Quote:

Originally posted by SpeedStreet
GREAT Hack! Only problem I am having, is that if I try entering in HTML code, it will not parse it. I only see my code on the page.

This should work:

In the hack code, find:
PHP Code:

$matches14[2]=bbcodeparse($matches14[2]); 

Replace it as:
PHP Code:

$matches14[2]=bbcodeparse2($matches14[2],1,1,1,1); 

Enjoy..

Boofo 02-24-2003 02:42 AM

Sinan, if we choose to put the code in the global.php, do we need to use the code for 2,2,8 and above like we did in the index.php (before it was removed) or the code you have in that section (which is the code for 2.2.7 and below)? I am running 2.2.9.

And is it ok to use this AND the Dynamic templates hack together, ir is it redundant to do that? I have them both installed now. ;)

Boofo 02-24-2003 03:19 AM

Quote:

Originally posted by Buddha
hey, thanks a lot... works like a charm... makes it a lot easier to pop to that section and make constant announcements.

thank you.

Where did you add that at and how does the line of code look for that?

Also, you said you made it bigger. How? :)

mehungie2 02-24-2003 05:31 AM

is there a way to have these just show up on individual forums to all users?

Logician 02-24-2003 07:46 AM

Quote:

Originally posted by Boofo
Sinan, if we choose to put the code in the global.php, do we need to use the code for 2,2,8 and above like we did in the index.php (before it was removed) or the code you have in that section (which is the code for 2.2.7 and below)? I am running 2.2.9.

good point.. Yes you have to use the code for 2.2.8 above if you are using vb 2.2.8 or later..

Quote:

And is it ok to use this AND the Dynamic templates hack together, ir is it redundant to do that? I have them both installed now. ;)

they can work together, I have them both installed too... :)

Boofo 02-24-2003 07:51 AM

Thank you, sir. I use the Dynamic templates hack for EVERYTHING now. I'm looking forward to making good use of the one, too. ;)

By the way, is there a way to be able to use the announcements on any page AND the index.php? I know we have to put it in one or the other, but it would be great to be able to use them both places. Do you know what I mean?

One last thing...is there a way to make a link in the left panel that will take you to the bottom of the vbulletin options where the announcement box is straight from that link?

Logician 02-24-2003 07:59 AM

Quote:

Originally posted by Boofo


Where did you add that at and how does the line of code look for that?

right under:

PHP Code:

makenavoption("vBulletin Options","options.php?t=0","<br>"); 

in admin/index.php and don't forget to edit "#settinggroup34" part..

As for making it bigger, check the thread's old posts plz.. I gave the code somewhere in the thread, I can't remember where :)

Logician 02-24-2003 08:04 AM

uh you are replying me faster than I'm replying you lol
Quote:

Originally posted by Boofo
Thank you, sir. I use the Dynamic templates hack for EVERYTHING now. I'm looking forward to making good use of the one, too. ;)

yeah I like the hack much too.. :)

Quote:


By the way, is there a way to be able to use the announcements on any page AND the index.php? I know we have to put it in one or the other, but it would be great to be able to use them both places. Do you know what I mean?

adding the code in global.php should let you use in main page too. In other words adding there means using in any vb page..

Quote:


One last thing...is there a way to make a link in the left panel that will take you to the bottom of the vbulletin options where the announcement box is straight from that link?

replied above.. :)

Boofo 02-24-2003 08:09 AM

Quote:

Originally posted by Logician
uh you are replying me faster than I'm replying you lol


Great minds think alike. LOL

Quote:

adding the code in global.php should let you use in main page too. In other words adding there means using in any vb page..
Ok, but you said the global is called before the index.php. I was referring to the $allpm example you gave above. I would like to be able to do that sort of thing on the index page and still be able to use it elsewhere in the forum. ;)

And I tried adding that code under the vb options link on the left but it takes me to the top of the vb options listing instead of to bottom of it. And idea how to make it go to the bottom? I did the settinggroup ID but it didn't change it. :)

Logician 02-24-2003 08:32 AM

Quote:

Originally posted by mehungie2
is there a way to have these just show up on individual forums to all users?
You can use this hack for this


All times are GMT. The time now is 09:05 AM.

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.01398 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete