Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Help with 1 line of code, genereates a link to us text
Old 10-23-2008, 04:33 PM Help with 1 line of code, genereates a link to us text
Super Talker

Posts: 135
Trades: 0
Hello,

I know almost nothing about PHP, but im trying. I issolated the line of code that i need to edit to accomplish what i want. I have a 'block" on my site, its a "link to us" block that generates the html code for people to copy so they can link to my site.

The problem is that the origianl programs made it a bit funky to my likeing.

Code:
'U_LINK_US' => '<a href="' . $u_link . '" ' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"' : '' ) . '>' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '</a>',
All i want to do with this, is change the anchor text from my sitename to standard text that i write into the file. Since i know nothing of PHP i can only guess i need to modify something in line with the words "sitename" in it...but the how is what i have no clue on.

Any help would be amazing.
__________________

Please login or register to view this content. Registration is FREE

Computers – Electronics – Technology | Bringing Together your Digital Home
CompTronicsTec is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-23-2008, 07:14 PM Re: Help with 1 line of code, genereates a link to us text
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Based on the line of code I'd think there's a config file or a block of code where you configure your sitename and url. I think that's what you'd want to edit and not this line.

Out of curiosity why use PHP for this? Wouldn't it be easier to just write the html and display that for people to copy/paste.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-24-2008, 12:56 AM Re: Help with 1 line of code, genereates a link to us text
Super Talker

Posts: 135
Trades: 0
My site is based on PhPBB3, so how its coded isnt much of a choice. I ditched the idea of going with drupal for now, as i found a nice CMS addon to phpbb that looks and works really well.

You are also right, the edit was to be made in another file. It was also a php file but i figured it out all on my own, im so proud

Thanks a ton...my brain is fried i have been working day and night for 2 days straight to test my new site before i go live. Thanks.
__________________

Please login or register to view this content. Registration is FREE

Computers – Electronics – Technology | Bringing Together your Digital Home
CompTronicsTec is offline
Reply With Quote
View Public Profile
 
Old 10-24-2008, 05:30 PM Re: Help with 1 line of code, genereates a link to us text
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Got'cha. I can understand why it's coded the way it is. Glad you found the other file and were able to make the changes you need. I know that fried feeling. I've worked with a few applications and spent hours searching for different files.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Help with 1 line of code, genereates a link to us text
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20922 seconds with 12 queries