coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: chris55 on September 02, 2007, 02:18:39 AM

Title: Moving the comments box?
Post by: chris55 on September 02, 2007, 02:18:39 AM
Hi, I'm interested in shuffling some of the items in my display around. I've done quite a lot of alterations to the code, which means when I searched for this on the forums I just got a response indicating line numbers that are now meaningless to me.

Basically, in the image view section, I have Casper's PayPal mod activated and I have 'comments' and 'add a comment' boxes, all of them below the image/video being viewed. I want to completely reverse the order of this, so below the image is the PayPal mod (currently at the very bottom) and then below that is the 'add comment' box, and below that is all of the comments that have already been added. I'm just not sure what I need to cut and paste around, so if someone could point me in the right direction it would be greatly appreciated.
Title: Re: Moving the comments box?
Post by: Nibbler on September 02, 2007, 02:26:26 AM
You can switch the comments around in theme_html_comments() in your theme.php. Move the whole add_your_comment bit up to the top of the function before the main while loop. I don't know how the paypal mod works. It would probably be helpful if you provide links to relevant mods and attach your theme.php.
Title: Re: Moving the comments box?
Post by: chris55 on September 02, 2007, 01:10:07 PM
Link to Casper's mod - http://forum.coppermine-gallery.net/index.php?topic=26454.0

The code should all be in the theme.php text file I've attatched. I've had no luck modifying it myself tho.