new to xenforo, want to add a simple modification

petermk

Member
Hi All,

I am new to Xenforo, just migrated my forum from vBulletin. In my old forum I had an item in the top menu that would link to a dynamic page on my website - www.mydomain.com/yyyy/mm/dd/

So, I had a pretty simple plug-in: $my_var = 'http://www.mydomain.com/' . date('Y/m/d') . '/';
Then, just add $my_var to a template and that was it.

How do I do something like that in Xenforo?

Thanks
 
It's in the top navigation right next to "Members." I know how to add a new navigation item, just looking for a way to add a variable to use in href. Is this something I should use a helper for?

Thanks
 
Last edited:
Ok, never mind. I did it with a callback tag.

Another question... is there a way to add a PHP array, so that I could loop through it in a template?

Thanks
 
Basically I have a cron job that goes through several RSS feeds, combines them (arranges by date, etc.) and saves the resulting XML and JSON files on my server. I had my own vBulletin plug-in that would take the XML file, loop through it and display the most recent 10 items on the forum's home page.
I want to do something like that in the xenforo sidebar.

Thanks
 
Top Bottom