LinX Forum Forum Index LinX Forum

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Published Links Not showing on front page

 
Post new topic   Reply to topic    LinX Forum Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
High Octane



Joined: 07 May 2007
Posts: 5
Location: midwest

PostPosted: Mon May 07, 2007 4:11 pm    Post subject: Published Links Not showing on front page Reply with quote

None of my published links show on the front page.
I'm using Joomla ver 1.0.12
LinX ver 1.0b
My site is located on a subdirectory http:wagnertech.net

Everything is working fine, able to confirm Reciprocal Links and e-mails, publishing shows no errors, I can see the link in the backend.

Any Ideas as to what to do/look for?

Thanks in advance
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
High Octane



Joined: 07 May 2007
Posts: 5
Location: midwest

PostPosted: Mon May 07, 2007 4:32 pm    Post subject: UpDate Reply with quote

O.K. it seems to be working now, Except for the LinX Exchange Mod.
Its only shows YOUR link and not the others?

I updated LinX form an older version, AFTER first UNINSTALLING the previous version.
Then removed the old Menu Link and installed a new one that linked to the updated LinX component. The OLD Menu Link stayed even after uninstalling the older version, and seemed to work, I highly suggest removing it and reinstalling it after any update.

Something I noticed and would like to see is a NUMBER before the Categories on the Main page that represents the number of submissions in that particular category.

This way Admins and Visitors can tell at a glance that there are submissions in that particular category.

By the way, Thank You for your time and efforts on a great addition to my site.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
CT Internet
Site Admin


Joined: 12 Jun 2006
Posts: 296
Location: Spain

PostPosted: Tue May 08, 2007 10:46 am    Post subject: Reply with quote

Hi High Octane,

You are welcome. Are you still having any issues with LinX?

Adding the number to the category is a good idea, I will try and add that for the next release.

Best regards,

Soren
_________________
Developer of LinX


Note: If you like LinX then please review it at the Joomla Extentions Directory
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CT Internet
Site Admin


Joined: 12 Jun 2006
Posts: 296
Location: Spain

PostPosted: Tue May 08, 2007 11:41 am    Post subject: Reply with quote

I have implemented this for the next release.

If you would like to manually apply this hack - do as follows:

Open the file /components/com_linx/linx.php

At about line 106-111 look for

Code:
    //Get the categories
    $sql = "SELECT * FROM #__linx_cats
            WHERE cat_published = '1'
            ORDER BY ordering ASC";
    $database->setQuery($sql);
    $rows = $database->loadObjectList();


After that, add the following few lines

Code:
      //Run through each category and count how many links are in it
      foreach ($rows as $key=>$row) {
       
         $sql = "SELECT count(id) FROM #__linx
                     WHERE cat_id = ".$row->id." AND link_status = 1";
         $database->setQuery($sql);
         $linkCount = $database->loadResult();
         
         $rows[$key]->link_count = $linkCount;
         
      }


Then in the file:

/components/com_linx/linx.html.php at line 67. Change:

Code:
        echo "<td width=\"50%\" align=\"left\"><a href=".sefRelToAbs("index.php?option=com_linx&task=list_links&cat_id=$row->id&Itemid=$Itemid") . ">".$row->cat_name . "</a></td>";


to

Code:
        echo "<td width=\"50%\" align=\"left\"><a href=".sefRelToAbs("index.php?option=com_linx&task=list_links&cat_id=$row->id&Itemid=$Itemid") . ">".$row->cat_name . "</a> (".$row->link_count.")</td>";

_________________
Developer of LinX


Note: If you like LinX then please review it at the Joomla Extentions Directory
Back to top
View user's profile Send private message Send e-mail Visit poster's website
High Octane



Joined: 07 May 2007
Posts: 5
Location: midwest

PostPosted: Tue May 08, 2007 12:59 pm    Post subject: RE Problems Reply with quote

Yes, I'm still having one small issue, but its with the module, it wont show any links besides the default link "yours" just shows:
Code:
Error: no links to display


I also did the .php edits that you have above... and it worked GREAT!
Just what I was looking for! I really don't need the module with this mod.

Thank You very much!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
CT Internet
Site Admin


Joined: 12 Jun 2006
Posts: 296
Location: Spain

PostPosted: Tue May 08, 2007 1:22 pm    Post subject: Reply with quote

Are you sure that there ARE any links in the category ID you have specified.

Click on the module in module manager and set what category ID you would like to display link from.
_________________
Developer of LinX


Note: If you like LinX then please review it at the Joomla Extentions Directory
Back to top
View user's profile Send private message Send e-mail Visit poster's website
High Octane



Joined: 07 May 2007
Posts: 5
Location: midwest

PostPosted: Wed May 09, 2007 6:56 pm    Post subject: Reply with quote

CT Internet wrote:
Are you sure that there ARE any links in the category ID you have specified.

Click on the module in module manager and set what category ID you would like to display link from.


My bad, The module only had a 1 "which was what your link was under" I changed it to a 6 to show the link I was referring to.

How would I show links for more than 1 category?

Thanks.
I would like to exchange our link as well.
Code:
<a href="http://www.wagnertech.net">WagnerTech's Mopar Community</a><br />WagnerTech.net is a full featured Community site that includes, Mopar Forums, Mopar Classifieds, Mopar Auctions, Mopar Dating, Live Chat, Mopar Parts Store,. Mopar Blog with News and Information from Daimler Chrysler, Mercedes-Benz & Mopar Performance. Stop on by and become part of our Family, Registration is FREE!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
CT Internet
Site Admin


Joined: 12 Jun 2006
Posts: 296
Location: Spain

PostPosted: Thu May 10, 2007 11:19 am    Post subject: Reply with quote

One module can only show links from one category, but you can copy the module in module manager and publish it somewhere else and change the cat id. So one module for each category.

If you would like to exchange links with me, then please submit your link through LinX Smile

/component/option,com_linx/task,add_link/Itemid,53/
_________________
Developer of LinX


Note: If you like LinX then please review it at the Joomla Extentions Directory
Back to top
View user's profile Send private message Send e-mail Visit poster's website
High Octane



Joined: 07 May 2007
Posts: 5
Location: midwest

PostPosted: Thu May 10, 2007 2:44 pm    Post subject: Just a thought Reply with quote

Thanks again,
I have submitted my link in the proper area.

One last thought, In the module, when there is no links yet, the text that shows says:
Code:
Error: no links to display

What would be better is to have it say:
Code:
No links to display, click here to Submit Your link now!
"or something along those lines"

The text would be a link to the submission page, or even a button.
anytinng but the words ERROR. LOL

PS Last thought:
I would prefer to be able to show all links in all categories in 1 module, rather than having to create 10+ modules just to show all the links.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
ashokvas



Joined: 20 May 2007
Posts: 4

PostPosted: Sun May 20, 2007 5:05 pm    Post subject: cannot see links in frontend Reply with quote

I see that two links are created in the admin side and they are published. But I do not see anything in the front end. Where or how should I look for the links?
Back to top
View user's profile Send private message
iwuh8u



Joined: 01 Jun 2007
Posts: 2

PostPosted: Fri Jun 01, 2007 11:24 pm    Post subject: Reply with quote

CT Internet wrote:
I have implemented this for the next release.

If you would like to manually apply this hack - do as follows:

Open the file /components/com_linx/linx.php

At about line 106-111 look for

Code:
    //Get the categories
    $sql = "SELECT * FROM #__linx_cats
            WHERE cat_published = '1'
            ORDER BY ordering ASC";
    $database->setQuery($sql);
    $rows = $database->loadObjectList();


After that, add the following few lines

Code:
      //Run through each category and count how many links are in it
      foreach ($rows as $key=>$row) {
       
         $sql = "SELECT count(id) FROM #__linx
                     WHERE cat_id = ".$row->id." AND link_status = 1";
         $database->setQuery($sql);
         $linkCount = $database->loadResult();
         
         $rows[$key]->link_count = $linkCount;
         
      }


Then in the file:

/components/com_linx/linx.html.php at line 67. Change:

Code:
        echo "<td width=\"50%\" align=\"left\"><a href=".sefRelToAbs("index.php?option=com_linx&task=list_links&cat_id=$row->id&Itemid=$Itemid") . ">".$row->cat_name . "</a></td>";


to

Code:
        echo "<td width=\"50%\" align=\"left\"><a href=".sefRelToAbs("index.php?option=com_linx&task=list_links&cat_id=$row->id&Itemid=$Itemid") . ">".$row->cat_name . "</a> (".$row->link_count.")</td>";


I tried this patch, however the item count does not show up on my site. Infact empty parenthesis show up beside the category. Can you please tell me what I am doing wrong ?

To see this bug, go to http://www.biomedicalontologies.com/index.php?option=com_linx

Cheers,
Jay
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    LinX Forum Forum Index -> Bug reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group