A little bit of knowledge...


  -----  
Author Message

Swat
Member

Wed Apr 25, 2007 2:47 pm   Post subject: A little bit of knowledge...
Overwhelmed with the barriage of spam bots I decided to add VC on Posting code. I used easymod to install it and had a several errors. Returning to the root dirctory of my mod control panel I ran the install again to read the error codes more carefully. Most pointed to theme templates so I didn't pay any attention to it, but one stated that no database was found. First problem I have now is when I open the configuration control panel I have 4 places where the mod setting appear:



I've gone back to the install.txt file => Files To Edit:
## admin/admin_board.html,
## posting.html,
## templates/subSilver/posting_body.tpl,
## templates/subSilver/admin/board_config_body.tpl

And deleted all the redundent adds. What am i missing...please concider you are talking to a complete tard here Embarassed
 

Thoul
Administrator

Wed Apr 25, 2007 9:23 pm   Post subject: Re: A little bit of knowledge...
It's hard to be certain without knowing exactly what Easymod told, but it sounds like you didn't use the included install.php to add the database portions of the mod. Just upload the install.php to your forum's root (where viewtopic.php is) and visit it in your web browser (go to http://www.yoursite.com/yourforum/install.php, replacing the appropriate parts of that with your actual forum's address). That should take care of it.
 

Swat
Member

Fri Apr 27, 2007 3:10 pm   Post subject: Re: A little bit of knowledge...
I'll give that a try Thoul, thanks! Any idea why my admin panel is showing 4 copies of the hack and which file I should look at to manually remove the additional entries?
 

Swat
Member

Fri Apr 27, 2007 4:08 pm   Post subject:
Okay..i moved the install.php over to root and ran. worked sweet with no problems. I opened the admin panel and now the section for VC looks like this:



notice the four intances of settings...anyways the additional fields for code modified is already populated and when i make changes to the number of posts and all users they save.

So I opened a new account to test. new account creation worked fine and I logged in under new account. the default screen looks like this:



However when I try to post new topic or even respond to a current thread I get this:



where all that comes up is the background without any windows. If I lower the minimum number of posts to "0" then it works fine, however kinda defeats the purpose of the hack Embarassed [/url]
 

Thoul
Administrator

Fri Apr 27, 2007 9:32 pm   Post subject: Re: A little bit of knowledge...
The four instances of settings could be caused by duplicated code in admin/admin_board.php or templates/xxxx/admin/board_config_body.tpl.

I'm not quite sure what is causing the posting form issues. What is the name of the template you're using? This might be a conflict between the HTML in posting_body.tpl vs. the HTML used in the mod.
 

Swat
Member

Sat Apr 28, 2007 7:52 am   Post subject: Re: A little bit of knowledge...
Thanks for the quick response Thoul Smile The template we are using is Cobalt 2.0. That makes sense that it might be a conflict with the template. I've got to run out of town on business but I will try changing the template to defauilt when I return to see if that fixes the problem.
 

Swat
Member

Thu May 03, 2007 8:56 am   Post subject:
Thoul, I tried the SubSilver default template and had the same problem with new members being able to post anything...they can view fine, but when they try to trespond the whole body of the page is missing. Here is a screen shot:



One thing I did notice was that the configuration screen now only showed one instance of the hack now. I will go into the templates/xxxx/admin/board_config_body.tpl file since the replications seem to be template specific.
 

Swat
Member

Thu May 03, 2007 9:27 am   Post subject:
yup, that was the file that I must have missed when I was attempting to remove the redundent entries of code. It now shows just one instance using either template, however if I have anything other than "0" in the field for Maximum Posts then new members get the blank screen when trying to post.
 

Thoul
Administrator

Thu May 03, 2007 1:27 pm   Post subject: Re: A little bit of knowledge...
Ok, so that eliminates the tpl files as a possible problem. It looks like the script is silently quiting without printing any errors somewhere after the header loads. I have to say that's very odd; it's the first time I've seen this happen with this mod.

Let's see if we can get the page to give us an error message. In your common.php, find this:

Code:

error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables


Change it to :

Code:

error_reporting(E_ALL);


This will (hopefully) show any error messages that might have been suppressed before. Try the posting form again and see if anything changes on the page. You can reverse this change after that.
 

Swat
Member

Fri May 04, 2007 7:30 am   Post subject:
Thoul, I really appreciate all your help. I modified the common.php file as you can see from the screen shot below, however when i go to post as a new member I have the smae problem. The banner loads, but nothing else.


 

Page 1 of 3
Go to page 1, 2, 3  Next
Display posts from previous: