Forum Replies Created

Viewing 15 replies - 46 through 60 (of 88 total)
  • Thread Starter itissue

    (@itissue)

    I’m thinking you need to use $content but that just returns the text “Arrays”, so there’s more to it?

    Thread Starter itissue

    (@itissue)

    Does anyone have any idea how this could work?

    Thread Starter itissue

    (@itissue)

    I came up with a solution, well sort of. What I did was created an index page that had this in it:

    <?php
    header( 'Location: https://suefeng.com' ) ;
    ?>

    and put that into the folders I don’t want people to view such as wp-content, wp-content/themes, wp-content/plugins, etc. It doesn’t use .htaccess or the 404 page, but it still works.

    Thread Starter itissue

    (@itissue)

    Maybe I wasn’t clear enough on what I am looking for. An example site of this in action would be https://little-wonder.net. Try typing the following extentions after the url to see the results:
    wp-config.php, wp-content, wp-admin. You can also try other extensions, even ones you know don’t exist like asdf.

    Thread Starter itissue

    (@itissue)

    I still have no luck with this issue. Can anyone help me?

    Wouldn’t they show the error document’s url if you use this method though? How can you make it so the url stays the same as whatever someone entered?

    Thread Starter itissue

    (@itissue)

    So I tried both ways, and I got an Internal Server Error for all pages in my web site.

    Thread Starter itissue

    (@itissue)

    Do you put it in like this?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Option -Indexes
    # END WordPress

    or like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    Option -Indexes
    </IfModule>
    # END WordPress

    or something else entirely?

    Thread Starter itissue

    (@itissue)

    Well, wp-content still showed the files under that directory, but when I typed an invalid URL, the 404 page had an error:
    Warning: Cannot modify header information, so I reverted back to my original 404 page.

    Thread Starter itissue

    (@itissue)

    Sorry this didn’t work. Thanks though.

    Thread Starter itissue

    (@itissue)

    Could you tell me what I need to write? I have no clue.

    Thread Starter itissue

    (@itissue)

    Any sort of help will be much appreciated.

    Thread Starter itissue

    (@itissue)

    I’m guessing I’ll have to find a variable other than $description, but I don’t know what to use. Here’s an update on what the page looks like. Also, some entries don’t have dates showing under the titles. I’m unsure why.

    https://suefeng.com/affiliates

    Thanks for your time!

    Thread Starter itissue

    (@itissue)

    Nevermind about wp-feedreader. I got the date stamp to work on my feeds page. Here’s the modified code:

    <?php
    require_once (ABSPATH . WPINC . '/rss-functions.php');
    $url = 'https://x.nuwen.com/feed/';
    $rss = fetch_rss( $url );
    if ( $rss ) {
    echo "<h4>" . $rss->channel['title'] . "</h4>";
    $i = 1;
    foreach ($rss->items as $item) {
    $href = $item['link'];
    $title = $item['title'];
    $pubdate = $item['pubdate'];
    $description = $item['description'];
    echo "<span style=\"font-size:16px\"><a href=\"$href\">$title</a></span><b>$pubdate</b><div style=\"padding:0 20px 0 20px\">$description</div>";
    if ($i == 1 ) break;
    $i = $i + 1;
    }}?>

    Now the only thing I really really want is for the entire entries to show up instead of just a few lines of text. Is there a variable in rss.php that I can use or anywhere?

    Thread Starter itissue

    (@itissue)

    I tried the wp-feedreader plugin. It’s great in that it takes feeds from your blogroll, and also creates a page under dashboard to view all the entries your friends have posted. You can also search for terms in the entries. The problem is, this plugin is outdated and I got three database errors. I was wondering if anyone could help me with that, since I don’t know much about MySQL. Here’s my error message:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ wp_linkfeeds WHERE wp_links.link_id = wp_linkfeeds.link_id A]
    SELECT wp_links.*, link_name, link_url, cat_id, cat_name, link_favicon FROM wp_links, , wp_linkfeeds WHERE wp_links.link_id = wp_linkfeeds.link_id AND wp_links.link_category = .cat_id AND item_read = 0 AND wp_links.link_category = 0 ORDER BY item_date DESC

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ .cat_name, wp_links.link_id, link_name, count(*) as num_unr]
    SELECT SQL_BIG_RESULT .cat_id, .cat_name, wp_links.link_id, link_name, count(*) as num_unread FROM wp_links, wp_linkfeeds, WHERE wp_links.link_id = wp_linkfeeds.link_id AND wp_links.link_category = .cat_id AND item_read=0 GROUP BY cat_name, link_name

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ .cat_name, wp_links.link_id, link_name, link_url, link_favic]
    SELECT SQL_BIG_RESULT .cat_id, .cat_name, wp_links.link_id, link_name, link_url, link_favicon, link_rss FROM wp_links, WHERE wp_links.link_category = .cat_id GROUP BY cat_name, link_name;

Viewing 15 replies - 46 through 60 (of 88 total)