1
Shiva
News module Hack - Headline picture / thumbnail
  • 2008/2/22 11:10

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


I am thinking of writing a hack for the News module so you can upload a picture for each news item. The picture will be used on the main news item page and and thumbnail version of it can be displayed per headline. Admin will be able to select how pictures should be displayed e.g. top right, center, top right.

So has anyone done anything like this already before spend time on this - I suspect a lot of people would find it useful.

Comments?

Cheers,

Shiva

2
maydo
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/22 11:22

  • maydo

  • Just popping in

  • Posts: 67

  • Since: 2004/12/30


very good idea
wasn dess
www.remixland.de

3
Shiva
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/22 11:44

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Thanks. I just had a look at your website:http://www.remixland.de

And it looks like you have similar functionality already. Did you hack it yourself?

4
akor__
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/22 14:22

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


oh
what i see at www.remixland.de ?? that is Treason for News's modulde users
i searching for long time for that hack and i didn't find it, there are modfied verision of module verison 1.5 have that hack but it dosn't work with me,
shiva, I have tried to make that hack But I failed becouse the php code of module are very hard and I do not have much experience at php
i waiting for to see your hack , please tell us when you finished it

5
maydo
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/22 14:49

  • maydo

  • Just popping in

  • Posts: 67

  • Since: 2004/12/30


its not hacked, standard news module


im adding the images manually
it would be perfect if u can write a hack for adding and resizing images automaticly, that would make much easier adding news
wasn dess
www.remixland.de

6
Shiva
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/23 23:08

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Hi Guys,

I have complete a first version of the picture hack. Let me know if you get the chance to try it.

Find the zip file with instructions attached at this locations:
http://www.evucan.com/free/

Cheers!

7
akor__
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/25 1:00

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


see shiva
i test your hack
but it seem there are a proplem of that
1 - when i try to edit the posts there are a big error, i have a page with only "Edit Article"
that's the error i have, in debug mod i have that error in storyform.inc.php you have edit it that is Quote:

Notice: Undefined variable: storyid in file /modules/news/include/storyform.inc.php line 110
Notice: Undefined variable: storyimage in file /modules/news/include/storyform.inc.php line 115
Notice: Undefined variable: storyimage in file /modules/news/include/storyform.inc.php line 122

i have 3 idea to your hack
1 - add new filed named "Photo Name" it will add with image as it name , this name will be shown at image select menu instead the image url name .
2 - module's blocks shown thumbnail verison

Following idea out of you thoughts, but it would be useful for all module's users

3 - try to add new filed named "Writen by ..." not "posted by" and that filed will be text box and one eles named "source from".

8
akor__
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/25 1:11

  • akor__

  • Just popping in

  • Posts: 23

  • Since: 2007/10/7


oh i forget something try to make a readme verision have how to install you hack with some stip by adding your code and your modfied by handing , becouse if there conflict with anthor hack.

9
rgauci
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/27 23:13

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I cannot edit any pages errorFatal error: Call to undefined function: getfieldbyid() in .../modules/news/include/storyform.inc.php on line 111

Also I cannot see any images or thumbnails that should come up with the article.

Hope this module works please can you see how to fix this error?
Be Set FREE!

10
Shiva
Re: News module Hack - Headline picture / thumbnail
  • 2008/2/29 6:27

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Try the new version of the hack:
http://www.evucan.com/free/News Module Picture Hack 0.1.zip

Once someone can confirm it works on their XOOPS I will incorporate new functionality.

Cheers!
:)

Login

Who's Online

68 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 68


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits