Home » Questions » Questions

Posts by demo

1
0 votes
1
0 votes
In reply to: This is for test??

df dsf sdf sfs dsf
**s s fdsf
sf s**
fs
ffd fdsf sf
**ds
> Blockquote dsfds sf sdf dfdsf** sf s[enter link description here][1]

[1]: http://dfsdfd.com

  • demo answered 12 years ago
1
0 votes
22k views
![Green Smoothie][1] [1]: http://www.52kitchenadventures.com/wp-content/uploads/2011/04/Tropica...
  • demo asked 12 years ago
  • last active 12 years ago
1
0 votes
In reply to: Test coding

code?

lock (_lock)
{
if (_agentHost != null)
{
_agentHost.Dispose();
_agentHost = null;
}
}

  • demo answered 12 years ago
1
1 vote

Graffiti from Telligent is marketed as a CMS. I use it as a blog engine, and it is tightly linked to the structure/concepts of a blog: chronological list of articles, articles are called posts, comments…

But their blog/site has shown some sites that use Graffiti but are far from looking like blogs.

http://graffiticms.com/

NOTE: This answer was originally posted at StackOverflow.com by postback

  • Paula answered 17 years ago
1
0 votes
In reply to: This is for test??

what is my questions?

  • demo answered 12 years ago
  • last active 11 years ago
1
0 votes
In reply to: This is for test??

hi this is working good

  • demo answered 12 years ago
1
0 votes

Wordpress is a CMS. It did started as a blog centered software, but now includes many CMS features. It is listed in wikipedia List of content management systems and won a Packt Open Source CMS Award.

Wikipedia defines Content management system as a system which may support the following features:

  • identification of all key users and their content management roles;
  • the ability to assign roles and responsibilities to different content categories or types;
  • definition of workflow tasks for collaborative creation, often coupled with event messaging so that content managers are alerted to changes in content (For example, a content creator submits a story, which is published only after the copy editor revises it and the editor-in-chief approves it.);
  • the ability to track and manage multiple versions of a single instance of content;
  • the ability to capture content (e.g. scanning);
  • the ability to publish the content to a repository to support access to the content (Increasingly, the repository is an inherent part of the system, and incorporates enterprise search and retrieval.);
  • separation of content’s semantic layer from its layout (For example, the CMS may automatically set the color, fonts, or emphasis of text.).

While having very limited workflow, wordpress does support most of those features.

For more complex scenarios, people usually prefer a more powerful CMS such as Drupal. I tried both and usually goes with wordpress where possible.

NOTE: This answer was originally posted at StackOverflow.com by zvikara

  • Joe answered 17 years ago
1
0 votes
19k views
Essence – Clean Responsive Under Construction / Coming Soon Template <link href=&qu...
  • demo asked 12 years ago
  • last active 12 years ago
1
0 votes
19k views
![enter image description here][1] [1]: http://eofdreams.com/data_images/dreams/image/image-07....
  • demo asked 12 years ago
  • last active 12 years ago
1
0 votes
In reply to: Qka o ka bahet?

Prueba de puntuación positiva

  • demo answered 12 years ago
1
0 votes
0 answers
15k views
  • demo asked 12 years ago
1
0 votes
20k views
“put all the dots over i’s right now, so what?
  • demo asked 12 years ago
  • last active 12 years ago
1
0 votes
15k views
this is my question
  • demo asked 13 years ago
  • last active 13 years ago
1
0 votes
22k views
![enter image description here][1] [1]: http://www.segredosdemae.com/novo/wp-content/uploads/20...
  • demo asked 12 years ago
  • last active 12 years ago
1
0 votes
16k views
I would like to hear how many **lines** there are on a mercedes star
  • demo asked 12 years ago
  • last active 12 years ago
1
0 votes
0 answers
19k views
![enter image description here][1]asdf asdf asdf asdf a sdf ddd d [1]: http://www.megusta.name/...
  • demo asked 13 years ago
  • last active 13 years ago
1
1 vote

Everyone wants to make this more complicated than it is. The crypt() function does most of the work.

function blowfishCrypt($password,$cost)
{
    $chars='./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    $salt=sprintf('$2a$%02d$',$cost);
    //Create a 22 character salt
    for($i=0;$i<22;$i++) $salt.=$chars[rand(0,63)];
    return crypt($password,$salt);
}

Example:

$hash=blowfishCrypt('password',10); //This creates the hash
$hash=blowfishCrypt('password',12); //This creates a more secure hash
if(crypt('password',$hash)==$hash){ /*ok*/ } //This checks a password

I know it should be obvious, but please don’t use ‘password’ as your password.

NOTE: This answer was originally posted at StackOverflow.com by Jon Hulka

  • Diana answered 13 years ago
  • last active 13 years ago
1
1 vote

Ok, you must grab the page title BEFORE the loop.

$page_title = $wp_query->post->post_title;

Check for reference: http://codex.wordpress.org/Function_Reference/WP_Query#Properties.

Do a

print_r($wp_query)

before the loop to see all the values of $wp_query object

NOTE: This answer was originally posted at StackOverflow.com by keatch

2
2 votes

The WP global variable $pagename should be available for you, I have just tried with the same setup you specified.

$pagename is defined in the file wp-includes/theme.php, inside the function get_page_template(), which is of course called before your page theme files are parsed, so it is available at any point inside your templates for pages.

EDIT:

  • Although it doesn’t appear to be documented, the $pagename var is only set if you use permalinks. I guess this is because if you don’t use them, WP doesn’t need the page slug, so it doesn’t set it up.

  • $pagename is not set if you use the page as a static front page.

  • This is the code inside /wp-includes/theme.php, which uses the solution you pointed out when $pagename can’t be set:

    $pagename = get_query_var('pagename');
    if ( !$pagename && $id > 0 ) {
    // If a static page is set as the front page, $pagename will not be set. Retrieve it from the queried object
    $post = $wp_query->get_queried_object();
    $pagename = $post->post_name;
    }

NOTE: This answer was originally posted at StackOverflow.com by AJJ

  • Martha answered 15 years ago
  • last active 15 years ago
Showing 321 - 340 of 379 results