<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:why do the site url's not show (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:why do the site url's not show
#1118
aelara (User)
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Re:why do the site url's not show 2 Years, 5 Months ago Karma: 0  
That worked great, thanks. look forward to the other bit
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1119
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:why do the site url's not show 2 Years, 5 Months ago Karma: 9  
Thanks to aelara's donation I was able to find someone to write the javascript portion needed to present a plain URL and still keep the outbound click counts.

I've created this patch for version 2.1.0.1b SEF It includes a new /out.php
and a new /includes/functions.php file and can be downloaded here

The included readme.txt file . . .
QUOTE:

This patch is for Dew-NewPHPLinks version 2.1.0.1b SEF

This patch does not use the "outer_frame" method of linking to the sites listed in your installation.
The setting of the outer_frame option is ignored.

What this patch does....
Presents plain URLs on category, whats cool, popular, new pages, as well as search results. Outbound clicks will still be counted
when using a javascript capable browser.

Corrects out.php to ensure outbound clicks are counted, as long as the previous click was from a different IP address


Installation..

Rename your current files /out.php and /includes/function.php to something like /out/php.bck and /includes/functions/php.bck
Upload the new /out.php and /includes/functions.php files.

That's it
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1433
FayKname (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:why do the site url's not show 1 Year, 5 Months ago Karma: 0  
I'm interested in more about how to disable the outbound click counting so I can use just a plain html hardlink to the sites in my directory. What line of code would I have to replace and with what to have this done?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1437
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:why do the site url's not show 1 Year, 5 Months ago Karma: 9  
After backing up your include/functions.php file you'd need to tweak both the draw_sites function which starts around line # 1175 and the draw_search_sites function, around line # 1347

Line 1234 for example
Code:

<a target=\"blank\" href=./out.php?ID=" . $sites_array[site_id] . ">";
would become
Code:

<a target=\"blank\" href=\"'.$sites_array["site_url"]. "\">";
BUT,, and there is always a but, since outbound clicks would not be counted, the whats popular page would be meaningless, so it would need to be removed from the navigation. Despite what is commonly believed, the method of linking to a site via a file like out.php which does a 301 redirect is seen by Google as a back link from your site to the remote site.. but of course no one believes this. Do a Google search for "link:http://www.freemusicvideosnow.com/" (that's my music video site btw) It is listed in the demo install here on Dew-Code and is indeed seen as a back link from here http://www.dew-code.com/demo/directory/3.html .
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/08/18 07:51 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008