Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 161
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 152
Total: 152

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

0 Members and 1 Guest are viewing this topic.

Offline Hatshepsut

  • Downloads Pro Customer
  • Jr. Member
  • *****
  • Posts: 69
  • Perfectionist
    • 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: 16452
    • 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

  • Downloads Pro Customer
  • Jr. Member
  • *****
  • Posts: 69
  • Perfectionist
    • 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: 16452
    • 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

  • Downloads Pro Customer
  • Jr. Member
  • *****
  • Posts: 69
  • Perfectionist
    • 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: 16452
    • 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
19 Replies
36456 Views
Last post August 31, 2016, 01:24:38 am
by oskaaay
0 Replies
3257 Views
Last post September 06, 2017, 06:49:06 pm
by fussilet
7 Replies
10754 Views
Last post March 28, 2021, 03:38:52 am
by replayuk
0 Replies
26319 Views
Last post March 13, 2022, 12:34:51 pm
by SMFHacks
24 Replies
13698 Views
Last post April 23, 2022, 04:33:34 pm
by DebT

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal