![]() |
As always, thank you for the unreal amount of assistance you have given us with this hack. I feel I can't say it enough times. :D
Quote:
Quote:
Quote:
Quote:
I just started parsing through the upgrade_warn.php and looking in phpmyadmin to see about the database tables. That's where the problem seems to be. Looks like it never updated the warning_options table, although it did all the other ones. I'm assuming that everything up to this point probably worked. So now how do I fix it? |
Quote:
|
Quote:
Let me know, because everything seems to be OK here. Rgds |
Quote:
|
Quote:
Then download the zip and upload Warn.php and includes/functions_warning.php files to your server. Sorry for the inconvenience and thanks for cathing this. |
Btw that "saving options properly" issue... Wouldnt it make more sense to put an if() around the page calculation page, saying summit liek if ($options['warn_perpage'] == 0) { $options['warn_perpage'] = 15; }, to avoid these bugs?
|
Quote:
|
Quote:
OK, the description of each table is (more or less) shown inside the install_warn.php file, found inside the admincp directory in the upload directory of the zip. Check them out and let me know where you stand. Or you may try the uninstaller and start from scratch. It will remove the additional template, tables and phrases, and then you can run install_warn.php from scratch. Rgds |
Quote:
|
Quote:
|
Hehe.
Well a way to educate the admins then would be to add this instead of "$options['warn_perpage']" in the above example: "standard_error('You are too stupid to add proper values, so unless you fix this, the hack will not work.')" ;) (the above should be taken with an open mind, as it was a joke and in no way an attempt to insult Samir, since it wasn't even his fault ;)) |
correct me if i'm wrong but when you set the "Allow Off-Post Warnings?" to yes, isnt the 'warn x' and view x's warnings links suppose to show in the users profile, like they do in posts...
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Rgds |
If its not too much of a problem, would someone be so kind to check my MEMBERINFO for the problem...
Quote:
|
i'm very new to vb.
i need something like this because i have quite a few +++++++s on my board. i'm about to install it. wish me luck! :nervous: |
Quote:
Logically, I can follow code quite well. It's kinda wierd that the last 2 queries didn't run since it was all in an array. I'm pretty familiar with queries, but I don't know the exact format (especially when taking them out from php). If you could just let me know if this query is right, then I think I've got the query part down (I have no table prefix): Code:
alter table warning_options |
Quote:
The query above is the one which modifies ZT's table to mine, but it is an older version, it does not have the 'version' column, download the last zip and get it from the upgrade_warn.php file. Rgds |
Quote:
Quote:
|
Quote:
Rgds |
Well, here's what I got back from the SQL Query:
Code:
Database forum - Table warning_options running on hsvtest.ods.org |
Quote:
You said you have no TABLE_PREFIX, so run this query here: alter table warning_options add `version` char(10), add `hierarchical` char(3), add `automatic` char(3), add `automaticpm` char(3), add `automatic_warner` int(10) unsigned, add `warner` int(15), add `troll_usergroup_id` varchar(10), add `aprotected_usergroups` varchar(10), add `restore_groupid` smallint(5) unsigned, add `incr_ban_days` char(3), add `max_no_bans` int(5), add `viewoption` char(3), add `multiple_per_post` char(3), add `send_pm_warning` char(3), add `send_em_warning` char(3), add `historical` char(3), add `allowoffpost` char(3), add `warnings_per_page` int(3) Rgds |
Quote:
|
That worked. Should I go ahead and run the other query that put the default options in the tables or should I just go ahead and set the warning options through admincp?
|
can somebody please help me.
i cannot find this... Code:
$post[reputationdisplay]</if> the only thing that comes close to that is this: Code:
<div class="smallfont"> Code:
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if> i'm very new to coding thanks in advance |
with my post above i've used my best guess.
looked like some of the lines were in that exact letter case. i have another problem. everythign seems to be okay but when i try to enter threads it looks like the image below. i've re-enter the lines of codes neccesary for showthread.php and functions_showthread.php can any of you tell me why it's doing this. please help thanks in advance |
Quote:
|
Quote:
|
Quote:
hopefully NO PROBLEMS. first time hacking my board. :eek: |
Quote:
alter table `warning_options` add `automaticpm` char(3) after automatic But, still you do not have all the columns in the table. What I see missing is the 'version` column. Folks, please download and install always the latest version. Or, make sure you always upgrade to the latest version, or else it is very difficult for me to support you. Rgds |
all up and running ;)
|
Well, I tried the query and ran it--worked fine. Set all the options--set fine. Went to see what it looked like on the board--had 2 copies of "Warn User" and "View Warnings"--no biggie, probably just a template error. Got a blank page when I tried to warn user or view warnings--probably just something was messed up.
I unstalled using the uninstaller.php and then tried to look at the forum--blank page. Now I can't get anything out of my board, but a blank page. I can't even get to admincp. What did I do wrong? |
revert all the modified templates *.php files you do have a copy do you ? and what about a database backup BEFORE you try to install this hack ? always backup when something is "havy" modifying the original code
|
I got just a little bug. Everything working fine, but this error allways appears when I'm adding a warning
Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/site/public_html/forum/Warn.php(310) : eval()'d code on line 23 |
You can't even get in your admincp??? That's odd. You must have messed something up, but I have no idea where. The uninstaller is only removing the templates added by the hack, the tables and the settings. It doesn't touch anything else.
Try reverting your admincp/index.php file to the original and see if that works. Keep me posted. I'll try to check here often to see how I can help. |
Hi,
I have one small last error with this hack in version 2.3.1. If I take a look in the threads I get an display error in the Internet Explorer. Please take a look at the screenshot. Can someone send me the correct modified template or post it here please? |
Quote:
|
Quote:
PHP Code:
|
All times are GMT. The time now is 06:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|