coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Walkinman on April 09, 2006, 10:13:06 PM

Title: Add to the Breadcrumb Bar
Post by: Walkinman on April 09, 2006, 10:13:06 PM
Hey Folks,

I'm trying to make the nav stuff take up less room on these pages, and I want to place the 'prev' and 'next' buttons, along with the File Info, all in the breadcrumb bar, then I can remove the nav bar. Is that possible, and can someone offer to show me how to do that?

An example page is here:

http://www.alaskanalpinetreks.com/slideshows/displayimage.php?album=1&pos=5

Thank you.

Cheers

Carl
Title: Re: Add to the Breadcrumb Bar
Post by: Sami on April 09, 2006, 10:48:50 PM
send your theme to this thread i will do the change for you ...you need to change theme.php of your theme
Title: Re: Add to the Breadcrumb Bar
Post by: Walkinman on April 09, 2006, 11:03:04 PM
Hello Bmossavari,

Thank you, that's very generous of you. Here's the text file for my theme (classic)).

Thanks again.

Cheers

Carl
Title: Re: Add to the Breadcrumb Bar
Post by: Sami on April 10, 2006, 12:10:26 AM
okey let see what can we do
we are going to modify theme.inc.php so please take backup from this file and ready to go
1.please remove line 256-257-258

        <tr>
                <td colspan="3" align="left" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
        </tr>

please remove don't comment.
2.now find line 659

<td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>

and put these code BEFORE it

<td colspan="3" align="left" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>

3. go to line 2252

'{NEXT_TGT}' => $next_tgt,

and put this BEFORE it

'{BREADCRUMB}' => $breadcrumb,

4.and for the final task you should find line 2169

    global $album, $cat, $pos, $pic_count, $lang_img_nav_bar, $lang_text_dir, $template_img_navbar;

and change it to

    global $album, $cat, $pos, $pic_count, $lang_img_nav_bar, $lang_text_dir, $template_img_navbar,$breadcrumb;

hope this work fine :)
Title: Re: Add to the Breadcrumb Bar
Post by: Walkinman on April 10, 2006, 04:48:53 PM
Hey Bmossavari,

Thanks for your help. I made all the adjustments you've recommended here, but I don't see any changes to the page. Is there something else that must be done for these to run?

The page still appears the same:

http://www.alaskanalpinetreks.com/slideshows/displayimage.php?album=1&pos=6

I appreciate your help.

Cheers

Carl
Title: Re: Add to the Breadcrumb Bar
Post by: Nibbler on April 10, 2006, 05:23:51 PM
Don't edit themes.inc.php, edit your theme.php
Title: Re: Add to the Breadcrumb Bar
Post by: Walkinman on April 10, 2006, 06:43:41 PM
Hey Nibbler,

Thanks. Should I reload the original themes.inc.php? If so, how do I then apply those changes to themes.php?

Thanks for your help.

Cheers

Carl
Title: Re: Add to the Breadcrumb Bar
Post by: Sami on April 10, 2006, 09:12:41 PM
Quote from: Walkinman on April 10, 2006, 04:48:53 PM
Hey Bmossavari,

Thanks for your help. I made all the adjustments you've recommended here, but I don't see any changes to the page. Is there something else that must be done for these to run?

The page still appears the same:

http://www.alaskanalpinetreks.com/slideshows/displayimage.php?album=1&pos=6

I appreciate your help.

Cheers

Carl
did you do exacly as i said , it's work for me!!!!
I see the problem you should also change your theme.php you should delete lines from 26 to 80 all of them....(if you still use the theme.php that you send to this thread) and also do the modification .
Title: Re: Add to the Breadcrumb Bar
Post by: Walkinman on April 10, 2006, 09:24:43 PM
Hey Bmossavari,

Thanks. I made the changes exactly as you said. Now I deleted the stuff intheme.php. It works, but not exactly. I still need to remove the thumbnails, the slideshow button, and the file Info button. What I want is the breadcrumb to display "Alaskan Alpine Treks Trip Slide Shows - Skolai Pass trip", the File 4/20, and the previous and next buttons. Preferably in that order.

I'm also concerned after Nibbler said NOT to edit the themes.inc.php file.

Thanks for your patience and help.

Cheers

Carl

PS: here's how it looks now:

http://www.alaskanalpinetreks.com/slideshows/displayimage.php?album=1&pos=8
Title: Re: Add to the Breadcrumb Bar
Post by: Sami on April 10, 2006, 09:48:33 PM
Nibbler is right , i'm going to send you a new theme.php with all modification , so please after all put back your orginal theme.inc.php
wait for updating this post ....

Update:Now you can use this theme.php insted of yours also you should change your orginal function.inc.php as mentioned on http://forum.coppermine-gallery.net/index.php?topic=30180.0 to make Unlink the Home and change > to other character

Title: Re: Add to the Breadcrumb Bar
Post by: Walkinman on April 10, 2006, 10:48:03 PM
Hey Bmossavari,

Thank you, that worked perfectly. Thanks so much for your help, I really appreciate it.

Mods - This thread can be marked solved.

Cheers

Carl