forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: itsa on November 29, 2004, 05:05:53 pm

Title: ubb on thumbnails page
Post by: itsa on November 29, 2004, 05:05:53 pm
One of the themes...Igames...includes the Album Description on the thumbnails page. That's great, be/c I'm using that for credits, and it's nice to see that hooked to the pix. However, it doesn't do the UBB stuff, so all the ubb code shows, rather than links, etc.

Am I seeing this correct? Is there a way to get the UBB to interpret? Is there a way to get the Album Desc to show on the thumbnails page with other themes?

First post, so perhaps I missed this somewhere, but I tried looking...thanks...so far, it's looking really cool for my use...photos.itsa.info
Title: Re: ubb on thumbnails page
Post by: Nibbler on November 29, 2004, 05:42:02 pm
You won't get much support here if you remove the powered by coppermine footer.  >:(
Title: Re: ubb on thumbnails page
Post by: itsa on November 29, 2004, 10:59:39 pm
Respectfully, I didn't remove it. My host is Globat. They sent a note to all users telling about this great Coppermine Photo Gallery. They had an "Install" button that I clicked. That's all. Didn't add or change anything on my own that wasn't controllable through Config, and that was just themes and such.

On my own I found this site and wrestled with what I could for 4 days and asked the first question today.

With that backstory, has Globat done something wrong? I'm personally happy to give credit where credit is due, and as a software developer (alas, pre-Internet) I'm familiar with copyrights and such. Is there a missing file I can add? Do I need a full reinstall to get back in your good graces?
Title: Re: ubb on thumbnails page
Post by: itsa on November 30, 2004, 05:26:36 am
Fully and properly credited. Question still applies.
Title: Re: ubb on thumbnails page
Post by: itsa on November 30, 2004, 05:50:32 pm
I've tracked this as far as theme.php, where the Igames theme has

Code: [Select]
        echo "<tr><td colspan='".$CONFIG['thumbcols']."'>".$CURRENT_ALBUM_DATA['description']."</td></tr>";

and other themes don't. It seems most of the page formation is done with template_eval, which becomes a call to strtr, but that's as far as I got and I couldn't find where the UBB codes were translated. I'm guessing that the code above just does an assignment rather than a translation (hey, I'm more used to Fortran and C, cut me a break! <G>) but hit a wall. Any clues to correcting this for UBB?
Title: Re: ubb on thumbnails page
Post by: Casper on November 30, 2004, 08:39:49 pm
You can change it to bb code by changing the line you posted to this;

Code: [Select]
echo "<tr><td colspan='".$CONFIG['thumbcols']."'>".bb_decode($CURRENT_ALBUM_DATA['description'])."</td></tr>";

Note, you can also add this line to other themes, but to work, you will also have to add '$CURRENT_ALBUM_DATA' into the global at the start of the fucntion, so it would read 'global $CONFIG, $CURRENT_ALBUM_DATA;'
Title: Re: ubb on thumbnails page
Post by: itsa on November 30, 2004, 09:06:50 pm
Well ain't that the coolest thing!?! Thank you. Works perfectly. I'd suggest this as a permanent mod for igames theme...can't think of any downside. Personally, I'd like it for every theme, but realize that's just me. Thanks again. Today's working out a whooooole lot better than yesterday.