Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter jalongoria

    (@jalongoria)

    It seems this might be a lost cause altogether and possibly not something that WP is initiating in the first place. I’ve come across several bugtracks on Google such as this one:

    https://bugs.php.net/bug.php?id=25670

    The similarity is striking, although the usage is different. I’m not sure what I’ll be able to accomplish in rectifying this issue at this point. I have no control over the PHP version installed. Think I’m hitting the wall on this?

    Thread Starter jalongoria

    (@jalongoria)

    One last thing, although it does give the error, it still posts the formatted text(biography) at the very bottom.

    Thread Starter jalongoria

    (@jalongoria)

    SIDENOTE: The error above is repeated multiple times down the page. However, it doesn’t break apart the interface and is held within the cell that the content is presented in – ala regular HTML formatting. The version of WP I am using is 2.0.4 .

    Below is the original code I use to post content to said page that does work, but doesn’t allow breaks/paragraphing (although it somehow allows formatting of the text itself):
    <?php
    get_header();

    if ($posts) { $pcount_lp = sizeof($posts); foreach ($posts as $post) {start_wp();?>

    <div class="entry">
    <h3 id="post-<?php the_ID(); ?>" class="entrytitle">Who is <?php the_author(); ?>?</h3>
    <div class="entrybody">
    <?php the_author_description() ?>
    </div>
    </div>
    <?php } ?>
    <?php } else { // end foreach, end if any posts ?>
    <div class="entrybody"><p>Sorry, no information matched your criteria.</p></div>
    <?php } ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thread Starter jalongoria

    (@jalongoria)

    McShelby, thank you for the response and consideration of this issue.

    Using your snippet of code to the ‘T’, here is the results I’ve received in the author.php:

    Warning: cannot yet handle MBCS in html_entity_decode()! in /home/blog/blogurl.com/public_html/wordpress/wp-content/themes/gespaa_v2/author.php on line 4

    Any thoughts you might offer on this would be helpful.

    Thread Starter jalongoria

    (@jalongoria)

    McShelby, thank you for the input.

    Unfortunately, when I tried to implement the code you just spoke of, the issue was still left unresolved.

    I took a look at the $curauth information available in the template tag documentation once before and referred back to it once again when you posted your comment. This seems to be a bit of a reoccurring trend with the documentation, although it provide specific examples on attributes and segments of code, it doesn’t specifically provide examples on generating this inside The Loop or outside The Loop in totality, just snippets.

    How did you implement this in your page, do you happen to have the page code listed anywhere and/or could I have you post/email it to see how you’ve written this out, so I could take a look and see what you’ve done that I may not have to make this work?

    I’ve figured this out. There was a conflicting tag of <?php echo get_permalink() ?> that was overriding the tag I added in single.php.

    For anyone else that encounters this, ensure you have a single.php file(it can mimic your index.php if you don’t want to go through the trouble of writing your own) and ensure no template taglines are doubling over themselves.

    Been combing through others, to no avail. It seems that there is some “blanket” code that is overriding this change, I’ve not figured it out as of yet and are going through the code line by line to see if I can figure out what is causing this behaviour.

    If anyone else has used the Gespaa V2 theme and run into this problem/found a solution, I would appreciate your input.

    Thread Starter jalongoria

    (@jalongoria)

    Anyone else care to give it a guess? I’ve also recently tried $user->description = trim(nl2br($_POST['description'])) in an attempt to convert newline characters. No success. I am using Gespaa v2 theme and have added a author.php.

    I understand that it should function that way, but it doesn’t. That was the first thing I checked when I realized that there was no link inplace in the content matter itself to see “more”. I selected the title, but it didn’t send me off to the full article.

    So in short, if I hadn’t replaced the_content() with the_excerpt(), the entire article shows up on the main page. the_excerpt() effectively cut it down to a small ‘summary’, but it is now impossible to view the entire article.

    My assumption was that something that was considered a template tag ( https://codex.www.ads-software.com/Template_Tags/the_excerpt ) would be universal throughout any installation, perhaps I am mistaken in this.

    Regarding the post above, I’m using the Gespaa v2 theme and edited code in the index.php.

    I’ve implemented the changes suggested in the documentation and this posting, but the issue I run into is that even though it creates a 120 word excerpt, it unfortunately does not setup a link to view the full article, though it posts the [...] at the end. Any ideas on what is causing this behaviour?

    Thread Starter jalongoria

    (@jalongoria)

    Moshu, unfortunately, the code at the bottom of the post was non-effective, but the patch code which modifies admin-functions.php:

    OLD
    LINE373= $user->description = wp_specialchars(trim($_POST['description']));

    NEW
    LINE373= $user->description = trim($_POST['description']); //don't convert < to < etc

    This works great for visual styling (bold, italic, etc.), but doesn’t allow for paragraphs/breaks in the text. Do you, or anyone else reading this, have any thoughts as to why it trims the <p> and <br /> tags?

    Thread Starter jalongoria

    (@jalongoria)

    Dadgummit moshu, you’re just too good. I searched for a good 30 minutes with a combination of about 10 different keywords instances to find just ONE topic that actually address this issue with no success.

    I’m going to implement his solution and see how it turns out. Appreciate the assistance once again.

    Thread Starter jalongoria

    (@jalongoria)

    Excellent, I applied what I theorized and it has taken well. I pulled index.php and copied it, renaming it author.php. I then proceeded to edit the appropriate tags and remove some non-applicable information.

    I then wrote the following author template tag, including it into author.php:
    <?php the_author_description() ?>

    This tag, for those of you that might be trying to read this issue that might be similar to yours as well and understand, allows you to pull the information entered into the author’s profile in your WP administration area – it should be labeled “about” or something similar.

    One last question to anyone that might be able to explain. That field does not like to take xhtml tags. How do I format certain areas of the text, what will it allow for passthrough?

    Thread Starter jalongoria

    (@jalongoria)

    Reading further into author.php, I wonder – does the template tags in author.php pull directly from the profile information entered by the author upon creation of the account in the backend of WordPress?

    If so, I may have has just solved my own problem as obviously that data somehow is capable of being called from those entries and my building of an array to handle the author’s data would be truly redundant.

    For those that might also have a similar problem and not understand what I am identifying let me try and break down my theory further – When you execute the call the_author_posts_link() and it transparently selects through the template hierarchy ( https://codex.www.ads-software.com/Template_Hierarchy ), if you’ve created the author.php page it will come to rest there. In turn, the author.php page will handle a series of template tags of your choosing whenever you build the page (i.e. the_author_description() ). I believe what most of us get hung-up on regarding multiple authors in one blog, is how is the call determining which author to bring up and where is this information being stored? If my theory is correct, the answer is so quite simple – the the_author_description() used the the_author_posts_link() author selection when the mouse was clicked as passthrough information to call the information from the WP backend user profile information managed/created in “Users >> Authors & users” and specifically the information found in the profile that you’ve entered for any given author.

    If someone could please confirm this is correct, I would greatly appreciate it. If this is true, then the hierarchy of WP is so much more simple than I initially believed.

Viewing 15 replies - 1 through 15 (of 19 total)