Support Forum
Hi,
I noticed the counter views is reported only in the >>>Forums>>>>>All Topics List under the
Posts xx number and views xx number.
Could be possible to add the views number when reading the actual topic page?
Perhaps under the Topic's name heading ( that is on my theme blue box )
just above the the very first thread/submission?
Second question with A TOPIC IN A LOCKED POSITION:
Under the forum's topics list instaed to have the usual speach bubble icon (sp_TopicIcon.png)
is there any chance to replace that icon with a larger version with a locking symbol?
I know the script as implemented a tiny locking version, but not everyone pays too much attention to the centre or the right hand/side columns, or better still not everybody has a good eye site.
On the olden days , well not that old visitors could spot straight away if a topics was locked.
Thank in advance
Antonio
The first request you can do now by simply adding a call to the correct template display function to your SP theme template for displaying topics (spTopicView.php). This would take the form of:
sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'));
Where the 'Views' is the label that will be used.
The second request would require us to put in some coding support - and it is not a bad idea to define a custom icon for this. I will open a ticket for it sp we can discuss it here. In the meantime there is a CSS class defined for the locked topic row - literally the class of .spLockedTopic - so you could at least use that - perhaps to change the background colour for example.
YELLOW
SWORDFISH
|
Many thanks.
On my (theme) spTopicView.php file
on line 86 there is this code line:
sp_SectionStart('tagClass=spTopicViewSection', 'topic');
soon after that line I included your suggested code:
sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'));
Yes I can see the views: xx number but it will include the reading on the middle of the main topic heading
but I was hoping to include it just below the main Topic's Name header.
I even tried to remove the div class like this:
sp_TopicIndexViewCount('', __sp('Views'));
But didn't make any difference
Your help is much appreciated
Yellow Swordfish said
Well - the display function for the topic name is sp_TopicHeaderName() so try it underneath that...?
I tried in different line but no joy.
But I found the solutions in the css file, all the center and right column are with horizontal centred position.
I changed the position by replacing with left code.
And now the view centre is just below the topic header.
Many thanks
Don't forget - As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)
YELLOW
SWORDFISH
|
1 Guest(s)