More news type blocks...

Post Reply

Topic author
Twizted
Active Member
Posts: 15
Joined: 25. March 2009 20:37

More news type blocks...

Post by Twizted »

I am looking to make another news type block for a small section of my header that will have "Important" updates posted to it. Could someone please advise me one what I would need to do to duplicate the news.php and news.html so that I have no conflicts as well as adding configuration into the ACP. Thanks

Topic author
Twizted
Active Member
Posts: 15
Joined: 25. March 2009 20:37

Re: More news type blocks...

Post by Twizted »

So I tried doing this myself... It was epic fail.....

I basically went through all the files for the board3 install and duplicated all instances of code pertaining to the news block. I then added a updates.php and updates.html file for the style and block. Updated the Database with the module information and portal_config info... I thought it was going to work well until I tried using it and at first things looked promising... I managed to get the ACP part working albeit it was not under the .Mod tab it was in its own tab called "Updates" for some reason. But then I purged and refreshed the page and BAMMM!!! Massive Fail, All sorts of sql and other errors....

So, I am definitely going to need some assistance with this one.. I would very much appreciate it.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: More news type blocks...

Post by Kevin »

Well, this is not a "quick" or "small" modification, as this is quite complex to achieve.
A beginning might be to show us your modified codes. You have to rename a bunch of variables, but keep the ones for the function of getting the posts, just bind them to a specific forum.
Although i could not promise, that i have the time to help you - as i said - it's quite complex and takes time.

But why don't you take the announcements block for your purpose?
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Twizted
Active Member
Posts: 15
Joined: 25. March 2009 20:37

Re: More news type blocks...

Post by Twizted »

FACE ---> :oops: <--- PALM

I never even thought of that...

Ok, I have that setup... but... There is a problem.... I need to include the attachment, but.... I need to make that attachment smaller... resize it so that it fits my given area.... Is this possible....

You can see the current problem by going to http://dragonmodz.eccomputerwizards.com/portal.php .....
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: More news type blocks...

Post by Kevin »

Uh - that looks bad! :shock:
Hm, this is another story. I believe their has been a thread here aboard about auto-resizing attached images with another mod.
Give it a shot and search for it. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Twizted
Active Member
Posts: 15
Joined: 25. March 2009 20:37

Re: More news type blocks...

Post by Twizted »

Well, I can honestly say I have looked lol... I have looked all over the forums here and can not find a solution for resizing the images that are displayed in announcements and news

I found another issue as well... It puts the file name, comment and views under the image.... I found that this can be removed in the attachments.html file but I do not want to remove that for the forums, only for the ones in announcements and news. Can you please advise how I might handle this? I would be willing to donate to the site for the assistance...

Thanks

Topic author
Twizted
Active Member
Posts: 15
Joined: 25. March 2009 20:37

Re: More news type blocks...

Post by Twizted »

Any guidance would be appreciate... :)

Thanks
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: More news type blocks...

Post by Kevin »

I just made a guide on adding a second news block:
Second news block / zweiter News Block
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
Post Reply

Return to “Modification Requests”