PDA

View Full Version : Actual / Display URL


soccer-systems
09-03-2005, 09:15 PM
Many real life directories will have a combination of reciprical and admin added affiliate links within their directory.

Actually posting aff link code urls on the link descriptions however is not too pretty.

There should be a way for admin to alter the url displayed eg the the main root url of the site linked to..but actually use the long winded aff url in the hyperlink code.

my suggestion ...

have an db extra field called "display url".

When a link is inserted copy the url entered into both the actual and dispaly url fields.

Use the display url field to write the link url description in the directory pages.

Use the actual url for the hyperlink.

Give admin an extra edit box to ammend display urls.


Just picture how it would look at present if say you added an affiliate link in from a commission junction advertiser. A yuk display. :)

simple stuff tech wise but important functionality wise if you consider how many will want to be using this script in real life.

Cheers
Mick

kickass
09-04-2005, 04:23 PM
I'd like to see this mod too.

Nobody
09-04-2005, 10:01 PM
Good point.

yktan
09-05-2005, 07:15 AM
Sounds like a doable feature. Anyone care to chip in some donation so that programmers that spend time on this can put food on the table?

Regards,
YK Tan

Nobody
09-05-2005, 01:42 PM
Adrian made a mod that adds a field to every account. Hopefully this means you're not beginning from scratch with this mod.

Ap0s7le
09-05-2005, 07:18 PM
This sounds nice, and I'm with York here. I can't keep working on something I'm not getting something from. I have a hard time finding people who are even greatful anymore.

It's sad really.

-Casey

angeljs
10-05-2005, 03:18 PM
Content visible to registered users only.

Sounds like a good idea. I tried removing: Content visible to registered users only. from link.tpl but then the listings looked spartan! :(

Nobody
10-24-2005, 05:50 PM
Any news on this mod? Again, this should really not be too hard to do.

It's all about adding a field with display URL (plus count PageRank from that one), and add another field with the actual link (tracker.affiliate.tld, for instance).

miller2348
10-24-2005, 08:43 PM
I have the regular expression to do this, does anyone know how to get the Smarty link value into PHP to be changed?

I have tried everything to get the {$links} to a php var like $editedlink but i cant do it.

If someone can tell me if that is possible, i will post the solution.

righthosts
11-14-2005, 12:59 AM
Hi there, I would really like to see this mod made and I'm here and willing to help. I'm not that great with php but would be happy to help in some way.

I also use affiliate links, you can see an example here: http://www.righthosts.com/business-hosting/

*Note: This site is still been developed

You will see how if you hover over a link it will display "more info" this was simple to do with javascript but is not a proper solution.

I also want to display page ranking and having a field called DisplayUrl would enable us to do that. Its easy to make the database field but the hard part is trying to make it display the url on the page?

If I was using ASP I could do all this in no time, I moved to PHP thinking that these things would be easy to learn to do but I see many PHP developers here that don't seem to be able to do these really simple things. I really see this sort of thing as essential and not a mod, I would really hope we can progress with this mod.

I added table in database & did a search & replace on "$url" with "$DisplayUrl" for the page pagerank.php but it still showed the long url?

I added the javascript to display something else in status...
<a href="{$link.URL}"
{* nofollow *}
{if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and
($smarty.const.RECPR_NOFOLLOW eq 2 or
($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))
} rel="nofollow"
{/if} TARGET="_blank" onMouseOver="self.status='more info'; return true" onMouseOut="self.status=' '; return true" >
{$link.TITLE}</a>


Wheree do we start?

.1/ Create Database field called DisplayURL - Yes

2./ Add hover over message - yes - Now Change Status Url to use Display Url instead - No

3. / Change page rank Url to use Display Url - No

What next?



Content visible to registered users only.

Ap0s7le
11-14-2005, 01:10 AM
It's really not a matter of it being hard, because it isn't. More of a thing that we are also busy, and tend to not work on a lot that doesn't pay because my income comes from my work, if I always do it for free than I wont get to stay online since I wont be able to pay my bills.

Since I'm away from my office, if someone would hook me up with a fresh install along with FTP / phpMyAdmin than I'll do this mod.

Though I would like a donation for doing so, it isn't required.

Let me know.

-Casey

righthosts
11-14-2005, 02:37 AM
Hi Casey,

I can hook you up to my current site although I would like to keep the links in the database so I will upload a new install to my site "www.righthosts.com" and I will then pm you the login details for PhPAdmin.

I can offer a small donation, will discuss more in pm. alternativly I could offer to trade my skills, design, flash, graphics, audio, seo, or many other areas so if you need something done that you lack the skills then I could help.

I will upload the site now ....


Content visible to registered users only.

yktan
11-14-2005, 03:58 AM
Way to go righthosts, it's nice to see someone who is willing to contribute. I'm sure Casey will take good care of your needs.

righthosts
11-14-2005, 04:01 AM
Content visible to registered users only.

Yes I don't have a big budget but I made a small offer. I have uploaded the site and sent you a PM Ap0s7le.

thanks and I look forward to getting this mod, I hope others will donate as well...

Nobody
11-14-2005, 11:21 AM
Well, will you share this mod with us, then?

righthosts
11-15-2005, 10:32 PM
I would like to say thanks to Casey who made the mod for my site. I'm very happy with Casey's work and it works exactly as I hoped.

tinus2
11-17-2005, 03:15 PM
i would also be interested in this mod - could you please share it with us? i checked on your site but it still seems to display the regular affiliate links - is the mod still in development?

kind regards,

martin

righthosts
11-17-2005, 10:36 PM
Content visible to registered users only.

Hi martin, you will need to ask Casey about the mod. My site works, I did find 2 links I forgot to change (thanks) but they are all working now, have another look and refresh browser.

Ap0s7le
11-19-2005, 08:44 PM
I will be publishing this mod shortly.

I was suppose to go home today, but due to car trouble I'm not and I don't know for sure when I will be.

I'll go ahead and write up this mod so everyone can take advantage.

later

-Casey

vkaryl
11-20-2005, 03:03 AM
Ouch. Sorry you're having problems.... sounds like a great mod, looking forward to seeing it!

Ap0s7le
11-20-2005, 05:22 AM
Hey all, I've gotten the mod written and I would like to test my instructions to make sure there is no issues. I would normally do this on my testing server, but I don't have access to it right now.

If someone could provide me access to theirs, that would be awesome.

If you want the mod, AND don't want to add it yourself this would be a great opt to get it done for you haha

Thanks

-Casey

righthosts
11-20-2005, 07:41 AM
hi Casey
You still have access to my ftp and site so your welcome to carry on with using that to get this mod completed for release.

Ap0s7le
11-20-2005, 07:27 PM
Thank you man!

I'm going to install a second directory, and then after I'm done I'll remove it.

Thanks again

-Casey

righthosts
11-20-2005, 09:51 PM
Content visible to registered users only.

ok, no worries and thanks for your email and explaining about the page rank too.

Ap0s7le
11-27-2005, 04:20 AM
If you want this mod, check out the following thread.

http://www.phplinkdirectory.com/forum/viewtopic.php?t=1305

Thanks

-Casey

webjunkie
02-14-2006, 12:25 AM
Sure glad I read forums I was about to build this mod myself works like a charm many thanks...