Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12392
Latest: jimcarter
New This Month: 4
New This Week: 1
New Today: 1
Stats
Total Posts: 40375
Total Topics: 7106
Most Online Today: 38
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 24
Total: 24

Author Topic: Installing Awesome Post Ratings on non-default theme  (Read 366 times)

0 Members and 1 Guest are viewing this topic.

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 23
    • View Profile
    • Bulgarian Nationalist Forum
Installing Awesome Post Ratings on non-default theme
« on: September 25, 2020, 10:24:09 pm »
Hello,
In my forum, I have installed a beta version of Potato theme for testing:

https://github.com/SychO9/smf-potato-theme

When I switch forum to Potato theme, APR mod does not appear, neither in topics, nor in user profiles.
The Potato theme uses its own Display.template and Profile.template files.

How to edit these files to make APR working with Potato theme? Or I need to uninstall and then reinstall APR mod?
« Last Edit: September 25, 2020, 10:25:48 pm by Hatshepsut »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Installing Awesome Post Ratings on non-default theme
« Reply #1 on: September 25, 2020, 10:28:22 pm »
You can edit upload the mod to https://www.smfhacks.com/smf-package-parser.html and file the manual install instructions for the theme and apply them to your theme.

Or you can uninstall. Then reinstall and attempt to install on other themes.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Like Like x 1 View List

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 23
    • View Profile
    • Bulgarian Nationalist Forum
Re: Installing Awesome Post Ratings on non-default theme
« Reply #2 on: September 26, 2020, 06:54:31 am »
Thanks, the parser was very useful :) But I pasted code for Display.template.php on another place, after that:

Code: [Select]
// Show the post itself, finally!
 echo '
 <div class="post">';
 echo '
 <div class="inner" data-msgid="', $message['id'], '" id="msg_', $message['id'], '"', $ignoring ? ' style="display:none;"' : '', '>
 ', $message['body'], '
 </div>
 </div><!-- .post -->';

Else if the code is pasted on default place, the APR icons do not appear (maybe this is behavior of Potato theme only).

For Profile.template.php, there are no problems.
« Last Edit: September 26, 2020, 06:56:33 am by Hatshepsut »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Installing Awesome Post Ratings on non-default theme
« Reply #3 on: September 26, 2020, 04:18:27 pm »
Can you attach your Display.template.php file
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 23
    • View Profile
    • Bulgarian Nationalist Forum
Re: Installing Awesome Post Ratings on non-default theme
« Reply #4 on: September 26, 2020, 10:29:45 pm »
Yes, that's Display.template.php file of Potato theme, including APR code

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Installing Awesome Post Ratings on non-default theme
« Reply #5 on: September 26, 2020, 11:54:25 pm »
Code looks ok. Make sure you check other peoples posts they do not appear on your own.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
8526 Views
Last post December 28, 2009, 03:04:15 pm
by schizophrenia
0 Replies
3434 Views
Last post October 16, 2010, 02:23:48 am
by morokat
2 Replies
3466 Views
Last post December 18, 2013, 11:50:32 pm
by GTN
19 Replies
20612 Views
Last post August 31, 2016, 01:24:38 am
by oskaaay
0 Replies
1183 Views
Last post September 06, 2017, 06:49:06 pm
by fussilet

+- Recent Topics

Feature Request for Classifieds by SMFHacks
October 21, 2020, 10:30:17 pm

[Mod] ezPortal by Alistair
October 18, 2020, 11:00:17 am

ezPortal homepage on mobile browser (SMF 2.1 RC3) by Alistair
October 18, 2020, 05:47:56 am

Search box? by Shades
October 10, 2020, 01:13:00 pm

Attachment images Upsidedown or Sideways by Shades
September 27, 2020, 07:01:31 am

Installing Awesome Post Ratings on non-default theme by SMFHacks
September 26, 2020, 11:54:25 pm

Listings page image not showing by Shades
September 23, 2020, 03:05:06 pm

prettyurls - TroubleShooting.wiki by SMFHacks
September 22, 2020, 04:24:47 pm

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Powered by EzPortal