vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Announcement (https://vborg.vbsupport.ru/showthread.php?t=118314)

rogersnm 06-10-2006 10:00 PM

Forum Home Announcement
 
Forum Home Announcement

vBulletin 3.5.4 and vBulletin 3.6 Beta 1
www.vBHackers.com

What this does
Allows you to add a announcement to The forum home.

To do list...
  • Time to install: As long as it takes you to import a product :)
  • New Templates: 1
  • Template Edits: 0 (1 (easy) only if you have installed v1.0)
  • New Files: 0
  • New Phrases: 9
  • New Plugins: 1
1. Import product-nicks_homeannoncement.xml

ONLY DO THIS STEP IF YOU HAD VERSION 1.0 INSTALLED
2. In template FORUMHOME:
FIND
Code:

$nick_annouce
AND REMOVE

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Planned Updates
None, post ehre if you have any suggestions.

Hope you like, feedback welcomed.

Remeber to Press:
https://vborg.vbsupport.ru/

El-Gazaly 06-11-2006 02:26 PM

Thanks For It
First Intsall

Barakat 06-12-2006 12:20 AM

need it indeed ......

Snake 06-12-2006 07:01 AM

Thanks, very useful! :)

rogersnm 06-12-2006 07:19 PM

just as a note new version released :) any suggestions please post here, i can't really think of anything more to put. i may be realeasing a multipage version (puts it at the top of everypage) after i realease the vb3.5.x compatible one...

Staxed 06-16-2006 03:56 PM

after i installed this...i get a page not found error whenever i try to get into the products management screen or plugins screen...i haven't done anything else but install this product...anyone else have this problem??

rogersnm 06-16-2006 03:58 PM

Try reimporting the product and allow overide. Have you upgraded to beta 2? It sounds like a beta bug to me.

Staxed 06-17-2006 04:04 AM

Quote:

Originally Posted by rogersnm
Try reimporting the product and allow overide. Have you upgraded to beta 2? It sounds like a beta bug to me.

I can't...i can't even get to the product page...

rogersnm 06-17-2006 05:09 AM

Do you get an internal server error?

Staxed 06-17-2006 05:43 AM

i'm just getting the 404 error...i can't check my server logs at all because i'm out of country with the military behind an retarded firewall...can't get into cpanel or whm at all while i'm here.

i do have ssh access though...but i do everything through whm so not sure how to do it through ssh...is there a way to check the logs via ssh?

i also but in a bug report at vb.com...they haven't responded yet but i'll see what they say about it as well.

rogersnm 06-17-2006 05:44 AM

I wouldn't know i don't use it. Are you sure you uploaded all the files?

Staxed 06-17-2006 05:48 AM

yup, i'm positive, i've even just reuploaded everything this morning to make sure. It didn't start happening until after I imported the product (though i'm not saying it's your product...it might have been any product...not sure since i can't disable it and try another one.)

rogersnm 06-17-2006 05:49 AM

Can you read the pm

charlub 06-17-2006 09:07 AM

I'm having the exact same problem.


Quote:

Originally Posted by Irisfire
after i installed this...i get a page not found error whenever i try to get into the products management screen or plugins screen...i haven't done anything else but install this product...anyone else have this problem??


rogersnm 06-17-2006 09:14 AM

I ahve fixed iresfire's problem and he gave me a donation (thank you) He had plugin manager reloaded. It managed to latch on during the upgrade and messed up the pluygin system just do me 1 think. Go to your forums, Go to admin cp, right click on Pruduct Manager, Open in new window, tell me what the link is. If it is advplugins.php then you have the same problem as him. Just upload the new plugin mananger for vb3.6 reloaded and then run this query:
Code:

ALTER TABLE `plugin` ADD `flag` TINYINT( 1 ) UNSIGNED DEFAULT '0' NOT NULL
(if ou have a table prefix please add it before plugin` eg. so if your prefix was vb it would be `vbplugin`) and then manually add this plugin:
Quote:

Title: Plugin System Adjustments
Hook Location: admin_global
Execution order: 1
and then for contents add:
Quote:

if (preg_match('/plugin\.php$/', $_SERVER['PHP_SELF']))
{
if (!$_REQUEST['do'] OR $_REQUEST['do'] == 'modify' OR $_REQUEST['do'] == 'product')
{
exec_header_redirect('advplugins.php');
}
if ($_REQUEST['do'] == 'updateactive')
{
if (!function_exists('plugin_updateactive_handler'))
{
function plugin_updateactive_handler()
{
exec_header_redirect('advplugins.php');
}
}
ob_start('plugin_updateactive_handler');
}
if ($_REQUEST['do'] == 'edit' OR $_REQUEST['do'] == 'add')
{
if (!function_exists('plugin_edit_handler'))
{
function plugin_edit_handler($output)
{
global $vbphrase, $vbulletin;

$output = str_replace("<input type=\"reset\"", "<input type=\"submit\" class=\"button\" tabindex=\"1\" name=\"return\" value=\"$vbphrase[save] &amp; $vbphrase[reload]\" accesskey=\"e\" />\n<input type=\"reset\"", $output);
return $output;
}
}
ob_start('plugin_edit_handler');
$vbulletin->nozip = true;
}
if ($_REQUEST['do'] == 'update' AND $_REQUEST['return'])
{
if (!function_exists('plugin_update_handler'))
{
function plugin_update_handler($output)
{
global $_REQUEST;
return str_replace('plugin.php', 'plugin.php?do=edit&pluginid=' . $_REQUEST[pluginid], $output);
}
}
$vbulletin->nozip = true;
ob_start('plugin_update_handler');
}
}

Then the plugin system should work. So you can import the plugin manager reloaded xml properly so it has all the phrases.

MR-2ZZ 06-30-2006 04:41 AM

This should be a stock feature!!! Very nice!

curtisstanier 07-02-2006 10:35 PM

Amazing Addon Thanks :) *Clicks Install*

a simple fa?ade 07-07-2006 05:29 PM

This is a fine (although simple) hack.

Kudos for making it though. :)

[high]* a simple fa?ade clicks Installed.[/high]

Maxman1544 07-09-2006 03:41 PM

Thanks! This is pretty useful.

Ophelia 07-15-2006 06:20 PM

I get the following error when I try to install:

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO vb_plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '1', 'Forum Home Announcement [Template Alteration and Variables]', 'global_start', 'eval(\'$nick_announce = \"\' . fetch_template(\'nick_announce\') . \'\";\');\r\n switch ($vbulletin->options[\'announce_position\'])\r\n {\r\n case 1:\r\n $Position = \'<!-- what\\\'s going on box -->\';\r\n break;\r\n\r\n case 2:\r\n $Position = \'<!-- end what\\\'s going on box -->\';\r\n break;\r\n\r\n case 4:\r\n $Position = \'<!-- main -->\';\r\n break;\r\n\r\n default:\r\n $Position = \'$navbar\';\r\n break;\r\n }\r\n\r\n$vbulletin->templatecache[\'FORUMHOME\'] = str_replace($Position, $Position . \' $nick_announce\', $vbulletin->templatecache[\'FORUMHOME\']);', 'nicks_homeannoncement');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Saturday, July 15th 2006 @ 03:18:27 PM
Script : http://www.site.net/forum/boss/plugin.php
Referrer : http://www.site.net/forum/boss/plugin.php?do=productadd
IP Address : my number
Username : myname
Classname : vb_database

rogersnm 07-22-2006 02:31 PM

please use the 3.5 version: https://vborg.vbsupport.ru/showthread.php?t=118315

iran.gs 08-11-2006 12:16 PM

lnstalled works like a charm

cbr929rrerion 08-14-2006 03:26 PM

anyway to get this to work on 3.5?

cbr929rrerion 08-14-2006 03:28 PM

Ignore my stupidity... Got it.. installed

cbr929rrerion 08-14-2006 04:04 PM

Installed.. Sweet.. This will help alot..

I edited it a little to fit my theme.. Looks really nice...

Pedro! 08-14-2006 05:42 PM

So glad I found this. Thanks alot dude.

[high]* Pedro! thinks it would prove very useful for placing ads too :D
[/high]

(Installed).

Ivander 08-14-2006 06:00 PM

Thank you.Installed

Simple but good !

One question: Maybe you can add a option to show the "Announcment Box" only for registered User's of the Forum ?

Excuse my bad english

Wheemer 10-06-2006 10:07 AM

Can the settings page have a righ text editor, and can the input box be larger?

Virtuosofriend 10-10-2006 06:14 AM

You could make it that way so it gets the most recently created thread from a selected forum and show its title on forumhome ;).

gullystation 12-04-2006 04:03 PM

Hi there, ive installed it and it works brilliantly. Just one thing to ask though. Is it possible to get it above the navbar?

steadicamop 12-05-2006 05:50 PM

Great hack - how easy it is to make this usergroup based? Basically I want all other usergroups other than not logged in/not registered - so viewable only by members.....

Cheers

Mudvayne 01-02-2007 07:15 AM

Hey nice hack. But I've got one problem.
Quote:

Uncached templates: nick_announce (1)
You can add a plugin to cache template. 'll you please?

Also I need a small help. I'm using custom skin & Zero Tollerence's 'Welcome Panel'. So 'll it be possible to show the block above 'Welcome Panel'?

One more request. You can add collupse option :).

Mudvayne 01-02-2007 02:28 PM

Once again, I've found uncached template in everywhere in my forum. I 'll post the screenshot if u need.

GrossKopf 01-28-2007 03:36 AM

Ok, I'm lost.. what exactly does this do? I imported the xml file, but now what?

Veer 04-17-2007 03:35 PM

How can i turn announcement on all vb pages? or forumdisplay and showthread?

by the way.. I have just edited the plugin and added following codes:
Code:

$vbulletin->templatecache['FORUMDISPLAY'] = str_replace($Position, $Position . ' $nick_announce', $vbulletin->templatecache['FORUMDISPLAY']);
And its works fine on Forum Display.

Terminatoronly 04-18-2007 03:43 PM

Installed

Fungsten 04-20-2007 01:51 AM

Change the format so it's like using the regular announcements? Thanks.

wickedstangs 06-07-2007 03:54 AM

installed, and works fine on 3.6.7 PL1

Bree 07-09-2007 12:03 AM

Holy Kittens that was quick and works beautifully! Thanks muches!

Always, Bree
vB 3.6.7 PL1

roxxx 07-12-2007 07:01 AM

Question,

Is it possible that other user can modify this announce ?


All times are GMT. The time now is 12:49 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.01233 seconds
  • Memory Usage 1,815KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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