vb.org Archive

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

nelto 09-08-2004 07:02 AM

I tried to install this hack but something came up.
After I uploaded the file functions.php I got this erros:

Parse error: parse error in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 1887

Fatal error: Call to undefined function: devdebug() in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 952

My line 1887: {

My line 952: DEVDEBUG("$optionname = $user[$optionname]");
Needless to say I revode the code from functions.php and the erroes still presists.
I have a comunity of 5K members so I need this resolved asap, if possible.

Im runing VB 3.0.3

P.S Every installation steps went ok untill I uploaded functions.php.

nelto 09-08-2004 07:21 AM

Never mind I dont knwo what happened.

I unziped the vb script to other folder made the changes on functions.php and uploaded everything working.

I'll let you know if everythign went fien and I'll click on the install of course :)

Logician 09-08-2004 07:25 AM

Quote:

Originally Posted by nelto
I tried to install this hack but something came up.
After I uploaded the file functions.php I got this erros:

Parse error: parse error in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 1887

Fatal error: Call to undefined function: devdebug() in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 952

My line 1887: {

My line 952: DEVDEBUG("$optionname = $user[$optionname]");
Needless to say I revode the code from functions.php and the erroes still presists.
I have a comunity of 5K members so I need this resolved asap, if possible.

Im runing VB 3.0.3

P.S Every installation steps went ok untill I uploaded functions.php.

Apply STEP 3 carefully. (For instance it is "REPLACE" it as, not add before or after).

If you are sure you applied it correctly, then the problem is the application you are editing the file. Do NOT use HTML editors like dreamweaver or frontpage to hack files. Always use notepad. This is very likely your problem. Hope it helps.

To make the board up, you can upload unhacked functions.php to the server.

nelto 09-08-2004 07:48 PM

Its working like a charm man. Great hakc you got here. Install clicked.

One question, I want to show this hack as well on the vba homepage, I was trying to follow a install instructions on other thread, but I cant find the template vba_cmp

Any help here, or is there any other way to get this working on vbahomepage?

kall 09-08-2004 07:57 PM

Quote:

Originally Posted by nelto
Its working like a charm man. Great hakc you got here. Install clicked.

One question, I want to show this hack as well on the vba homepage, I was trying to follow a install instructions on other thread, but I cant find the template vba_cmp

Any help here, or is there any other way to get this working on vbahomepage?

Im sorry, I gave the wrong name of the template.

Should be: adv_portal.

:oops: Fixed and re-uploaded.

nelto 09-09-2004 04:03 AM

working tks kall.

tanhadil 09-09-2004 12:31 PM

is there a way to show the announcement to paid subscribers only and not all the registered users??

Logician 09-09-2004 02:31 PM

Quote:

Originally Posted by tanhadil
is there a way to show the announcement to paid subscribers only and not all the registered users??

Sure.. isn't it the whole point anyway? ;) Please read second post of the thread.

(Hint: Paid subscribers would be in a different usergroup)

tanhadil 09-09-2004 08:52 PM

Hello $bbuserinfo[username]! Welcome to Desi-Dhaba forums
<div align="center"><a href="http://www.site/subscriptions.php"><img src="http://www.site/image.jpg" border="0"></a>

[[($bbuserinfo[usergroupid]==9)]] Thank you for buying the package.Link for stream will be posted soon[[/($bbuserinfo[usergroupid]==9)]]

i am typing this into the Forum Home Table Announcement in the ADMIN CP..

Usergroup 9 is for the paid subscribers...but they still cant see the message :ermm:

nelto 09-10-2004 02:06 AM

Hi again guys.
One simple question.
Isnt the pop-up supposed to be showed only to the admins and mods?
My reason is that everyone is geting it while not registered or even loged in. this includes me as well.
Im runing this hack on forums and the mod hack on the portal.

Any ideas?

Edited for a question/idea that just poped up.
Is it possible to have an announcement on the portal and a different one on the forums?

If possible can you tell me how to do it, since it will be 100% easier for me, to have 2 different messages sicne Im runing 2 different tasks.

And better yet, what about a different message for unregister users and other to register users?

Sorry if this was already questioned, but I have 45 hours nonstop and I simply dont have patience right now to scan all the thread. :(


All times are GMT. The time now is 11:11 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.01985 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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