<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Replace the title.gif to a link to my forum (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Replace the title.gif to a link to my forum
#1317
scary05 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Replace the title.gif to a link to my forum 1 Year, 10 Months ago Karma: 0  
Hello


I would like to replace the title.gif with=

My site logo with link to my site with a click on it, to go back to my forum

I Know I have to modify the header.php ... but after lot of test my result it not very good

If you cant help me!

Thank
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1318
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Replace the title.gif to a link to my forum 1 Year, 10 Months ago Karma: 9  
The code near the top of the header.php file is just HTML that has been assigned as a PHP string variable
Code:

$html .= '"><td class="title" nowrap="nowrap" valign="bottom"><a href="'. $gl[BasePath].'/'.$index.'"'; if ($usesession == "yes"){$html .= "?". session_name() . "=" . session_id() . "";} $html .= " target=\"_top\"><img src=\"./themes/" . $theme . "/title.gif\" align=\"left\" width=\"200\" height=\"49\" "; $html .= "border=\"0\" "; $html .= "alt=\"" . $gl["SiteTitle"] . "\" title=\"" . $gl["SiteTitle"]; $html .= "\" /></a></td><td class=\"title\" align=\"right\" nowrap=\"nowrap\">&nbsp;";
So basic HTML will work, you just need to escape any quotes with backslashes href=\"someURL\"
Code:

$html .= '"><td class="title" nowrap="nowrap" valign="bottom"><a href="/FORUM/"> <img src=\"SOMEIMAGE.JPG\" align=\"left\" width=\"200\" height=\"49\" "; $html .= "border=\"0\" "; $html .= "alt=\"ALT TEXT\" /></a></td><td class=\"title\" align=\"right\" nowrap=\"nowrap\">&nbsp;";
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1319
scary05 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Replace the title.gif to a link to my forum 1 Year, 10 Months ago Karma: 0  
Hello Dew

Thank for fast awnser I try to made modification like you give it to me twice twice time but unfortunly i make some thing wrong, I try to cut and replace section by section...alway the same result=wrong, probably my fault.

This is my header.php

Code:

$radio_array = array("or" => $common_1, "and" => $common_2, "phrase" => $common_3); $html = "" . $table2 . "<tr background=\"./themes/" . $theme . "/bg.gif\"> <form target=\"_top\" method=\"post\" action=\"./directory/"; if ($usesession == "yes"){$html .= "?". session_name() . "=" . session_id() . "";} $html .= '"><td class="title" nowrap="nowrap" valign="bottom"><a href="'. $gl[BasePath].'/'.$index.'"'; if ($usesession == "yes"){$html .= "?". session_name() . "=" . session_id() . "";} $html .= " target=\"_top\"><img src=\"./themes/" . $theme . "/title.gif\" align=\"left\" width=\"200\" height=\"49\" "; $html .= "border=\"0\" "; $html .= "alt=\"" . $gl["SiteTitle"] . "\" title=\"" . $gl["SiteTitle"]; $html .= "\" /></a></td><td class=\"title\" align=\"right\" nowrap=\"nowrap\">&nbsp;"; $html .= "<font class=\"searchText\">Recherche:</font> <input "; $html .= "class=\"textBox\" type=\"text\" name=\"term\" value=\""; $html .= stripslashes($term) . "\" size=\"20\" /><br /><font "; $html .= "class=\"searchLogic\">&nbsp;";
And this is the element i need to replace (regular html)but it work
Code:

<a href="http://www.balades_mustang.isgreat.org/phpbb3/index.php" title="Retour au forum Balades Mustang"> <img src="link_forum.jpg" width="204" height="58" align="left" border="0" alt="Retour au forum Balades Mustang"></a>
Dont take care about delay, if you have a time when you have a time. Best regard!
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/03/20 09:34 By Dewed.
  The administrator has disabled public write access.
#1320
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Replace the title.gif to a link to my forum 1 Year, 10 Months ago Karma: 9  
It is simpler than it looks...

1 take your HTML and put backslash \ in front of every quote "

Code:

<a href=\"http://www.balades_mustang.isgreat.org/phpbb3/index.php\" title=\"Retour au forum Balades Mustang\"><img src=\"link_forum.jpg\" width=\"204\" height=\"58\" align=\"left\" border=\"0\" alt=\"Retour au forum Balades Mustang"></a>
2 add quotes to each end, and a semicolon to the end
Code:

"<a href . . . . . . . a>";
3 add $html .= to the begining ...
Code:

$html .= "<a href . . . . . . . a>";
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/03/20 09:36 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1321
scary05 (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Replace the title.gif to a link to my forum 1 Year, 10 Months ago Karma: 0  
Great it working perfect...with your help
big big thank to you
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008