Images instead of text links

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Mess
Active Member
Posts: 32
Joined: 10. September 2009 15:08
phpBB.com User: Mess

Images instead of text links

Post by Mess »

Your Portal Version: 1.0.6
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://www.hb-eu.com

Description and Message
Hiya,

I would like Images instead of (or above) the text links back to the original posts from the portal.
Image

How would I go about adding this picture:
Image
For the Warhammer Online forum, and another for the StarCraft II one?

Any ideas? Maybe its possible to use the forum image?

Topic author
Mess
Active Member
Posts: 32
Joined: 10. September 2009 15:08
phpBB.com User: Mess

Re: Images instead of text links

Post by Mess »

Anyone please? :)

jerkstore
Active Member
Posts: 26
Joined: 10. October 2008 06:45

Re: Images instead of text links

Post by jerkstore »

I would also like to know how to add images to the actual "Links" block instead of text.

Topic author
Mess
Active Member
Posts: 32
Joined: 10. September 2009 15:08
phpBB.com User: Mess

Re: Images instead of text links

Post by Mess »

Anyone know if this is possible, please? :)

Topic author
Mess
Active Member
Posts: 32
Joined: 10. September 2009 15:08
phpBB.com User: Mess

Re: Images instead of text links

Post by Mess »

Anyone able to help with this please? :)
User avatar

gamingboard
Active Member
Posts: 26
Joined: 20. November 2009 15:44
phpBB.de User: gamingboard
phpBB.com User: gamingboard
Location: Free and Hanseatic City of Hamburg, Germany
Contact:

Re: Images instead of text links

Post by gamingboard »

Here is a idea:


Use at your own risk. It worked on my test forum

Open: portal/block/announcements.php

Find:

Code: Select all

'FORUM_NAME'			=> ($forum_id) ? $fetch_news[$i]['forum_name'] :
Add-before:

Code: Select all

'FORUM_ID'			=> $forum_id,

Open:
/styles/your_style(prosilver)/template/portal/block/announcements.html

Find:

Code: Select all

<!-- IF announcements_row.FORUM_NAME -->{L_FORUM}: <strong><a href="{announcements_row.U_VIEWFORUM}">{announcements_row.FORUM_NAME}</a></strong><!-- ELSE -->{L_GLOBAL_ANNOUNCEMENT}<!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF announcements_row.FORUM_ID == 99 --><a href="{announcements_row.U_VIEWFORUM}"><img src="your Warhammer Online forum img" title="{announcements_row.FORUM_NAME}" alt="{announcements_row.FORUM_NAME}"/></a><!-- ELSEIF announcements_row.FORUM_NAME -->{L_FORUM}: <strong><a href="{announcements_row.U_VIEWFORUM}">{announcements_row.FORUM_NAME}</a></strong><!-- ELSE -->{L_GLOBAL_ANNOUNCEMENT}<!-- ENDIF -->
To add another image using the following code:

Find:

Code: Select all

<!-- IF announcements_row.FORUM_ID == 99 --><a href="{announcements_row.U_VIEWFORUM}"><img src="your Warhammer Online forum img" title="{announcements_row.FORUM_NAME}" alt="{announcements_row.FORUM_NAME}"/></a>
Add-After:
Note:Replace 99 with the forum number where you want to have a picture (viewforum?f=99)

Code: Select all

<!-- ELSEIF announcements_row.FORUM_ID == 99 --><a href="{announcements_row.U_VIEWFORUM}"><img src="your other img" title="{announcements_row.FORUM_NAME}" alt="{announcements_row.FORUM_NAME}"/></a>

Topic author
Mess
Active Member
Posts: 32
Joined: 10. September 2009 15:08
phpBB.com User: Mess

Re: Images instead of text links

Post by Mess »

Thanks a lot mate, ill test it out asap. :D
Locked

Return to “board3 Portal 1.0.x - English Support”