Dynadot โ€” .com Registration $8.99

Sedo Script Help

Spaceship Spaceship
Watch

Billy!

Established Member
Impact
12
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/integration_codes.php?tracked=&partnerid=&language=us#1

<!-- 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 -->
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Billy - I ran this exact code and it works for me. See attachment. Where exactly are you trying to put this on your vb ?
 

Attachments

  • script.gif
    script.gif
    2.5 KB · Views: 73
1
•••
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!
 
0
•••
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.
 
0
•••
Edit: nevermind
 
0
•••
netzilla said:
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?
 
0
•••
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.
 
0
•••
netzilla said:
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?
 
0
•••
0
•••
Cool! I am glad you got it going :)
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back