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 09-20-2002 07:15 AM

Quote:

Originally posted by ptbyjason
Any reason why I would be getting the following error at the top of my forum?
[/PHP]

Delete your announcement box and try again. It is very likely because you set an a invalid /wrong sytnaxed conditional.. If it so, correct your conditional..

If your problem continiues after deleting your announcement box, I would say it's not related to this hack, but to make sure delete the hack code you added to global.php. This is very close to uninstall and if the hack is your problem, it will be solved in this step.

ptbyjason 09-20-2002 09:54 PM

I am pretty sure it is the hack. Whenever I go back and replace the original php files, and make no other changes, the error is gone from the board. I can use just a text message and get the error not only on my board but also in the admin panel. Any thing I can do to make the hack work without the error? I really like this one.

Logician 09-20-2002 10:07 PM

Quote:

Originally posted by ptbyjason
I am pretty sure it is the hack. Whenever I go back and replace the original php files, and make no other changes, the error is gone from the board. I can use just a text message and get the error not only on my board but also in the admin panel. Any thing I can do to make the hack work without the error? I really like this one.
1- Do you get any errors when you clear announcement box? If no, what announcement have you inserted?
2- Do you get any errors when you delete the hack code from global.php? (only from global.php!)
3- What's your vb version?

ptbyjason 09-21-2002 12:45 AM

Quote:

Originally posted by Logician

1- Do you get any errors when you clear announcement box? If no, what announcement have you inserted?
2- Do you get any errors when you delete the hack code from global.php? (only from global.php!)
3- What's your vb version?


1. Yes, still get them.
2. I cannot find the code to delete in global.php :(
3. I am running 2.2.6

Something else I just noticed. When I have the 3 modified php files uploaded, the avatars do not appear in the postbit. Does that give a hint to the problem at all?


Logician, thank you for taking the time to help me with my problem.

Logician 09-21-2002 06:46 AM

Quote:

Originally posted by ptbyjason
Something else I just noticed. When I have the 3 modified php files uploaded, the avatars do not appear in the postbit. Does that give a hint to the problem at all?

Frankly, I strongly believe that your problem is not related to this hack (unless it's clashing with another hack) because a problem in postbit (showthread.php) seems to have nothing to do with this hack. When you load your postbit you are dealing with showthread.php and its not even modified. Your uploading the old files correcting your problem makes me thing if you applied the hack correctly or not. Please double check this. If you cant figure out the problem and still want to use the hack, I can try to trace it if you can give me FTP access to your site and access to Admin CP.

geniuscrew 09-24-2002 12:42 AM

Nice hack but i'm getting this error:

Fatal error: Call to undefined function: dynamic_a() in /home/******/public_html/forum/index.php on line 13

Logician 09-24-2002 08:09 AM

Quote:

Originally posted by geniuscrew
Nice hack but i'm getting this error:

Fatal error: Call to undefined function: dynamic_a() in /home/******/public_html/forum/index.php on line 13

geniuscrew make sure you applied installation STEP 2 correctly. You should insert the code in that step to "admin/functions.php" (that is "functions.php" in the "admin" dir), NOT "adminfunctions.php".

LawnDawg 09-24-2002 07:08 PM

Hmm, ok, I followed all the instructions properly.. cept nothing's showing up on my forum home..

Help please =\

Logician 09-24-2002 07:23 PM

Quote:

Originally posted by LawnDawg
Hmm, ok, I followed all the instructions properly.. cept nothing's showing up on my forum home..

Help please =\

Have you gone to VB Settings and choose "SAVE CHANGES" after the installation? If yes, make sure:
1- you have created the template ""dfh_announcement" in all your template sets.. Also make sure the template content is correct..
2- You applied the hack code correctly to index.php and functions.php.
3- You put "$dfh_announcement" to the correct place in forumhome template (once again put inside all templates set's forum home, if you have more than 1)

LawnDawg 09-24-2002 10:01 PM

Yeesh, that was odd.

I changed the announcement right after I installed it.

Didn't work. I changed it again just now, & it works.

Thx Logi.

[edit]Is there any way I could add this into my "header" template? does seem to work.. [/edit]


All times are GMT. The time now is 10:41 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.01317 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)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