Page 1 of 1

Link To Us - Block Custom Text

Posted: 3. March 2009 03:06
by Zaid
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://forums.tomorrowsgaming.com/portal.php

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi,

I would like to edit the code that appears in the "link to us" block on this portal, I went to ACP but there is no option for us to be able to insert our own code, I need to enter an image/badge of my site along the code but to do that I have to insert the image code,

tried to edit the link_us .html and .php but no luck ... So How Do We Change The Code and stuff ?

Re: Link To Us - Block Custom Text

Posted: 3. March 2009 06:47
by Kevin
This has been answered several times. Please use the search function.

Re: Link To Us - Block Custom Text

Posted: 3. March 2009 11:14
by Zaid
I actually did use the Search here and Google... Both didnt turn up very happy and helpful results, if you know its been answered then couldn't you please just given me the link to the answer ?

Re: Link To Us - Block Custom Text

Posted: 3. March 2009 13:06
by Mike

Re: Link To Us - Block Custom Text

Posted: 4. March 2009 01:09
by Zaid
this is the part i am suppose to edit but I get errors when I replace the U_LINK_US code with my desired HTML

so how to I enter this HTMl in an other way <a href="http://tomorrowsgaming.com/forums/" title="BD's No.1 Gaming, Computer & Tech Enthusiast Community!">Tomorrows Gaming™</a>

Code: Select all

// Assign specific vars
$template->assign_vars(array(
	'S_DISPLAY_LINK_US' => true,
	'LINK_US_TXT'		=> sprintf($user->lang['LINK_US_TXT'], $config['sitename']),
	'U_LINK_US'			=> '<a&nbsp;href="' . $u_link . '"&nbsp;' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"' : '' ) . '>' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '</a>',
));



So what should be my code because when I directly use my HTML code it gives me some error

Parse error: syntax error, unexpected '<' in /home2/tgtwobdc/public_html/forums/portal/block/link_us.php on line 29