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 11-02-2002 02:04 PM

Quote:

Originally posted by RayMatrix
. . .but your explanation is to hard for me to understand.

ok let me clarify:

find the hack code in index.php (the one you referred above) and cut (delete) it.

Now go at the end of index.php, find:

PHP Code:

eval("dooutput(\"".gettemplate('forumhome')."\");"); 

Before that paste (insert) the hack code, then you'll be fine..

Quote:

Is there any place where i can read about the Variables so i can understand where '$bbuserinfo' comes from ?
$bbuserinfo variable saves the info of the page visitor according to the "user" and "userfield" tables. Field names in these tables are also references in this variable. So for example the "usergroupid" field in user table is $bbuserinfo[usergroupid]. Check the fields in these 2 tables and you'll see what this variable keeps.

Quote:

And is it right that your Code only get called in index.php when i insert the code as step 4 tells to do ?
What I meant was that: Check where the hack code resides and where your variable $allpm[messages] gets a value. The hack code is parsed BEFORE $allpm[messages] is assigned a value so it couldnt work in your announcement.

If you heed to my advice and change the code's location, the hack would parse the $allpm[messages] variable because it would already have a value BEFORE hack runs..

See?

RayMatrix 11-02-2002 03:38 PM

. . .and i think the creator also ;)

THX for your help, great Hack. . .i love it more from minute to minute !

Keep on your good work !!

Regards

LOD-squa 11-04-2002 06:26 PM

I have a question can you do this outside the announcement?

Logician 11-04-2002 06:40 PM

Quote:

Originally posted by gohanssj2
I have a question can you do this outside the announcement?
Do what? If you mean "using conditionals", I have some other hacks using them:
For non-vb web pages check webtemplates hack
For vb templates check dynamic templates hack

LOD-squa 11-04-2002 07:20 PM

Quote:

Originally posted by Logician

Do what? If you mean "using conditionals", I have some other hacks using them:
For non-vb web pages check webtemplates hack
For vb templates check dynamic templates hack

Could you link me to dynamic templates?

Logician 11-04-2002 07:36 PM

Quote:

Originally posted by gohanssj2
Could you link me to dynamic templates?
Advanced Templates: Dynamic Templates Changing according to different conditions

LOD-squa 11-04-2002 07:41 PM

Okay Thanks for your help man.

Bison 11-05-2002 02:21 AM

This is one friggin *cool* hack ... this should be implemented into vB 3.0 in a major way!

[SIZE=3 ] SIX STARS !!! [/SIZE] :banana:

Cyberhouse 11-07-2002 06:13 AM

Quote:

Originally posted by Rolodex
This is one friggin *cool* hack
Agree :D

Obi-Wan 11-20-2002 04:23 PM

Very very kewl hack.

Me tries to install :)


All times are GMT. The time now is 08:06 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.01242 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (7)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