Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,721 members, 7,955,700 topics. Date: Sunday, 22 September 2024 at 01:15 PM

Marvzkiddx's Posts

Nairaland Forum / Marvzkiddx's Profile / Marvzkiddx's Posts

(1) (of 1 pages)

Programming / Re: Help With Javascript by marvzkiddx(m): 10:10pm On May 29, 2019
stanliwise:
you mean if the thumb up icon is clicked. you want to send it straight to the server?

if yes, then just send direct.
or like I said create a hidden input field, place your data and send it.


How�����


Please ur digits... Let me chat you up on whatsapp
Programming / Re: Help With Javascript by marvzkiddx(m): 10:00pm On May 29, 2019
stanliwise:
There is something I am confused about.
you have a button to send message, and you need another button to send message that has not bee inputed into the textarea.

what kinda message are you sending?
are you trying to send a signal message?
if yes store in a variable and send or store in a hidden field and send.
else you may need to clarify your question.



The second button is a thumbs up icon...

On a norms,if you type :thumbup: inside the input box... The result is a thumbs up icon.... But instead of inputting it in the text area... I want it to jus send straight on click....


Do you get?
Programming / Help With Javascript by marvzkiddx(m): 7:32pm On May 29, 2019
Okay guys... I seriously need help with this...

I'm working on a site with a chat feature...

I have a textarea section and a button that sends the value of the textarea


Button code below

<button id="smiley" onclick="javascript:return clickTosendmessage(\''+chatboxtitle+'\',\''+toid+'\',\''+img+'\');" class="btn-icon icon-send fa fa-paperclip-o font-24 send-container contained"></button>

The following is a button that when clicked sends the input value in textarea..


My javascript code for the function


function clickTosendMessage(chatboxtitle,toid,img) {

message = $(".chatboxtextarea"wink.val();

message = message.replace(/^\s+|\s+$/g,""wink;

$(".chatboxtextarea"wink.val('');
$(".chatboxtextarea"wink.focus();
$(".input-placeholder"wink.css({'visibility':'visible'});
$(".chatboxtextarea"wink.css('height','20px');
if (message != '') {

$.post(siteurl+"chat.php?action=sendchat", {to: chatboxtitle, toid: toid, message: message} , function(data){

message = message.replace(/</g,"&lt;"wink.replace(/>/g,"&gt;"wink.replace(/\"/g,"&quot;"wink;
message = message.replace(/\n/g, "<br />"wink;
var $con = message;
var $words = $con.split(' ');
for (i in $words) {
if ($words[i].indexOf('http://') == 0 || $words[i].indexOf('https://') == 0) {
$words[i] = '<a href="' + $words[i] + '">' + $words[i] + '</a>';
}
else if ($words[i].indexOf('www') == 0 ) {
$words[i] = '<a href="' + $words[i] + '">' + $words[i] + '</a>';
}
}
message = $words.join(' ');
message = emojione.shortnameToImage(message); // Set imotions

$("#chatbox_"+chatboxtitle).append('<div class="col-xs-12 p-b-10 odd">' +
'<div class="chat-image profile-picture max-profile-picture">' +
'<img alt="'+username+'" src="'+siteurls+''+img+'">' +
'</div>' +
'<div class="chat-body">' +
'<div class="chat-text">' +
'<h4>'+username+'</h4>' +
'<p>'+message+'</p>' +
'<b>Just Now</b><span class="msg-status msg-'+chatboxtitle+'"><i class="fa fa-check"></i></span>' +
'</div>' +
'</div>' +
'</div>');

$(".target-emoji"wink.css({'display':'none'});
$('.hmu-filler').css({'height':0+'px'});

msgid = data;
/*clearTimeout(chkSeenInterval);
chkSeenInterval = setTimeout('checkMsgSeen(msgid,chatboxtitle);',3000);*/
scrollDown();
});
chatfrindList();
}
chatHeartbeatTime = minChatHeartbeat;
chatHeartbeatCount = 1;




var adjustedHeight = $(".chatboxtextarea"wink.clientHeight;
var maxHeight = 40;

if (maxHeight > adjustedHeight) {
adjustedHeight = Math.max($(".chatboxtextarea"wink.scrollHeight, adjustedHeight);
if (maxHeight)
adjustedHeight = Math.min(maxHeight, adjustedHeight);
if (adjustedHeight > $(".chatboxtextarea"wink.clientHeight)
$($(".chatboxtextarea"wink).css('height',adjustedHeight+8 +'px');
} else {
$($(".chatboxtextarea"wink).css('overflow','auto');
}
return false;
}



What i want to actually do is to create another button with another function..


On click of the button, i want it to send a message without inputting it in the textarea...

Once the button is clicked,the message sends...



Any way around this.??
Programming / Re: Need Help With Php And Mysql by marvzkiddx(m): 10:59am On May 13, 2019
resosdigital:
From the top of my head here is how I would do it.

First authenticate the user to determine the user id.

When the checkbox in the comment section is clicked make an ajax post request and update the row.

Rather than trying to retrieve again from the database I will use js to store the state of the checkbox and use that in the frontend.


Thanks boss
Programming / Re: Need Help With Php And Mysql by marvzkiddx(m): 10:58am On May 13, 2019
miccolo2:


Contact me on 0-8-1-3-8-6-6-3-6-9-7 so it can be sorted out

Thanks man....
Programming / Need Help With Php And Mysql by marvzkiddx(m): 8:06am On May 13, 2019
Okay....
I have a user table named marv_users
Each user in the table has an ID
Now i want to initiate a row in the table named Anonymous
The anonymous is has a value of 0 and 1
0=Off
1=On

The table and the row has been added with 0 as a default value.

Now,i want to add a checkbox on the website for each logged in user

Checkbox with a label
Post as Anonymous?

When checkbox is clicked,value in Table marv_users,row Anonymous changes to 1 and when unclicked changes back to the default value 0.


How do i do it for each user with different ID's....


Secondly,
If that is working already, how do i pass it to the website...

Like i want to use it in a comments section

It's a php IF function....

How do i add it??

Please am i clear enough.??

Please help
Programming / Help Please... Css Animations Giving Me Probs by marvzkiddx(m): 8:07pm On Sep 28, 2017
please... this is a js popup.. but i wanna add animations to it... ao the popup become more beautiful... like d popup fades b4 getting clear... things like dat sha... please help
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!--na d popup code be this jawe:-->
<script>
function eniola(){
document.getElementById('marvin').innerHTML="<b><center>Hi, my name is Olorunjuwon Eniola Moses.<p>This tin has been giving me confirm wahala. all day but finally..... with perseverance and confirm thinking... I finally sorted it out.. </center></b>";
document.getElementById('yunqmarv').style.display="block";document.getEleme('olorunjuwon').style.display="block";
}//end eniola JS function
function seyifunmi(){
document.getElementById('yunqmarv').style.display="none";
document.getElementById('olorunjuwon').style.display="none";
}
</script>
<div onclick="seyifunmi();" id="olorunjuwon" style="position:absolute; width:100%; height:100%; top:0px; left:0px;background-image:url(bg.psd);background-size:cover;background-position:center;opacity:0.4;z-index:9999;display:none"></div>
<div id="yunqmarv" style="position:absolute; width:300px; height:150px; top:150px; left:50%; margin-left:-155px;border: 2px solid purple;background-color:white;z-index:99999;padding:15px;-webkit-border-radius:5px;border-radius:10px;display:none;"><span onclick="seyifunmi();" style="position:absolute;top:5px;right:5px;color:red;fweight:bold;cursor:pointer" title="Close Window!">x</span><span id="marvin"></span></div>
<center><li style=" font-size:50px;"><a href="#" onclick="eniola()">Click to see</a></li> </center>
</body>
</html>
Programming / Help by marvzkiddx(m): 6:32pm On Aug 26, 2017
please...... i have a chat script... php...

please how can i make users b able to change chat bac image..... i mean users will b able to changer der background image... i mean d background of d chat tap where d messages are read
Programming / Re: Android App Expert Needed by marvzkiddx(m): 6:36pm On May 14, 2017
yea.... u sure understand wah m saying
Programming / Android App Expert Needed by marvzkiddx(m): 3:31pm On May 14, 2017
please.... I need help with dis.... how do o connect an Android apk to a local server...

d app fetches its data from the web


buh d files are hosted on a local server...


so please how is it done

please... I need help
Programming / Re: Having Issues by marvzkiddx(m): 7:57pm On Jan 11, 2017
how do I import it please
Programming / Re: Having Issues by marvzkiddx(m): 9:30pm On Jan 10, 2017
d real one

Programming / Re: Having Issues by marvzkiddx(m): 9:28pm On Jan 10, 2017
This is the normal view and d view in anoda fone

Programming / Re: Having Issues by marvzkiddx(m): 6:33pm On Jan 10, 2017
but d server gives me d url already... 168.192.43.1:8080 ............dats for d oda fone ooo...using localhost...wld it work?
Programming / Re: Having Issues by marvzkiddx(m): 6:30pm On Jan 10, 2017
ohhhhh....alrite thanks bro..ama try dat now
Programming / Having Issues by marvzkiddx(m): 4:49pm On Jan 10, 2017
hello guyz...ehm,please I need u guys on thiz...i programmed an exam system..and m running it on bit server....den I try connecting other devices to the server jus to test it on other devices..but wen I open the it,it brings out shit....like d css file is missing....it wldnt have any style atol...and when I try accessing anoda page,it brings out sme browser error issh.....and u know the ip for the server is different from the ip ibwld b using on d oda devices...please is it my config file that has problem or what...please I really need u quyz.....please..av done a lot to solve this but can't get it....if possible please add me to a programming group on whatsapp.....
07063285861 dats my digit...thanks a lot.
Programming / Help Help by marvzkiddx(m): 3:31pm On Jul 18, 2016
<?php
$db = mysql_connect("$dbhost", "$dbuser", "$dbpass" ) or die("Could not connect." );
if(!$db)
die("no db" );
if(!mysql_select_db("$dbname",$db))
die("No database selected." );
if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
?>


pls people help me check out this code for my connect.php file.. it keeps saying could not connect ND no db...m using ultiserver for Android to run d php codes... please guys..
av posted the file here.... u can help me modify it..... Plss.... tnks

Programming / Re: Php by marvzkiddx(m): 11:41am On Jun 09, 2016
aiit bro........This is d index file tho...U cn help me check n modify.Pls

1 Share

Programming / Re: Php by marvzkiddx(m): 1:10pm On Jun 08, 2016
tnnks guyz..Buh plss visit dis site marvzkiddz.netai.net den try to reqister....after registration,it brings an error code...please help me..thanks.
Programming / Re: Php by marvzkiddx(m): 10:48pm On Jun 06, 2016
ao wld i knw if its down.....And aqain cn i create database in anoda host while d domain is on anoda host..
Webmasters / Social Networking Site Up For Sale by marvzkiddx(m): 6:32pm On Jun 05, 2016
i gat a social networking site i wanna sell out..tz barely up to a month old..Tested nd trusted..
.
.
It has lots of features
of which i wld mention few
*loqin/reqister
*upload pictures
*chat
*send frnd requests
*recieve frnd requests
*create a qroup
*timeline
*profile
to mention a few.
Programming / Re: Php by marvzkiddx(m): 1:54pm On Jun 05, 2016
kk.. av u checkd d site,so u wld undastand well
Programming / Re: Php by marvzkiddx(m): 1:03pm On Jun 05, 2016
bro,pls can u email me ur.Details @ exclusivemarv@gmail.com . . . its workin well,buh wen i try signin up on it..it says smefin else...
u cn try it..www.marvzkiddz.netai.net
jus testin it tho..movin it to anoda host soon.
Programming / Re: Php by marvzkiddx(m): 11:47am On Jun 05, 2016
this is wah i wrote in connect.php



<?php
define('DB_HOST', 'mysql13.000webhost.com');
define('DB_USER', 'a5672605_4581');
define('DB_PASS', '********');
define('DB_NAME', 'a5672605_4580');

$connection=
mysql_connect(DB_HOST,DB_USER,DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME) or die(mysql_error());

?>
<?php
$con = mysql_connect("localhost","root",""wink;
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

?>

and this is what i see When i access d website

warning:mysql_connect()[function.mysql_connect]:access denied for user 'root'@'localhost'(using password:NO)in/home/a5672605/public_html/connect.php on line 13

could not connect


plsss help me out...am new in this.please
Programming / Re: Php by marvzkiddx(m): 11:05am On Jun 05, 2016
owk......i will do do dat now....its on 000webhost
Programming / Php by marvzkiddx(m): 10:14am On Jun 05, 2016
<?php
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'db');

$connection = mysql_connect(DB_HOST,DB_USER,DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME) or die(mysql_error());

?>
<?php
$con = mysql_connect("localhost","root",""wink;
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

?>



plsss av been tryin to connect to my database,but i cnt..dahz d code..Plss help..
and what is d 'root' and 'localhost'..I mean this>>> mysql_connect("localhost","root",""wink;
..What does d 'root' mean..Thank u.love u all

1 Like 1 Share

(1) (of 1 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 39
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.