PDA

View Full Version : Control Forumjump Depth Level


Tommy Boy
12-13-2001, 10:00 PM
There are currently two settings which affect the display of forum levels, but none of them affects the forumjump box. This hack will add a third option to the Admin control panel, with the role of taking care of the forumjump box depth level.

Highly useful for board with a lot of child forums! Without this hack, all forums are displayed in the forumjump box, thus reducing its effectiveness and attractiveness.

Please post your opinions on this hack, and whether you like it or not. I was discouraged when no one installed my last hack (https://vborg.vbsupport.ru/showthread.php?threadid=33052), and it might determine whether I keep releasing hacks in the future...

Thank you!

What's new in version 1.1?
When moving a thread, the target forums list should contain all the forums. This has been fixed in this version. If you have already installed the first version, read the instructions on post #10 in this thread. Otherwise, the attached files are already updated.

Tommy Boy
12-14-2001, 01:57 PM
Admin Control Panel Screenshot...

bira
12-14-2001, 02:22 PM
Very good idea, Tommy.

I don't have many forums and I only have one level of forums to begin with, so this hack won't be of use to me. But I know there are many here who could really use it.

Please don't be discouraged. We all learn as we go along. Your previous hack had a very good idea but a problematic installation which might have deterred people. But you got the potential of being a great asset to us all. I'd hate to see you stop releasing.

FWC
12-14-2001, 04:42 PM
[QUOTE]Originally posted by Tommy Boy
Please post your opinions on this hack, and whether you like it or not. I was discouraged when no one installed my last hack (https://vborg.vbsupport.ru/showthread.php?threadid=33052), and it might determine whether I keep releasing hacks in the future...

Thank you!

Wayne Luke
12-14-2001, 05:00 PM
I might be able to use this. I am debating on whether or not to add Usenet Groups. If I do, it would increase my forum depth to 4 levels counting categories. That will be way too much to show on the forumjump box.

This could come in handy, thanks for it. I downloaded it and will click the install button if I get that far.

VirtueTech
12-14-2001, 06:29 PM
great idea...I have over 190 forums and they do not need to all be in the forumjump.

Good job! This will save on bandwidth and maybe a little on server resources as well.

VirtueTech
12-14-2001, 06:57 PM
How can I make this work in 2.0.3?

Please let me know as it would be huge for my forums. HUGE! :)

I don't see the scripts "Showgroups.php" in my 2.0.3 and this is a must have for my forums.

Tommy Boy
12-14-2001, 09:22 PM
[QUOTE]Originally posted by VirtueTech
How can I make this work in 2.0.3?
Please let me know as it would be huge for my forums. HUGE! :)
I don't see the scripts "Showgroups.php" in my 2.0.3 and this is a must have for my forums.

VirtueTech
12-14-2001, 09:35 PM
ok trying now

Tommy Boy
12-14-2001, 09:48 PM
To update from version 1.0 to 1.1, do this:

Open postings.php, look for:
--------------------------------------------------------------------------------
global $hideprivateforums,$bbuserinfo,$session, $useforumjump;
--------------------------------------------------------------------------------

Replace with:
--------------------------------------------------------------------------------
global $hideprivateforums,$bbuserinfo,$session, $useforumjump,$forumjumpdepth;

// Forumjump Depth Hack
$oldforumjumpdepth = $forumjumpdepth;
$forumjumpdepth = 1000;
--------------------------------------------------------------------------------

Still in postings.php, look for:
--------------------------------------------------------------------------------
$useforumjump=$olduseforumjump;
--------------------------------------------------------------------------------

After it, add:
--------------------------------------------------------------------------------
$forumjumpdepth=$oldforumjumpdepth; // Forumjump Depth Hack
--------------------------------------------------------------------------------

The attached file in the first post has already been updated.

VirtueTech
12-14-2001, 10:11 PM
ok got it to work in 2.0.3........... Great hack! :)

Question...I don't use forumjump in my new threads or reply templates...is that what 1.1 makes changes for...to use forumjump in those templates?

Tommy Boy
12-14-2001, 11:25 PM
[QUOTE]Originally posted by VirtueTech
ok got it to work in 2.0.3........... Great hack! :)

Question...I don't use forumjump in my new threads or reply templates...is that what 1.1 makes changes for...to use forumjump in those templates?

mvigod
01-17-2002, 06:11 PM
Definitely don't get discouraged. This is a great hack and much needed. I was just looking at my forumjump list and it's long and I don't want all those sub-forums. Came here and did a search for forumjump and BAM here is my answer.

THANKS!!!!!!!!!!!!!!!!!!!!!!!

DarkReaper
01-17-2002, 07:31 PM
Wow...this kicks ass. I've got in excess of 300 forums on one board, and 120+ on the other, and scrolling through all them sucks.


Thanks a lot! :)

ladyfyre
01-23-2002, 06:24 PM
hmmmm....well evidently i am alone here....
i installed it, and all went well.
No problems at all.
No errors.

EXCEPT, that the forumjump when turned on still shows all forums, regardless of the setting :(

Any ideas??

mvigod
01-23-2002, 07:19 PM
My install went perfect...I think I installed it and when I reloaded the control panel I got an error but than reloaded again and it never came back and it worked as described.

Much better as my forum list in the jump was way too long and now it's just right!

Thanks for a great hack!

squawell
02-02-2002, 04:28 AM
anyone know how to remove it??

mvigod
02-02-2002, 01:33 PM
I would follow all the directions but just do it in reverse

Swayed
05-06-2002, 11:41 AM
I double-checked the install, and I did it just as was written. I'm on version 2.2.5. Instead of getting the admin cp, I get:

Parse error: parse error in /..../....../....../admin/global.php(102) : eval()'d code on line 1

Warning: Cannot add header information - headers already sent by (output started at /...../...../....../...../admin/global.php(102) : eval()'d code:1) in /....../....../...../...../admin/functions.php on line 1546


My index page (not logged in), displays but has this at the top of it:

Parse error: parse error in /...../...../...../global.php(133) : eval()'d code on line 1

Warning: Cannot add header information - headers already sent by (output started at /...../...../...../global.php(133) : eval()'d code:1) in /...../...../...../...../admin/functions.php on line 1546


If you could respond fairly quickly, I'd appreciate it. I can't get to my admin area, and would rather not have to revert my board. :)

Tommy Boy
05-06-2002, 04:42 PM
I don't think it is caused by this hack, as it doesn't change anything in the global.php file...?

Anyway, post your global.php file, and someone will certainly help you in no time. :)

Swayed
05-06-2002, 10:33 PM
I decided to test this out on a cleanly installed test forum, and got the same thing. I'm pretty sure it's caused by version 2.2.5. The error was not brought about by a change in the global.php file, but rather one of the changes made by the functions.php file (which is also mentioned in the error).

Maybe at some point I'll try to figure out what is going on (I really want this script), but for now I would say not to install it on 2.2.5.

Q8vbhacks
06-01-2002, 02:10 AM
also me help i get

Parse error: parse error in /..../....../....../admin/global.php(79) : eval()'d code on line 1

in admin Control Panel

also in forumhome

Parse error: parse error in /..../....../....../vb/global.php(103) : eval()'d code on line 1

Warning: Cannot add header information - headers already sent by (output started at /..../....../....../vb/global.php(103) : eval()'d code:1) in /..../....../....../vb/admin/functions.php on line 1459

mgoiriz
06-01-2002, 09:54 PM
I think there's a problem when, in install_forumjump_depth.php, this line gets executed:

$result = mysql_query ("UPDATE template SET template = template + '\$forumjumpdepth = \"$forumhomedepth_value\";\n' WHERE title = 'options'");

The field 'options' in table 'template' ends up being a simple 0, so all the previous options get deleted, and that's why I used to get the eval()'d errors.

Hope I helped.

Q8vbhacks
06-02-2002, 05:57 AM
very thank but what A query but in phpmyadmin to remove this change & back like before

Kianor
11-12-2002, 02:57 PM
I got the same error with 2.2.7, how can I go back again to a working situation?

Anyone knows a query to do to restore everything?

ZiRu$
11-13-2002, 12:37 PM
a friend of mine installed this hack. He has the same problem....now he has to start from scratch. It's too bad because everyone else is having problems too.

Edgemyster
03-04-2003, 07:28 PM
i've got the same problem and it's completely killed my forum... :<

we managed to restore our template.template(title='options') value from a stored version, but changes made to the setting table are irreversible since they are mathematically determined. Not so sure they should have anything to do with the problem though. The options template correction did NOT restore the site's functionality.

We are running 2.2.9, so the problem is not version-specific.

Sincerely,
- Screwed

Edgemyster
03-04-2003, 10:32 PM
After 4 hours of pulling our hair out ... we fixed the problem.

This is the issue that some of you may get after installing the hack that basically turns your site to crap (parse errors at the top of every page - php files refusing to run, etc.).

We tracked the error to a database table that is modified by this hack. A query within this hack's installation file basically killed (removed) the 'options' data the "template" table all together. We had to restore this from an old backup.

After having done that, we still have the same problem. Firefly actually suggests in another thread to access the AdminCP, load the options, then save them - indicating that should fix the problem. It may for some of you, but we couldn't personally access our AdminCP any longer.

To make a long story a little bit longer, we did the following and got things working again:

1) Restore the 'options' data to the 'template' table from an old database backup. Try this first if you discover that your data has been erased here as well.

2) If you still have errors focusing on this line in the two global.php files (as we did) that points to the data modified in the database by the hack:

eval($optionstemp[template]);

Then comment out that line in ADMIN/global.php. And then load the AdminCP.

3) Click on your VB options, then save the options in AdminCP, as Firefly had suggested, and wah-lah - everything of ours was back up and functioning again.

A rather easy fix for something we beat our heads over for the last 5 hours.

My suggestion? DO NOT load this hack if you're operating on or around version 2.2.9 until it's problems are addressed (if ever).