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)

Steve Machol 11-06-2001 08:42 PM

It worked! :D

DarkReaper 11-06-2001 08:49 PM

Quote:

Originally posted by christec
[DarkReaper] --
OK I think this is it.

After:

while ($forum = DB_site->fetch_array($forums)) {

Add This:
$perms=getpermissions($forum[forumid],0,2);
if ($perms[canview]==0) {
makeyesnocode($forum[title],"forum[$forum[forumid]]",0);
} else { makeyesnocode($forum[title],"forum[$forum[forumid]]",1);
}

Worked :)

Regarding the password being a long string of random text....in 2.2.0 passwords are encrypted, so don't bother trying to send the password :)

DarkReaper 11-06-2001 08:57 PM

To make excluding forums easier, would it be possible to have the forums shown in a hierarchial view, instead of a straight down list?

madhouse 11-07-2001 12:35 AM

ok I really have a problem here..I installed the hack except the one command line in the admin/index.php..cause it does not look
like its not there in the 2.2.0 version of VB..
Any ideas?:confused:

Guru 11-07-2001 12:40 AM

The line you didn't install is the line that adds the command to the admin menu.

madhouse 11-07-2001 01:17 AM

I know i didnt added cause the line i was looking for to added the caommand under neath was not there in the admin/index.php

thewitt 11-07-2001 11:11 AM

Quote:

Originally posted by orca
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.

Here's the command to add for v2.2 - Orca posted it a few pages back.

madhouse 11-07-2001 11:53 AM

Ok thx for the line to add but were am i putting it at?or under..:D

christec 11-07-2001 01:19 PM

Quote:

Originally posted by madhouse
Ok thx for the line to add but were am i putting it at?or under..:D
PHP Code:

Find this:
makenavoption("Build Mailing List","email.php?action=genlist");
Replace With this:
makenavoption("Build Mailing List","email.php?action=genlist","<br>");
makenavoption("Community Bulletin Generator""commbull.php?action=info"); 


Littlebit 11-07-2001 01:29 PM

Is there a packaged install (including all the little changes and updates I see spread out in the forums) to work with 2.20? This seems like a great hack!

Prince 11-07-2001 01:52 PM

Quote:

Originally posted by Littlebit
Is there a packaged install (including all the little changes and updates I see spread out in the forums) to work with 2.20? This seems like a great hack!
This one is:

https://vborg.vbsupport.ru/showthrea...threadid=32129

but it does not add the Admin CP part, there is a post in that thread with instructions to do it.

Littlebit 11-07-2001 01:55 PM

Thanks Prince :)

mjames 11-11-2001 01:55 AM

I had this running on 2.0.x, but haven't installed it on 2.2.0 yet. My only problem was when modifying the /admin/index.php file, the coding seems to have changed. Anyone know how to add the link to the hack in the new index.php file? It's not just HTML anymore (i.e., no <a href""> anymore).

FWC 11-11-2001 02:11 AM

Quote:

Originally posted by mjames
I had this running on 2.0.x, but haven't installed it on 2.2.0 yet. My only problem was when modifying the /admin/index.php file, the coding seems to have changed. Anyone know how to add the link to the hack in the new index.php file? It's not just HTML anymore (i.e., no <a href""> anymore).
This will do the trick:

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

Just put that where you want it. I have it here:

makenavoption("Build Mailing List","email.php?action=genlist","<br>");
makenavoption("Send Community Bulletin","commbull.php?action=info");
makenavselect("Users");

I also installed the new version that sends HTML mail. I love it.

PBC 11-18-2001 04:18 PM

I installed the hack and used the "{ }" per the instructions to block out the username and password, but they are still showing up in the e-mail.

Also, just FYI, the passwords are showing up as encrypted.

Guru 11-18-2001 07:12 PM

The braces indicate the portion of the message that is not to be posted on the board... not a part to omit from the email.

BaldNut 11-29-2001 11:55 AM

ive done everything but i cant find

in admin/index.php

<a href="email.php?s=<?php echo $session[sessionhash]; ?>"> Email users </a><br>

will i definatelly have it ?

or should i create it ?

amykhar 11-29-2001 11:59 AM

It's not formatted that way in 2.2.0. You might want to try the newer version of this hack. It's the same as this but with a couple of new features and it's updated to work with the latest version.

Amy

BaldNut 11-29-2001 12:03 PM

:( will i have to uninstall the files ive done ?

and anyideas where i will find the new one ?

thanx amy

amykhar 11-29-2001 12:12 PM

No. You won't have to uninstall. The new one adds on to what you have done. :) BUT, you will have to be able to look at what you have done to recognize what you need to add from the new part.


Amy

BaldNut 11-29-2001 12:14 PM

is the new one released yet amy ?

amykhar 11-29-2001 12:41 PM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=32517" target="_blank">https://vborg.vbsupport.ru/showt...threadid=32517</a>

BaldNut 11-29-2001 01:06 PM

cheers Amy, it seemed to go ok, but when i got to preview it gave me this error

Database error in vBulletin Control Panel 2.2.0:

Invalid SQL: SELECT userid,username,birthday FROM user WHERE SUBSTRING(birthday,6)>='11-29' AND SUBSTRING(birthday,6)<='12-13' ORDER BY SUBSTRING(birthday,6) LIMIT 0,10
mysql error: You have an error in your SQL syntax near 'SUBSTRING(birthday,6) LIMIT 0,10' at line 1

mysql error number: 1064

Date: Thursday 29th of November 2001 03:16:25 PM
Script: http://www.golden-springs.com/forums...n/commbull.php
Referer: http://www.golden-springs.com/forums/admin/commbull.php

tubedogg 12-06-2001 05:17 AM

I'm just bumping this up to let you all know I am finally working on an update to this hack.

New features/bug fixes:
- Send HTML email
- HTML email uses templates and standard replacement variables for easy customization
- Rewrote birthdays subroutine to not use SUBSTRING as an ORDER BY since that seemed to cause so many problems
- Fixed problems with getting birthdays from both December and January or farther
- Redid forum display so that:
-- you cannot select categories
-- private forums are marked as No by default
-- display is laid out in an indented manner, as if you were looking at your actual forums
- Now saves settings, including which forums to include and which usergroups to use
- Various other little bug fixes/improvements here and there

I have most of this done - I am mainly working on the HTML / templates aspect now. I hope to have this done fairly soon, hopefully by Christmas.

Let me know if there are other things you'd like to see in this.

PBC 12-06-2001 10:49 AM

Quote:

Originally posted by tubedogg
Let me know if there are other things you'd like to see in this.
The ability to preview/re-preview after editing before sending.

tubedogg 12-06-2001 12:50 PM

Funny you should mention that. :) I put in two things in regards to that that I left off my list accidentally, and they are:
-- Preview/re-preview after editing
-- HTML Preview so you can see exactly what the HTML message will look like

I'm taking advantage of the AdminUtil table to store the messages between pages - made it a dream to code. :)

RobAC 12-06-2001 06:36 PM

Kevin,

We are not worthy!!! :D :D

Along with the vbStats Hack, this one is my number one favorite! :D

....runs off drooling in anticipation of the next release. :D

Steve Machol 12-06-2001 07:37 PM

[QUOTE]Originally posted by tubedogg
Let me know if there are other things you'd like to see in this.

tubedogg 12-07-2001 01:51 AM

Hmm...that's an interesting request. Can you explain how you'd like it to work, e.g. do you want textareas on the selection screen, or...? Or do you mean additional templates to use it from time-to-time?

tubedogg 12-07-2001 01:53 AM

Quote:

Originally posted by RobAC
Kevin,

We are not worthy!!! :D :D

Along with the vbStats Hack, this one is my number one favorite! :D

....runs off drooling in anticipation of the next release. :D

hehehehe :D

RobAC 12-07-2001 02:04 AM

Actually, now that I'm thinking of it....Kevin, did you see the other thread that someone released which took this hack and added the HTML or plain text option for the users? That is an extremely handy option to add in if you're going to be updating this one. Some of my members really like the HTML format and some of the members that can't receive HTML email like AOL users like the plain text option and can specify it under Edit Options in their user control panels.

Also, I'm not sure how others would be feel about this, but I'd like to see the forums chosen to include defaulted to NO instead of YES. I tend to pull 10-15 threads out of about 8 forums each. I have 20+ forums. Give me more time....I'm sure I'll think of more options. (kidding) :D

tubedogg 12-07-2001 02:11 AM

Actually I saw it last night after I wrote my message. That's how it's already set up in mine - there are two previews, one for text, for HTML.

Also as part of the 'saving options' bit, after the first time you select forums, it will save the settings so you don't have to manually change them the next time(s), but you can still change them at any time if you wish.

FWC 12-07-2001 02:18 AM

Quote:

Originally posted by tubedogg
Hmm...that's an interesting request. Can you explain how you'd like it to work, e.g. do you want textareas on the selection screen, or...? Or do you mean additional templates to use it from time-to-time?
For us a text box would be perfect. We add a section above the bulletin before we send it out. Since it changes each time we send it out, a template isn't necessary.

Steve Machol 12-07-2001 03:35 AM

[QUOTE]Originally posted by tubedogg
Hmm...that's an interesting request. Can you explain how you'd like it to work, e.g. do you want textareas on the selection screen, or...? Or do you mean additional templates to use it from time-to-time?

tubedogg 12-07-2001 09:12 AM

I guess I'm still a little unclear...Do you want this to be saved into the database, or just added to the preview? I'm not sure I quite understand what the difference between pasting it into the textbox that appears after selecting options and putting it in a textbox on that first page is. Seems unless it was saved between times it would be the same amount of work?

Steve Machol 12-07-2001 03:39 PM

I'd just like extra text boxes that I could use to add custom sections to the newsletter. Of course these will show in the preview and become part of the newsletter, but it's not necessary that they be saved to the database. Does that make more sense?

FWC 12-07-2001 04:30 PM

Quote:

Originally posted by smachol
I'd just like extra text boxes that I could use to add custom sections to the newsletter. Of course these will show in the preview and become part of the newsletter, but it's not necessary that they be saved to the database. Does that make more sense?
That is what I was asking for, too. Now it's all clear. :)

tubedogg 12-08-2001 07:02 AM

That makes perfect sense. :) My point is just what is the difference between these two situations?

a) You select all of your options, you go to the preview and you paste in some additional content

b) You select all of your options including a box with some additional content and then go to the preview

Now, something I just thought of - do you want it to put it in a table for you? Like you provide the table heading and the actual text that goes in the table and then it builds it for you in a default style table? That makes a lot more sense. :)

freakyshiat 12-08-2001 02:47 PM

Ok, I uploaded the commbull.php and went through the database table altering step but then after that, decided not to go through with it. So I havent made any changes in admin/member.php How can i reverse the alter table that was done in step 1 of the install? Or should I not worry about it?

Steve Machol 12-08-2001 04:09 PM

[QUOTE]Originally posted by tubedogg
Now, something I just thought of - do you want it to put it in a table for you? Like you provide the table heading and the actual text that goes in the table and then it builds it for you in a default style table? That makes a lot more sense. :)


All times are GMT. The time now is 05:47 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.01731 seconds
  • Memory Usage 1,830KB
  • 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
  • (2)bbcode_php_printable
  • (9)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