making new feature for my forum

Started by jensvanherck, December 28, 2009, 03:27:10 PM

Previous topic - Next topic

jensvanherck

greeting,

I just have a litle question about making a new feature for user profiles on my forum well I was wondering..
so you have this for example=> /index.php?action=profile;u=1;sa=showPosts
ok so how can I get it to load an other feature by going to a link like => /index.php?action=profile;u=1;sa=submittedlinks

thank you for your time,
Jens Van Herck


Arantor

At a minimum you need to modify the big array where it defines all the different parts of the menu, then define the function that the subaction would trigger.

Go read Profile.php in the first instance, and take it from there.
Holder of controversial views, all of which my own.


jensvanherck

ok now i have an error showing up Unable to load the 'submittedlinks' template.  but i did add a template fille for that tot the directory of my theme .. what now ?

Arantor

So what file did you add and what does it contain? Did you call loadTemplate with the appropriate file?
Holder of controversial views, all of which my own.


jensvanherck


Arantor

Holder of controversial views, all of which my own.


jensvanherck

#6
ow i fixed it i made a typo in the template function xD but now i see an other problem $context['member']['ID'] doesnt give the member id of whom im viewing the profile

Arantor

Where do you ever see uppercase in SMF? As per the rest of the stuff in the profile, $context['member']['id'].
Holder of controversial views, all of which my own.


jensvanherck

ah yes i see and i also forget to cut away a LIMIT in the mysql query so it couldnt get any results

Advertisement: