PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member jincesoft
~ New Today: 0
~ New Yesterday: 0
~ Overall: 4306

~ People Online:
~ Visitors: 11
~ Members: 0
~ Total: 11
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 9 February


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

- aikons.net - PHP-Nuke Services Forum Index


This topic is locked: you cannot edit posts or make replies. Page 1 of 1
Add Category Logo to main page
Message Author
Reply with quote
Post Posted: Wednesday 15 November, 2006 18:29

Hello,

I was just wondering if it's possible to add the category logo to the main page, right beside the source of the articles logo.

I have "all categories" set to show headlines on the main page. It would be helpful if the category logo showed as well. Kind of like how the submit news module works.

Has anybody already done this?

If anybody know how to do this, I would greatly appreciate it.

Thanks in advance!

View user's profile Send private message
Reply with quote
Post Posted: Thursday 16 November, 2006 02:16

I don't think it will look better.
There will be too much images in the feed page[every feed will have this image too].

But it can be done. Everything is possible.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 16 November, 2006 16:36

What if the category image replaced the source image?

I'd really like the category image to appear somewhere on the main page.

I'm not sure how complicated it is to configure that, however if it isn't too complicated I would be interested.

View user's profile Send private message
Reply with quote
Post Posted: Thursday 16 November, 2006 21:31

Where?

Just on the first page on the module or just when browsing the feeds categories?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Friday 17 November, 2006 01:01

Hi Aikon,

Just on the first page module. I like the fact that I can show multiple categories on the first page however I do think it's useful if the different categories were identified.

I appreciate your responses Smile

Thanks

View user's profile Send private message
Reply with quote
Post Posted: Sunday 19 November, 2006 01:02

Sorry for late reply[somehow I forget about your post].

What your are asking can rise other issues:

Example: If the feeds from first page of the module come from all categories, what images[from what category] should be shown.

If you have one or two categories I guess it's not big deal but think about when we are talking about 6[or up] categories.

Don't you think the whole page will be overloaded with images?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 19 November, 2006 20:00

Hey Aikon,

Thanks for the reply.

Quote:
Example: If the feeds from first page of the module come from all categories, what images[from what category] should be shown.


In the multiheadlines admin area where you can create and edit categories, it asks you what image is associated with this category. These are the images that I am suggesting appear on the main page beside the appropriate article.

Quote:
If you have one or two categories I guess it's not big deal but think about when we are talking about 6[or up] categories.

Don't you think the whole page will be overloaded with images?


I don't think this will be a problem. Doesn't the submit news module work in the same way? I am suggesting something like that.

When a visitor is submitting a news article, he is asked which category. He chooses a category whether theres 1, 2 or 6 choices. He then submits the news and then the category images shows up beside the news article.

It works great for submit news. I just thought it could also work well with multiheadlines. I don't know exactly what's involved to make this happen or if it's even possible. It's just a suggestion.

Thanks

View user's profile Send private message
Reply with quote
Post Posted: Sunday 19 November, 2006 21:16

I understand perfectly for the first time what you were saying.
You can't compare MH with "News" module, can't you see that every feed is in fact only a small portion from the whole article!
Anyway.
Open index.php look for the[inside function constrtable]
Code:
if ($showlogo=="1") { 
line and just above add:
Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_multiheadlines_news WHERE news_id='".intval($news_id)."'"));
$catimg = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_multiheadlines_categ WHERE categ_id='".$row["news_cat"]."'"));

and after, two or three lines below search for:
Code:
$table .=   '<a href="'.$siteurl.'" target="_blank"><img src="modules/'.$module_name.'/images/logos/'.$image.'" width="60" height="20" border="0" alt="'.$urlname.'"></a>';

and replace with:
Code:
$table .=   '<img src="modules/'.$module_name.'/images/categories/'.$catimg["categ_image"].'" width="60" height="20" border="0" alt="">  <a href="'.$siteurl.'" target="_blank"><img src="modules/'.$module_name.'/images/logos/'.$image.'" width="60" height="20" border="0" alt="'.$urlname.'"></a>';

Now before every logo you should have a category image.[But you must have on every category a image].

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 20 November, 2006 22:48

Hey Aikon,

Thanks for the reply.

Quote:
You can't compare MH with "News" module, can't you see that every feed is in fact only a small portion from the whole article!


I understand, I was just comparing the category image part of it.

What you replied with is exactly what I was looking for Smile.

I am having trouble with part of the code;

Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_multiheadlines_news WHERE news_id='".intval($news_id)."'"));
$catimg = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_multiheadlines_categ WHERE categ_id='".$row["news_cat"]."'"));


Whenever I enter it, no articles appear and my right hand blocks disappear. Am I doing something wrong?

Thanks again for all your help.

View user's profile Send private message
Display posts from previous:
This topic is locked: you cannot edit posts or make replies. Page 1 of 1
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
  


Page Generation: 0.35 Seconds