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: Coppermin phpBB/Nuke integration  (Read 7201 times)

0 Members and 1 Guest are viewing this topic.

ArniesAirsoft

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Coppermin phpBB/Nuke integration
« on: September 29, 2003, 06:22:54 pm »

On the old ChezGreg site someone posted the code to add a link in someone's forum profile to link to their gallery if they had one that was active.

Has anyone got that code at all? I don't want to have to write it all by scratch if I don't have to.
Logged
Webmaster ArniesAirsoft.co.uk

ArniesAirsoft

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Coppermin phpBB/Nuke integration
« Reply #1 on: September 29, 2003, 08:01:01 pm »

Sod it.. did it myself.

In usercp_viewprofile.php around lin 189 add the following code after

Code: [Select]
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';

Add this:

Code: [Select]
//add gallery info here
$temp_ad = 10000 + $profiledata['uid'];
$sql =  "SELECT aid, category FROM cpg_albums WHERE 1 AND category = ".$temp_ad;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ( $row['category'] == $temp_ad )
{
        $gallery_img = '<a href="modules.php?name=coppermine&cat='.$temp_ad.'"><b>Available here</b></a>';
}
else {
        $gallery_img = "no gallery yet";
}
//end gallery mod


Now you need to modify your language file and template.


In viewbody.tpl (for whichever gallery you use) add

Code: [Select]
<tr>
<td nowrap align="right">{GALLERY}:</td>
<td>{GALLERY_IMG}</td>
</tr>


after  

Code: [Select]
<tr>
<td nowrap align="right">{L_ICQ_NUMBER}:</td>
<td>{ICQ_IMG}</td>
</tr>


around line 75

In lang_main.php in language/lang_english add

$lang['Photo Gallery'] = 'Photo Gallery';

somewhere - I stuck mine in at line 533 after

$lang['Interests'] = 'Interests';

Basically now if you look at someone's profile and they have a photogallery it'll show it in their profile.

You can replace my coded text to include a linked image if you liked. I'm working on including similar code into the forums themselves like the ICQ/IAM icons. Will post when it's finished
Logged
Webmaster ArniesAirsoft.co.uk

BMWHeaven

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.bmwheaven.com
Coppermin phpBB/Nuke integration
« Reply #2 on: September 29, 2003, 11:09:33 pm »

Great :)....
I've been doing some upgrades to phpBB in phpnuke, to get it to show the galleries a user has.
Look here: http://bmwheaven.bmwsport.net/newdesign/phpnuke/modules.php?name=Forums&file=viewtopic&t=1

Ilir Dibrani (my user account) doesn't show any galleries, while testuser (also my user account, but for testing), does show it's galleries.

It has been some work, you need a patch for phpnuke, so that the tpl files of phpbb can handle php...
If you want to know it, pm me.

Ilir

sengsara

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • http://batamweb.net
Coppermin phpBB/Nuke integration
« Reply #3 on: September 30, 2003, 10:59:40 am »

Why PM? Why can't you just post it here where everybody can see it?
Isn't that what this forum all about?
Support and helping eacch other?
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 14 queries.