how do i display forums on a different page a nd hava a link to them someone post the code wml lavalair
Forums On A Different Page
Collapse
X
-
i told u already at inbox tht topic exsist but dnt knw whr it is..... search damn it.. i cnt searc 4 u... dnt even have an proper internet conection.....
shoutbox.... why would u hide shoutbox???
damn it matthew i told u already go here and u got no worries http://mobile.web.tr/signup.asp
and stop inboxing me pls cuz it eats my freakin money.... im paying 4 us dollars for every freakin 5MB
I CAN NOT CODE BUT I KNOW 2 USE FREAKING COPY AND PASTE!!!!!!!!!!!!!!!
learn 2 read the script and copy and paste....
i made tht way casino playing 4 plusses and alot of useful stuff....
LMAOsigpiceeeeerrr....
Comment
-
loony
do it the beginer way like u are take the forum code from main page and move it to a seperate page then just have a link to that pageplz give me the code i have trid verything pleas give code[/b]
Comment
-
loony -
loony
dont no if this will work did it in 4 seconds u will need to EDIT this
<?php
/*
IrisBlaze wap forum
by Ra'ed Shabana
*/
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$who = $_GET["who"];
$pmid = $_GET["pmid"];
if(islogged($sid)==false)
{
echo "<card id=\"main\" title=\"SITENAME HERE\">";
echo "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"SITENAME HERE\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are Banned
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time to finish your penalty: $rmsg
";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
echo " These Are Your Forums $nick";
$fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
$iml = "<img src=\"images/1.gif\" alt=\"*\"/>";
while($fcat=mysql_fetch_array($fcats))
{
$catlink = "<a href=\"index.php?action=viewcat&sid=$sid&c id=$fcat[0]\">$iml$fcat[1]</a>";
echo "
$catlink";
$forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name");
if(getfview()==0)
{
echo "
";
while($forum=mysql_fetch_array($forums))
{
if(canaccess(getuid_sid($sid),$forum[0]))
{
echo "<a href=\"index.php?action=viewfrm&sid=$sid&f id=$forum[0]\">$forum[1]</a>, ";
}
}
echo "";
}else if(getfview()==20)
{
echo "
Forums: <select name=\"fid\">";
while($forum=mysql_fetch_array($forums))
{
if(canaccess(getuid_sid($sid),$forum[0]))
{
$notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'"));
echo "<option value=\"$forum[0]\">$forum[1]($notp[0])</option>";
}
}
echo "</select>";
echo "<anchor>[GO]";
echo "<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"action\" value=\"viewfrm\"/>";
echo "<postfield name=\"sid\" value=\"$sid\"/>";
echo "<postfield name=\"fid\" value=\"$(fid)\"/>";
echo "</go>";
echo "</anchor>";
}
}
echo "</small></p>";
echo "<p align=\"center\">";
echo "</p></card>";
}
?>
</wml>
make a new file for that call it forums.php
then place this link on main page
echo "<a href=\"forums.php?sid=$sid\">fourms</a>
";
Comment

Comment