₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,234 members, 8,510,804 topics. Date: Saturday, 31 October 2026 at 06:47 AM

Toggle theme

Cbrass's Posts

Nairaland Forum › Cbrass's Profile › Cbrass's Posts

1 2 3 4 5 6 7 8 ... 11 12 13 14 15 16 17 18 19 (of 179 pages)

Programming › Re: Xmas Codes by cbrass(m): 7:26am On Jan 03, 2021
Your code is beautiful but I am still wondering why you will save a string as a constant
Programming › Re: Xmas Codes by cbrass(m): 7:22am On Jan 03, 2021
Karleb:
I was expecting this question.

Normally, I shouldn't print directly from the methods for many reasons. Object extension, testing, and so on. grin

The best programmatic option of course was to return the value as strings and print them outta the methods after instantiating Christmas object rather than print/echo them directly but then, I was just having fun with the object.
I mean I wrote that with chicken in my mouth and belly.

I can't really remember the last time I printed something directly out of an object's method unless I want to test if something is working.

If I were to write that seriously, I'd make the Christmas object implement an interface or abstract class, say interface/abstract holiday for example and maybe also think of a design pattern that'll go well with what I have in mind.


For the second question.

voiid|null
Chai my namesake don oversabi work o cheesy
Programming › Re: Xmas Codes by cbrass(m): 7:19am On Jan 03, 2021
Akanimoh113:
Good morning smiley
So... The reason I asked for a hacker was because of the photo below. Is it possible to remove what is covering the main features of the ticket, removing the '400 Shares' and '200 Likes'
Programmers are not hackers grin and not all hackers are programmers
Programming › Re: I Need Help With Wordpress Plugin by cbrass(op): 7:25am On Jan 01, 2021
stanliwise:
Are you willing to pay for the plugin?
i have done it already
Programming › Re: I Need Help With Wordpress Plugin by cbrass(op):
etoluw:
follow the advice below and let's see if it will solve the problem.

https://wordpress.stackexchange.com/questions/121309/how-do-i-programatically-insert-a-new-menu-item
i have actually tried something similar before but my menu wasn't showing again. but this link you sent seems different.
I will let you know if it works.
I am grateful brother. May the good Lord bless you cheesy

modified
It worked bro. please see attached image.
Na oversabi won kill me, that was why it didn't work grin grin
Thank you ones again

Programming › Re: I Need Help With Wordpress Plugin by cbrass(op): 12:38am On Dec 30, 2020
etoluw:
I think it is possible

let me do the research and get back to you
Okay. Thanks bro
The idea is the plugin when installed will automictically show a link at the menu
Programming › Re: I Need Help With Wordpress Plugin by cbrass(op): 9:58pm On Dec 29, 2020
Karleb:
I'm fine. cool

What I mean is, there should be an action hook you can hook into inside the header.php.

Presently you're grabbing and hooking into the whole header.php, but inside this file there should be an action/filter hook you can hook to display your content exactly where you want it since there are a lot of hooks in wordpress.

hmmm..you have a point
Programming › Re: I Need Help With Wordpress Plugin by cbrass(op): 9:20pm On Dec 29, 2020
etoluw:
It is easy to add custom link to Nav menu
programmatically ?
Programming › Re: I Need Help With Wordpress Plugin by cbrass(op): 9:18pm On Dec 29, 2020
Karleb:
I guess what he wants is automatic inclusion of the content in the header.

As in, immediately he activates the plugin, the content will be added automatically to any theme in use.
exactly
Programming › Re: I Need Help With Wordpress Plugin by cbrass(op): 9:16pm On Dec 29, 2020
Karleb:
Maybe if you look inside header.php, there might be functions you can hook into that'll display the content right where you want it.

Long time Bros.
you know iit is supposed to be a plugin that will be installed by a user who doen's know what to do, so if you ask them to go mess with the code it may be tedious for them.

How are you doing bro
Programming › I Need Help With Wordpress Plugin by cbrass(op): 6:51pm On Dec 29, 2020
Hello, i am trying to create a wordpress plugin that will automatically create a link on the homepage.
My first try is to want to add the link no the Nav menu so that it can show in the navigation but that didn't work.

I also tried to show it at the header using WP_head() but it just creates the link far above the website logo and menu. (Please see fig1)

I really need help to know where i can access on the home page to create this arbitrary link, or is it even possible?

Travel › Re: Studying In Finland (free Tuition) by cbrass(m): 10:17pm On Dec 11, 2020
ogedozie:
You mean tuition free? No, except higher secondary vocational education but there are available scholarship in various universities.
What if I want to go work instead of school
Travel › Re: SWEDEN Trend(we Move.....) by cbrass(m): 10:15pm On Dec 11, 2020
KennedyKennedy2:
You really got a point Bro we really need someone that's gonna be nurturing us by giving us vital information about Sweden.
Let's just make due on these trend and be hopeful that aid is gonna come...
To be honest sweden trend isnt FUNCTIONING compaired to NORWAY, US,UK, and CANADA platform/Trend.
Aside the cold I have heard of good report of Sweden
Travel › Re: Studying In Finland (free Tuition) by cbrass(m): 6:38pm On Dec 11, 2020
ogedozie:
I'm not in Finland yet but I'm at the stage of applying for a residence permit.

For the tuition fee, I went to the bank and request for the requirements for payment of tuition outside Nigeria. I was given a breakdown what to bring, Form A to fill and the total cost my tuition will be in naira. As soon as these requirements are met, the bank will handle the rest. It takes about 3-7 working days depending on the bank.

For health insurance, I used Aiico insurance which cost about #30500. You can walk into any Aiico insurance company and do it but ensure it covers €40000. You can also use Swisscare insurance, this can be done online through their website but will cost you more about 100k if I'm not mistaken.

For residence permit, visit Enterfinland https://enterfinland.fi/eServices. Create an account and start filling the form. If you need further assistance I can be of help.
hello, i joined this thread today, i just want to know if their is still free scholarship has stated in the heading of the thread
Travel › Re: SWEDEN Trend(we Move.....) by cbrass(m): 6:12pm On Dec 11, 2020
why whatsapp grooup? except we know somoene that have vital information that will be coming there, also don't forget that people will abuse it and start posting all manner of rubbish
Programming › Re: Will You Choose Your Girlfriend Over Your Computer? by cbrass(m): 5:55pm On Dec 11, 2020
OdefaGirl:
Let me grab my chair and read comments..... grin grin grin
you will be bored. 95% will pic their system over a wife let alone GF grin
Food › Re: I Want To Buy Onions by cbrass(op): 12:38am On Dec 11, 2020
tsagir:
HOW MANY BAGS ? YOUR LOCATION ?
two bags.
my location is lagos
Food › I Want To Buy Onions by cbrass(op): 11:51pm On Dec 10, 2020
Hello people,
I will be glad to know if there is anyone that can send me some bags of Onions from the north.
Kindly comment or DM if you can.
Thank you
Business › Do You Need A Free Website For Your Business? by cbrass(op): 3:07pm On Nov 23, 2020
Do you need a free website for your store?
Do you want to integrate a payment solution in your Online store?
Do you want to increase your customer base?
Do you need free inventory software for your store?
Every Merchant is giving out 100% free software solutions to online Traders in Nigeria
Kindly click the link below to apply for the grant.
https:///32XxlmD
Limited slots are available so hurry now
for more information :
Email: info@everymerchant.com.ng or
Call: +2347087057654

Autos › Re: Tokunbo Lexus IS250 2008 For Sale by cbrass(m): 12:31pm On Oct 25, 2020
Herbbey09:
3.150m
For Niaja used? Seriously?
Autos › Re: Tokunbo Lexus IS250 2008 For Sale by cbrass(m): 3:28am On Oct 25, 2020
how much?
Crime › Re: BRT Buses In Oyinbo Reportedly Set On Fire By Hoodlums, Lagos (Video) by cbrass(m): 10:03am On Oct 21, 2020
How can something be raised to fire ? grin grin grin
Travel › Can I Get Shaki Bus In Iyana-ipaja by cbrass(op): 6:52pm On Sep 18, 2020
Please where can i get Saki bus, i really need to send an item to someone in Shaki
Sports › Re: Neymar Among Five Players Sent Off After Mass Brawl Following Psg's Defeat by cbrass(m): 9:21am On Sep 15, 2020
chocboi78:
like I said, ur validation counts null..
You sha like wahala.. Did I ask you to help me count my opinion?
Sports › Re: Neymar Among Five Players Sent Off After Mass Brawl Following Psg's Defeat by cbrass(m): 1:36pm On Sep 14, 2020
chocboi78:
what re u getting at??
they should scrap their traditional red home Jersey in order to receive ur validation right??
I am not getting at anything o I am just saying that their message was passed very well
Sports › Re: Neymar Among Five Players Sent Off After Mass Brawl Following Psg's Defeat by cbrass(m): 1:17pm On Sep 14, 2020
chocboi78:
yes ,that's d reason for the design.. it was to pass a message
Yea, and the message was passed very well by making it their third jersey
Sports › Re: Neymar Among Five Players Sent Off After Mass Brawl Following Psg's Defeat by cbrass(m): 1:10pm On Sep 14, 2020
obembet:
I firmly stand with Neymar's action and felt pity for him, if truly Alvaro racially abused him, he should face the music. No room for racism in football. The campaign is here to stay which is why Manchester United made their third kit a black and white shirt meaning that Black or White we're United
Was that what Man.U told you?
Politics › Re: Thread For Progressive Nigerians by cbrass(op): 11:34pm On Sep 08, 2020
dukeprince50:
I saw winter is coming in ur post.
are we in the same country?
which country are you o grin grin
Politics › Thread For Progressive Nigerians by cbrass(op): 10:31pm On Sep 08, 2020
With events happening in the country now needs to make us take actions on how to earn more income, for example the downstream arm of the oil and gas sector has been fully deregulated now, which means different petrol station will sell at their own price and not government regulated price anymore.

This will affect prices of a lot of things in the market as our economy is largely dependent on oil. The value of the Naira is really struggling against the dollar now. The government is trying all its best to fight this but it will still not work because we are not a producing nation.
SO with that being said can't we crowd fund a project ? i mean something we will all passively contribute to but will generate income for us,I learnt this was how GTB was conceived by few young guys.

What can we start producing that Nigerians will need?
If you have an invention on ground that will solve a problem please bring it forward and let us discuss on how to crowd fund it so everyone earns some passive in come.

We can not afford to be idling and lazying around now.

WINTER IS COMING GUYS let us do something now.

I am calling on all progressive Nigerians like Omenka, femi4 , Seun , Righteousness89 and a host of other progressives that i may not be able to mention now, who still believe and have faith in this country ,to come out now and let us salvage what is left. I don't believe Nigeria is in Hell yet,

in fact i don't believe we are on earth yet,
Jobs/Vacancies › Re: Genuine Sales Rep Needed Remotely by cbrass(op): 7:30am On Aug 30, 2020
APEXBM:
Your location
Ojodu Berger, Lagos
Jobs/Vacancies › Genuine Sales Rep Needed Remotely by cbrass(op):
There is a company that needs sales representatives for their software. The software is used to minimize theft and corruption by staffs in the Hotel and Restaurants.
Our target audience is Hotel and Restaurants.
you will be getting 15% commission on every clients that subscribes to using the software.

If you are interested please send a mail to info@calebadeleye.com
or you can chat me privately 07087057654
Christianity Etc › Re: Lady Shares Her Experience As Churches Reopen In Lagos Today by cbrass(m): 2:26am On Aug 10, 2020
DammyGbade:
There is nothing special in this undecided

Campaign ground has no
*Thermometer
*Sanitizer
*Water to wash hand

And most of the people wear no face mask in order to shout Obaseke/iyamu very well.

But this useless government is trying to enforce stupid law in places of worship.

Why should I be serving my creator under 'the law/Bondage'? Impossicant!!

I'll resume church whenever I'm free to serve my creator without any preventive measures.

For now, my room is my church!!
Thank God i am not alone.
The church is really weak, they have totally lost it.
I refused to go to church today because there is just no point in us fooling ourselves and acting cowardly

1 2 3 4 5 6 7 8 ... 11 12 13 14 15 16 17 18 19 (of 179 pages)