Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Can we add the counter reads + a Large Forum lock icon?
Avatar
Condorino47
Birmingham UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 6:45 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 18, 2013 - 9:06 am

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.

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Condorino47
Birmingham UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 10:43 am

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

 

 

 

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 18, 2013 - 11:16 am

Well - the display function for the topic name is sp_TopicHeaderName() so try it underneath that...?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Condorino47
Birmingham UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 11:24 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 18, 2013 - 12:10 pm

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/)

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626