Support Forum
In the Group View the 'nicedate' option is used in the function: sp_ForumIndexLastPost()
In the Forum View in the functions: sp_TopicIndexFirstPost() and sp_TopicIndexLastPost()
In the Topic View in the function: sp_PostIndexUserDate()
And in the List View in the function: sp_ListLastPost()
All of these template functions can be found in the relevant view functions file in the /forum/content folder.
And of course all are called from the appropriate templates.
'nicedate' is set on as the default. Other options are 'date' and 'time'. So if you wanted to switch from nicedate to both date and time then you could use
...nicedate=0&date=1&time=1...
for example.
YELLOW
SWORDFISH
|
You should never change the function code. You change the parameters in the template call to the function. Parameters are done the say way that Wp does them in their template tags.
The available parameters are listed at the top of each function (these will be documented) and any you want to change from the default you pass in the template where it is called. each parameter requires an ampersand between them. I gave you the string to use in that last post I made. If you look at the templates you will see how this is done.
YELLOW
SWORDFISH
|
OK I have reset all the arrays, however I am still confused [Image Can Not Be Found]
In the forum/content folder there is sp-group-view-functions.php where I can find the function sp_ForumIndexLastPost(). I know now that I should not meddle with the array below it but I can't seem to find the function call in the templates. I presume that you are referring to the theme templates so if you tell me which file calls the function sp_ForumIndexLastPost() I'll figure the rest out myself.
Thanks for the lessons by the way. On the plus side if I can figure this stuff out you should be encouraged !
Well the main template file names are consistent with the functions file. As in spGroupView.php. This matches and primarily uses the functions that are found in the sp-group-view-functions.php file. Same for 'Forum View' and 'Topic View'.
if you are still using the iForum theme though, that has a few extras... It also does not use ALL of the template functions as it is a more minimal and experimental theme.
YELLOW
SWORDFISH
|
My theme is based on the default theme. I have opened spGroupView.php and I found the sp_ForumIndexLastPost , I did actually look there before asking earlier but had left the () on the end of my search string and my text search didn't find it - doh! That's how much of a newbie I am.
Could you just tell me by demonstration how I should modify the following code:
sp_ForumIndexLastPost('tagClass=spInRowPostLink',__sp('Last Post'));
Many thanks
1 Guest(s)