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)

Mu5icMan 03-10-2005 10:39 AM

any thought on how to display the annoucement only once, as when they login for the first time

Logician 03-10-2005 10:40 AM

Quote:

Originally Posted by Mu5icMan
there is. when you said, http://YOUR_SITE_URL/FORUM_URL/admin...le=dynamic_fha

if your site uses https:// as mine does and you don't include the secue layer you will recieve parse error 16

I'm sorry but I don't think this is something I can consider on hack author's end. If your site uses https://, then you should obviously call your YOUR_SITE_URL/FORUM_URL/admincp as https://

Mu5icMan 03-10-2005 10:52 AM

I agree it's not the hack authors issue.

I was just pointing out to people that had https should use it.

Leeper 03-12-2005 10:01 PM

The features are fantasic on my forum pages but my CMPS page has been cut in half. any ideas? I tried installing the CMPS hack as well to no avail. Any help would be appriciated!

Leeper 03-13-2005 10:59 AM

I applied the additional hack to move the announcement into the header. As a result my CMPS page now works fine (no announcement though), and the announcement didn't budge on the forums page. Unless I get someone willing to take a look and help dissect the problems I’ll leave this hack as is. It a great hack however, because of the work that my predecessors have done to the navbar and header I’m getting weird reactions to the tweaks. I’d like to get this working with CMPS but until I understand this stuff a bit better or get some help, I’ll leave a working product alone.

Thanks Logician for your hard work, this is a very powerful tool for getting info to users.

Mla7a6 03-17-2005 11:29 PM

How can I change the background color of the DHTML popup window?
It is very sharp and eye hurting.. while I would like to choose a smoother that can be seen as part of my board style??

BTW.. nice hack :)

Logician 03-18-2005 06:12 AM

Quote:

Originally Posted by Mla7a6
How can I change the background color of the DHTML popup window?

Please read through the thread. Asked and answered before.

Mu5icMan 03-18-2005 07:22 AM

Logician, any thoughts on my previous posting.

how to display the annoucement only once, as when they login for the first time

Logician 03-18-2005 07:31 AM

Quote:

Originally Posted by Mu5icMan
Logician, any thoughts on my previous posting.

how to display the annoucement only once, as when they login for the first time

I can't see a way to do what you wanted since vbulletin does not keep a record of first time logins.

However if you want, you can make an announcement only visible to member who are:
a) with 0 posts and/or registered XX days ago
and/or
b) in Email confirmation waiting group

So this should cover most of the people you are targetting.

Wolverine 03-22-2005 03:15 PM

Installed but have one problem.

I created a popup announcement. It displays as expected but wont close. The close button is there, it reacts when moused over and clicked, but the window remains.

Thought maybe was a firefox issue so I tried IE, same problem.

Logician 03-22-2005 04:02 PM

Quote:

Originally Posted by Wolverine
Installed but have one problem.

I created a popup announcement. It displays as expected but wont close. The close button is there, it reacts when moused over and clicked, but the window remains.

Thought maybe was a firefox issue so I tried IE, same problem.

Never heard of such a problem before from anybody else. Maybe you can assign an announcement for guests and point your board url to me so that I can check myself?

Wolverine 03-22-2005 05:06 PM

Done.
www.tdr-px.com/forums

Logician 03-22-2005 05:16 PM

Quote:

Originally Posted by Wolverine

It seems that you either didn't create the template named "dfh_announcement_headercode"

or

forgot to add $dfh_announcement_headercode before </head> section in forumhome template (Step 6)

Hence the close announcement javascript function does not reside in your page source and the announcement is not closed.

Wolverine 03-22-2005 05:28 PM

This is whats in the forumhome template pertaining to the announcement hack.

PHP Code:

$dfh_announcement_headercode
</head>
<
body>
$dfh_announcement_popup
$header
$navbar
$dfh_announcement 

I found that I did not name the headercode template properly, accidently did dfg_etc etc. I fixed that but the problem remains.

fly 03-25-2005 01:13 PM

How can I change this so that the option shows up on the left if the admin panel so that I can control permissions to it without giving admin access to ALL the options...

I know how to edit the permissions in the admincp/index.php file, but just need an actual PHP file to point it to...

Logician 03-25-2005 01:18 PM

Quote:

Originally Posted by flypaper
How can I change this so that the option shows up on the left if the admin panel so that I can control permissions to it without giving admin access to ALL the options...

I know how to edit the permissions in the admincp/index.php file, but just need an actual PHP file to point it to...

Sorry this is not easily possible.

fly 03-25-2005 01:34 PM

Quote:

Originally Posted by Logician
Sorry this is not easily possible.

Yeah, as I went back through your code, I noticed that. hmmm

The Realist 03-27-2005 07:27 PM

How do I change the background colour from this green :)

Found it :)

https://vborg.vbsupport.ru/showpost....&postcount=289

BigIke 03-31-2005 06:00 AM

been messing with this for a while, but my vba_portal seems different than what kall said it should look like, this is what it looks like, how I interpreted his directions:
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[hometitle]</title>
$headinclude
$dfh_announcement_headercode
</head>
<body>
$dfh_announcement_popup
<!-- logo -->
<a name="top"></a>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td background="images/tvr/tvr_01.jpg" width="25" height="342" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="25" height="342" valign="top" background="images/tvr/tvr_01.jpg"><img src="images/tvr/tvr_01.jpg" width="25" height="105" alt="" /></td>
      </tr>
    </table></td>
  <td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="105" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="105" valign="top" background="images/tvr/tvr_03.jpg"><img src="images/tvr/tvr_02.jpg" width="472" height="105" alt="" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td height="31" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100%" height="31" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="100%" height="25" valign="top" background="images/tvr/tvr_05.jpg">&nbsp;&nbsp;&nbsp;<span class="style1"><a href="cmps_index.php">H<span class="style2">OME</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="index.php">F<span class="style2">ORUMS</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><span class="style1"><a href="view.php?&pg=roster">R<span class="style2">OSTER</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="view.php?&pg=stats">S<span class="style2">TATS</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="http://s116946478.onlinehome.us/vb/forumdisplay.php?f=15">A<span class="style2">RTICLES</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="view.php?&pg=draftcentral">D<span class="style2">RAFT CENTRAL                            </span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="http://s116946478.onlinehome.us/vb/view.php?&pg=TVRStandards">TVR<span class="style2">STANDARDS</span></a></span><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="sendmessage.php">C<span class="style2">ONTACT
                            US</span></a></span></td>
                </tr>
                <tr>
                  <td height="6" background="images/tvr/tvr_09.jpg" valign="top"><img src="images/tvr/tvr_09.jpg" width="74" height="6" alt="" /></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td height="206" valign="top"> $_phpinclude_output
        <table align="center" class="page" cellspacing="0" cellpadding="0"width="95%">
          <tr>
            <td>$navbar</td>
          </tr>
        </table>
        <table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
          <!--DWLayoutTable-->
          <tr valign="top"> <if condition="$show['left_column']">
            <td background="images/tvr/tvr_2_19.jpg" width="$vba_options[portal_leftcolwidth]" height="32"> $home[leftblocks] </td>
            </if> <if condition="$show['center_column']">
            <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                  <td valign="top"> $home[centerblocks]</td>
                </tr>
              </table></td>
            </if> <if condition="$show['right_column']">
            <td valign="top" width="$vba_options[portal_rightcolwidth]"> $home[rightblocks] </td>
            </if> </tr>
        </table>   
       
        $footer
</body>
</html>

Any suggestions?

kthlnwrnr 04-02-2005 04:55 PM

Let me apologize in advance if this is a duplicate question. I would like to know whether it is possible to setup this dynamic announcement hack so that moderators (without making them admins) too can have access to the modification section of the announcement?

kall 04-02-2005 05:59 PM

Quote:

Originally Posted by logician

Quote:

Originally Posted by flypaper
How can I change this so that the option shows up on the left if the admin panel so that I can control permissions to it without giving admin access to ALL the options...

I know how to edit the permissions in the admincp/index.php file, but just need an actual PHP file to point it to...

Sorry this is not easily possible.

This is actually on the very same page you asked this question. Have a read first...even if its just one page.

fly 04-05-2005 07:46 PM

How do I only show an announcement for 24 hours?

I know it has to use strtotime, but how can I find the format?

Logician 04-05-2005 07:55 PM

Quote:

Originally Posted by flypaper
How do I only show an announcement for 24 hours?

I know it has to use strtotime, but how can I find the format?

[[(date("m.d.Y")=="04.05.2005")]]
show this announcement only when server time is 5 april 2005
[[/(date("m.d.Y")=="04.05.2005")]]

fly 04-05-2005 10:38 PM

Quote:

Originally Posted by Logician
[[(date("m.d.Y")=="04.05.2005")]]
show this announcement only when server time is 5 april 2005
[[/(date("m.d.Y")=="04.05.2005")]]

Thanks sir!

SmartGnome 04-06-2005 07:11 AM

Thanks Logician for the hack, install is clicked and now I go into finding out the conditionals :-)

fly 04-06-2005 11:34 AM

I want to make a sincere and special thanks to Logician for his support on this hack. We've all installed a lot of hacks before, and we've all needed help sometimes. I have never seen anyone support a hack the way Logician does.

This guy truely goes above and beyond the call of duty for all of us. For free, I might add. Look through this thread, almost 1 of 5 posts in this thread is from him. And I'd bet that most of his replies were in less than 24 hours. Hell, I got my answers from him in less than a hour.

Thanks again man. It is noticed and appreciated.

Logician 04-06-2005 03:48 PM

Quote:

Originally Posted by flypaper
I want to make a sincere and special thanks to Logician for his support on this hack. We've all installed a lot of hacks before, and we've all needed help sometimes. I have never seen anyone support a hack the way Logician does.

This guy truely goes above and beyond the call of duty for all of us. For free, I might add. Look through this thread, almost 1 of 5 posts in this thread is from him. And I'd bet that most of his replies were in less than 24 hours. Hell, I got my answers from him in less than a hour.

Thanks again man. It is noticed and appreciated.

Thanks for the nice message. I try to help out as much as I can. I wish I had more free times at my hands to help more but this is all I can spare. :)

joeychgo 04-07-2005 07:37 AM

Quote:

Originally Posted by flypaper
I want to make a sincere and special thanks to Logician for his support on this hack. We've all installed a lot of hacks before, and we've all needed help sometimes. I have never seen anyone support a hack the way Logician does.

This guy truely goes above and beyond the call of duty for all of us. For free, I might add. Look through this thread, almost 1 of 5 posts in this thread is from him. And I'd bet that most of his replies were in less than 24 hours. Hell, I got my answers from him in less than a hour.

Thanks again man. It is noticed and appreciated.


I agree completely!!!!!!!

Takamine334 04-08-2005 12:29 AM

anyone created a fix for the popup size that firefox interprets? Mine is HUGE and no amount of CSS manipulation changes it.

netcommander 04-09-2005 11:03 AM

how can i edit condititon for see only todays birthdays user this message

lefthome 04-09-2005 05:09 PM

Excellent Hack in 3.07.

Logician 04-09-2005 07:52 PM

Quote:

Originally Posted by netcommander
how can i edit condititon for see only todays birthdays user this message

this should work:

[[(substr("$bbuserinfo[birthday_search]",-5)== date("m-d", time()))]]
happy birthday $bbuserinfo[username]!
[[/(substr("$bbuserinfo[birthday_search]",-5)== date("m-d", time()))]]

netcommander 04-12-2005 01:33 PM

Quote:

Originally Posted by Logician
this should work:

[[(substr($bbuserinfo[birthday_search],-5)==date("m-d"))]]
happy birthday $bbuserinfo[username]!
[[(substr($bbuserinfo[birthday_search],-5)==date("m-d"))]]

thanks I will try

MB Dreamz 04-13-2005 03:29 AM

Awesome hack. Thanks Logician! *clicks install*

I ran into a minor issue. It must be an error on my part because I've scanned this entire thread, and cannot find the answer. The popup works fine except the "Close Announcement" button. It does nothing. What could be wrong? Thanks in advance!

t-roz 04-13-2005 05:01 AM

thanx for the hack

can i change its language if you dont mind with leaving the copyrights??

netcommander 04-13-2005 09:31 PM

Quote:

Originally Posted by Logician
this should work:

[[(substr($bbuserinfo[birthday_search],-5)==date("m-d"))]]
happy birthday $bbuserinfo[username]!
[[(substr($bbuserinfo[birthday_search],-5)==date("m-d"))]]

I have try but not run this code

Logician 04-14-2005 07:13 AM

Quote:

Originally Posted by netcommander
I have try but not run this code

updated above.. try the edited code again.

netcommander 04-14-2005 10:31 AM

ok I will try again

yesfans 04-19-2005 12:32 PM

I am REALLY stupid here, but I can't get this line to work....

http://YOUR_SITE_URL/FORUM_URL/admin...hp?do=addgroup



my site is www.yesfans.com hopw the hell do I put that in there????

fly 04-19-2005 12:49 PM

http://www.yesfans.com/forum/admincp...hp?do=addgroup

:D
edit: fixt. Added /forum/


All times are GMT. The time now is 03:37 PM.

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.01811 seconds
  • Memory Usage 1,853KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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