₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,581 members, 8,446,146 topics. Date: Thursday, 16 July 2026 at 07:46 AM

Toggle theme

Yawatide's Posts

Nairaland ForumYawatide's ProfileYawatide's Posts

1 2 3 4 5 6 7 8 ... 118 119 120 121 122 123 124 125 126 (of 160 pages)

WebmastersRe: Any Web Developing/it Company In Ogun State? by yawatide(f): 12:14pm On Feb 26, 2009
WebmastersLetz Learn Something: Graceful Degradation by yawatide(op): 10:49pm On Feb 25, 2009
This picks up from where I left off at one of my posts, "Quick Question 2 - https://www.nairaland.com/nigeria/topic-239471.0.html - you might want to read up on that post b4 continuing.

You read it? Yes? Good.  In the words of 9ice, "letz go there"  cool

Given:
<a href="#" onclick="doStuff(); return false;">Click me</a>

As I mentioned in the post above, it is bulletproof but again, if javascript is turned off or you are on a phone which will not open popups, you are screwed.  So how do you get around this? Read on:

I discovered long time ago that if you did something like this, you are good to go:
<a href="page.php" onclick="doStuff(); return false;">Click me</a>, where doStuff() is a function that calls the javascript open() function, that would open page.php. Note: This applies to opening popups.

If the browser has javascript enabled, it goes for doStuff() otherwise, it goes by what is in the HREF wink

For the students in the house (including myself), 'hope you learned something!  smiley
WebmastersRe: Quick Question 2 by yawatide(op): 10:35pm On Feb 25, 2009
Answer:
<a href="#" onclick="doStuff(); return false;">Click me</a> - try it out in a multitude of browsers.

Sure, javascript:void() will work, but only on certain browsers.  Also, if on devices that disable javascript by default (think cell phones), such a link would not even work in the first place.  Of course, you coud resort to using NOSCRIPT but why?

I do have a question though: Why even bother having a "#" in the HREF to begin with? I mean, if you have no link, why put crap in there?  Interesting question for which I have what I think is a good answer. 

See my next post coming soon, "Letz Learn Something: Graceful Degradation" wink
WebmastersRe: Quick Question 2 by yawatide(op): 10:14pm On Feb 25, 2009
hmmm, so dhtml, u dont c urself as a student? Interesting.

Anyways, I await an answer.
WebmastersRe: Quick Question 2 by yawatide(op): 9:46pm On Feb 25, 2009
dhtml, so which is it? tongue

I don't recall saying my question was mutliple choice, he he.

@all:
If you don't understand the question, copy my code and paste it in a file of yours with a lot of content, such that it is at the bottom, then click the link.

There is a solution, trust me. I will post it soon wink
WebmastersQuick Question 2 by yawatide(op): 6:58pm On Feb 25, 2009
So I have some time and have decided to post again, woohoo! grin

So I am sure many of you are used to writing somethign like so:
<a href="#" onclick="doStuff();">Click me</a>

The problem is, in some browsers, clicking the link, even though it runs the javascript, causes the page to "jump" to the top, as though it were a "back to top" intra-link. Why? because it is trying to find the link and finding none, it resorts to the top. For me and perhaps you, I find this annoying.

Question:
how can you rewrite the code such that clicking the link will not only run the script but cause the page to stay where it is (and is supposed to be) without "jumping"?

Responses are welcome smiley
WebmastersRe: Writing A Time Based Expiration Script Or Function Using Php And Mysql by yawatide(f): 6:34pm On Feb 25, 2009
I think you are missing a function to be wrapped around your dates: strtotime()

So it would be something like this (pseudocode):
start date = strtotime(start date);
end date = strtotime(end date);
today = strtotime(today);

Then you do your comparisons (again, pseudocoe):
if (end date <= today) then
    do stuff
else if (start date < today) then
    do stuff
else
    do stuff

Note:
1) You can't compare dates directly in "Y-m-d" format (or maybe you can but I just don't know  cool) because of the "-".  At the very least, you would need to apply "explode".  Having said that, I think my approach works better and is more straightforward.  The strtotime() will convert to a unix timestamp which looks like an actual number that makes checking easier

2) you will still need the $todays_date = date("Y-m-d"wink;  part above.  of course the assumption is the dates you are getting from ur dates columns r in the same format. if not, you will need to convert them such that strtotime() can take and convert them.

Finally, thanks to actually searching the archives for this instead of writing a new post. Reading this from top to bottom actually made it easier for me to follow and appreciate.

Good luck!
WebmastersRe: Describe Your Ideal Personal Website! by yawatide(f): 4:49pm On Feb 25, 2009
Guardian,

They are there but you probably aren't searching in the right places/locales.

For instance, have you considered making an advert requesting applicants to show up at a certain location for them to show you their stuff? If you go this route, just make sure you have police back up sha so that what happened when whatever phone company it was that had over 1000 people show up at the same time won't happen to you wink

Again, the people you need are there but like the bigger fish in a river, they most likely won't be swimming towards the top but rather, deep down and in b/w the tree roots at that cool
WebmastersRe: Wow! This Site Is Incredible! by yawatide(op): 2:39pm On Feb 25, 2009
hmm, they didn't give you the mysql? As in they don't support it or it is there but they haven't set it up? If the latter, I think you can go in and create the db/tables yourself. It should be under phpMyAdmin.

Good luck!
WebmastersRe: Wow! This Site Is Incredible! by yawatide(op): 12:36pm On Feb 25, 2009
Probably there has been improvement in the background, but in the front, I still see animations and the green background I think is overkill, you could still keep the background of the column white and say, use a 1px black border to denote boundaries. Contact page still doesn't exist.

Good luck!
WebmastersRe: Jamb Reg Wahala by yawatide(f): 7:17pm On Feb 24, 2009
zstyle,

Because they are professional tongue

Why pay "a fortune" for a professional when you can get one of these much cheaper?

https://www.nairaland.com/nigeria/topic-235101.0.html

Seems like a legitimate question to ask, to me cool
WebmastersRe: Help With Joomla Upgrade by yawatide(f): 3:55pm On Feb 24, 2009
Interestingly, I am reading a Joomla 1.5 book, authored by Barrie North, one of the creators of Joomla 1.5, "Joomla! A user's guide: Building a successful joomla! powered website (2008)"  cool

You might be out of luck.  Here is what he has to say on the matter of upgrading (I will try to type as much as I can.  Where I Can't, it will be abridged such that you get the point, so bear with me please):
You can't upgrade from 1.0 to 1.5.  There are significant enough changes in the code that simply over writing files would break your site.  Joomla 1.5 doesn't provide an upgrade path from earlier versions.  Converting an older site to 1.5 requires populating the new site with the content from the old site.  This migration of content is not a 1-to-1 process and involves conversions and modifications to the content dump.

THis has been a deliberate choice to minimize the number of users who might attempt the "overwrite teh files" technique.

1.5 is so signifcantly changed from 1.0 that there is no upgrade path.  That is why we are provdidinhg the migration path.  The concept is to build a new site and to migrate data from the old site. Extensions need to be installed and configured as if the site is new.  The core data migration does reconstruct menue items for core elements and also keeps core module records with configuration settings.
As if this isn't frustrating enough, I just checked www.compassdesigns.net/ and 1.6 might be out as early as august (http://www.compassdesigns.net/joomla-blog/tags/joomla-1.6/)

Other possible solutions, based on experience:
1) Ensure that all the necessary folders are writeable in which case, atimes as you may know, tis best to go with FTP.
2) (This doesn't have to do with migration but might help nonetheless) One time, I installed joomla and had to run the install again as somethig went wrong in the process. For some reason, the 2nd time around, it didn't like the fact that I gave it the name of the db I created, even though it was the only one there and I created it specifically for joomla. I ended up having to drop the db and recreating it. Again, Joomla didn't like that so in the end, I dumped it again, created a brand new db, gave it the name of the new one and everything worked like a charm.

I hope this helps with your issue.
WebmastersRe: Slot's Website by yawatide(f): 12:32pm On Feb 24, 2009
hanen,

It definitely sucks, you bet grin
WebmastersRe: Generate Traffic For Free by yawatide(f): 8:56pm On Feb 23, 2009
WebmastersRe: Pls Aw Can I Design Flash Website? I Love Dem But I Cant Design,pls Help by yawatide(f): 7:59pm On Feb 23, 2009
Interesting analysis cool
WebmastersRe: Who Are The Moderators? What Are They Doing? by yawatide(f): 7:01pm On Feb 23, 2009
u r asking the wrong persons the right question brother tongue
WebmastersRe: Slot's Website by yawatide(f): 5:29pm On Feb 23, 2009
Keyword: Assumption - Never assume: you make an ASS out of U and ME.

Another assumption: You assume that many on here are aware of what it used to look/function like before. It would be nice for you to perhaps specify 1 or 2 changes that you have noticed to help ppl like me who are clueless.

Take note.
ProgrammingRe: Php Codes For Rss Feeds Needed by yawatide(f): 3:34pm On Feb 23, 2009
paule,

YIM me wink
WebmastersRe: Who Are The Moderators? What Are They Doing? by yawatide(f): 3:31pm On Feb 23, 2009
Oga cactus, thanks for your post.

From the links at the top of this post, you know who the moderators are. So why not just pose the question directly? cool

Like you, I used to get very frustrated with such posts. That is why, in a way, I am happy to be a moderator. There are 2 of us. I live in the western hemisphere. The other, the eastern hemisphere. I bring this up because:

1) I am not paid to do this. Having said that, within my hours of operation, I visit this board at least once an hour. This doesn't mean that I have this board on beeper and anytime it goes off, even at 2am, I will wake up to monitor the board. By the way, I last monitored this board, other than right now, at 11am GMT wink

2) I can't speak for the other moderator on this issue but chances are that when you visit, it is at a time when I am off and he is on (hopefully).

As moderators, we can only delete posts but not threads. Also, if the thread has only one post, we can't delete the thread. Only Seun can do that. He also is the only one with rights to block IP addresses and users.

In the spirit of "okay, now you have laid out your complaint, what is the solution?", I would suggest to you and others to utilize the "report to the moderator" button. If it is something we can't handle, we will send it to Seun for review.

Rest assured, I hate such spam as much as you do and unless you want to kid yourself, I am sure you will agree that compared to this time a year ago, spam has been much more reduced. Believe me, I monitor as I said, during the day, at least once an hour. I will confess though that since I am not paid, I am not motivated to do it more often and for free work, once per hour is even more than what would be required for such "pay".

Thanks for your post and thanks for airing your issue in a mature manner.
ProgrammingRe: Php Codes For Rss Feeds Needed by yawatide(f): 1:15pm On Feb 23, 2009
WebmastersRe: Wow! This Site Is Incredible! by yawatide(op): 1:14pm On Feb 23, 2009
Pls post the link here for convenience.

THanks,
WebmastersRe: Rss Feeds Codes by yawatide(f): 1:14pm On Feb 23, 2009
If all you need is to generate RSS feeds, I don't think you need php per se. Head over to w3schools for a tutorial on how to create RSS feeds.

Hopefully, that helps. That is where I went for my tutorial anyways wink
WebmastersRe: Price Of Building A Website? by yawatide(f): 1:11pm On Feb 23, 2009
I don't know of any and to be frank I would do what nitation has said. You should focus more on what you can offer the clients and on what they want from you. Besides, even if it is 100K a month, you can always transfer that cost to the client. They don't have to know wink

Good luck!
WebmastersRe: Slot's Website by yawatide(f): 1:10pm On Feb 23, 2009
Because for me, it is a way to get poster to realize that there is a "preview" button. If poster is like me, he/she will learn next time.

Is it a lame way of doing so? sure. but that is how I was raised and that is how I raise others. Besides, I didn't turn out too badly myself wink
WebmastersRe: Wow! This Site Is Incredible! by yawatide(op): 11:43pm On Feb 22, 2009
thou still a dummy
Don't call yourself that  angry

You can always use one of the many javascript libraries (YUI, jquery, mootools, etc) to generate a flash-like animation.  You could even do what I used to do for a while - create an array, populate it with images and on each page load, randomly generate an array index and display the corresponding image.  The latter approach, though not as "cool" still gives the user the impression that if he clicks more pages (something good for your ad campaigns wink), he has something more to look forward to, with respect to what image you will be displaying next.

good luck!
WebmastersRe: One On One Teacher Needed For A Deal by yawatide(f): 1:13pm On Feb 22, 2009
Tell whoever is going to teach you to NOT include the part where you hear the "ding dong" on every single page as you click through. It might sound cool after the home page but after that, it gets plain annoying. It gets me thinking someone is at my door quite frankly.
WebmastersRe: Web Caches Problem - Help! by yawatide(f): 1:12pm On Feb 22, 2009
LOL

It shouldn't be. What I am saying, and this has happened to me before is, back up your files, delete them off the server. Make sure that when you refresh your browser, after deletion,that nothing shows up, then re-upload same files. That should ensure that you are serving up nothing but the latest files.

Still confused?
WebmastersRe: Price Of Building A Website? by yawatide(f): 6:24pm On Feb 21, 2009
I would say nothing less than 100K each. This assumes a strict informational website. If they want something with a database, nothing less than 200K each. This price excludes any maintenance for which I would probably charge at the very least 5K a month for once-a-month updates.

Good luck!
WebmastersRe: Web Caches Problem - Help! by yawatide(f): 6:22pm On Feb 21, 2009
Either you aren't uploading to the right place OR you are but as you stated, cache isn't clearing.

One guaranteed solution, if the latter.

Delete *everything* from wherever you are storing your files. Then refresh your browser. The point is to get the browser to display, "this site does not exist" or whatever verbiage shows up. Next, re-upload your files and you should be good to go.

On the part of your visitors, I am afraid they are SOL with respect to seeing cached content.

Good luck!
WebmastersRe: Slot's Website by yawatide(f): 10:07pm On Feb 20, 2009
yeah, i can see a huge SLOT right below your post

Good job! huh huh angry angry shocked angry angry huh huh

1 2 3 4 5 6 7 8 ... 118 119 120 121 122 123 124 125 126 (of 160 pages)