Page 1 of 1

Featured Links in footer of PTC site

Posted: Sat May 10, 2008 10:00 am
by mantodeus
Hello

I am very curious how these guys http://ptcbux.com/ had built in the featured links This is template of diffusion studios and many sites use it but it cost 200$ :) I tried but I can't do it well.Below I will post examples of PHP featured links which are used in other templates.If you can help me I will be very very thankful,

Code: Select all

<? if($settings[flink_style]==2 && $flinklist!="") {
   echo "<h2>Featured Links</h2>
   <div style=\"width: 145px;\">$flinklist</div>";
} ?>
Another :

Code: Select all

<? echo iif($settings[flink_style]==2,get_content("Featured Links","$flinklist<marquee><b><a href=\"$settings[flinkdefaulturl]\">$settings[flinkdefault]</a></b></marquee>",180)."<br>"); ?>
This is for table:

Code: Select all

 
<!-- Featured Links (Table Style) --><?if($settings[flink_style] == 1) {echo "<br><b>Featured Links</b><br><table cellpadding=2 cellspacing=1 border=1>$flinks</table>";}?>
My question is how to reach this sorce code...

Code: Select all

<div id="footerLinksWrapper" class="cBlock"><div id="footerLinks" class="cBlock">
      <div class="cont">
 
         <a href="fadclick.php?id=727" target="_blank"><marquee>Get Hundreds Of People To Visit Your Ptcbux Referral Link For Free And Automatically</marquee></a>         <div><a href="flinkclick.php?id=147" target="_blank">Featured Get Paid Website - RingOfCash.com</a></div>      </div>
   </div></div>
 
</div>
CSS don't have matter,I need only PHP code.

Best Regards

Re: Featured Links in footer of PTC site

Posted: Sat May 10, 2008 12:20 pm
by RobertGonzalez
Are you asking for the logic used in getting the links that you want?

Re: Featured Links in footer of PTC site

Posted: Sat May 10, 2008 12:23 pm
by mantodeus
Everah wrote:Are you asking for the logic used in getting the links that you want?
Exactly ! I want to integrate them like example site,in footer.

Re: Featured Links in footer of PTC site

Posted: Sat May 10, 2008 12:25 pm
by RobertGonzalez
It is just like banner rotation. Basic you have a collection of links (with associated data) in your database and randomly call one, two, however many you need and place them on the page.

Re: Featured Links in footer of PTC site

Posted: Sat May 10, 2008 12:35 pm
by mantodeus
I tried that but I can't display them correctly.This is the reason for my questions,to ask for help(example or something else)

Re: Featured Links in footer of PTC site

Posted: Sat May 10, 2008 12:44 pm
by lafever
How are you storing them? If in a database your query would simply be

Code: Select all

 
SELECT * FROM tablename ORDER BY RAND() LIMIT 2
 
Or change 2 to how many links you'd want. We could offer more assistance with some code.

Re: Featured Links in footer of PTC site

Posted: Sat May 10, 2008 1:23 pm
by mantodeus
Ok check this out:

Code: Select all

<div id="footerLinksWrapper" class="cBlock"><div id="footerLinks" class="cBlock">
        <div class="cont">
 
            <a href="fadclick.php?id=722" target="_blank"><marquee>Get Hundreds Of People To Visit Your Ptcbux Referral Link For Free And Automatically</marquee></a>           <div><a href="flinkclick.php?id=152" target="_blank">Blast 4 Traffic</a></div>      </div>
    </div></div>
 
</div>
This is HTML code of Featured Links in PTCBux http://ptcbux.com/

This is php code for featured links:
1 template:

Code: Select all

<? echo iif($settings[flink_style]==2,get_content("Featured Links","$flinklist<marquee><b><a href=\"$settings[flinkdefaulturl]\">$settings[flinkdefault]</a></b></marquee>",180)."<br>"); ?>
2 template:

Code: Select all

<?if($settings[flink_style] == 1) {echo "<br><b>Featured Links</b><br><table cellpadding=2 cellspacing=1 border=1>$flinks</table>";}?>
My question is how to integrate this code into my page,I want to achieve look like ptcbux.Featured links to be in footer.When I add this line

Code: Select all

<? echo iif($settings[flink_style]==2,get_content("Featured Links","$flinklist<marquee><b><a href=\"$settings[flinkdefaulturl]\">$settings[flinkdefault]</a></b></marquee>",180)."<br>"); ?>
in my layout my sorce look like this

Code: Select all

<div id="footerLinksWrapper" class="cBlock"><div id="footerLinks" class="cBlock">
        <div class="cont">
        
    <div class="contentBox">
        <h2><div><a href="flinkclick.php?id=1" target="_blank">Amazing site which pay you for playing games</a></div><hr><marquee><b><a href="index.php?view=prices">Advertise Here</a></b></marquee></h2>
 
        <div class="content"></div>
    </div>
<>          </div>      </div>
    </div></div>