/    Sign up×
Community /Pin to ProfileBookmark

Help Please!!! Company dropped tech support.

I’m trying to help out a buddy. He purchased this script and asked if I could help. TheBearMay offered some code but it only works on every other page or if you hit refresh after the page loads. eg. Click on link below,follow by the link “sign up free” and cycle the links. It’s like an on/off switch.

[url]http://www.playtimefantasy.com/member.php[/url]

Here is the complete section for the im_win section:

/**
* Return code for IM window
*
/
function RetIM()
{
global $site;
global $im_width;
global $im_input;
global $im_height;
global $im_input_height;
global $boxbg;
global $tmpl;

$ID = (int)$_COOKIE[‘memberID’];

$im_width = strstr($im_width,’%’) ? $im_width : $im_width-1;

$im_win = $_COOKIE[‘im_win’] ? $_COOKIE[‘im_win’] : ‘none’;

$add = ($tmpl == ‘rec’ || $tmpl == ‘rem’ || $tmpl == ‘rej’ || $tmpl == ‘ae9’) ? ‘<td width=”150″ height=”35″>’ . _t(“_IM title”) . ‘</td>’ : “”;
$add1 = ($tmpl == ‘rec’ || $tmpl == ‘rem’ || $tmpl == ‘rej’ || $tmpl == ‘ae9’) ? ‘colspan=”2″‘ : “”;
$add3 = ($tmpl == ‘g4’ || $tmpl == ‘act’) ? “<br />”: “&nbsp;|&nbsp;”;

$s00 = _t(“_Open in new window”);
$s01 = _t(“_Show”);
$s02 = _t(“_Hide”);

if ($search_hide)
{
$div_hide = “none”;
$div_show = “inline”;
}
else
{
$div_hide = “inline”;
$div_show = “none”;
}

$ret = “<div align=right>”;
$ret .= “<div id=”div_hide_$name2″ name=”div_hide_$name2″ style=”display:$div_hide”>”;
$ret .= “<a href=”javascript: void(0)” onClick=”javascript: ShowHideHide(document.getElementById(‘div_show_$name2′),document.getElementById(‘table_hide_$name2′) ,document.getElementById(‘div_hide_$name2′));”>”._t(“_Hide”).”</a>”;
$ret .= “</div>”;

$ret .= “<div id=”div_show_$name2″ name=”div_show_$name2″ style=”display:$div_show”>”;
$ret .= “<a href=”javascript: void(0)” onClick=”javascript: ShowShowHide(document.getElementById(‘table_hide_$name2′),document.getElementById(‘div_hide_$name2′) ,document.getElementById(‘div_show_$name2′));”>”._t(“_Show”).”</a>”;
$ret .= “</div>”;
$ret .= “</div>”;

$out .= <<<EOF
<script language=”javascript”>
<!–
function imShowHide()
{

var im_win = document.getElementById(‘im_win’);
var show = document.getElementById(‘show’);
var hide = document.getElementById(‘hide’);

if (im_win.style.display == ‘none’)
{
document.cookie = “im_win=inline;”;
im_win.style.display = ‘inline’;
show.style.display= ‘none’;
hide.style.display = ‘inline’;
}
else
{
document.cookie = “im_win=none;”;
im_win.style.display = ‘none’;
show.style.display= ‘inline’;
hide.style.display = ‘none’;
}
}
window.onload=imShowHide;
–>
</script>
<table name=”zzz” width=”$im_width” cellspacing=”0″ cellpadding=”0″ class=”text” border=”0″>
<tr>
$add
<td width=”$im_width” bgcolor=”$boxbg” align=center height=20>
<a target=”_blank” href=”{$site[‘url’]}im.php”>$s00</a>$add3<a href=”javascript: void(0);” onClick=”javascript: imShowHide();”><div id=”show” style=”display:inline”>$s01</div><div id=”hide” style=”display:none”>$s02</div></a>
</td>
</tr>
<tr>
<td width=$im_width $add1>
<div name=”im_win” id=”im_win” style=”display: $im_win;”>
<IFRAME ID=”IFrameIMFL” name=”IFrameIMFL” FRAMEBORDER=”0″ SCROLLING=”NO” HEIGHT=”$im_height” WIDTH=”$im_width” SRC=”{$site[‘url’]}im.php”>
</IFRAME>
</div>
</td>
</tr>
EOF;
$out .= “</table>”;

$im_width = strstr($im_width,’%’) ? $im_width : $im_width+1;

if ($tmpl == ‘act’)
{
return DesignBoxContent ( _t(“_IM title”), $im_width, $out, ”, ”, 2 );
}
else if ($tmpl == ‘frt’ || $tmpl == ‘hip’)
{
return DesignBoxContent ( _t(“_IM title”), $im_width, $out );
}
else
{
return $out;
}
}

I sure hope this helps.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayFeb 14.2007 — <i>
</i>&lt;script type="text/javascript"&gt;
&lt;!--
function imShowHide()
{

var im_win = document.getElementById('im_win');
var show = document.getElementById('show');
var hide = document.getElementById('hide');

if (im_win.style.display == 'none')
{
document.cookie = "im_win=inline;";
im_win.style.display = 'inline';
show.style.display= 'none';
hide.style.display = 'inline';
}
else
{
document.cookie = "im_win=none;";
im_win.style.display = 'none';
show.style.display= 'inline';
hide.style.display = 'none';
}
}
window.onload=imShowHide;
--&gt;
&lt;/script&gt;
Copy linkTweet thisAlerts:
@theghiniauthorFeb 16.2007 — Thank you
Copy linkTweet thisAlerts:
@theghiniauthorFeb 17.2007 — thanx
×

Success!

Help @theghini spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...