mattster 195 Practically a Master Poster Featured Poster

Sure no worries, its pretty simple aha.
A quick TinyMCE (with CDN) tutorial:

1) Shove this into your page, just before the </body> tag if possible

<script src="http://tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>tinymce.init({selector:'textarea'});</script>

And here you are, done! You'll have the default one going, so if you want to snazz it up a bit or change the settings, just alter the bit inside tinymce.init({}) bit.

All it does is changes the look of your textarea, and submits HTML code instead of plain text. So all it is doing is helping your user add HTML to their textarea, if that makes any sence.

mattster 195 Practically a Master Poster Featured Poster

ok I got the website to show finally.

Good good, please upvote if any of us helped you with that.

Make sure that Drupal's base URL is set up properly in the admin panel, and if so then use the admin panel to update your content and see if that works.
Avoid doing anything manually or in the database unless you have to, its a deadly game when theres a great admin panel to do it for you.

mattster 195 Practically a Master Poster Featured Poster

Maybe not a good idea to use wordwrap() after you've sorted the entire HTML of the message out. Maybe add it right at the beginning if your that desperate to use it, but I would consider some validation instead of just chopping half of the message off.

Apart from that, It could be because you're using <input>, which is submitted as one continual block of text. What you may be interested in is a HTML Editor, like TinyMCE. This will allow you to format your email using HTML, so therefore it can have user-defined line breaks and other formatting bits and bobs.

I can't see anything other thn that in your code, but there could be some issue when calling the send function, so that's the place to look afterwards.

However, be mindful that this type of email can have security issues, so be very careful and just make sure you properly sanitize everything.

mattster 195 Practically a Master Poster Featured Poster

For a start, look at the links at the top of the page: Internet Marketing > Search Engine Optimisation. Maybe a good idea to ask a question here.

Now for this pathetic question. Use google. It's a lovely site that could answer all of that in one search, and not waste our time with something you could've easily done yourself.

Post a well structured question and show you've made an effort, and we'll use all our brain power to answer it. Simple concept.

mattster 195 Practically a Master Poster Featured Poster

In your database if you use AUTO_INCREMENT, see here.

mattster 195 Practically a Master Poster Featured Poster

answer needed...

We're volunteers, we might give you an answer if we're nice, but we don't need to do anything. Manners go a long way.

I've a website. I need huge visitors in my site.

That's literally what every other one of the 644 million website owners say.

SEO starts over a long period of time and gradually builds up. Not something that happens overnight I'm afraid.

Firstly you need to look at the clarity and validity of your HTML, is it w3c valid? Have you got <meta> tags setup properly so that search engines can find and index your site properly?

mattster 195 Practically a Master Poster Featured Poster

You might need to see if you can find the duplicate ip_ip first, and then in a separate statement see if they both have the same username.

Look here: http://www.petefreitag.com/item/169.cfm

mattster 195 Practically a Master Poster Featured Poster
mattster 195 Practically a Master Poster Featured Poster

How can i make it? I need a source code.

Do you expect us to waste our time doing your research?

Put some effort in and do your own googling.

mattster 195 Practically a Master Poster Featured Poster

The # tag simply a way for people to search tweets/posts of a similar topic.

So using #DaniWeb for instance makes it easier for people to find DaniWeb related content on social media.

mattster 195 Practically a Master Poster Featured Poster

"I like long walks, especially when they are taken by people who annoy me"

~ Fred Allen

mattster 195 Practically a Master Poster Featured Poster

The Australian box jellyfish has a survival rate from its sting is almost 0, death follows in 4 minuets.

Reverend Jim commented: Thank you for getting us back on track. +0
mattster 195 Practically a Master Poster Featured Poster

not showing any file uploads folder,
somthing wrong

So show us some code so we can help you.

Again: Show some effort and try.

mattster 195 Practically a Master Poster Featured Poster

Finland has more islands than any other contry: 179,584

mattster 195 Practically a Master Poster Featured Poster

In 1993, Juan Bernaus was sentanced to 3 years in prison in Argentina for switching the "Ladies" and "Gents" signs on public toilets.

What a lad.

mattster 195 Practically a Master Poster Featured Poster

style="backgound-color: white;"

Use a CSS file instead, will save you a lot of work:

tr:nth-child(even) {background: #CCC}
mattster 195 Practically a Master Poster Featured Poster

sretch

What do you mean by this?

why this page looks good in all browser screen size

Because they are using responsive design. This relies on a grid system and a page that adapts when the browser is re-sized. Start by playing with CSS @media queries.

mattster 195 Practically a Master Poster Featured Poster

Sorry didn't mean to offend you :(

JorgeM commented: He's messing with you. +0
mattster 195 Practically a Master Poster Featured Poster

The above link will redirect you to http://all2psd.com/start/indd2psd

Warning: He didnt state this but you need to enter your email address for the PSD to be sent to. There is no privacy policy on the site and nothing to prevent selling your address on/spam/ads etc.

However it is possible to do this, but not sure how well it works... http://smallbusiness.chron.com/open-indd-file-photoshop-64749.html

If not, try to download the trial of InDesign just to convert maybe?

mattster 195 Practically a Master Poster Featured Poster

What about something like GitHub? or some cloud site?

If you actually need to code to run online your only option would to have some sort of hosting. Even a basic (or free) package will cover you.

mattster 195 Practically a Master Poster Featured Poster

Hope this helps :)

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ cms.php?cms_id=$1 [L,QSA]
mattster 195 Practically a Master Poster Featured Poster

Hi Guys,

When talking to a friend on here, we stumbled upon a joke, so we thought we'd share it ;)

Please try not to take offence, only light banter ;)

Say @diafol: a non-nonsense pro who's an absolute legend. If you say the name out loud in a slow deep voice, it pretty much says "don't mess with me". But seriously this guy is an ace.

@veedoo: the best name on the site. Say it real quick but old the 'o', whenever I see him post I just find myself calling "veedooooo" lol.

I've already embarrassed myself and offended 2 top members already, but any other names (DW members or not) that sound good to say aloud? Do they resemble their characters?

I wonder how many people start going round the forums calling out the names of their fellow members in silly voices aha

mattster 195 Practically a Master Poster Featured Poster

Where you have positioned your code is fine, change line 8 to:

<script  src="http://ajaxsearch.partners.agoda.com/partners/SearchBox/Scripts/Agoda.SearchBoxV2.1.js" type="text/javascript"></script>

Keep the SRC all on one line, because otherwise spaces will mess up the URL and you won't be able to load the library.

mattster 195 Practically a Master Poster Featured Poster

A good portfolio shows that you are a good web developer who can produce decent projects suitable for the task.

It really depends on what you want in terms of business. I, personally, would have a rounded portfolio showing I can produce both corporate and creative sites etc. However some people only specialise in narrow areas, which is also cool.

As concrete, you need to show modern development in things like CSS3, HTML5 etc. and sites that look good. Depending on your clients, a knowlege of something like WordPress development is beneficial. You must also, in this day and age, have responsive/mobile design as second nature. Development with things like LESS are also useful I would say.

A photographer client might just ask for a 3 page gallery website, and a medium business may ask for a full-blown CMS theme that they can manage themselves. CMS is a wonderful thing, as clients can get on with their lives without having to pester you with little updates, from my experiance they feel more in conrol.

This is my opinion, but I'm sure other developers with different experiances would say completely different.

Mattster

mattster 195 Practically a Master Poster Featured Poster

Use || or && for if statemets (OR/AND are for SQL)

if(!empty($name) || (!empty($file) && $_FILES["file"]["type"] == "application/docx")){
mattster 195 Practically a Master Poster Featured Poster

I'm not a web developer by trade

Yet you have an awesome site with loads of useful web design stuff on it!

I think a potential employer would be most interested in your portfolio which shows your best work rather than certifications.

Definately! Portfolio and have a history of decent clients is absolutely everything, certifications make little difference in web design. Everything is based on how good you are and what you can actually do.

mattster 195 Practically a Master Poster Featured Poster

^ Read what they are saying: this is garbage, start looking at a server-side language.

mattster 195 Practically a Master Poster Featured Poster

can you tell me..

I have never seen a question so pathetic. Please at least br specific, give examples show what you've tried.

At least make an effort.

mattster 195 Practically a Master Poster Featured Poster

Try using an array and adding to it, that way we can check if there's a value already matching it.

<?php
$result = mysql_query("SELECT category FROM inventory");

$output = array();

while($row = mysql_fetch_array($result)){
    $cat_array = array($row['category']);
    foreach ($cat_array as $value){
        if ($value<=1 && !in_array($value,$output)){ # If $value is already in the array
            array_push($output,$value); # Add to array
        } # No need for 'else{}'
    }
}

foreach($output as $value){
    echo $value."<br/>";
}
?>
mattster 195 Practically a Master Poster Featured Poster
  1. rand() will return a random number so your query will be: 'uploads/12324'). You need to put a file extension after it.
  2. Also, don't use this, because you might get two image with the same random number, and they'll overwrite each other.

You can't have $variable.'.$variable etc., because it will just think your second variable is text - try this instead:

move_uploaded_file($file_tmp,'uploads/'.$random_name.$_FILES['file']['type']);

PHP will stick the inverted commas in itself, so just stick thr variables in without 's either side of them.

mattster 195 Practically a Master Poster Featured Poster
If I were you I'd cancel right now!

Frameworks are huge things to learn from scratch, to the most elite of developers. For you not to have even Googled what it is, suggests you are in no way capable of this task.

Even if you do manage to scape your way through CodeIgniter and YII, it is unlikely you will finish it to a good enough standard.

Another web design/PHP "expert" who thinks they're an industry pro, yet do not understand echo "Hello World";.

mattster 195 Practically a Master Poster Featured Poster

You might have a question asking for a solution with jQuery version 1.9.X, for instance. But then when someone Googles the same problem 2 years later, when v3.1.0 is out, there might be a much better solution. This guy would resurrect the post with a modern solution, so future Googlers get a high quality answer.

My little story why old posts may need to be left open, to ensure DaniWeb provides the most accurate and helpful solutions to all (including one-time visit Googlers)

Gribouillis commented: indeed +0
mattster 195 Practically a Master Poster Featured Poster

Yes, you can style anything and everything from a CSS file, and much better to do that than place it in a style="" attribute.

And WYSIWYG means: What You See Is What You Get.

It's a visual editor that allows you to design a website by typing it like any other type of document. The text box you will you to reply is an example of WYSIWYG. Common editors are like DreamWeaver etc.

What they are saying by that is code your website by hand (yes, by yourself), using HTML, from the ground up. This way your code will be reasonably neat and will be a damn site easier to interpret.

mattster 195 Practically a Master Poster Featured Poster

Thanks for your Feed back.

Please mark solved if @Taywin has fixed it and give him some credit

mattster 195 Practically a Master Poster Featured Poster

w3schools go a great set of certifications, but as mentioned, by no means essential to work.

Instead of Thumbstack, envato makes a forturne for its authors and developers.

mattster 195 Practically a Master Poster Featured Poster
Introduction

Ever since the dawn of programming, we have had the luxury of variables, OOP, functions and other lovely tools within our languages.

CSS is arguably the easiest language to ever pick up, with everyone having to learn it’s basics. However, it lacks any power, as we have to repeat stuff over and over, which makes it a night mere if you want to quickly make a few changes etc. LESS is a breakthrough in website design, as you can have the beauty of functions and variables – so if you wanted to change your entire colour scheme, it’s as easy of changing one variable.

Just before we begin, download the LESS compiler tar.gz (http://leafo.net/lessphp/) and setup a file system:

Files and folders

I have a home folder, with less, css and inc folders. The inc filder contains the lessc.inc.php file and all of the other junk that comes in the TAR.GZ download. The less folder contains the LESS we’re going to write, and the css folder will contain the CSS output. In the home folder I have two files: compile.php and home.php.

Compiler

Let’s start with compile.php. This file must be ran every time you make changes to your LESS.

# Require the LESS include
require "inc/lessc.inc.php";

# Fire up the compiler class
$less = new lessc;

# Run the compiler. Takes everything in style.less, tweaks it, and shoves it all in style.css
$less->compileFile("less/style.less", "css/style.css");
HTML page

In order to see our magnificent work (and …

cereal commented: nice! +13
JorgeM commented: Great job! +12
mattster 195 Practically a Master Poster Featured Poster

Example? Source code? Links/demos?

Come on try a bit.

mattster 195 Practically a Master Poster Featured Poster

Only 4% of the energy in a standard light bulb is light, the rest is heat

West Virginia (USA) holds an annual "Roadkill Cook-off"

Abraham Lincoln's Gettysburg address was only 237 words long

A typical bed houses over 6 billion dust mites

.. could go on forever ..

  I pick up a lot of useless junk aha
mattster 195 Practically a Master Poster Featured Poster

https://www.copy.com/home/

Works great for me, not too sure how it'll do for your requirements but take a look!

<M/> commented: i am gonna look into that. +10
mattster 195 Practically a Master Poster Featured Poster

Hi there!

mattster 195 Practically a Master Poster Featured Poster

Welcome!

BTW: rally like your username!

And it's 100% because you haven't given us reason to think anything else, yet.

mattster 195 Practically a Master Poster Featured Poster

If the file existed in the right place and was filled with correct content, it would display fine.

Your code above is unclear, if you are presumably wanting to view the content of a file use file_get_contents($url_to_file);. You might need to expand on your objectives if you want more help.

mattster 195 Practically a Master Poster Featured Poster

^ Agreed :)

BTW - a little off-topic pointer:

Because if(){} looks to see if a statement is true, and will do an else if not, you do not need == true (PHP will do this automatically)

So this:

if(mysql_connect("$dbhost", "$dbusername", "$dbpassword") == true)

Will do the same as this:

if(mysql_connect("$dbhost", "$dbusername", "$dbpassword"))

Little programming trick for you ;P

Acurapassion commented: Yeah, I thinking it was probably redundant but wasn't certain, thank for the tip! :) +0
mattster 195 Practically a Master Poster Featured Poster

Welcome!

Oh the days of high school and education aha - very long time ago!

Honestly the stuff we used to get up to at uni lol....

At The Moment Im Busy With An Important IT Project,

What sort of project are you doing?

Clif40RD commented: At the moment I'm busy with developing a program for a NPO. +0
mattster 195 Practically a Master Poster Featured Poster
mattster 195 Practically a Master Poster Featured Poster

Great, I'm so happy that I've got everyone thinking!

I really like the sound of how we can now really use this idea (and tags in general) so great work guys and girls and can't wait to see what happens next!

mattster 195 Practically a Master Poster Featured Poster

I've noticed it too, not sure if they'll bother to fix something like that though..?

<M/> commented: She'll fix it +0
mattster 195 Practically a Master Poster Featured Poster

@diafol I actually really like that!

mattster 195 Practically a Master Poster Featured Poster

Well exactly people, because most people that have such questions turn away because there is no immediate place to look for such a specific forum.

Yes I agree, CSS/HTML/PS all go hand in hand, but to the average forum user DaniWeb simply does not provide for PS/Design questions. As a result, DaniWeb looses traffic to other forums :'(

But I can quite understand where you're all coming from on finding somewhere to put it all and how Daniweb is already established as a dev forum (but Google was established as a search engine - what's stopped them branching out)

So I think it's a case of 'do we want to take the chance to accomodate another area of technology (and a wider audience)'? Which is someone else's call to make.

As for tagging I agree, but I've had an idea which I'll post shortly.

<M/> commented: Precisely! +0
mattster 195 Practically a Master Poster Featured Poster

Hi All,

I was just wondering about an idea that might give Daniweb against other forums, and would suit a lot of us as developers. What about another set of forums including UI/UX design, working with Photoshop, Illustrator, Flash etc

As a developer, I am hopeless at design, and maybe this is another branch Daniweb could provide for: graphics and that sort of thing?

Only a random thought - all depends if the community (administrators) would want to add this to the weath of information that is our home ;)

blackmiau commented: love it +0