Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Changing position of Comments
Pages: 1 [2]   Go Down
  Print  
Author Topic: Changing position of Comments  (Read 7560 times)
0 Members and 1 Guest are viewing this topic.
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #15 on: September 28, 2010, 00:32:58 »

Hi everyone, I am new to posting but I've been reading your forums for a bit. I wanted to get in touch to see if anyone can help me adjust the placement of JComments on my site. Right now it is located after the article text but before my last advertisement of the page. Since installing JComments, my site's ad performance has dropped dramatically. I can't say it is definitely due to the installation - I love the plugin! I just noticed the timing and thought maybe I should try not to split the ad from the text.

Here is what I would like my layout to be:

Article
Ad
JComments

If anyone can help me to get this set up through code or otherwise, I would be very grateful! Unfortunately I am a writer first, Web site owner second, so I have a lot to learn!

Thank you in advance for any assistance!
Kate
Logged
gregy1403
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #16 on: September 28, 2010, 00:37:53 »

whoaaaa .. masterpiece  Cheesy

THANK YOU!

regards

P.s. link for proof reader mambot is not working http://www.joomlatune.com/downloads/proofreader/proofreader.systembot.zip
Logged
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #17 on: September 28, 2010, 03:22:09 »

Also, apologies if I posted my question in the wrong place - I am still getting the hang of JComments.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #18 on: September 28, 2010, 04:25:11 »

Here is what I would like my layout to be:

Article
Ad
JComments
If you're display Ad with a module read this: load module position between article content and jcomments. Otherwise if you're display Ad using some content plugin you need to change content plugin order (set JComments after Ad plugin) and edit Content - JComments plugin parameters - you need to set Content Event to onPrepareContent. Thats all.

whoaaaa .. masterpiece  Cheesy

THANK YOU!
You're welcome Wink

P.s. link for proof reader mambot is not working http://www.joomlatune.com/downloads/proofreader/proofreader.systembot.zip
Thank you! This file isn't needed for a years because it included in component's distributive. I'll remove link to it.
« Last Edit: September 28, 2010, 04:26:55 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #19 on: September 28, 2010, 08:20:48 »

Hi Smart,
Thanks for the help. I am sure my ad is set up as a module. I took a look at that link you provided but I am a little confused and intimidated.  I have to be honest, I know nothing about php. I almost broke one of my other sites last night trying to make a small change to a file.

Do you know if there is any other information I should review before attempting any changes? I have a friend who might be able to help but he is on vacation. I really appreciate your time and help! Thanks again!

Kate
Logged
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #20 on: September 28, 2010, 08:22:47 »

If I'm not mistaken, I would just add the following code to the file tpl_index.php

      //Load module position articlebottom
      
      $document   = &JFactory::getDocument();
      $renderer   = $document->loadRenderer('modules');
      $options   = array('style' => 'xhtml');
      $position   = 'articlebottom';
      echo $renderer->render($position, $options, null);

Is that right? I just worry I might break something.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #21 on: September 28, 2010, 13:12:19 »

Is that right? I just worry I might break something.
Yes, you're right. But before making any changes just do backup of this file. And if something goes wrong you'll be able to revert all changes by returning the original file back.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #22 on: September 28, 2010, 18:33:53 »

Thanks - I did a backup of the file and added the code. Nothing broke but nothing changed. Do I need to go into the Joomla back end and do something now too? Or did I need a different position than

$position   = 'articlebottom';

I am so sorry for all the questions - I really have a lot to learn, but I truly appreciate your patience and assistance!
Logged
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #23 on: September 28, 2010, 18:47:56 »

An interesting update... If I use the position name where my ad is currently located -- user6, it duplicates the ad with one above Jcomments where I want it, and the other one still below. It's very possible this is a super easy fix or a no-brainer, but I'm not sure how to fix it. Would love any help! Thanks for everything so far. Smiley
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #24 on: September 28, 2010, 19:03:52 »

You need to use another position or remove User6 position definition from your Joomla template.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
lifelovebeauty
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #25 on: September 28, 2010, 19:10:10 »

Brilliant! Smart, thank you so much - I am so happy you were able to help me. Removing from the template was perfect! I am hoping one day I can learn enough to know these things ahead of time. It all makes sense once I see how things work.

I really appreciate your time and help! Thank you!!!
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #26 on: September 28, 2010, 19:40:18 »

I really appreciate your time and help! Thank you!!!
You're welcome! Feel free to contact me with any questions about JComments.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
atomic
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #27 on: October 02, 2010, 22:34:55 »

Thanks for posting this, I was pulling my hair out trying to figure it out.

Logged
LizzyE
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #28 on: October 03, 2010, 03:55:06 »

Smart,

Thanks for all the help here.  I had been struggling with this for awhile too.

 Cheesy
Logged
Pages: 1 [2]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Changing position of Comments
 
Jump to: