![]() |
not working for me damn
|
Quote:
|
Quote:
Fatal error: (null)(): Failed opening required './includes/functions_dfha.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dafirm2/public_html/forums/index.php(459) : eval()'d code on line 5 |
Quote:
|
Hi Logician,
I have had this hack working great on our VB2 board for two years but now we are finally upgrading to vb 3.5.0 and this hack is integral to our design. What we do is show a message on the left menu that either displays user info for members or a "Sign Up" messgae for visitors. See here - http://nexusportal.net. I'm having trouble getting this to work in VB 3.5.0 though. We don't need the pop-up or separate table - we need to keep the current integration. Therefore your step 2 maybe shouldn't apply? In the forumhome template on vb2 I put: <!-- Begin Conditional Hack--> [[($bbuserinfo[userid]!=0)]] Stuff here [[/($bbuserinfo[userid]!=0)]] [[($bbuserinfo[userid]==0)]] Other stuff here [[/($bbuserinfo[userid]==0)]] <!-- /End Conditional Hack--> I put $dfh_announcement in the forumhome template where I want the message to show and then put the code in the box in the vbulletin settings section which is: Code:
<!-- Begin Conditional Hack--> http://test.nexusportal.net/index.php?styleid=4 You can see the USER INFORMATION on the top of the left menu but after that it's all a mess. Can you not put HTML in there? The vb2 version was so simple. :D |
Quote:
This hack is for putting an announcement to forum home (with conditionals if you like) and the other hack was to use conditionals in any vb template you like. If you need to put a fixed conditional to your forumhome template, you don't need this hack, you can use built-in conditionals of vb3.x: (In other words my vb2 template conditionals hack is now a built-in feature in vb 3.0.x and above) IE. <if condition = "$bbuserinfo[userid]>0"> Stuff to display to members </if> <if condition = "$bbuserinfo[userid]==0"> Stuff to display to guests </if> |
Ah, thanks for that. I knew vb2 really well but I've been out of it for so long. VB 3.5.0 might as well be phpbb2 for all I know now.
Where is the best place to find out about this new in-built conditional functionality? And also I need to work out the new variables for $avatarimage, $welcometext, $newposts and others. Any insight would be helpful and sorry to take the thread of course a bit. :) |
I'm getting there slowly. :D
|
Hi I've done all the steps ,but ,I got this error when home page is loaded :
Fatal error: Call to undefined function: dynamic_a() in C:\Inetpub\vhosts\arabic-av.com\httpdocs\forum\index.php(459) : eval()'d code on line 158 And yes,I have done everything including uploading,modifying ...etc . :) |
Quote:
|
All times are GMT. The time now is 08:10 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|