Wapside V4.0 (updates)

Started on the old forum in February 2009 · view the original in the archive · old links redirect here

42 replies · 8,483 views · started 17 years ago · 1 min read

27 participants
wap2k Developer · 168 posts #1

Newest release of the wapside script currently in use on http://www.wapside.net

Hope you all enjoy it. 🙂 Known Problem is themes set in wrong order. They are named wrong i think. Set database info cssdsn.php and config.php all done done

wap2k Developer · 168 posts #2

Also in cssdyn background pictures for profiles are hotlinked from bd8 you may want to make them local

djdevil89 Senior · 287 posts #3

Thanx for share

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
wap2k Developer · 168 posts #4

Your welcome 🙂

metulj Super moderator Principal · 1,726 posts #6

thanks for sharing, it's nice script 🙂

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Rider Developer · 128 posts #7

Tanx for the share just what i wanted

I have it already installed B) 😀

Demo

Guest #8

Hi thanks, whats the different levels of admin tools? And what should level be set to?

wap2k Developer · 168 posts #9

level in user database there are only two at the moment "admin" and "mod"

johnny Junior · 47 posts #10

how must i edit the names in 1st welcome pm to user

Learner lolz

jsyguy23 Developer · 134 posts #11

QUOTE (johnny @ Feb 27 2009, 02:08 PM) <{POST_SNAPBACK}>

how must i edit the names in 1st welcome pm to user

index.php m8 where youn see CODE $time = time(); $message = "thanx for choosing WAPSIDE.NET we are happy to have you as our member[br/][br/]Cpanel:Update your ASL and Profile settings,Style ur Profile in Html mode[br/][br/]forums : activaty in forums daily are fun and can earn u a award in your profile after your first 500 posts in our forums, topics of the day will be choosen so keep posting[br/][br/]Chatrooms: please feel free to use our chatrooms and stand a change to become a wapside chatroom moderator[br/][br/]PLEASE ENJOY YOUR STAY AND CONTACT ANY STAFF MEMBER FOR MORE HELP REMEBER TO INVITE ALL YOUR FRIENDS TO http://wapside.net"; @wsd_query("".WS_PMS." (fromid,toid,subject,message,time,new) VALUES (1,'$myreguid','Welcome To WapSide','$message','$time',1)","i");

ws_done("Thankyou and welcome to Wapside ".$myuser."! <a href="".$self."".$mode."login2&username=$myuser&password=$mypass&tvar=1">Login Here</a> "); } } else { ws_err("Sorry the username ".$myuser." is allready in use please choose another one!");

subzero Super moderator Fellow · 3,954 posts #12

Your id is 1

if not change it to 1 then fromid 1

@wsd_query("".WS_PMS." (fromid,toid,subject,message,time,new) VALUES (1,'$myreguid','Welcome To WapSide','$message','$time',1)","i");

ws_done("Thankyou and welcome to Wapside ".$myuser."!
<a href=\"".$self."".$mode."login2&username=$myuser&password=$mypass&tvar=1\">Login Here</a>
");
}
} else {

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

johnny Junior · 47 posts #13

thanks for help mate nd i wil try it now nd yes i made my id nr 1 by empty users table in db

Learner lolz

bluangelo Junior · 19 posts #14

Article Script (w/out category)

in lists.php?

[replace action==blogs with this one]

CODE//////////////////////////////////Articles

else if($action=="blogs") { addonline(getuid_sid($sid),"Viewing A User's Article",""); echo "<head>"; echo "<title>Articles</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<card>"; $uid = getuid_sid($sid); $who = $_GET["who"]; $tnick = getnick_uid($who); echo " "; echo "[ $tnick's Articles ]

";

echo "

"; //////ALL LISTS SCRIPT <<

if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$who."'"));
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;

    $sql = "SELECT id, bname FROM ibwf_blogs WHERE bowner='".$who."' ORDER BY bgdate DESC LIMIT $limit_start, $items_per_page";

echo "

"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $bname = htmlspecialchars($item[1]); if(candelbl($uid,$item[0])) { $dl = "<a href="genproc.php?action=delbl&sid=$sid&bid=$item[0]">[X]</a>"; }else{ $dl = ""; } $lnk = "<a href="index.php?action=viewblog&bid=$item[0]&sid=$sid">»$bname</a>"; echo "$lnk $dl "; } } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="lists.php?action=$action&page=$ppage&sid=$sid&who=$who">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="lists.php?action=$action&page=$npage&sid=$sid&who=$who">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "<form action="lists.php" method="get">"; $rets .= "<input name="page" style="-wap-input-format: '*N'" size="2"/>"; $rets .= "<input type="hidden" name="action" value="$action"/>"; $rets .= "<input type="hidden" name="sid" value="$sid"/>"; $rets .= "<input type="hidden" name="who" value="$who"/>"; $rets .= "<input type="submit" value="Go"/>"; $rets .= "</form>";

    echo $rets;
}
echo "

"; ////// UNTILL HERE >> echo " "; if($who==$uid) { echo "--------- <a href="index.php?action=addblg&sid=$sid">"; echo "Add an Article</a> "; echo "<a href="index.php?action=cpanel&sid=$sid">"; echo "CPanel</a> "; } echo "<a href="lists.php?action=allbl&sid=$sid">All Articles</a> "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; }

//////////////////////////////////Blogs

else if($action=="allbl") { addonline(getuid_sid($sid),"Viewing pMe-Articles list",""); echo "<head>"; echo "<title>pMe-Articles List</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<card>"; $uid = getuid_sid($sid); $view = $_GET["view"]; if($view =="")$view="time"; echo "

[ pME-Articles ]

"; if($view!="time") { echo "<a href="lists.php?action=allbl&sid=$sid&view=time">Newest</a> "; } if($view!="rate") { echo "<a href="lists.php?action=allbl&sid=$sid&view=rate">Most rated</a> "; } if($view!="time") { echo "<a href="lists.php?action=allbl&sid=$sid&view=votes">Most Viewed</a> "; } echo "------

"; //////ALL LISTS SCRIPT <<

if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs"));
$num_items = $noi[0]; //changable
$items_per_page= 5;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;

if($view=="time") { $ord = "a.bgdate"; }else if($view=="votes") { $ord = "nofv"; }else if($view=="rate") { $ord = "avv"; }else if($view=="points") { $ord = "nofp"; } if ($view=="time"){ $sql = "SELECT id, bname, bowner FROM ibwf_blogs ORDER by bgdate DESC LIMIT $limit_start, $items_per_page"; }else{ $sql = "SELECT a.id, a.bname, a.bowner, COUNT(b.id) as nofv, SUM(b.brate) as nofp, AVG(b.brate) as avv FROM ibwf_blogs a INNER JOIN ibwf_brate b ON a.id = b.blogid GROUP BY a.id ORDER BY $ord DESC LIMIT $limit_start, $items_per_page"; } echo "

"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $bname = htmlspecialchars($item[1]); if($view=="time") { $bonick = getnick_uid($item[2]);

    $byview = "

by <a href="index.php?action=viewuser&sid=$sid&who=$item[2]">$bonick</a> ------"; }else if($view=="votes") { $byview = " Votes: $item[3] -----"; }else if($view=="rate") { $byview = " Rate: $item[5] -----"; }else if($view=="points") { $byview = " Points: $item[4] -----"; } $lnk = "<a href="index.php?action=viewblog&bid=$item[0]&sid=$sid">»$bname</a> $byview"; echo "$lnk "; } } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="lists.php?action=$action&page=$ppage&sid=$sid&view=$view">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="lists.php?action=$action&page=$npage&sid=$sid&view=$view">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "<form action="lists.php" method="get">"; $rets .= "<input name="page" style="-wap-input-format: '*N'" size="2"/>"; $rets .= "<input type="hidden" name="action" value="$action"/>"; $rets .= "<input type="hidden" name="sid" value="$sid"/>"; $rets .= "<input type="hidden" name="who" value="$who"/>"; $rets .= "<input type="hidden" name="view" value="$view"/>"; $rets .= "<input type="submit" value="Go"/>"; $rets .= "</form>";

    echo $rets;
}
echo "

"; ////// UNTILL HERE >> echo " ";

echo "<a href=\"index.php?action=stats&amp;sid=$sid\">Site Stats</a>

"; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; } ///////////////////////////////////Blogs Comment else if($action=="blogscomment") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Sending Comment On An Article",""); echo "<head>"; echo "<title>Article's Comment</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<card>"; $uid = getuid_sid($sid);

//////ALL LISTS SCRIPT <<

if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogcomment WHERE blogowner='".$who."'"));
$num_items = $noi[0]; //changable
$items_per_page= 5;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;


    $sql = "SELECT blogowner, blogsigner, blogmsg, dtime, id FROM ibwf_blogcomment WHERE blogowner='".$who."' ORDER BY dtime DESC LIMIT $limit_start, $items_per_page";
echo "

"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) {

      if(isonline($item[1]))

{ $iml = "+ ";

}else{ $iml = "- "; } $snick = getnick_uid($item[1]); $lnk = "<a href="index.php?action=viewuser&who=$item[1]&sid=$sid">$iml$snick</a>"; $bs = date("----------",$item[3]); echo "$lnk "; if(candelblogcomment($uid, $item[4])) { $delnk = "<a href="genproc.php?action=delblogcomment&sid=$sid&mid=$item[4]">[x]</a>"; }else{ $delnk = ""; } $text = parsepm($item[2], $sid); echo "$text $bs $delnk "; echo "";

}
}
echo "

"; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="lists.php?action=$action&page=$ppage&sid=$sid&who=$who">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="lists.php?action=$action&page=$npage&sid=$sid&who=$who">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "Jump to page<input name="pg" format="*N" size="3"/>"; $rets .= "<anchor>[GO]"; $rets .= "<go href="lists.php" method="get">"; $rets .= "<postfield name="action" value="$action"/>"; $rets .= "<postfield name="who" value="$who"/>"; $rets .= "<postfield name="sid" value="$sid"/>"; $rets .= "<postfield name="page" value="$(pg)"/>"; $rets .= "</go></anchor>";

    echo $rets;
}
echo "

"; ////// UNTILL HERE >> { echo "<a href="index.php?action=signblogcomment&sid=$sid&who=$who">"; echo "Add Ur Message</a> "; } echo "<a href="lists.php?action=allbl&sid=$sid">Back to pMe-Articles</a> "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo "</card>"; }

  • in index.php *

[replace action=viewblog]

CODE///////////////////////////////view blog

else if($action=="viewblog") { $bid = $_GET["bid"]; $wnick = getnick_uid($who); addonline(getuid_sid($sid),"Viewing $wnick's pME-Article ",""); echo "<head>"; echo "<title>View pMe-Articles</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<card>"; echo "

";

$pminfo = mysql_fetch_array(mysql_query("SELECT btext, bname, bgdate,bowner, id FROM ibwf_blogs WHERE id='".$bid."'")); $bttl = htmlspecialchars($pminfo[1]); $btxt = parsemsg($pminfo[0], $sid); $bnick = getnick_uid($pminfo[3]); $vbbl = "<a href="index.php?action=viewuser&sid=$sid&who=$pminfo[3]">$bnick</a> "; echo "Article ID: $bid "; echo "$bttl by: $vbbl "; echo "$btxt "; $tmstamp = $pminfo[2]; $tmdt = date("--------------------", $tmstamp); echo "$tmdt

"; $vb = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_brate WHERE uid='".$uid."' AND blogid='".$bid."'")); if($vb[0]==0) { echo "<form action="genproc.php?action=rateb&sid=$sid&bid=$pminfo[4]" method="post">"; echo "<select name="brate">"; echo "<option value="1">Not Bad!</option>"; echo "<option value="3">Good!</option>"; echo "<option value="5">Nice!</option>"; echo "<option value="7">Excellent!</option>"; echo "<option value="9">The Best!!</option>"; echo "</select> "; echo "<input type="Submit" Name="Rate" Value="Rate"></anchor> "; }else{ $rinfo = mysql_fetch_array(mysql_query("SELECT COUNT() as nofr, SUM(brate) as nofp FROM ibwf_brate WHERE blogid='".$bid."'")); $ther = $rinfo[1]/$rinfo[0]; echo "Rate: $ther - Points: $rinfo[1]"; } $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogcomment WHERE blogowner='".$bid."'")); echo " <a href="lists.php?action=blogscomment&sid=$sid&who=$bid">Comments($noi[0])</a> "; echo " "; echo " "; echo "-------- <a href="lists.php?action=allbl&sid=$sid">Back to pMe-Articles</a> "; $bnick = getnick_uid($pminfo[3]); echo "<a href="lists.php?action=blogs&sid=$sid&who=$pminfo[3]">Back to $bnick's pMe-Articles</a> "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>";

} ///////////////////////////////////////////Blog Comment else if($action=="signblogcomment") { $who=$_GET["who"]; addonline(getuid_sid($sid),"Signing Users guestbook",""); if(!cansignblogcomment(getuid_sid($sid), $who)) { echo "<head>"; echo "<title>Sign pME-Article</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<card>"; echo " "; echo "U can't Sign this user pME-Article

"; $bnick = getnick_uid($pminfo[3]); echo "<a href="lists.php?action=blogs&sid=$sid&who=$pminfo[3]">GO to $bnick's pMe-Articles</a> "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; echo "</html>"; }

echo "<card id=\"main\" title=\"Sign blog\">";
echo "<onevent type=\"onenterforward\">";

echo "<refresh> <setvar name="msgtxt" value=""/>

"; echo "</refresh></onevent>";

echo "<head>";
echo "<title>Sign pME-Article</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<card>";
echo "

"; echo " "; echo "<form action="genproc.php?action=signblogcomment&sid=$sid" method="post">"; echo "<input type="hidden" name="who" Value="$who">"; echo "Text: <input name="msgtxt" maxlength="5000"/> "; echo "<input type="Submit" name="Add" Value="Add"></anchor> ";

     echo "

<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; }

usage in index.php

echo "<a href="lists.php?action=allbl&sid=$sid">$sitename-Articles</a> ";

  • SQL for articlecomment*

-- phpMyAdmin SQL Dump -- version 2.11.4 -- http://www.phpmyadmin.net

-- Host: localhost -- Generation Time: Mar 02, 2009 at 11:00 PM -- Server version: 5.0.67 -- PHP Version: 5.2.8

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

-- -- Database: a7491331_pinoyme


-- -- Table structure for table ibwf_blogcomment

CREATE TABLE ibwf_blogcomment ( id int(100) NOT NULL auto_increment, blogowner int(100) NOT NULL default '0', blogsigner int(100) NOT NULL default '0', blogmsg blob NOT NULL, dtime int(100) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;

-- -- Dumping data for table ibwf_blogcomment

subzero Super moderator Fellow · 3,954 posts #15

WTF this is wapside not lavalair !

Posting crap script will not work with wapside

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

mhazter26 Newbie · 2 posts #17

Nice script bro, but can you add some fun games like jnp,lucky9 and spin the plusses, and also can you add the smilies?

friend Developer · 112 posts #19

nice script..... wish it should be with plusses option for user

subzero Super moderator Fellow · 3,954 posts #20

you can add-on to that

just add plusses your way

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close