vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Banned Members Log (https://vborg.vbsupport.ru/showthread.php?t=195054)

HolyKiller 02-22-2009 06:21 PM

2 Mosh: Yes, after disabling Banned Members Log (3) the indexpage loads correctly.

EDIT: I tested something and i am rly confused about this...

1)
- Installed FRESH vBulletin 3.8.0 on my localhost. Don't make any changes, just install. Then used this MOD and it works perfectly. No errors on index page, ban_log.php works OK.
- Saved (exported) vBulletin options


2)
- Backuped whole DB and all files from my "life" forum and copied it on my localhost.
- Installed this MOD
- Disabled AdSense integration
- Disabled and UnInstalled ALL products and ALL plugins
- Reverted ALL template changes and ALL CSS definitions
- UnInstalled ALL nondefault templates. (So only Default skin remained without any customizations)
- Deleted ALL forums and child forums and created only one new category and one new forum
- Deleted ALL nondefault usergroups
- Deleted ALL notifications
- Deleted ALL thread prefixes
- Imported vBulletin options from fresh vB instalation
- In Maintenance used "Repair / Optimize Tables" on all tables
- In Maintenance used all of the "Update Counters"
- Again used "Repair / Optimize Tables"
- So now i should have forum equal to fresh instalation, but the problem still remains
- Unsintalled MOD, again used "Repair / Optimize Tables", browser cache deleted and Apache restarted
- Problem is still here :(

So now i rly don't know what to do

Mosh 02-22-2009 07:42 PM

Quote:

Originally Posted by HolyKiller (Post 1751655)
2 Mosh: Yes, after disabling Banned Members Log (3) the indexpage loads correctly.

I suspected that. But there is not actually a parse error, it is something to do with your installation, but I don't know what is causing it.

All that plugin does is to add a link to the navbar or quick links menu on the navbar. So, all you need to do, is leave that plugin disabled and if you want to add the link manually added to the navbar template, paste the following where you want the link to display:

HTML Code:

<!-- $vbphrase[banned_members_log] v3.8.002 ? Mosh Shigdar 2008 - 2009 --><td class="vbmenu_control"><a href="$vbulletin->options[bburl]/ban_log.php?$session[sessionurl]">$vbphrase[banned_members_link]</a></td><!-- end of Banned Members Log -->

HolyKiller 02-22-2009 08:11 PM

2 Mosh: Ok, thanks, i will try it.

BTW: Edited my previous post


EDIT: ARGHHHHHHH!!!

Now i rlly DON'T KNOW WHY, but if now i'm looking in code of Banned Members Log (3) of my copy of life forum i see uncomplete code!!

PHP Code:

// version information
$bml_version 'v3.8.002'

// set display link flag to false
$show_bml_nav_link false;

// if allow show to all usergroups, then set display link flag to true
if ($vbulletin->options['bml_all_grps'] == 0)
{
    
$show_bml_nav_link true;
}

// if user in allowed usergroup, then set display link flag to true
$banned_allowed_groups explode(',',$vbulletin->options['bml_grps']); 
if (
$vbulletin->options['bml_all_grps'] == && (is_member_of($vbulletin->userinfo,$banned_allowed_groups)))
{
    
$show_bml_nav_link true;
}

// if the display link flag is true, then add the link to the navbar or quicklinks
if ($show_bml_nav_link)
{
    if (
$vbulletin->options['bml_nav_link'] == 1)
    {
        
$template_hook['navbar_buttons_left'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. 

BTW: The lastest row missing one ' here in PHP tag ... accualy i see this:
$template_hook['navbar_buttons_left'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'.


And if i look into fresh vBull instalation with this MOD i see this (correct code). And ofcourse, after i copy&pasted full code to my forum, problem solved, everything is FINE ... so, there is some &ł@$&!!! mistake in plugin importation.

PHP Code:

Plugin PHP Code
// version information
$bml_version 'v3.8.002'

// set display link flag to false
$show_bml_nav_link false;

// if allow show to all usergroups, then set display link flag to true
if ($vbulletin->options['bml_all_grps'] == 0)
{
    
$show_bml_nav_link true;
}

// if user in allowed usergroup, then set display link flag to true
$banned_allowed_groups explode(',',$vbulletin->options['bml_grps']); 
if (
$vbulletin->options['bml_all_grps'] == && (is_member_of($vbulletin->userinfo,$banned_allowed_groups)))
{
    
$show_bml_nav_link true;
}

// if the display link flag is true, then add the link to the navbar or quicklinks
if ($show_bml_nav_link)
{
    if (
$vbulletin->options['bml_nav_link'] == 1)
    {
        
$template_hook['navbar_buttons_left'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><td class="vbmenu_control"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td><!-- end of Banned Members Log -->';
    }
    if (
$vbulletin->options['bml_nav_link'] == 2)
    {
        
$template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
    }



HolyKiller 02-22-2009 08:57 PM

Okay, i find the problem ... the problem is in the symbol "?" in XML file on line 230 and 234.

Code:

        $template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
Exactly here:
? Mosh Shigdar 2008 - 2009


The plugin import system just don't go thru this and does NOT import the whole code.

After i deleted the ? symbol 230 and 234 in XML file and imported the plugin again, everything is fine.


Now all works fine and i'm so happy. Thanks again for great hack :)

Holy

Mosh 02-23-2009 05:09 AM

Quote:

Originally Posted by HolyKiller (Post 1751784)
Okay, i find the problem ... the problem is in the symbol "?" in XML file on line 230 and 234.

Code:

        $template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
Exactly here:
? Mosh Shigdar 2008 - 2009


The plugin import system just don't go thru this and does NOT import the whole code.

After i deleted the ? symbol 230 and 234 in XML file and imported the plugin again, everything is fine.


Now all works fine and i'm so happy. Thanks again for great hack :)

Holy

No wonder I could not replicate it :eek:

Oh well, I will just have to change it for the next version, as I am assuming that will only happen in very limited cases, as apart from yours I have not come across a case where it would not parse the copyright symbol (just me trying to be fancy).

Thanks for tracking it down :)

Mosh 02-24-2009 10:28 PM

Update: v3.8.003 - Wednesday 25th February 2009
-- Fixed: Banned Members Log (3) plugin - replaced 2 x © with (c) to prevent parse errors (rare cases)
-- Changed: Files - ban_log.php (streamlined a couple of SQL queries)
-- Changed: banned_log template (column display order)
-- Changed: banned_perm_row template (column display order)
-- Changed: banned_temp_row template (column display order)
-- Updated: Files - ban_log_cron.php, hooks_ban_log.xml
-- Updated: Installation Instructions
-- Updated: Screenshots

Sunka 03-01-2009 10:11 PM

Quote:

Originally Posted by Sunka (Post 1684811)
Installed, but disabled untill this errors gone :D

When this MOD is enable this errors shows on top of the page:

On portal page:

Code:

Parse error: syntax error, unexpected T_STRING in /home/pijanitv/public_html/forum/global.php(614) : eval()'d code on line 1445

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in [path]/modules/currentpoll.php on line 39

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in [path]/modules/news.php on line 127

On forum index page:

Code:

Parse error: syntax error, unexpected T_STRING in /home/pijanitv/public_html/forum/global.php(614) : eval()'d code on line 1445
What to do? :confused:

Quote:

Originally Posted by Mosh (Post 1686282)
One of your other hacks seems to be conflicting with the Banned Members Log (3) plugin which displays the banned members on the forumhome page.

You need to check any other hacks that are using the parse_templates hook to see if they are the cause of the issue. If you can not track it down, you can always disable the Banned Members Log (3) plugin and live without the banned member count on the forumhome page.

Quote:

Originally Posted by Mosh (Post 1753729)
Update: v3.8.003 - Wednesday 25th February 2009
-- Fixed: Banned Members Log (3) plugin - replaced 2 x ? with (c) to prevent parse errors (rare cases)
-- Changed: Files - ban_log.php (streamlined a couple of SQL queries)
-- Changed: banned_log template (column display order)
-- Changed: banned_perm_row template (column display order)
-- Changed: banned_temp_row template (column display order)
-- Updated: Files - ban_log_cron.php, hooks_ban_log.xml
-- Updated: Installation Instructions
-- Updated: Screenshots

Quote:

Originally Posted by HolyKiller (Post 1751784)
Okay, i find the problem ... the problem is in the symbol "?" in XML file on line 230 and 234.

Code:

        $template_hook['navbar_quick_links_menu_pos1'] .= '<!-- '.$vbphrase['banned_members_log'].' '.$bml_version.'. ? Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/ban_log.php?'.$session['sessionurl'].'">'.$vbphrase['banned_members_link'].'</a></td></tr><!-- end of Banned Members Log -->';
Exactly here:
? Mosh Shigdar 2008 - 2009


The plugin import system just don't go thru this and does NOT import the whole code.

After i deleted the ? symbol 230 and 234 in XML file and imported the plugin again, everything is fine.


Now all works fine and i'm so happy. Thanks again for great hack :)

Holy

Quote:

Originally Posted by Mosh (Post 1752044)
No wonder I could not replicate it :eek:

Oh well, I will just have to change it for the next version, as I am assuming that will only happen in very limited cases, as apart from yours I have not come across a case where it would not parse the copyright symbol (just me trying to be fancy).

Thanks for tracking it down :)


Now is working OK Mosh...

Jon1422 06-11-2009 04:34 PM

Excellent Hack - thank you Mosh :) ...and good luck with the exams :)

One thing I would like to change is to remove the 'banned by' column - it doesn't really fit in on our forum. If anyone could advise how to go about that I'd appreciate it :)

Jon1422 06-15-2009 07:04 AM

Quick word of advice... when installed, the "ban time remaining" and "lift ban" column headers for temp bans are over the wrong columns ;)

To correct, edit the .xml file prior to installing and locate the code lines:

<td class='thead' align='center'>$vbphrase[ban_time_remaining]</td>
<td class='thead' align='center'>$vbphrase[lift_ban]</td>

and swap these around so they read...

<td class='thead' align='center'>$vbphrase[lift_ban]</td>
<td class='thead' align='center'>$vbphrase[ban_time_remaining]</td>

Done ;)

Mosh 06-23-2009 12:53 AM

Quote:

Originally Posted by Jon1422 (Post 1827696)
Excellent Hack - thank you Mosh :) ...and good luck with the exams :)

One thing I would like to change is to remove the 'banned by' column - it doesn't really fit in on our forum. If anyone could advise how to go about that I'd appreciate it :)

In the banned_log template, find and delete the two instances of:
HTML Code:

<td class='thead' align='center'>$vbphrase[banned_by]</td>
In the banned_perm_row and banned_temp_row templates, find and delete:
HTML Code:

<td><div class='smallfont'><a href="member.php?$session[sessionurl]u=$user[adminid]">$user[adminname]</a></div></td>
That is all that is needed :)


All times are GMT. The time now is 07:01 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.04962 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
  • (5)bbcode_code_printable
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (8)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
  • (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