PHP Code or something for Link Blocks on my site.

Moderators: GSH, VSMIT, Commando

Post Reply
Shane Ward
Sober Scav
Posts: 24
Joined: Sun Feb 27, 2011 12:52 am
Location: England
Contact:

PHP Code or something for Link Blocks on my site.

Post by Shane Ward »

Hi all, I am hoping to pick the brains of any website forums experts out there that might have the slightest idea of what I am talking about : shock:

I have put a new portal (Adk Portal) on my website that everybody will see once they enter my site, now what I want to do is this.

I want to place "Blocks" where as a particular “block” will look at the Board link and then list all the posts inside as hyper linked shortcuts.

So when a visitor visits my website, the left hand block named: (Battlezone 2 Levels) would search the board URL (EG http://www.shaneward.net/index.php?board=18.0) and then list all the topics and then hyper link them so the user can click on the name inside the block and be directed straight to the topic

I also want it to be automatic so that if a new topic is added, it will be automatically included inside that block.

The code can be in HTML or php, but I have the feeling it will need to be a php code that can be inserted into the website Blocks section on my forum.

Hope someone can help or direct me to the code :)

Shane
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: PHP Code or something for Link Blocks on my site.

Post by Nielk1 »

Such code should already be available from wherever you got the portal from. It is clearly an SMF portal, not a side portal, so you have direct access to SMF functions to gather the data you need.

If it was external, I would tell you to make a simple page in the SMF that has the needed info using the SMF functions and then use a php include on the portal.
Shane Ward
Sober Scav
Posts: 24
Joined: Sun Feb 27, 2011 12:52 am
Location: England
Contact:

Re: PHP Code or something for Link Blocks on my site.

Post by Shane Ward »

Thanks for that, but unfortulently, I am not familuer in using the code or how to implimrnt it...

Shane
Post Reply