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
Old 03-31-2009, 07:20 PM Small snippet mod
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
The following snippet produces a link to a profile page such as
www.mysite.com/username

PHP Code:
<?php
global $user;
$myuid$user->uid;
$nodecontent_profile_load(profile$myuid);
$profileid$node->nid;
print 
l('My profile','node/'.$profileid);
?>
I would like this to link to the following path instead.
www.mysite.com/user/username

So basically I would like the add /user to the path before /username.

Told ya it was basic. haha
__________________

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

Solutions for online design™
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
 
Register now for full access!
Old 03-31-2009, 10:50 PM Re: Small snippet mod
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Is that spam?
__________________

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

Solutions for online design™
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 03-31-2009, 11:05 PM Re: Small snippet mod
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Why, yes, it was.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 03-31-2009, 11:33 PM Re: Small snippet mod
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
That's a first on here. haha Now if only I could get an answer to my question that would be the ultimate spam. haha
__________________

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

Solutions for online design™
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 03-31-2009, 11:37 PM Re: Small snippet mod
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Ultimate spam? I don't like that...Shame for posting 'Ultimate Spam'
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 03-31-2009, 11:53 PM Re: Small snippet mod
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Obviously i was only kidding. I apologize if I offended.
__________________

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

Solutions for online design™
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 04-03-2009, 12:00 AM Re: Small snippet mod
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Well at this rate, we won't be going anywhere. I'm still not totally sure what you are trying to do, and I don't think that the problem can be solved until more code has been provided. But at any rate, I'll review your PHP:

PHP Code:
<?php
global $user;
$myuid$user->uid;
$nodecontent_profile_load(profile$myuid);
$profileid$node->nid;
print 
l('My profile','node/'.$profileid);
?>
Taking a look at this, it appears that you may have some unnecessary strings, you are accessing external content which we will need to see to be able to solve your problem, because that is probably what generated the link - not the given code. I really don't know much about this script, so naturally my help is limited. But this PHP is pulling from a lot of different resources that will need to be edited, so this is probably not your target code.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Small snippet mod
 

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.87556 seconds with 12 queries