How can I display the Legend images in my footer?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
austin881
Registered User
Posts: 284
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

How can I display the Legend images in my footer?

Post by austin881 » Sun Apr 27, 2008 10:42 pm

I'm trying to display a legend in the footer of my prosilver site like subsilver2 does. How can I get the images to show up in the footer on every page of the site? Right now it works fine but only on the index page.

This is what I added to my overall_footer.html file:

Code: Select all

<div class="panel">
   <div class="inner"><span class="corners-top"><span></span></span>
   <div class="content">
   	  <h3>Legend</h3>
   	  <ul class="linklist">
   	  	<li>{FORUM_NEW_IMG} {L_NEW_POSTS} &nbsp;</li>
   	  	<li>{FORUM_IMG} {L_NO_NEW_POSTS} &nbsp;</li>
   	  	<li>{FORUM_LOCKED_IMG} {L_FORUM_LOCKED} &nbsp;</li>
		<li>{SUBFORUM_IMG} <!-- {L_SUBFORUM} --> &nbsp;</li>
   	  </ul>
   </div>
   <span class="corners-bottom"><span></span></span></div>
</div>
this is how it looks on the index.php page
this is how it looks on the index.php page
1.jpg (34.59 KiB) Viewed 93 times
Also what code can I use to call up the other images like prosilver/imageset/forum_read_subforum.gif or prosilver/imageset/forum_link.gif so I can have a complete legend?

I'm running a fairly unmodded 3.0.1 version of phpBB using the prosilver style.
Thank you in advance. If you need any more information I'd be happy to provide it.
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: How can I display the Legend images in my footer?

Post by karlsemple » Sun Apr 27, 2008 10:46 pm

I suspect you are using image variables that are only defined in the forumlist_body file and thus only working on the index (could be wrong though without checking) Thus to get it to work on every page you are either going to have to create your own template variables for the images in the page_header function in the functions.php or hard code the image location in the HTML :)
Image

User avatar
austin881
Registered User
Posts: 284
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: How can I display the Legend images in my footer?

Post by austin881 » Mon Apr 28, 2008 2:12 pm

karlsemple wrote:create your own template variables for the images in the page_header function in the functions.php
Thanks for your help again karlsemple. I think I'm headed in the right direction but still not sure what to do.
I've found the line in my functions.php file:

Code: Select all

function page_header($page_title = '', $display_online_list = true)
What exactly do I need to add in this function in order to get the legend images to display? Where are the rest defined?..{FORUM_NEW_IMG} {L_NEW_POSTS}
My thinking was that I could find where these are defined and add the rest.
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
austin881
Registered User
Posts: 284
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: How can I display the Legend images in my footer?

Post by austin881 » Fri May 02, 2008 12:37 am

Anyone else have any input? I feel like I'm so close and this should be so easy. Maybe not?
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
austin881
Registered User
Posts: 284
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: How can I display the Legend images in my footer?

Post by austin881 » Tue May 06, 2008 12:05 am

Pretty please?
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
austin881
Registered User
Posts: 284
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: How can I display the Legend images in my footer?

Post by austin881 » Wed Jun 25, 2008 8:48 pm

karlsemple wrote:going to have to create your own template variables for the images in the page_header function in the functions.php
I'd love to know what this means. Karlsemple, can you explain this better?
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69463
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: How can I display the Legend images in my footer?

Post by KevC » Wed Jun 25, 2008 8:53 pm

Have you thought about doing it this way?
http://www.phpbb.com/community/viewtopi ... 5#p4898505
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

Locked

Return to “[3.0.x] Support Forum”