vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

H@K@N 05-25-2006 09:37 AM

delphi,

have still the problem that i cannot add any Warning Types anymore.

this is what i am getting:

Quote:

Invalid SQL:
INSERT INTO warning_types VALUES(
'',
'direk BAN',
'5',
'Saygisizlik direk BAN',
'9999',
'Yes',
'No',
'No',
''
);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
I have upgraded my AWS to yours with Phrases, but still same issue.

How can i solve this ? Delete warning_types and reimport Product ?


th@nks

blackshadowc4p 05-25-2006 07:20 PM

One question. I have it installed and it is working just perfect. But, I would like to give supermods power to the admin interface of this hack.

Is it possible to put config interface we have on admincp also on modcp (but only for supermods)? If yes, how?

Thanks.

bosal 05-25-2006 08:43 PM

great hack but i have a request... please make a change.

I have sub forums and on it moderators, they only can manage the post and theards. But i can't block the option with warnings, I don't want them to have this option.

Please help, or make a permision addon.

StarDome 05-26-2006 03:07 PM

Everything but my warn user and view warning features work...for some reason I just get a blank page when I click the link for it.

how can I make it work?

CaffeineGibbs 05-27-2006 01:37 PM

Slighty query. the skin I'm using doesnt have

In Template navbar
FIND
------------------------------------------------------------------------------------------
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
------------------------------------------------------------------------------------------

This is the actual code of the template navbar of the skin I'm using.

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(gray scale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="page" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="page" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="middle">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<td class="page" width="100%" align="left" valign="middle">
<div align="center">
<!-- Red2Black Banner Placement -->

<!-- / Red2Black Banner Placement -->
</div>
</td>
<if condition="$bbuserinfo['userid']">

<td class="page" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<br /><if condition="$rcount != ''">$rcount<br /></if>
</div>
</td>

<else />

<td class="page" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />

---------------
Where would I have to put the
<tr><td class="thead">Warnings</td></tr>
<tr><td class="vbmenu_option"><a href="Warn.php?$session[sessionurl]do=ViewMyWarnings">View Your Warnings</a></td></tr>

instead? I'm not too sure where to put it exactly

Delphiprogrammi 05-27-2006 02:21 PM

Quote:

Originally Posted by H@K@N
delphi,

have still the problem that i cannot add any Warning Types anymore.

this is what i am getting:



I have upgraded my AWS to yours with Phrases, but still same issue.

How can i solve this ? Delete warning_types and reimport Product ?


th@nks

uninstall and reinstall weird however i don't have that issue in here

Delphiprogrammi 05-27-2006 02:22 PM

Quote:

Originally Posted by blackshadowc4p
One question. I have it installed and it is working just perfect. But, I would like to give supermods power to the admin interface of this hack.

Is it possible to put config interface we have on admincp also on modcp (but only for supermods)? If yes, how?

Thanks.

No that's not possible

Delphiprogrammi 05-27-2006 02:23 PM

Quote:

Originally Posted by bosal
great hack but i have a request... please make a change.

I have sub forums and on it moderators, they only can manage the post and theards. But i can't block the option with warnings, I don't want them to have this option.

Please help, or make a permision addon.

that's already there usergroups [usergroupid] = can issue warnings => No

Delphiprogrammi 05-27-2006 02:25 PM

Quote:

Originally Posted by StarDome
Everything but my warn user and view warning features work...for some reason I just get a blank page when I click the link for it.

how can I make it work?

did you added warningtypes ? at least one non post related one.Did you uploaded all files to there proper location ?

Delphiprogrammi 05-27-2006 02:29 PM

Quote:

Originally Posted by CaffeineGibbs
Slighty query. the skin I'm using doesnt have

In Template navbar
FIND
------------------------------------------------------------------------------------------
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
------------------------------------------------------------------------------------------

This is the actual code of the template navbar of the skin I'm using.

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(gray scale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="page" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="page" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="middle">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<td class="page" width="100%" align="left" valign="middle">
<div align="center">
<!-- Red2Black Banner Placement -->

<!-- / Red2Black Banner Placement -->
</div>
</td>
<if condition="$bbuserinfo['userid']">

<td class="page" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

<if condition="$pcount != ''">$pcount<br /></if>

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<br /><if condition="$rcount != ''">$rcount<br /></if>
</div>
</td>

<else />

<td class="page" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<br />

---------------
Where would I have to put the
<tr><td class="thead">Warnings</td></tr>
<tr><td class="vbmenu_option"><a href="Warn.php?$session[sessionurl]do=ViewMyWarnings">View Your Warnings</a></td></tr>

instead? I'm not too sure where to put it exactly

let me guess you are using a custom skin from sites like vbstyles.com (and similair) i have in the past purchased one vbstyles.com skin and there templates are verry hard to edit.That piece of code is to add a link to Warn.php in your quicklinks menu.Sow i suggest you look at your quick links write them the last item and below that ........ add the code but make a comment around it so you can easly remove it (template newbar)

HTML Code:

<!-- this is a comment ->
code here
<!-- this is another comment ->



All times are GMT. The time now is 03:34 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.03029 seconds
  • Memory Usage 1,805KB
  • 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_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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