coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: McKenzie on September 04, 2008, 03:18:18 PM

Title: Delete all sites from submenue
Post by: McKenzie on September 04, 2008, 03:18:18 PM
How can I delete the pages from
Last Uploads
Last Comments
Most Viewed
Top Rated

Not the buttons, I mean that you can never access these pages again, because they are in the yahoo and goole index and make six times the same content and I don't need that pages and can't block them because they are not in a folder.
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 05, 2008, 09:56:32 AM
As you already appear to have figured out how to get rid of the menu items, you'll have to review the file index.php and search for the case selectors there.
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 05, 2008, 12:05:50 PM
Can you give me the lines please? I've got an error ... .
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 05, 2008, 07:33:44 PM
                    case 'random':
                        display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastalb':
                        display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;

                    case 'topn':
                        display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'toprated':
                        display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastcom':
                        display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lasthits':
                        display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;
(lines 796-828)
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 05, 2008, 07:57:44 PM
Thank you but its still working  ... .
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 06, 2008, 12:58:20 PM
Quote from: McKenzie on September 05, 2008, 12:05:50 PM
I've got an error ... .
What error message? Posting a link to your gallery might help as well.
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 06, 2008, 01:13:30 PM
http://icmesa.org, but I change the index.php to this index.php, why I can see Last Uploads etc.

http://icmesa.org/thumbnails-lastup.html

Quoteforeach ($elements as $element) {
        if (preg_match("/(\w+),*(\d+)*/", $element, $matches)){
            if (!isset($matches[2])) { // added to fix notice about undefined index
                $matches[2] = 0;
            }

            $matches = CPGPluginAPI::filter('plugin_block', $matches);

            if (is_array($matches)) {
                switch ($matches[1]) {
                    case 'breadcrumb':
                        // Added breadcrumb as a separate listable block from config
                        if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) theme_display_breadcrumb($breadcrumb, $cat_data);
                        break;

                    case 'catlist':
                        if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                        if (isset($cat) && $cat == USER_GAL_CAT) {
                            list_users();
                        }
                        flush();
                        break;

                    case 'alblist':
                        list_albums();
                        flush();
                        break;

                    case 'anycontent':
                        if ($cat == 0) {
                            ob_start();
                            /**
                             * Any php code or HTML can be put in this file and will be displayed
                             */
                            include('anycontent.php');
                            $anycontent = CPGPluginAPI::filter('anycontent',ob_get_contents());
                            ob_end_clean();
                            echo ($anycontent);
                        }
                        flush();
                        break;
                }
            }
        }
    }

    pagefooter();
}

ob_end_flush();
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 06, 2008, 02:16:40 PM
What was the error message?
You're using the SEF_URLs plugin, which goes unsupported.

Joachim

P.S. I uploaded some pics of my car (http://icmesa.org/thumbnails-4896.html), hope you don't mind ;)
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 06, 2008, 08:14:37 PM
It was a line error, because I deleted the wrong line.

No I will not get an SEF_URL support (I think it is only mod rewrite), I want to know how I can delate the subcategorie pages. I deinstall the plugin for a short time and it (the subcategories) will also work without the plugin (I changed index.php as you said). So we must forget something ?!?.

Thank you for your pictures.
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 06, 2008, 09:03:36 PM
Quote from: McKenzie on September 06, 2008, 08:14:37 PM
It was a line error, because I deleted the wrong line.
What's a line error? Post the exact error message!
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 07, 2008, 12:47:14 PM
QuoteParse error: syntax error, unexpected T_CASE, expecting '(' in /home/.jeroboam/ben84x/icmesa/index.php on line 778
I delate the wrong line/text  :-\

Should I put my index.php as an attach to this topic?
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 08, 2008, 08:07:48 AM
Yes; rename it from index.php to index.php.txt and then attach it.
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 08, 2008, 12:40:59 PM
Here it is  :)
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 17, 2008, 07:00:49 PM
Sorry for the late reply on this issue. Reviewing it I must confess that I told you utter nonsense - it won't help to remove the meta albums from coppermine's core code if your aim is to remove the existing references to those meta albums in Google's search index. What you actually need to do it applying a totally different method, using mod_rewrite (e.g. in your custom .htaccess file). You need to "tell" the search engine spiders when they revisit the site that the meta albums are no longer available: you already have got rid of the corresponding menu items, so the search engine spiders won't re-index the meta albums. Return a "302 moved permanently" to the search engine spiders if they try to re-validate the existing references to the meta albums that reside in their database. This will speed up the process of getting those references removed from the index. Re-direct the queries to a custom page where the human visitor will find a note that says "The link that lead you here points to a page that has been removed, but the content you came here for is still there. Please use this site's navigation to browse for the car you want to see".
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 18, 2008, 11:58:37 PM
I changed my url, so i don't have the problem now  ;)
Title: Re: Delete all sites from submenue
Post by: Joachim Müller on September 19, 2008, 07:45:48 AM
Well: you're losing your page rank then and will have to start from scratch. Users who follow the dead links in google won't be pleased neither. This sort-of works, but at what a cost...
Title: Re: Delete all sites from submenue
Post by: McKenzie on September 19, 2008, 11:46:47 AM
No the PR was 0 and 67 Backlinks (from linklists). And the domain was first registered in 2008.

On the new site is the PR 2 and about 300 Backlinks (and  I will enter the link to linklist again and will get pagerank 4). I have a tool for it. And the domain was first registered 2003.

http://www.directorycritic.com/free-directory-list.html?sort=pr&pg= All linklists