View Full Version : Display URL Mod
Ap0s7le
11-27-2005, 05:18 AM
Try it out, let me know what you think etc.
If you appreciate this mod, please send me a donation or if you need PHP work done, also feel free to contact me.
Thanks
Content visible to registered users only.
Wenchie
11-28-2005, 09:21 AM
Ohhh nice! I needed this and it works perfectly.. thank you for it.
Donation sent. :)
You didn't say where to send the donation so I used the link from here.. hope that was okay.
Ap0s7le
11-29-2005, 12:27 AM
Haha thanks
David actually gets that, my PayPal address can be PM'd upon request.
I'm very glad you liked it!
Thank you :)
-Casey
Wenchie
11-29-2005, 03:17 AM
Oh no! I'm so sorry. David give Casey my donation please. :lol:
GiveItaGo
01-18-2006, 12:54 PM
Like the sound of this MOD so I am going to give it a go - I just have a quick query regarding the database alteration.
ALTER TABLE `PLD_LINK` ADD `DISPLAYURL` VARCHAR( 255 ) NOT NULL ;
- no problem fully understand that one!
INSERT INTO `PLD_CONFIG` (`ID`, `VALUE`) VALUES ('ENABLE_DISPLAYURL', '1');
- Does this mean that the current fields ID & Value require altering to the values in brackets respectively or that additional fields with those values need creating?
If it is the former (which I think it is) how do I alter the value of ID to 'ENABLE_DISPLAYURL' - Do I need to change the 'Type' to i.e. - 'CHAR' or perhaps something else?
Once again any help would be appreciated.
regards
Paul
GiveItaGo
01-18-2006, 02:05 PM
Well managed to work it out - The values discussed need to be entered in the 'default settings' of those particular fields. Other than that this was very easy to implement with some excellent instructions.
If you pm/email me with your paypal details I will gladly make a contribution for this mod and thankyou for making this available.
regards
Paul
melaniejk
02-11-2006, 07:51 AM
Hi.
I would like to put this Mod on my directory. I read over the directions and think I can handle all the steps except one -- the first one.
How do I edit SQL ?
I went to my Cpanl and clicked on MySQL. The options are Delete, Check, or Repair.
Do I click on Repair? I want to make sure before I do in case I'm wrong and mess something up.
Oh, can anyone who used this mod verify that your affiliate links for Commission Junction were able to work and you got proper credit.
I'll be happy to make a donation if I can get this to work properly.
Thank you.
#-----[ SQL ]------------------------------------------
# Where 'PLD_' is your table prefix
ALTER TABLE `PLD_LINK` ADD `DISPLAYURL` VARCHAR( 255 ) NOT NULL ;
INSERT INTO `PLD_CONFIG` (`ID`, `VALUE`) VALUES ('ENABLE_DISPLAYURL', '1');
#
Ap0s7le
02-11-2006, 08:00 AM
Hello melaniejk,
Once in the MySQL part of CPanel, look for "phpMyAdmin"
When you get there, on the left use the dropdown to find your table, then when it loads on the right, hit "SQL" and it will show a big textarea to add that part in.
If you have any questions, or need help feel free to contact me personally.
Kind Regards,
-Casey
melaniejk
02-11-2006, 08:46 AM
Anyone online available to help right now?
I just need help on the phpMyAdmin step.
Content visible to registered users only.
Yes!
Please post your question/problem, I am here and will help you.
Boby
melaniejk
02-11-2006, 06:54 PM
Hi. I'm stuck in the phpMyAdmin area.
I think I'm supposed to paste the following in a white box.
Do I paste it exactly?
ALTER TABLE `PLD_LINK` ADD `DISPLAYURL` VARCHAR( 255 ) NOT NULL ;
INSERT INTO `PLD_CONFIG` (`ID`, `VALUE`) VALUES ('ENABLE_DISPLAYURL', '1');
The box already has text in it. So, I'm thinking I should delete it.
But, then how do I add this. Do I click on Insert.
I don't want to make a mistake and mess things up. So, I'm waiting for a thumbs up.
David
02-11-2006, 07:04 PM
Defintely backup your database first.
Then yes, replace what is in the box with this.
melaniejk
02-12-2006, 12:53 AM
Ok, thanks.
I figured out the problem.
I needed to click on the GO button after pasting that stuff in the white box.
Content visible to registered users only.
Thanks for the MOD Casey.
Looks like I got it to work in 3.0.2
I will gladly drop few bucks your way - give me your PayPal e-mail.
I have a question:
What needs to be changed to enable "display URL" field in "Submit link" template and database to store this info. This way when somebody submits new link they could submit both - actual url and display url. If I understand correct - right now "display URL" can be entered only from admin interface?
Thanks
P.S. I was serious about PayPal address.
Content visible to registered users only.
Thanks for the MOD Casey.
Looks like I got it to work in 3.0.2
I will gladly drop few bucks your way - give me your PayPal e-mail.
I have a question:
What needs to be changed to enable "display URL" field in "Submit link" template and database to store this info. This way when somebody submits new link they could submit both - actual url and display url. If I understand correct - right now "display URL" can be entered only from admin interface?
Thanks
P.S. I was serious about PayPal address.[/quote]
last line of his sig where it says: Grateful for my help? Send some cash (https://www.paypal.com/xclick/business=at@ap0s7le.com&item_name=Casey+Wilson&item_number=donation&no_shipping=0)
Casey,
Any chance to see update for version 3.0?
I tried to modify detailed listing page myself but with no luck...
Could you... Please...
jeeplaw
05-07-2006, 01:04 PM
Does anyone have this working for 3.0.4?
Steven Myers
05-07-2006, 05:04 PM
LOVE this mod, thank you so much for making it, I'll donate in a few days!
jeeplaw
05-09-2006, 05:57 PM
Can anyone cofirm that this works for 3.0.4? I'm sort of hesitant in implementing this if there's a chance it might not work..
Neticus
05-09-2006, 08:12 PM
This works on 3.04, however it dosen't transalate to the 'more details' page.
You could always remove
<span class="url"> - {$URL|escape|trim}</span> (the bit that does http://www.domain.com}
from the details.tpl
If I figure out how to transalate it to details.tpl I'll post it.
(This is in amateur non-coder time, not proffessional Know-what-to-look-for time) :)
Anyone else is welcome to give this a bash.
Optimit
05-18-2006, 10:56 PM
I was not able to make this work on 3.04...
Anyone want to try and update it?
Neticus
05-19-2006, 06:18 PM
I successfully applied this to v304 without any modifications. Did as it said on the box;
The display URL shows next to the TITLE, when hovered the TITLE shows display url but when clicked goes to
actual url.
Like I said the only incompatibility with v3series is it dosen't transalate to 'more details' page. So yes I suppose it does need to be updated. Hopefully it will be considered as worthwhile integrating it into phpld default.....hopefully..:)
Net.
bobby9101
05-20-2006, 12:36 AM
I got this working on 3.0.5 for optimit (actually it might have been 3.0.4 I am not sure)
i had to make a couple small changes to get it to work.
I didn't look deeply into the details page problem though
Optimit
05-20-2006, 12:41 AM
It was 3.04. Thanks for the help.
donholloway
07-15-2006, 09:06 PM
I"m trying to use this with 3.0.5 and think I did everything properly up until.
#-----[ OPEN ]------------------------------------------
#
/templates/link.tpl
#
#-----[ FIND ]------------------------------------------
#
{if $smarty.const.ENABLE_BLANK} target="_BLANK"{/if}>
#
#-----[ REPLACE WITH ]------------------------------------------
#
{if $smarty.const.ENABLE_BLANK} target="_BLANK"{/if}{if $smarty.const.ENABLE_DISPLAYURL} onMouseOver="self.status='{if $link.DISPLAYURL ne ''}{$link.DISPLAYURL}{else}{$link.URL}{/if}'; return true" onMouseOut="self.status=''; return true"{/if}>
#
#-----[ FIND ]------------------------------------------
#
<span class="url">- {$link.URL}</span>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<span class="url">- {if $smarty.const.ENABLE_DISPLAYURL and $link.DISPLAYURL ne ''}{$link.DISPLAYURL}{else}{$link.URL}{/if}</span>
#
#-----[ OPEN ]------------------------------------------
I don't have the
<span class="url">- {$link.URL}</span>
statement, rather I have a span style statement
<span style="color:#000000;">{$link.DESCRIPTION}</span>
So I just stuck the "add line under it.
I suspect this might be wrong. Anyway, I don't see any display URL anywhere in my admin section.
Can anyone help?
Don
donholloway
08-09-2006, 01:14 AM
I wanted to post a belated Thank You to Bobby9101 who helped me make it work on 3.0.5. It's working great, although it is making me revisit the Alexa thumbnail thing. I can live with the "real URL" in the detail listing, but it winds up showing an Alexa thumbnail for the wrong URL.
I'm going to be changing over to 3.0.6 (I really want the multi-language support for end-users) so will keep my fingers crossed that the mod will still work.
bobby9101
08-09-2006, 01:18 AM
i can show you how to do that
I have the Mod tested on 3.06. But the Detail site is not working. Can you help me ?
Ap0s7le
09-02-2006, 08:13 PM
Ah, nice to see this is still usable in some cases.
Thanks everyone.
-Casey
David
09-02-2006, 08:30 PM
And great to see you are still around. :)
I have the Mod tested on 3.06. But the Detail site is not working. Can you help me ?
None? The Mod is very interesting. Thanks
do you any example to show this mod?
iamnewbies
11-26-2006, 05:37 AM
Very very good I MOD. success
my advice if possible may be have mod. ready package for newbies can be useful Thank you
iamnewbies
11-26-2006, 05:43 AM
PROBLEM
sorry, I don't understand
what link affiliate may be place at URL: box or Display URL: box
I using affiliate at URL: box is right or not
but, I have problem with pagerank update, script update using affiliate link for check pagerank
I just insert this mod in my directory 3.06.
It works fine. I just have to make a few change in the link.tpl to make it work. Another thing which has changed, it is the path of the files in the template directory.
I changed also detail.tpl, using the same syntax that in link.tpl but it doesn't work. It looks like that the new value "DISPLAYURL" is not known / declare in this template.
Has somebody an idea how to declare this value in detail.tpl ?
If you want to, I can make, well at least try to make, an update of this module for 3.06.
Well, there is the need to add a line in the file : detail.php
$data['DISPLAYURL'] = $rdata['DISPLAYURL'];
It catch the good URL from the DB.
Now, let's find how detail.tpl can use this information. I guess that I have to declare this information somewhere else !
Well, in fact, there is no problem with the change of URL by DISPLAYURL in the detail.tpl.
The problem is when I changed the following line :
{if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>
by
{if $smarty.const.ENABLE_BLANK} target="_BLANK"{/if}{if $smarty.const.ENABLE_DISPLAYURL} onMouseOver="self.status='{if $link.DISPLAYURL ne ''}{$link.DISPLAYURL}{else}{$link.URL}{/if}'; return true" onMouseOut="self.status=''; return true"{/if}>
And the following line :
<span class="url">» {$URL|escape|trim}</span>
by :
<span class="url">» {if $smarty.const.ENABLE_DISPLAYURL and $link.DISPLAYURL ne ''}{$link.DISPLAYURL|escape|trim}{else}{$link.URL| escape|trim}{/if}</span>
It stops to catch the values URL and DISPLAYURL.
The most surprising is that the change of those 2 lines work one the link.tpl but not on detail.tpl !
Did I missed something ?
amatas
02-06-2007, 06:55 AM
Has this mod been re-worked for 3.1?
I would really like to have this mod installed, but somewhere along the line I never got past /admin/init.php
#
#-----[ FIND ]------------------------------------------
#
# Blank Window option
array('ID' => 'ENABLE_BLANK',
doesnt exist ?
Anyone around here to help?
James
02-07-2007, 11:48 PM
that line is now in conf_options.php in the admin folder
Content visible to registered users only.
can you do an install for a fee? please hit me up icq 226824731 or bodyartwebmaster on yahoo
solidghost
02-11-2007, 03:20 PM
What does this mod actually do?
26global
04-03-2007, 12:40 PM
It looks like it allows you to post affiliate links in your directory that actually are hidden so instead of your affiliate link it shows the site it redirects to.
Is anyone available to install this mod for me on my directory? I'd like it to work with 3.1. Let me know how much it would cost. Email me at:
nuvrudesign {a} gmail.com
Thanks,
Jeff
dgparent
04-11-2007, 02:12 AM
I would love to have this installed as well if anyone cares to try please pm me price thanks
dwnet
05-14-2007, 04:58 PM
Thank you.
Very usefull mod. I'll try to install it.
does anyone have a working version of this mod for the latest PHPlinkdirectory?
James
09-12-2007, 10:26 PM
If You read the thread totally you will see the changes needed for it to work in 3.2 ....
kenvin
09-15-2007, 11:14 PM
I'd really like to use this mod. I'm new to the php thing but making progress. I did backup my site but I'm not sure how to do the sql changes.
I went to my data base and opened php_link and sql. At this point what do I put in the blank box? do I past the whole thing? ALTER TABLE `PLD_LINK` ADD `DISPLAYURL` VARCHAR( 255 ) NOT NULL ;
INSERT INTO `PLD_CONFIG` (`ID`, `VALUE`) VALUES ('ENABLE_DISPLAYURL', '1');
Or do I past the first part then go to the PLD_CONFIG and paste the second part to PLD_CONFIG? Please let me know. Please be very specific. I'm really dumb but I'm learning. Thanks.:)
Content visible to registered users only.
kenvin
09-17-2007, 01:21 PM
Come on somebody has an answer. I read this tread and am still not sure what to do. I'm not sure how to alter and insert info. to my tables.
kenvin
09-18-2007, 03:52 AM
Is anybody reading the thread that can help me. I know its and old thread but I would really like to use this mod. I pm'ed the author but still no reply. Any help would be most appreciated. Thanks.
shadav
09-19-2007, 12:53 AM
sorry but i've not used this mod...but also don't quite understand your question....what do you mean by tables? tables.php? or database tables?
kenvin
09-19-2007, 04:12 AM
I didn't ask anything about tables. I'm trying to follow the instructions in the blue box. The first instruction is for sql. I'm asking if I should dump whole thing;
ALTER TABLE `PLD_LINK` ADD `DISPLAYURL` VARCHAR( 255 ) NOT NULL ;
INSERT INTO `PLD_CONFIG` (`ID`, `VALUE`) VALUES ('ENABLE_DISPLAYURL', '1');
in mysqladmin PLD_link or do I put;
ALTER TABLE `PLD_LINK` ADD `DISPLAYURL` VARCHAR( 255 ) NOT NULL ;
in PLD_LINK and
INSERT INTO `PLD_CONFIG` (`ID`, `VALUE`) VALUES ('ENABLE_DISPLAYURL', '1');
in PLD_Config
or none of the above? Any Ideas? If none of the above, how would you do this?
James
09-19-2007, 04:58 AM
use phpmyadmin
and you really need to go back and read your posts you sure did mention tables...
"Come on somebody has an answer. I read this tread and am still not sure what to do. I'm not sure how to alter and insert info. to my tables."
kenvin
09-19-2007, 01:22 PM
Sorry, I guess I did. Please disregard the tables question. But hopefully I fully explained my question between my first and last post. Hopefully somebody has an answer. There were several people at the beginning of this thread that said it worked but they didn't really explain how they did it. After that, a bunch of ver. 3'ers were asking questions on how to make it work with ver. 3. The thread went off on a tangent and I'm still not sure I understand the 1st instruction.
mmastation
09-19-2007, 05:37 PM
Content visible to registered users only.
Just paste the whole command in there, there is no need for 2 different commands to be entered.
Always make sure you back up your sql before anything is done though.
shadav
09-19-2007, 06:39 PM
Content visible to registered users only.
Content visible to registered users only.
if you still need help feel free to pm me your url to your site, admin info, ftp info and cpanel info
I should have some time today to do this...but as stated make a backup of your site first, I can not promise it will work, I've not even looked at this mod and haven't tried to install it before
honestly i'm really not even sure what the heck this mod is for :D forgive my stupidity lol
ok after somewhat reading through posts, i think i get it...not sure if i agree with it...I get for referral links but I could see this being easily abused....
kenvin
09-21-2007, 04:18 AM
Thanks for the info. mmatoday, That's kind of what I was guessing but I just wanted anouther oppinion. I'm going to try it this weekend. Thanks for the offer Shadav but I think I can get this done, hopefully. I think I'll like this mod because, I have a lot of affiliates that have really long urls and I think this help the ad look better.
James
09-21-2007, 11:16 PM
just installed on another 3.2 with little problem ;)
kenvin
09-22-2007, 05:45 PM
:DWith great courage;:eek:I went into to great unknown, keep in mind I'm a newbie, said a few prayers and WOW it works:D. I'm going to go celebrate:cool: This is really cool. Thanks
Ok..
I´m ready ;)
I have made a new Display URL Mod!
For a Demo see:
www.regon.de
My Mod will hide affiliate Links and many more!
If you want this Mod please PM me.
FREE for Regon Members!
WORK with PHPLD 3.2!
regg
kenvin
09-26-2007, 05:25 AM
I discovered a problem. If you use the display url with an affiliate url as the url, the thumbnail image will not work. Is there a work around for that problem?
James
09-26-2007, 05:29 AM
works fine you just have to set it it up right. I have installed the existing FREE mod and it works fine. I will prepare step by step instructions in the coming days and will post it here.
James
09-26-2007, 05:31 AM
Here is the code for link.tpl
<img src="htxp://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={if $smarty.const.ENABLE_DISPLAYURL and $link.DISPLAYURL ne ''}{$link.DISPLAYURL|escape}{else}{$link.URL|escap e}{/if}" alt="{$link.TITLE|escape}" width="120" height="80" border="1">
for detail.tpl :
<img src="htxp://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={if $smarty.const.ENABLE_DISPLAYURL and $DISPLAYURL ne ''}{$DISPLAYURL|escape}{else}{$URL|escape}{/if}" alt="{$TITLE|escape}" width="120" height="80" border="1">
kenvin
09-26-2007, 01:24 PM
If I add this code and use my affiliate url. Will it display the thumbnail correctly? or will I get the preview not available thumbnail. This is the problem I'm having. Is this a fix to that problem? Thanks.
James
09-26-2007, 05:12 PM
Try it and see ;)
yes it shows the display url for the thumbnail.
kenvin
09-27-2007, 01:45 AM
Thanks I'm going to try it.
kenvin
09-27-2007, 03:24 AM
Didn't work got this error...
Fatal error: Smarty error: [in link.tpl line 11]: [plugin] modifier 'escap' is not implemented (core.load_plugins.php, line 118) in /home/www/aokdirectory.com/libs/smarty/Smarty.class.php on line 1095
mmastation
09-27-2007, 10:02 PM
I believe Mr. Dawzz ( he makes me call him that ) will be able to help you.
James
09-27-2007, 10:35 PM
I have tried :) pasted code etc etc there is something missing ......
thetraveller
10-05-2007, 05:01 AM
I decided to go and try this but I have run into a problem.
The instructions listed in post #1 of ths thread state:
Content visible to registered users only.I do not have this anywhere in my admin/init.php file.
I am running 3.2.0
Any suggestions?
Thanks,
Iain
sylvester
11-06-2007, 01:21 PM
any working mod for 3.2.0 version?
webspawner
11-17-2007, 12:39 PM
I am also interested in this for the latest version. I dont mind paying a little fee for it but I want to get it working.
Thanks,
Just checking to see if anyone has this working yet?
James
12-15-2007, 11:30 PM
It works fine in 3.2 i have installed it many times.
Read the thread fully and take note where I say the location is changed on one step.
Joaquim
01-10-2008, 12:39 AM
Hello,
I tried this mod on 3.2 but i don't work oO
Regg > i try to PM you but I think your inbox is full, i go to your website but i don't understand deutsch, can you send me please your hide url mod ?
Thanks in advance,
Joa
James
01-10-2008, 01:14 AM
This mod works fine in 3.2 you obviously didnt read the full thread. I will bet anything that this mod compares to any one that does the same thing ....
James
01-10-2008, 01:32 AM
Content visible to registered users only.
Content visible to registered users only.
Please send again.
regg
James
02-29-2008, 07:41 PM
Updated for 3.3
Content visible to registered users only.
Thank you Dawzz i like it :) I will test this ^^
regg
Ap0s7le
03-10-2008, 04:52 AM
Hey all, nice to see this is still being used.
Dawzz, I appreciate your time updating and defending it. I read through the whole thread ;)
Thanks again,
-Casey
David
03-10-2008, 05:29 AM
Whoa! You are back!
Welcome! :)
James
03-10-2008, 07:52 AM
Content visible to registered users only.
Not a problem (i didnt know if you were still programming or not )
Visited your site a few times got a question ...
You hardcore? ;)
I am as far right as you can get ;)
Ap0s7le
03-11-2008, 05:23 AM
haha David my man, good to see all is well for you bro :)
James, aka Dawzz ;) haha if hardcore is what I think you mean then yes bro, lost my way a lil at times with a lot of turmoil in my life but yeah buddy.
Also I never quit programming, I actually moved and I'm the lead developer for a company in Washington. Been there for a few years now. I forgot all about this stuff, I came back by seeing one of David's post on Sitepoint. I was surfing it out of boredom as I laid in bed from being sick haha! I'm glad I did. I need to look into the new software, see what's been done.
Thanks for hooking me up there David :)
Later Gents,
-Casey
James
03-11-2008, 05:53 AM
:) yeah here we are known as "those people" in some gatherings ;)
Good to hear you are doing ok.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.