Previous Thread
Next Thread
Print Thread
Rate Thread
#263211 11/20/2003 7:12 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
This little mod codes 6 more pal boxes into IIP.

Follow the Installation instructions and upload the extra pals and changed files.
Attachments
100073-palboxes.ZIP (0 Bytes, 31 downloads)

Sponsored Links
Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Chuck

I tried the mod and I got the following error.
I am running UBB.threads™ 6.4b1




Warning: main(/srv/www/htdocs/ubbthreads/pals/languages/english/languagepal.php): failed to open stream: No such file or directory in /srv/www/htdocs/index.php on line 71

Warning: main(): Failed opening '/srv/www/htdocs/ubbthreads/pals/languages/english/languagepal.php' for inclusion (include_path='.:/usr/share/php') in /srv/www/htdocs/index.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/index.php:71) in /srv/www/htdocs/ubbthreads/ubbt.inc.php on line 264

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay very easy.

You are not using IIP 5.4.3

I beleive Josh added in language support in 5.4.2 maybe?

I would update your IIP to 5.4.3 and you should be all set and then do the mod.

Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
According to the link at the bottom of my site, and the config panel I am running IIP 5.4.3 Configure Panel

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Okay I beyond compared Omegotron's files because there are different versions of IIP running around and this is backwards compatible I have done it on 5.3.1 so I know it works.. heres the new zip.. just follow the instructions to the letter and it will work..

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I am checking it out.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
okay well I had to edit the boxes themselves so custombox9pal.php actually says so inside it but thats purely cosmetic.. the issue I did find though was in your editconfigpal.php your line reads

[] $CustomBox8Checked[$i] = "checked="checked"";
if ((!$index_include[$i]['custombox8']) || ($index_include[$i]['custombox8'] > 22)) {
$CustomBox8Checked[$i] = "";
}
$CustomBox8Selections[$i] = $blankselection;
if (($index_include[$i]['custombox8']) && ($index_include[$i]['custombox8'] < 23)) {
$selectedselection = "";
$psel = "";
for ($p=0; $p<23; $p++) {
if ($p > 0) {
$psel = $p;
}
if ($p == $index_include[$i]['custombox1']) {
$selectedselection .= "<option value="$p" selected="selected">$psel</option>";
}
else {
$selectedselection .= "<option value="$p">$psel</option>";
}
}
$CustomBox8Selections[$backone] = $blankselection;
$CustomBox8Selections[$i] = $selectedselection;
}

[/]

and it should have been

[] $CustomBox8Checked[$i] = "checked="checked"";
if ((!$index_include[$i]['custombox8']) || ($index_include[$i]['custombox8'] > 22)) {
$CustomBox8Checked[$i] = "";
}
$CustomBox8Selections[$i] = $blankselection;
if (($index_include[$i]['custombox8']) && ($index_include[$i]['custombox8'] < 23)) {
$selectedselection = "";
$psel = "";
for ($p=0; $p<23; $p++) {
if ($p > 0) {
$psel = $p;
}
if ($p == $index_include[$i]['custombox8']) {
$selectedselection .= "<option value="$p" selected="selected">$psel</option>";
}
else {
$selectedselection .= "<option value="$p">$psel</option>";
}
}
$CustomBox8Selections[$backone] = $blankselection;
$CustomBox8Selections[$i] = $selectedselection;
}
[/]

otherwise it works fine?

heres the updated zip including the new palboxes?

Last edited by scroungr; 11/22/2003 2:32 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yeah I did not cosmetically change the boxes. I just renamed them.

I figured people would edit them when they include them

I will include yours in the zip

I found my typo in custom8 as well. Thanks

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
ok this DOES work on 5.3 so it will work on the older boards.. I am gonna look into why this will not work with the new 5.4.3

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Then I will look into 5.4.3 as well. I worked for me at first.

Don't know what I did this last time to break it.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Yeah I will look into to it too because it is working fine in my 6.3.2 threads with 5.3 IIP installation but the 6.4br1 and 5.4 gives me errors like you described above..

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay the fix was easy. All the confusion before was me messing my test files up LOL

This mod worked from the beginning in 5.3 and 5.4

I found a bug with Josh's IIP 5.4.3

In your pal directory editconfigpal.php


find

include "./languages/${$config['cookieprefix']."w3t_language"}/languagepal.php";


replace with

include "$thispath/pals/languages/${$config['cookieprefix']."w3t_language"}/languagepal.php";


That will take care of the errors

Kudos to scroungr for the cosmetic changes on pal boxes and taking the time to test it out on 5.3

The only changed line between versions or the instructions is the line above which needs to be changed in 5.4

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
you know I stared at that line five times and thats why it worked in 5.4.2 but not in 5.4.3 well at least its fixed.. now update Josh's IIP 5.4.2 and we wil be all good to go and thanx

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
well I think it was just an oversight on Josh's part.

IIP has always been coded

include "$thispath/pals/languages/languagepal.php";

So when he added in the cookie prefix it should have been

include "$thispath/pals/languages/${$config['cookieprefix']."w3t_language"}/languagepal.php";

I guess he just did a shortcut with this

include "./languages/${$config['cookieprefix']."w3t_language"}/languagepal.php";

Seems some server's do not like that who knows.

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
geez, who would ever need more pal boxes?

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Does this add cached boxes? Would really like more of that type to speed the load times.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Ok got this working.. had trouble with the install instructions at
8)
In your index.php

you will do the following three times one for each column

Guess the three times threw me off...

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
You have to do it three times

There are three columns to replace the left middle and right

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
yes but those are 8,9,10 or are 9 and 10 different. I miss something else? its working with 9 &10 being the second and third. Ok confused ... maybe not..

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I have no idea unless I saw what you did but if its working for you okay.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)