Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Hi Mike,

I have noticed in your IIP that you are using the 5.1 version. I would suggest that you port towards the newest one 5.1.1 - unless I am mistaken and the version in the Entrance has not been updated.

The latest version of IIP uses custom boxes (custombox1pal.php, custombox2pal.php, etc). These are three or four of them, but nothing stops you from copying one and naming it to customboxYpal.php - where Y is a number of your choice. Then all you have to do is (assume that you have just copied custombox5pal.php)

- Open custombox5pal.php and edit the contents to show what you want (sponsor)
- Open configpal.php and find:
code:

$index_include[0]['custombox3'] = "0";
$index_include[1]['custombox3'] = "0";
$index_include[2]['custombox3'] = "0";
$index_include[3]['custombox3'] = "0";



and BELOW it add
code:

$index_include[0]['custombox5'] = "0";
$index_include[1]['custombox5'] = "0";
$index_include[2]['custombox5'] = "0";
$index_include[3]['custombox5'] = "0";



- Open index.php
Find
code:

if ($index_include[1]['custombox3'] == $x && !$xused) {
include "{$palspath}/pals/custombox3pal.php";
$xused = 1;
}


and BELOW it add
code:

if ($index_include[1]['custombox5'] == $x && !$xused) {
include "{$palspath}/pals/custombox5pal.php";
$xused = 1;
}


Find
code:

if ($index_include[2]['custombox3'] == $x && !$xused) {
include "{$palspath}/pals/custombox3pal.php";
$xused = 1;
}


and BELOW it add
code:

if ($index_include[2]['custombox5'] == $x && !$xused) {
include "{$palspath}/pals/custombox5pal.php";
$xused = 1;
}


Find
code:

if ($index_include[3]['custombox3'] == $x && !$xused) {
include "{$palspath}/pals/custombox3pal.php";
$xused = 1;
}


and BELOW it add
code:

if ($index_include[3]['custombox5'] == $x && !$xused) {
include "{$palspath}/pals/custombox5pal.php";
$xused = 1;
}



Now open editconfigpal.php
Find
code:

$CustomBox3Checked[$i] = "checked="checked"";
if ((!$index_include[$i]['custombox3']) || ($index_include[$i]['custombox3'] > 19)) {
$CustomBox3Checked[$i] = "";
}
$CustomBox3Selections[$i] = $blankselection;
if (($index_include[$i]['custombox3']) && ($index_include[$i]['custombox3'] < 20)) {
$selectedselection = "";
$psel = "";
for ($p=0; $p<20; $p++) {
if ($p > 0) {
$psel = $p;
}
if ($p == $index_include[$i]['custombox3']) {
$selectedselection .= "<option value="$p" selected="selected">$psel</option>";
}
else {
$selectedselection .= "<option value="$p">$psel</option>";
}
}
$CustomBox3Selections[$backone] = $blankselection;
$CustomBox3Selections[$i] = $selectedselection;
}



and BELOW it add
code:

$CustomBox5Checked[$i] = "checked="checked"";
if ((!$index_include[$i]['custombox5']) || ($index_include[$i]['custombox5'] > 19)) {
$CustomBox5Checked[$i] = "";
}
$CustomBox5Selections[$i] = $blankselection;
if (($index_include[$i]['custombox5']) && ($index_include[$i]['custombox5'] < 20)) {
$selectedselection = "";
$psel = "";
for ($p=0; $p<20; $p++) {
if ($p > 0) {
$psel = $p;
}
if ($p == $index_include[$i]['custombox5']) {
$selectedselection .= "<option value="$p" selected="selected">$psel</option>";
}
else {
$selectedselection .= "<option value="$p">$psel</option>";
}
}
$CustomBox5Selections[$backone] = $blankselection;
$CustomBox5Selections[$i] = $selectedselection;
}




Find
code:

if (!$CustomBox3Checked[1] && !$CustomBox3Checked[2] && !$CustomBox3Checked[3]) {
$CustomBox3Checked[0] = "checked="checked"";
}


and BELOW it add
code:

if (!$CustomBox5Checked[1] && !$CustomBox5Checked[2] && !$CustomBox5Checked[3]) {
$CustomBox5Checked[0] = "checked="checked"";
}



Find
code:

<tr class="lighttable">
<td align="right" nowrap="nowrap">
Custom Box 3
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox3" value="1" {$CustomBox3Checked[1]} />
</td>
<td>
<select name="CustomBox3Select_1">
{$CustomBox3Selections[1]}
</select>
</td>
<td align="center" nowrap="nowrap">
 
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox3" value="2" {$CustomBox3Checked[2]} />
</td>
<td>
<select name="CustomBox3Select_2">
{$CustomBox3Selections[2]}
</select>
</td>
<td align="center" nowrap="nowrap">
 
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox3" value="3" {$CustomBox3Checked[3]} />
</td>
<td>
<select name="CustomBox3Select_3">
{$CustomBox3Selections[3]}
</select>
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox3" value="0" {$CustomBox3Checked[0]} />
</td>
</tr>


and BELOW it add
code:

<tr class="lighttable">
<td align="right" nowrap="nowrap">
Custom Box 5
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox5" value="1" {$CustomBox5Checked[1]} />
</td>
<td>
<select name="CustomBox5Select_1">
{$CustomBox5Selections[1]}
</select>
</td>
<td align="center" nowrap="nowrap">
 
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox5" value="2" {$CustomBox5Checked[2]} />
</td>
<td>
<select name="CustomBox5Select_2">
{$CustomBox5Selections[2]}
</select>
</td>
<td align="center" nowrap="nowrap">
 
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox5" value="3" {$CustomBox5Checked[3]} />
</td>
<td>
<select name="CustomBox5Select_3">
{$CustomBox5Selections[3]}
</select>
</td>
<td align="center" nowrap="nowrap">
<input type="radio" name="CustomBox5" value="0" {$CustomBox5Checked[0]} />
</td>
</tr>



Now open doeditconfigpal.php
Find
code:

$index_include[$x]['custombox3'] = "0";


and BELOW it add
code:

$index_include[$x]['custombox5'] = "0";


Find
code:

$index_include[$CustomBox3]['custombox3'] = ${"CustomBox3Select_$CustomBox3"};


and BELOW it add
code:

$index_include[$CustomBox5]['custombox5'] = ${"CustomBox5Select_$CustomBox5"};


Find
code:

\$index_include[0]['custombox3'] = "{$index_include[0]['custombox3']}";
\$index_include[1]['custombox3'] = "{$index_include[1]['custombox3']}";
\$index_include[2]['custombox3'] = "{$index_include[2]['custombox3']}";
\$index_include[3]['custombox3'] = "{$index_include[3]['custombox3']}";


and BELOW it add
code:

\$index_include[0]['custombox5'] = "{$index_include[0]['custombox5']}";
\$index_include[1]['custombox5'] = "{$index_include[1]['custombox5']}";
\$index_include[2]['custombox5'] = "{$index_include[2]['custombox5']}";
\$index_include[3]['custombox5'] = "{$index_include[3]['custombox5']}";



Repeat these steps as many times as you want to create new custompal boxes for your needs. Then enter the configuration screen of IIP and make your selections on position and index.

Warm regards

Nikos

PS: Dave, please correct me if I am completely wrong in this.


Nikos
Sponsored Links
Entire Thread
Subject Posted By Posted
Xtra boxes for sponsors ads? sportbikes 11/29/2002 8:51 AM
Re: Xtra boxes for sponsors ads? JoshPet 11/29/2002 9:46 AM
Re: Xtra boxes for sponsors ads? sportbikes 11/29/2002 10:17 AM
Re: Xtra boxes for sponsors ads? dimopoulos 11/29/2002 11:48 AM
Re: Xtra boxes for sponsors ads? JustDave 11/29/2002 3:52 PM
Re: Xtra boxes for sponsors ads? dimopoulos 11/29/2002 4:00 PM
Re: Xtra boxes for sponsors ads? sportbikes 11/29/2002 10:17 PM
Re: Xtra boxes for sponsors ads? sportbikes 11/30/2002 5:43 AM
Re: Xtra boxes for sponsors ads? JoshPet 11/30/2002 6:42 AM
Re: Xtra boxes for sponsors ads? sportbikes 11/30/2002 6:48 AM
Re: Xtra boxes for sponsors ads? JoshPet 11/30/2002 7:00 AM
Re: Xtra boxes for sponsors ads? omegatron 11/30/2002 2:57 PM
Re: Xtra boxes for sponsors ads? sportbikes 11/30/2002 3:01 PM
Re: Xtra boxes for sponsors ads? dimopoulos 12/01/2002 5:04 PM
Re: Xtra boxes for sponsors ads? sportbikes 12/01/2002 9:35 PM
Re: Xtra boxes for sponsors ads? JoshPet 12/01/2002 10:06 PM
Re: Xtra boxes for sponsors ads? omegatron 12/01/2002 11:19 PM
Re: Xtra boxes for sponsors ads? dimopoulos 12/02/2002 10:08 AM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1811
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)