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)
-   -   Updated Community Bulletin Generator (https://vborg.vbsupport.ru/showthread.php?t=16290)

aldamon 10-30-2001 06:15 PM

Is this built into 2.2.0???

tubedogg 10-31-2001 04:33 AM

No.

JJR512 11-01-2001 11:13 PM

Any ideas on completing the last step of the installation with 2.2.0:
Code:

admin/index.php
You will need to make the following alterations to your admin/index.php file:
After this:
<a href="email.php?s=<?php echo $session[sessionhash]; ?>"> Email users </a><br>
add this:
<a href="commbull.php?s=<?php echo $session[sessionhash]; ?>"> Send Community Bulletin </a><br>

I believe this is the new line we're looking for:
Code:

makenavoption("Email Users","email.php?action=start","<br>");
I tried this as the new line below it:
Code:

makenavoption("Send Community Bulletin","commbull.php","<br>");
But that only gave me a 404 page in the right side of the CP.

MarkB 11-01-2001 11:46 PM

It shouldn't give you a 404 error if commbull.php is in your admin directory. I added something basically the same (although mine references commbull.php?s=, which I doubt makes any diff:)), and it worked fine...

Good luck :)

DarkReaper 11-02-2001 12:41 AM

Quote:

Originally posted by SirSteve


Look through commbull.php until you find what you want to change and you'll see "checked> Yes <", change Yes to No.

Nice try, but that won't work, because that's not the way the script is setup :)

I've tried changing the block of code that outputs the forums to this, but its not working correctly:

Code:

        maketableheader("Include Info From Forums...");
        makelabelcode("<b>Include info from the following forums:</b>","&nbsp;");
        $forums = $DB_site->query("SELECT * FROM forum WHERE allowposting=1 AND active=1");
        while ($forum = $DB_site->fetch_array($forums)) {
                $permission = $DB_site->query("SELECT canview FROM forumpermission WHERE forumid='$forum[forumid]' AND usergroupid=2");
                if($permission == 0)
                {
                        makeyesnocode($forum[title],"forum[$forum[forumid]]",0);
                }
                else
                {
                        makeyesnocode($forum[title],"forum[$forum[forumid]]",1);
                }
        }
        restarttable();

Any ideas? It always goes to the else part of the if statement.

JJR512 11-02-2001 03:59 AM

Quote:

Originally posted by MarkB
It shouldn't give you a 404 error if commbull.php is in your admin directory. I added something basically the same (although mine references commbull.php?s=, which I doubt makes any diff:)), and it worked fine...

Good luck :)

When I point to the link, I see in the status bar that the URL is correct: www.jjr512.com/forums/admin/commbull.php. And even though I didn't put in any s= part, the end of the URL, after what I just mentioned, is &s=. But it still results in a 404. The file is there; I used it to give me the installation instructions.

aldamon 11-02-2001 10:55 AM

Don't forget, the admin control panel is also coded differently now, so the find and replace code portion of the instructions will not work.

I'm sure tubedogg will hook us up. I just hope it's before my next update is due to go out ;)

orca 11-02-2001 11:02 AM

The correct syntax for the addition would be:

PHP Code:

makenavoption("Send Community Bulletin","commbull.php?action=info","<br>"); 

If you don't add the action command it will display a blank page. I tested it. It works on my site.

DarkReaper 11-02-2001 05:59 PM

Can someone help me with my problem plz?

christec 11-02-2001 10:16 PM

Quick thought: [DarkReaper]

if $permission == 0
It will pass the $value of 0 to the function makeyesnocode for each loop it makes, making the value = "No"

if $permission != 0
It will pass the $value of 1 to the function makeyesnocode for each loop it makes, making the value = "Yes"

It will not select between the two.

Right?


All times are GMT. The time now is 05:04 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.01356 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)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