Featured Links in footer of PTC site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mantodeus
Forum Newbie
Posts: 4
Joined: Sat May 10, 2008 9:49 am

Featured Links in footer of PTC site

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Featured Links in footer of PTC site

Post by RobertGonzalez »

Are you asking for the logic used in getting the links that you want?
mantodeus
Forum Newbie
Posts: 4
Joined: Sat May 10, 2008 9:49 am

Re: Featured Links in footer of PTC site

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Featured Links in footer of PTC site

Post 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.
mantodeus
Forum Newbie
Posts: 4
Joined: Sat May 10, 2008 9:49 am

Re: Featured Links in footer of PTC site

Post 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)
User avatar
lafever
Forum Commoner
Posts: 99
Joined: Sat Apr 05, 2008 2:03 pm
Location: Taylor, MI

Re: Featured Links in footer of PTC site

Post 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.
mantodeus
Forum Newbie
Posts: 4
Joined: Sat May 10, 2008 9:49 am

Re: Featured Links in footer of PTC site

Post 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>
Post Reply