Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Cool CPG phpNuke Hacks/Add-ons  (Read 17837 times)

0 Members and 1 Guest are viewing this topic.

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Cool CPG phpNuke Hacks/Add-ons
« on: November 08, 2003, 07:12:58 pm »

open your Nuke mainfile.php and scroll down to:
Code: [Select]
function adminblock() {
In that function insert above "themesidebox($title, $content);"
The following lines:
Code: [Select]
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM cpg_pictures WHERE approved='NO'"));
    $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=coppermine&file=editpics&mode=upload_approval\">Approve images</a>: $num<br>";

Change "cpg_pictures" in the name of your CPG pictures table.
Save and upload file, then you will see how many Picture uploads have to be approved in the Administration "Waiting content" block.

Don't forget to post yours in here
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

BoneDaddy

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
    • http://www.theilingfamily.com
Change to Stylesheet
« Reply #1 on: November 21, 2003, 05:20:18 pm »

OK, well, this is really probably not all that cool..but if anyone is interested I changed the style sheet of the default theme for 1.2.0 to match the colors of the Helius Gray php nuke theme (which I believe is the same type of color scheme as a previous theme in 1.1D called Project VII...What I did is simply change a few colors...nothing fancy.  

I am just now starting to play with the themes in Coppermine, and may have something bigger and better to offer, but for now this is it...take it or leave it :-)

I am not sure what the protocol is for submitting something like this, so I will just leave it at this...leave me a message here if you are interested in this style sheet.

BoneDaddy
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Cool CPG phpNuke Hacks/Add-ons
« Reply #2 on: November 21, 2003, 07:04:15 pm »

just copy and paste your style.css in a post with the [ PHP ] bbcode
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

BoneDaddy

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
    • http://www.theilingfamily.com
Cool CPG phpNuke Hacks/Add-ons
« Reply #3 on: November 21, 2003, 08:31:10 pm »

OK, here is the code for the style.css  I mainly just changed the colors around and one of the fonts.  Good luck.

BoneDaddy  8)

Code: [Select]
.button {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        border: 1px solid #898989;
        background-image :  url(images/button_bg.gif);
        background-position : bottom;
}

.comment_button {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10px;
        border: 1px solid #898989;
        background-image :  url(images/button_bg.gif);
        background-position : bottom;
        padding-left: 3px;
        padding-right: 3px;
}

.radio {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 12px;
        vertical-align : middle;
}

.checkbox {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 12px;
        vertical-align : middle;
}

bblink a {
        color: #0033CC;
        text-decoration: none;
}

bblink a:hover {
        color: #0033CC;
        text-decoration: underline;
}

.tableh1 {
        background : #898989;
        color : #FFFFFF;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
}

.tableh1_compact {
        background : #898989 ;
        color : #FFFFFF;
        padding-top: 2px;
        padding-right: 5px;
        padding-bottom: 2px;
        padding-left: 5px;
}

.tableh2 {
        background: #D1D7DC;
        color : #000000;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
}

.tableh2_compact {
        background: #D1D7DC ;
        color : #000000;
        padding-top: 2px;
        padding-right: 5px;
        padding-bottom: 2px;
        padding-left: 5px;
}

.tablef {
        background: #D1D7DC;
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
}

.tableb {
        border: 1px solid #D1D7DC;
}

.album_stat {
        font-size : 10px;
        margin: 5px 0px;
}

.thumb_title {
        font-family: Arial, Helvetica, sans-serif;
                font-weight : bold;
        font-size: 9px;
        padding: 2px;
        display : block;
}

.thumb_caption {
        font-family: Arial, Helvetica, sans-serif;
                font-size: 10px;
        padding: 1px;
        display : block;
}

.thumb_num_comments {
        font-family: Arial, Helvetica, sans-serif;
                font-weight: normal;
        font-size: 9px;
        padding: 2px;
        font-style : italic;
        display : block;
}

.user_thumb_infobox {
        margin-top: 1px;
        margin-bottom: 1px;
}

.user_thumb_infobox th {
        font-weight : bold;
        font-size: 12px;
        margin-top: 1px;
        margin-bottom: 1px;
        text-align : center;
}

.user_thumb_infobox td {
        font-size: 10px;
        margin-top: 1px;
        margin-bottom: 1px;
        text-align : center;
}

.user_thumb_infobox a {
        text-decoration: none;
        color: #000000;
}

.user_thumb_infobox a:hover {
        color: #000000;
        text-decoration: underline;
}

.sortorder_cell {
        background : #898989 ;
        color : #FFFFFF;
        padding: 0px;
        margin: 0px;
}

.sortorder_options {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        background : #898989 ;
        color : #FFFFFF;
        padding: 0px;
        margin: 0px;
        font-weight: normal;
        font-size: 9px;
        white-space: nowrap;
}

.navmenu {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: bold;
        background : #898989 ;
        border-style: none;
}

.navmenu img {
        margin-top: 1px;
        margin-right: 5px;
        margin-bottom: 1px;
        margin-left: 5px;
}

.navmenu a {
        position: relative;
        display: block;
        padding-top: 2px;
        padding-right: 5px;
        padding-bottom: 2px;
        padding-left: 5px;
        text-decoration: none;
        color: #FFFFFF;
}

.navmenu a:hover {
        background : #EFEFEF ;
        text-decoration: none;
        color:         #000000;
}

.admin_menu_thumb {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10px;
        border: 1px solid #898989;
        background-image :  url(images/button_bg.gif);
        background-position : bottom;
        color: #000000;
        font-weight: bold;
        margin-top: 0px;
        margin-bottom: 0px;
        width: 85px;
}

.admin_menu_thumb a {
        color: #000000;
        text-decoration: none;
        display: block;
        position: relative;
        padding-top: 1px;
        padding-bottom: 1px;
        padding-left: 10px;
        padding-right: 10px;
}


.admin_menu_thumb a:hover {
        color: #000000;
        text-decoration: underline;
}

.admin_menu {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10px;
        border: 1px solid #898989;
        background-image :  url(images/button_bg.gif);
        background-position : bottom;
        color: #000000;
        margin-top: 0px;
        margin-bottom: 0px;
}

.admin_menu a {
        color: #000000;
        text-decoration: none;
        display: block;
        position: relative;
        padding-top: 1px;
        padding-bottom: 1px;
        padding-left: 10px;
        padding-right: 10px;
}

.admin_menu a:hover {
        color: #000000;
        text-decoration: underline;
}

.comment_date{
        color : #5F5F5F;
        font-size : 10px;
        vertical-align : middle;
}

.image {
        border-style: solid;
        border-width:1;
        border-color: #000000;
        margin: 2px;
}

.thumbnails {
        padding: 5px;
}

.thumbnail {
        padding: 5px;
        border-left : 1px solid #FFFFFF;
        border-right : 1px solid #FFFFFF;
}

.footer {
        font-size : 9px;
}

.statlink {
        color: #FFFFFF;
 text-decoration: none;
}

.statlink a {
        text-decoration: none;
        color: #FFFFFF;
}

.statlink a:hover {
        color: #FFFFFF;
        text-decoration: underline;
}

.alblink a {
        text-decoration: underline;
        color: #000000;
}

.alblink a:hover {
        color: #000000;
        text-decoration: underline;
}

.catlink {
        display: block;
        margin-bottom: 2px;
}

.img_caption_table {
        border: none;
        background-color: #FFFFFF;
        width : 100%;
        margin : 0px;
}

.img_caption_table th {
        background: #D1D7DC ;
        font-size : 12px;
        color : #000000;
        padding-top: 4px;
        padding-right: 10px;
        padding-bottom: 4px;
        padding-left: 10px;
        border-top : 1px solid #FFFFFF;
}

.img_caption_table td {
        background: #EFEFEF ;
        padding-top: 6px;
        padding-right: 10px;
        padding-bottom: 6px;
        padding-left: 10px;
        border-top : 1px solid #FFFFFF;
}
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Language Selection flags
« Reply #4 on: December 06, 2003, 10:51:50 am »

This mod is done by replacing the code in anycontent.php with the following. This will give you a "standalone -like" language selection block with flags...TESTED in phpnuke6.8...only
Code: [Select]
<?php
// ------------------------------------------------------------------------- //
//  Coppermine Photo Gallery   1.2.1 -nuke                                   //
// ------------------------------------------------------------------------- //
//  mod by gtroll webmaster (at) coppermine.findhere.org  --------- //
$title _SELECTLANGUAGE;
starttable('100%''$title);
?>

<tr><td>
  <table class="tableb" width="100%">
    <tr>
                    <td align="center" valign="top">
                         
                    <?
        global $currentlang;
        $content = "<font class=\"content\">"._SELECTGUILANG."<br>";
    $langdir = dir("language");
    while($func=$langdir->read()) {
        if(substr($func, 0, 5) == "lang-") {
                $menulist .= "$func ";
        }
    }
    closedir($langdir->handle);
    $menulist = explode(" ", $menulist);
    sort($menulist);
    for ($i=0; $i < sizeof($menulist); $i++) {
        if($menulist[$i]!="") {
            $tl = ereg_replace("lang-","",$menulist[$i]);
            $tl = ereg_replace(".php","",$tl);
            $altlang = ucfirst($tl);
            $content .= "<a href=\"{$_SERVER[PHP_SELF]}?{$_SERVER[QUERY_STRING]}&newlang=$tl\">";
                        $imge = "images/language/flag-$tl.png";
                        if (file_exists($imge)){
                        $content .= "<img src=\"$imge\" align=\"middle\" border=\"0\" alt=\"$altlang\" title=\"$altlang\" hspace=\"3\" vspace=\"3\">";
                        } else {
                        $content .= "$altlang";
                        }
                        $content .= "</a> ";
        }
    }
    OpenTable();
    echo "<p align=\"center\">$content</p>";
    CloseTable();
        ?>
                    </td></tr>
  </table>
</tr></td>
<?php
endtable
();
?>


Only one "bug" with this code if you select language after language each is added to the query string but strangly php knows which var=value you're talking about ie &newlang=chinese&newlang=indonesian&newlang=english
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.