Help with inserting some extra content Help with inserting some extra content
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Help with inserting some extra content

Started by bobby131313, July 25, 2006, 05:55:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bobby131313

Hi all, I've been pretty successful hacking into every page but this one.....

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.coincommunity.org%2Fimages%2FProject1.jpg&hash=9cf2d9a485d0d5c7e70762f65b5cd21548244810)

I've searched the forums and can't find the hack for this page anywhere. I can't quite figure out which template to use in the sample theme.php. If that's even where I have to look.

Thanks in advance!

http://www.coincommunity.org/gallery/

Sami

‍I don't answer to PM with support question
Please post your issue to related board

bobby131313


Sami

#3
sorry it seems that My isp block your URL
anyway you can use anycontent.php (under root of gallery) to view custom info or script
read this for how to enabling:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

If you need more sophisticated content management, try the MiniCMS plugin

bobby131313

Quoteanyway you can use anycontent.php (under root of gallery) to view custom info or script
read this for how to enabling:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list

That doesn't work on the page I pictured. Once there's a variable on index.php, anycontent.php goes away for me. Is it not supposed to?

The plugin is pretty cool, but it doesn't seem that it will work for me. It uses the current theme and sets it in a table with a heading. It also appears that you would have to set it up for every single category seperately.

I would like it to look like the ad under the most viewed table like right here. That is generated by anycontent.php.

But if you look right here, it doesn't show.

I'm confused as to how to get it there.


Nibbler

That's an easy edit, index.php


                    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;
                }


Remove the condition


                    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;

bobby131313



Yes! Thank you Nibbler! I really appreciate it!

Please mark solved.


dtommy79

Hi,

I have an easy question, but it's not too easy for me. I don't really know php.  I'd like to add an extra navigation button to my gallery a "Back to the main page" or something like that, but I don't know what to add to the theme.php

I use the hardwired theme.
I figured out that I have to add an extra something like this:

Quote<!-- BEGIN back_to_main_page -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleftmy" src="themes/hardwired/images/buttonleftmy.gif" width="17" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/hardwired/images/buttoncenter.gif);">
                                                <a href='http://www.vegtelenhatarok.hu/news.php'; title="{BACK_TO_MAIN_PAGE_TITLE}">{BACK_TO_MAIN_PAGE_LNK}</a>
                                        </td>
                                        <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0"  alt="" /></td>
<!-- END back_to_main_page -->

I screwed up something at the title. If someone could correct it I'd be grateful. And another question. What do I have to add to the language file to translate this new button?

Many thanks.

Joachim Müller

Don't try to hijack threads, especially since your question differs. Locking.

Joachim Müller

PMing me with insults doesn't actually improve your situation. Read up the board rules. You might want to take a look at my sig as well. As you were not suppossed to hijack this unrelated thread, you should now do as you should have done in the first place: start a thread of your own.