ubb on thumbnails page ubb on thumbnails page
 

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

ubb on thumbnails page

Started by itsa, November 29, 2004, 05:05:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

itsa

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

Nibbler

You won't get much support here if you remove the powered by coppermine footer.  >:(

itsa

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?

itsa

Fully and properly credited. Question still applies.

itsa

I've tracked this as far as theme.php, where the Igames theme has

        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?

Casper

#5
You can change it to bb code by changing the line you posted to this;

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;'
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

itsa

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.