Coppermine

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Coppermine
Jeff58
CZ Newbie
Jeff58 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 14, 2004
0.00 posts per day
Posts: 2
Points: 152
   
Hi,

I would like to know if there is a code out there so I can add my Coppermine galleryto my Module Menu?

Thanx
J



Back to top Reply with quote
#2   re: Coppermine
kingy
CZ Super Newbie
kingy has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 12, 2004
0.00 posts per day
Posts: 33
Points: 3,286
   
To your module menu?

Yeh go into your admin section, modules then activate it.

Thats providing you installed the php nuke version of coppermine.



Back to top Reply with quote
#3   re: Coppermine
Frez
CZ Newbie
Frez has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 08, 2003
0.00 posts per day
Posts: 3
Points: 246
   
thats the way to do it if you have the integratedcoopermine gallery.
I use the phpbb mainmenu anf have a standalone coopermine, then the link in the block look like this:

$content .= "<img src=images/blocks/phpBB2_Main_Menu/icon_dot.gif>&nbsp;<a href=\"http://mysite.net/gallery/index.php\" target=\"_Blank\">"._BMMSMYGALLERY."</a><BR>\n";


Maybe you can use this code to play around with?
As for the _BMMSMYGALLERY, thats the lines you have to edit into the mainlanguage you are using, but change the BMMS in front to look like those other strings in the block for the module.
hope i explained it okey for you, if not im sure someone will be kind enough to correct me. icon_wink.gif


Back to top Reply with quote
#4   re: Coppermine
Jeff58
CZ Newbie
Jeff58 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 14, 2004
0.00 posts per day
Posts: 2
Points: 152
   
Hey thanx for the help, Here is what I have Coppermine is installed on my server as a standalone, THe product was in My Fantastico but for some reason i had a tech take it out of fantastico so i crabbed Why the hec u do that so instead of putting it back into fantastico they just installed into my server so now I want to link the page to my PHP- nuke., Now do I creat a module for this with the code above what is the easiest way to link it?


Thanx
J



Back to top Reply with quote
#5   re: Coppermine
Frez
CZ Newbie
Frez has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 08, 2003
0.00 posts per day
Posts: 3
Points: 246
   
It deppends of the module block you are using on your site as a menu. Use your FTP program and take down to your PC the block for the menu and open it and edit the link in. Check out the language file also for your site so you get the right stuff as explained above.
REMEMBER: Backup of all files you are editing, very important!



Back to top Reply with quote
#6   re: Coppermine
eXtremeXL
CZ Newbie
eXtremeXL has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jun 05, 2004
0.00 posts per day
Posts: 27
Points: 1,783
  MSN Messenger 
Yep backup is really important when dealing with sites. Of course that when you know what you're doing you don't need to do it... icon_wink.gif



Back to top Reply with quote
#7   re: Coppermine
echo
CZ Wiz
 Codezwiz Site Donator
echo has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Hello, I also have the stand alone of Coppermine on my site, as others have said make sure to backup the files involved first.

The code, from a search here at Codezwiz:

In the ./blocks/block-Modules.php file, find this line:

Code:

$content .= "<strong><big>·;</big></strong> ;;<a href=\"index.php\">"._HOME."</a><br>\n";




Add this line below it, substituting your LINK information:

Code:

$content .= "<strong><big>·;</big></strong><a href=\"LINK\">LINK NAME</a><br>\n";


Here's a part of my blocks/block-Module file that works with my sites blocks/block-Modules.php file:

/* Now we make the Modules block with the correspondent links */

    $content .= "<strong><big>·;</big></strong> ;;<a href=\"index.php\">"._HOME."</a><br>\n";
    $content .= "<strong><big>·</big></strong><a href=\"http://YOURSITE.com/Gallery/\" target=\"_Blank\"> Gallery</a><br>\n";
    $sql = "SELECT title, custom_title, view FROM ".$prefix."_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $m_title = $row[title];
   $custom_title = $row[custom_title];
   $view = $row[view];
   $m_title2 = ereg_replace("_", " ", $m_title);
   if ($custom_title != "") {
       $m_title2 = $custom_title;
   }
   if ($m_title != $main_module) {
       if ((is_admin($admin) AND $view == 2) OR $view != 2) {
      $content .= "<strong><big>·;</big></strong> ;;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
       }



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum