« first day (1927 days earlier)      last day (3249 days later) » 

user924016
21:00
@NeelIon look up __construct() { and read the php docs about oop
and i use wp-pagination plug in @RonniSkansing
@RonniSkansing i did
@NeelIon For a bunch of reasons. First, it's not valid code. Second, you can't reference $this outside of a method. Do what @RonniSkansing said. Third, when accessing a property in the parent, you need to reference it like the variable it is, like parent::$foo
user924016
@mahdiazarm did you miss the whole
user924016
public function __construct($message) { ...
21:02
@Charles thanks man
user924016
@mahdiazarm cant help you with that..try wordpress.stackexchange.com
you mean ask at wordpress.stackexchange.com?
hi can i ask a question??
@RonniSkansing thanks man
user924016
I can not offer you any support with a plugin @mahdiazarm you need to dig deep into the code.
user924016
21:07
not just try and stick some wp functions into a plugins text field..
@RonniSkansing this is the plugin >> wordpress.org/plugins/wp-pagenavi this is simple
user924016
what is simple?
this code will show the pagination <?php wp_pagenavi(); ?>
after this plugin added but the problem is that when i use this code in a short code function it doesn't work anymore
user924016
21:11
why are you using it in a short code function?
user924016
As I read it, it is a template tag
yes
inside the loop
user924016
which btw. requires you to hack your theme (which will be remoed when you update) or implement in a chid theme
HTML

<!-- PREVIEW HISTORY -->
<div id="previewModal" class="modal fade" role="dialog">
</div>

<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">

<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Modal Header</h4>
user924016
not only that
user924016
21:12
Usage
In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.
so you mean there is no way to use it in a wp short code right?
user924016
maybe dunno
ok tnx a lot
user924016
I can help you with something else
user924016
@mahdiazarm
21:15
@RonniSkansing please help me
user924016
The code is vuln to sql injection via the $_POST['preview_id']
go on i appreciate
user924016
$sql = "SELECT * from details where customerId='$preview_id' AND cmpId='$companyId'";
user924016
as the client controls whatever goes into $preview_id, they can insert malicious SQL statements
user924016
for example take
user924016
21:17
$_POST['preview_id'] = "'; DROP TABLE details;#";
user924016
that would be come something like
its the modal
i want to display the modal
user924016
SELECT * from details where customerId=''; DROP TABLE details;#' AND cmpId='$companyId'"
user924016
the # means comment so everything after the # is ignored
user924016
this means someone can delete your database
21:19
@RonniSkansing are you with me?
user924016
Yes, but I cant help you with the wp problem, the the wp site I mentioned earlier, make a question (but read the rules first)
so what is someting else then? go on i appreciate!
user924016
Someone can delete your database as I mentioned
user924016
or worse if the db user has too open privileges
hey but id is an AUTO INCREMENTED column in my table there is no input for preview_id
user924016
21:22
sure there is
user924016
$preview_id = $_POST['preview_id'];
user924016
anyways, I have to sleep
user924016
nn
so wat should i do??
user924016
oh yes
user924016
21:24
look prepared statements up
user924016
thanks dude
@kelunik You sure you passed the f(ucking)key?
@PeeHaa I didn't share the HttpClient, that was the issue.
21:33
Have fun reviewing the PR now. :-P
@Danack Used EmailAddress and Password as you suggested for Auryn now. :-)
Will quickly review it when on desktop again and pull it once I checked it didn't break the bot :)
I tested that !!version works.
@kelunik cool - one thing though....they're possibly slightly generic. Obviously if you've only got one of each floating around that's not a problem....but wrapping them together into a Credentials object is probably not a bad thing.
hey can anyone please help me
21:42
@TylerH You clicked the wrong room? :)
@PeeHaa no I just wanted to be here in case people got mad at me for sending Taha here :-P
I'm really joining here to school you all in my PHP-fu
my PHP will make your toes curl, whether in a bad or good way is still to be determined ;-)
21:44
@Danack Yup, could probably also just specify them for Credentials, like I do it for Host.
@TylerH hehehe
I'm so oldschool I use Magic Quotes for everything
Well.....not any more you don't.
> Warning
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Oh, I still use PHP 3
I was going to update but PeeHaa recommended 3 was the best
Yeah....I miss it.
21:49
(actually I'm glad I don't have to use PHP, I'm just trolling PeeHaa. I am a front-end dev that sometimes messes around with .NET)
I was exposed to some (terrible) PHP as a teenager; helped administrate a site built by a Finnish guy learning to code in school
but I haven't ever touched it since
It's ok I only mangle frontend stuff so lets call it even :D
heh
I'll leave your room in peace now
later o/
Holla
22:18
while (true) {
> Implicit true comparisons prohibited; use === TRUE instead
Why you got to make me hit you code style checker?
solution:
while (true === true) {
I did that - i'm not entirely happy about it.
of course
it should be a dumb joke and not a real solution
22:38
^^ PHP in a nutshell.
I am torn
should I buy it or should I wait for it to be on -75%: gog.com/game/pillars_of_eternity_hero_edition
How's the job hunt going?
is there a function to print a variable (string) that contains html to render it "safe" and to actually print the html characters?
@captainrad see htmlspecialchars
22:43
@Danack haven't actually done any "hunting"
I really must get my shit together :(
guys am trying to echo "network of q&a sites" to the page with htmlspecialchars
but i get this "network of q&amp;a sites" how can i ignore the '&'?
That string is correct.
Ampersands need to be encoded.
evening
22:53
@Darth_Vader morning.
playing with REST tonight
@Charles so no way to display it without encoding it?
why?
@ChrysUgwu If you're emitting that string in an HTML document, then yes, you must encode it. A bunch of browsers do funny things with ampersand-encoded entities, and encoding the raw ampersand is the only real surefire way to make sure it comes across correctly.
i think i got some thing wrong. how come i see '&' on this chat when i type it. those it mean they chat is not encoding. am confuse when do i really need htmlspecialchars?
23:01
wat
@ChrysUgwu Do you understand what an HTML entity is?
Wes
Wes
i miss the '90
what if am using something like WMD and i used 'HTML Purifier' to sanitize it, can use htmlspecialchars_decode to display it?
That video is old......Keith has hair....
Also...."special" effects.
23:18
@ChrysUgwu The output you get from a HTML WYSIWYG editor is HTML. When you pass it through HTML Purifier, with the correct settings, it's still HTML. Because it's HTML, and you want to show it as HTML, passing it through htmlspecialchars would turn it into text, so you wouldn't want to do that.
@bwoebi (or anyone) can you send me an example config file for aerys? I'm just looking at how you're loading it...
Wes
Wes
@Danack he has hair, kinda
23:35
moar spam:
ocramius/package-versions - lightweight package version checking for asset/artifact generation. https://github.com/Ocramius/PackageVersions #php #composer
23:55

« first day (1927 days earlier)      last day (3249 days later) »