NamePros.Com (http://www.namepros.com/)
-   Website Development (http://www.namepros.com/website-development/)
-   -   Sedo Script Help (http://www.namepros.com/website-development/467468-sedo-script-help.html)

Billy! 05-09-2008 07:16 PM

Sedo Script Help
 
Hi Guys,

I am trying to implement the below sedo script into my vbulletin forum, but nothing is showing up. The script is supposed to show Sedo's latest TOP Domains / Recent Sales

Basically the same as the main forum page of namepros.

Some help on how to implement this correctly would be greatly appreciated.

https://sedo.com/partner/example/in...=&language=us#1

Quote:
<!-- Sedo Code -->
<?php # Script for displaying the topdomains #

# file with list of topdomains from Sedo
$filecontent = file ("http://www.sedo.com/txt/topdomains_e.txt");
#

$x =0;
$topdomains = array();
while(list($line) = each($filecontent)) {
$topdomains [$x][0] = substr($filecontent[$x],0,strpos($filecontent[$x],'~'));
$topdomains [$x][1] = substr($filecontent[$x], strpos($filecontent[$x],'~')+1, (strlen($filecontent[$x])-strpos($filecontent[$x],'~')-3) );
$x++;
}

# Displaying the domains & prices as table

echo '<table border=0 cellpadding=2 cellspacing=0>';
echo '<tr><td bgcolor=#e0e8ef><span style="font-size:11px; font-weight:bold;">
TOP domains for sale</span></td></tr>';

for ($i=0;$i<10;$i++) { ?> <tr><td bgcolor=#f0f0f0><a href="http://www.sedo.com/search/showdetails.php4?partnerid=12824&language=e&keyword=<? echo $topdomains[$i][0]; ?>" target="_blank">
<span style="font-size:10px; font-weight:bold;">
<?php echo $topdomains[$i][0]; ?></span></a></td></tr>
<tr><td bgcolor=#ffffff><span style="font-size:8px">
<?php echo $topdomains[$i][1]; ?></span></td></tr>
<?php
}
echo '</table>';
?>
<!-- Sedo Code Ende -->


netzilla 05-09-2008 08:03 PM

1 Attachment(s)
Billy - I ran this exact code and it works for me. See attachment. Where exactly are you trying to put this on your vb ?

Billy! 05-09-2008 08:20 PM

It is currently on my forumhome page on the right hand side underneath the sedo domain search box ... but it is not showing.

Do I enter the exact script or do I have to change it?

Thanks heaps for replying to my question. rep added!

netzilla 05-09-2008 08:28 PM

Ok...after taking a look it appears that the location you chose to add the script to is not a .php page therefore the code is not being executed properly. Do a view source in your browser and search for <!-- Sedo Code --> and will see that right below that the php code is showing there and it should not be.

DomainManDave 05-09-2008 08:53 PM

Edit: nevermind

Billy! 05-09-2008 08:57 PM

Originally Posted by netzilla
Ok...after taking a look it appears that the location you chose to add the script to is not a .php page therefore the code is not being executed properly. Do a view source in your browser and search for <!-- Sedo Code --> and will see that right below that the php code is showing there and it should not be.



Thanks, so what do I need to do to get it working? Sorry, bit confused, do I add a new template and call it sedo.php and add the code also to that template?

netzilla 05-09-2008 09:12 PM

I don't have anywhere to look at the code because I don't have access to a vb forum...however...in order for the php code to execute properly it must be executed via the php interpreter and typically all that requires is a .php file extension. Yes, give the template thing a try with the .php extension and put your code in that.

Billy! 05-09-2008 09:28 PM

Originally Posted by netzilla
I don't have anywhere to look at the code because I don't have access to a vb forum...however...in order for the php code to execute properly it must be executed via the php interpreter and typically all that requires is a .php file extension. Yes, give the template thing a try with the .php extension and put your code in that.




I can give you access if you could help me get it working, I have no clue.

Anyone?

Billy! 05-10-2008 01:31 AM

FIXED AS PER HERE:

http://www.vbulletin.com/forum/show...718&postcount=1

netzilla 05-10-2008 06:53 AM

Cool! I am glad you got it going :)


All times are GMT -7. The time now is 12:58 PM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0