Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

php code question...

Status
Not open for further replies.

mat

Joined
Apr 18, 2007
Posts
3,838
Reaction score
181
I am currently calling brand related titles using 2 bits of code...

case "brand":
$banner["h2"] = translate("Golf shoes from ")." <strong>".$parts[1]."</strong>&nbsp;";
break;


and...


case "brand":
$header["title"] = "Golf shoes from ".$parts[1];
break;


How do I change these both to read "BRAND Golf Shoes" instead of "Golf shoes from BRAND"

Thanks!
 
Yo dude

case "brand":
$banner["h2"] = "<strong>".$parts[1] . "translate("Golf Shoes") . " </strong>&nbsp;";
break;

and...


case "brand":
$header["title"] = $parts[1] . "Golf Shoes";
break;


Should do the trick
 
  • Like
Reactions: mat
Second one worked a charm, seems to be an error in the first one??

Thanks.
 
Worked it out!

There was an odd " inside your code before translate that shouldnt be there!

Thanks very much for your help, rep added.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom