Page 1 of 1

PHP Code or something for Link Blocks on my site.

Posted: Tue Jul 05, 2011 5:46 pm
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

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

Posted: Tue Jul 05, 2011 6:43 pm
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.

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

Posted: Tue Jul 05, 2011 7:45 pm
by Shane Ward
Thanks for that, but unfortulently, I am not familuer in using the code or how to implimrnt it...

Shane