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)

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?


All times are GMT. The time now is 11:48 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.01456 seconds
  • Memory Usage 1,772KB
  • 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
  • (4)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