The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Ah - okay, I was looking in an original copy of the file. Forgive me, I'm new to this editing of the core files of the program.
On the replacement of the "X1", "X2", etc. with the forum ID numbers, I will eventually have about 35-50 forums. I am assuming I just continue the PHP Code:
And also, what do I replace the "W2" in this line with: PHP Code:
This is the format I am planning on: -Main Category --Forum 1 ---Sub-Forum 1.1 ----Sub-Forum 1.1 submitted questions ---Sub-Forum 1.2 ----Sub-Forum 1.2 submitted questions ---Sub-Forum 1.3 ----Sub-Forum 1.3 submitted questions ---etcetera, and so on --Forum 2 ---etcetera, and so on -Second Category --Forum 1b ---Sub-Forum 1b.1 ----Sub-Forum 1b.1 submitted questions ---etcetera, and so on You get the idea it will be a big forum with many sub-forums. So by my second question I mean in that "else" statement, does the "W2" variable just get replaced with the forum ID of the Main category the forums are in? Because there are two categories...I just don't want to flub this up. For a non-programmer, there's nothing worse than loading up the page and a jumble of code or error message popping up! Thanks again for the help! |
#12
|
||||
|
||||
Quote:
Quote:
So in other words just use any forumid there. Eg. An admin only forum will be a good start. |
#13
|
||||
|
||||
Cool - so I've added the lines of code, created two of the "submitted question subforums", edited the "X1", "X2", etc.
Hopefully this is my last question: In this line of code: PHP Code:
----- Also, do I just copy and paste these in, or do I follow the format of the if-then-else statements (two spaces indentation, etc.) elsewhere in the file? Before uploading this new file I want to make sure it's all okay. |
#14
|
||||
|
||||
Quote:
You'd better post here what you applied to your script and let's see if it's correct. |
#15
|
||||
|
||||
Okay, here goes:
PHP Code:
|
#16
|
||||
|
||||
<I'm not sure what's happening, I've tried replying a couple of times and my posts keep coming up in the wrong order...I think the moderators changed the time on the server, which is throwing off the posting queue>
Yah, okay, I forgot to change the Z1, Z2, etc., variables, I should have commented those out before pasting them in my post. I've been trying to follow the directions but it's a little hard for me I guess since I'm not familiar with the coding - is this right, then? PHP Code:
|
#17
|
||||
|
||||
no your code is wrong. Please read the instructions carefully. You are supposed to replace the line:
PHP Code:
Also u should NOT touch that part: Quote:
PHP Code:
|
#18
|
||||
|
||||
This code should work:
PHP Code:
|
#19
|
||||
|
||||
Thanks Logician,
I copied and pasted your code above in my newthread.php using Notepad (to keep the formatting correct, Wordpad messed it up), then tried posting as a guest in my forum and got "Parse error: parse error on line 449" I've attached the newthread.php file, could you look at it and see what may be messed up? I'm pretty sure I pasted it in correctly. <file deleted per post below> |
#20
|
||||
|
||||
This is because you inserted the hack code into the wrong section in the first place. Now follow me and please proceed carefully:
1- Revert back to your original newthread.php 2- find: PHP Code:
PHP Code:
(Btw. please remove your file from the post above. Site rules do not allow posting of entire vb files here.) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|