Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
alexwise
Regular
Regular



Joined: Oct 15, 2005
Posts: 80

PostPosted: Fri Sep 22, 2006 5:34 pm Reply with quote

What I need to do is take out the title in message box's/table.

When I mean message box's I mean the ones on the main page of the site, for example the one right at the top which you can see a link to edit in admin.
Hope that makes sense, I tryed looking in modules for "messages" to try and delete the part which puts the title in the table but it isnt there in modules.
And if you just put no title in the massage in admin the box/table doesn't show on the main page.

Can anyone help with this?

Thanks guys, Alex.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Sep 22, 2006 5:48 pm Reply with quote

why?
you are the only one as admin that can see it..
 
View user's profile Send private message
alexwise







PostPosted: Fri Sep 22, 2006 5:56 pm Reply with quote

No not the admin link to edit it, but the title of the box, for example if your in admin and you click on messages and make a new message with the title "Test1" that will show up on the top of the message on the main page.

Or on this site one of the message box titles is "RavenNuke76(tm) Version 2.02.02 Released!"
 
hitwalker







PostPosted: Fri Sep 22, 2006 5:57 pm Reply with quote

huh..
that will be some searching...
if were talking about the message box then you have to dig in the mainfile..
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Fri Sep 22, 2006 6:01 pm Reply with quote

The title is a field in the table nuke_message. All the programs that deal with the message expect to have it filled in. It is displayed by the function message_box() in mainfile.php. I guess you could modify that to not display a title line if there was no title but you'd still have to find the input screens (I don't have time to look into that tonight) to not require the title to be filled in. And you might have to fiddle with the database definition which doesn't allow the field to be null.

In short, there is a fair amount of programming to make this happen ... unless someone else can think of a simple hack. I can't.
 
View user's profile Send private message Visit poster's website
alexwise







PostPosted: Fri Sep 22, 2006 6:10 pm Reply with quote

fkelly wrote:
The title is a field in the table nuke_message. All the programs that deal with the message expect to have it filled in. It is displayed by the function message_box() in mainfile.php. I guess you could modify that to not display a title line if there was no title but you'd still have to find the input screens (I don't have time to look into that tonight) to not require the title to be filled in. And you might have to fiddle with the database definition which doesn't allow the field to be null.


Edit*

That's great fkelly, works just removing the $title and <br> in the table formating in function message_box(), now the title and space is gone in the messaage tabels.

Big thanks Very Happy
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©