mmcdonald 28 Posting Pro

Nice words Mitch and yes Dani and the team have done a wonderful job - but they're still being penalised by Google as the crawler is indexing DW as a blog and not a forum - that can be quite damaging when Google users enter search terms that are questions rather than statements.

Dani is on a hunt for the best Whitehat SEO tactic that will force the Google crawler into indexing DW as a Forum.

mmcdonald 28 Posting Pro

A modal is a useful JS popup btw... if you don't know what they are here is a live example: http://getbootstrap.com/javascript/#modals

mmcdonald 28 Posting Pro

No I'm not trying to do that :) I've explained it quite clearly... I even added a picture. You have my code, my CSS, a picture of my error and my explanation... would you like some blood too? :)

When I launch a modal it's appearing half cut at the top of the page so it can't be used (as shown in the picture [see OP]).

Cheers for your help though,
Michael

mmcdonald 28 Posting Pro

OP said:

What if someone who is on my site presses Ctrl + ? And zoom in ? or zoom out?

OP is talking about zoom regardless of device or browser, he's trying to keep an image stuck in one location by the sound sof it (To the nav).

mmcdonald 28 Posting Pro

No I can't

mmcdonald 28 Posting Pro

I've never used dzone or visited it so no I'm not :)

If you've tried before and failed I guess that's the answer to this thread. Surely there are easy ways to cut the spam, perhaps a downvote margin, and when the margin is crossed the listing is removed?

mmcdonald 28 Posting Pro

Well I've always got to what are pretty much the same places whilst taking different routes... you knew what I meant Dani play nice! :D

mmcdonald 28 Posting Pro

@LastMitch - you keep mentioning mobile devices in CSS topics when none of the topics relate to mobile devices, can I ask why?

mmcdonald 28 Posting Pro
@LastMitch

I have tried all of the above, they result in the modal being pinned to the bottom of my screen rather than cut off of the top (Still no good as it's all retarded at the bottom too). Thanks for the suggestion though.

CSS for Modal:
.modal {
  position: fixed;
  top: 10%;
  left: 50%;
  z-index: 1050;
  width: 560px;
  margin-left: -280px;
  background-color: #ffffff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  *border: 1px solid #999;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
  outline: none;
  -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
          box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -webkit-background-clip: padding-box;
     -moz-background-clip: padding-box;
          background-clip: padding-box;
}

.modal.fade {
  top: -25%;
  -webkit-transition: opacity 0.3s linear, top 0.3s ease-out;
     -moz-transition: opacity 0.3s linear, top 0.3s ease-out;
       -o-transition: opacity 0.3s linear, top 0.3s ease-out;
          transition: opacity 0.3s linear, top 0.3s ease-out;
}

.modal.fade.in {
  top: 10%;
}

.modal-header {
  padding: 9px 15px;
  border-bottom: 1px solid #eee;
}

.modal-header .close {
  margin-top: 2px;
}

.modal-header h3 {
  margin: 0;
  line-height: 30px;
}

.modal-body {
  position: relative;
  max-height: 400px;
  padding: 15px;
  overflow-y: auto;
}

.modal-form {
  margin-bottom: 0;
}

.modal-footer {
  padding: 14px 15px 15px;
  margin-bottom: 0;
  text-align: right;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  -webkit-border-radius: 0 0 6px 6px;
     -moz-border-radius: 0 0 6px 6px;
          border-radius: 0 0 6px 6px;
  *zoom: 1;
  -webkit-box-shadow: inset 0 1px 0 #ffffff;
     -moz-box-shadow: inset 0 1px 0 #ffffff;
          box-shadow: inset 0 1px 0 #ffffff;
}

.modal-footer:before,
.modal-footer:after {
  display: table;
  line-height: 0;
  content: "";
}

.modal-footer:after {
  clear: both;
}

.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}

.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}

.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
mmcdonald 28 Posting Pro

You're going to need to add the code, the whole navbar including the image you've added please (Not the actual image, just the code used to insert). Only then can I see where the CSS should be applied.

mmcdonald 28 Posting Pro

Example from MSDN:

DataTable dataTable = new DataTable("Country");
dataTable.Columns.Add("Id");
dataTable.Columns.Add("Name");
dataTable.Rows.Add(45, "Denmark");
dataTable.Rows.Add(63, "Philippines");

comboBox1.DataSource = dataTable;
comboBox1.DisplayMember = "Name";
comboBox1.ValueMember = "Id";

comboBox1.SelectedIndex = 1;
comboBox1.Refresh();

DataRow selectedDataRow = ((DataRowView)comboBox1.SelectedItem).Row;
int countryId = Convert.ToInt32(selectedDataRow["Id"]);
string countryName = selectedDataRow["Name"].ToString();

int selectedValue = Convert.ToInt32(comboBox1.SelectedValue);
mmcdonald 28 Posting Pro

Phorce is correct, this has nothing to do with PHP and will most likely be moved to CSS soon. However, wrapping your image in div tags and setting the nowrap style could solve your problem:

<div style="white-space: nowrap;">
    <img ... />
</div>

I would of course create a CSS class rather than use inline styling but the code above is just a demonstration.

Michael

mmcdonald 28 Posting Pro

That's nothing new Everton, I always use something like Escrow when dealing with Freelancers - but I'm sorry to hear it.

The above rewrite will work, perhaps it's being implemented incorrectly? It's been tested by JorgeM and he's a seasoned programmer.

Either way, good luck!

mmcdonald 28 Posting Pro

Phorce you must have loaded a second after I posted as I edited that extra ']'! You solution stealer!! :D It was a clear typo

mmcdonald 28 Posting Pro

Joshmac - that's not a great error at all :)

Can you catch a clearer error with something like:

catch (PDOException $e){
    echo $e->getMessage();
}

after your query?

mmcdonald 28 Posting Pro

I cant believe I actually didnt click with your issue earlier, sorry!

mmcdonald 28 Posting Pro

Are you trying to acheive something like this:

<?php echo number_format($row_total['sub_total'], 2, '.', ''); ?>

?

From the looks of it you're trying to use the number_format function on an array reference? You should instead call the function on the array variable itself. Does that make sense?

mmcdonald 28 Posting Pro

Cheers Gahhon!

mmcdonald 28 Posting Pro

Would be great to have an error aswell...?

mmcdonald 28 Posting Pro

Did this solve your question Chris?

mmcdonald 28 Posting Pro

Then you're either a very sensible browser or you've been bloody lucky.

mmcdonald 28 Posting Pro

Well done! :D

mmcdonald 28 Posting Pro

I never really look at the footer menu to be honest, I don't think theres anything there I need to use. I will from now on though actually as the forum, unanswered, recently updated and my posts are bloody useful :D

mmcdonald 28 Posting Pro

Yeah you're going to have to slap me as I can't help any further - only ever once looked at VB and immediately reverted back to web programming :) Now there's a better question here with your code another user could potentially help you, sorry and good luck!

Michael

mmcdonald 28 Posting Pro

Dani,

I've got in touch with an SEO expert I have worked with previously, he's as good as they come and holds a clientel list with fortune 500's such as Nokia, Microsoft, Audi, BMW, Wilson and LG.

I'll forward his response to you when I get it, I know he's in the states on holiday at the moment so it might take a few days to get his response.

Michael

mmcdonald 28 Posting Pro

I would like to help you out blueguy777 but I'm quite inexperienced with multidimensional arrays, perhaps this article could help you?

http://webcheatsheet.com/PHP/multidimensional_arrays.php

I'm actually going to read through that article myself and see if I can grasp it, looks easy enough. Sorry I couldn't help more.

Michael

mmcdonald 28 Posting Pro

Sorry Valter but your question is quite unclear.

Could you post some code here and perhaps an image of your issue so a member of the community can help you find a solution.

Clarification is key :)

mmcdonald 28 Posting Pro

Thanks for testing and feeding back your results JorgeM. Explaining URL rewriting was a smart move.

Michael

mmcdonald 28 Posting Pro

Hey don't mention it :D Everyone has a mother tongue buddy! I just misunderstood because of access in the title.

Is this what you're looking for?
http://www.dreamincode.net/forums/topic/74114-a-really-simple-database/

mmcdonald 28 Posting Pro
To make:
**The original URL:**
http://website.com/index.php?a=profile&u=username

**The rewritten URL:**
http://website.com/a/profile/u/username.html

**Use:**
RewriteEngine On
RewriteRule ^a/([^/]*)/u/([^/]*)\.html$ /index.php?a=$1&u=$2 [L]
To make:
**The original URL:**
http://website.com/index.php?a=profile&u=username

**The rewritten URL:**
http://website.com/profile/username.php

**Use:**
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.php$ /index.php?a=$1&u=$2 [L]
mmcdonald 28 Posting Pro

Do you have any other rules that could interfere?

mmcdonald 28 Posting Pro

Ewww Dreamweaver :'(

If you're dealing with currency, which it looks like you are, then you should definately use money_format().

http://www.php.net/manual/en/function.money-format.php

However if you just want want to have a decimal place and not a comma change it to this:

$row_total[ number_format, 'sub_total, 2, '.' ''']; ?>"

Notice the change of the comma to a period :)

mmcdonald 28 Posting Pro

Perculiar name haha but welcome to Daniweb. This isn't a good place to submit your programming queries...

but the best.

mmcdonald 28 Posting Pro

Well done on self-answering, but would you care to share your solution incase another user runs into the same issue?

Michael

mmcdonald 28 Posting Pro

The folder has to be shared so that it can be accessed from the client PC, but if you're trying to simply read from or write to a directory then you'd type the path like so:

\\192.168.1.222\software
mmcdonald 28 Posting Pro

Have you done any research yourself?

Anywhom - by scan do you mean upload/open a file?

mmcdonald 28 Posting Pro

Can we see the code that is executed when the user checks mechanical...

mmcdonald 28 Posting Pro

Right forgive me but we're lost in translation. Are you simply trying to display an image in a MS Access database?

If so one simple Google search gave me a million more answers than I needed. Here is one :

http://support.microsoft.com/kb/285820

OR: http://lmgtfy.com/?q=show+image+in+microsoft+access+database

mmcdonald 28 Posting Pro

What about the ones that can be bothered? If someone makes a new tool and wants to share it with the community they can do so here without having to move other to another forum. I know I'd use it, perhaps we could get a better idea by initiating a stick with a poll?

mmcdonald 28 Posting Pro
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /index.php?a=$1&u=$2 [L]

The original URL:
http://website.com/index.php?a=profile&u=username
The rewritten URL:
http://website.com/profile/username

Hope I've got it right,
Michael

mmcdonald 28 Posting Pro

I came accross an article in the Financial Times a few weeks back that contained an unofficial confession of a Google geek, who stated something along the lines of:

"The execs have the Google geeks working over time to ensure that at the end of each quater there is a spike in revenue thus making the charts look great for shareholders".

It went on to say something along the lines of (forgive my lack of accuracy): "When we break things, people pay good money to have them fixed".

God knows how much truth there is to the shadow interview but it really wouldn't surprise me if it's not far from the truth.

mmcdonald 28 Posting Pro

Backlinks are a risky business and can do as much damage as good. I've seen a lot of individuals selling backlinks from .edu and .org domains on portals such as fiverr.com - a PR 7 backlink from a .edu for $5? It's only when you visit the domain that you see it's saturated with links to domains in all industries and backgrounds. Google is smarter than you, believe it or not, and they can/will penalize you for it.

The best way to get healthy backlinks from high PR websites in my opinion is to either establish a partnership with a popular website (hard work) or to offer your experitise to a high PR blog free of charge and write a very good article. You can then use this oopportunity to secure backlinks. These links will of course have to be dofollow.

There are some greyhat method (not quite whitehat and not quite blackhat) as mentioned in this blog post: http://igau.org/high-pagerank-dofollow-backlinks-easily-quickly/

Good luck,
Michael

mmcdonald 28 Posting Pro

Just incase almostbob is jumping the gun (no offence meant almostbob) and these results are infact about you (Internet trolls and so forth) then you can report the false information to the webmasters. It's a long route to go but totally understandable. I myself had a 15 year old american impersonate me on several forums by using my name and profile avatar - only to try and harm the reputation I had on another forum that was a partner of the forum he trolled on! I had to send a copy of my birth certificate and drivers license to the webmaster who after three weeks of waiting finally deleted the account and all of the false threads.

If this is the case - good luck!

If almostbob is correct and the information is regarding other people who simply have the same name, you have a better chance of world domination. Stop taking it personally. My name is Michael McDonald and there was a singer in the 60's/70's called Michael McDonald (I was actually named after him)... you should see the Google results!

Michael

mmcdonald 28 Posting Pro

Hi Dani,

Couldn't you show the time twice for users that are logged in? The GMT in dark font and the users profile defined timezone next to the GMT in a faint grey (or visa versa).

Michael

mmcdonald 28 Posting Pro

DaniWebers,

We have a category for Jobs and Resumes in the Business Exchange and it's used regularly for recruitment, however all over the forums I find and repsond to people in search for careers advice. Could we possibly add a new category 'Careers Advice' under the Business Exchange parent?

Cheers,
Michael

mmcdonald 28 Posting Pro

Haha how have I never seen this link? I was on my HTC One X Plus last night trying to use DW... took me about 20 minutes to reply to AncientDragon :D

mmcdonald 28 Posting Pro

Nice one - I was horrified to see the system restore suggestion. Did you manage to get some records from your log? If you did post them here and we'll see what we can do.

Michael

mmcdonald 28 Posting Pro

Well any tools that can be seen as highly useful, such as http://phperror.net/ for sexy PHP error reporting, http://www.bluestatic.org/software/macgdbp/ for PHP programming on a Mac OS and so forth. You're a programming mistro - surely you're aware of what I'm getting at? :D There are millions of resources all over the web, and HotScripts.com has just become a directory saturated with crap that anyone can submit too without requiring approval - I feel there's a great market opportunity here at DaniWeb.

It's just the perfect addition to DW for new or training programmers to discover useful tools and for seasoned programmers to share and rate their preferred tools.

Perhaps a community member could submit a tool they find useful and the community could vote for it automatic addition to the database. 5:1 in positive votes after 14 days should add it to the database, else the submission is deleted. Just an example of how it could work requiring the least manual interaction.

mmcdonald 28 Posting Pro

That's an interesting extension :) perhaps you could split these into two different areas and establish 1. A careers center and 2. A resource database? I'm struggling to see how the two would work together, care to elaborate?

mmcdonald 28 Posting Pro

No offence but you're just looking for answers by copy and pasting suggestions by users. Perhaps you should do as suggested above and dump a more detailed error message; that will allow most the community here to give you a working solution.