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
tangoman
Involved
Involved



Joined: Aug 06, 2005
Posts: 301

PostPosted: Tue Aug 16, 2005 7:07 pm Reply with quote

I see that if I place long text in the title of a Block and set the block as a side block, (left or right), the text will 'jump' to a second line in order to fit in the block.

This is good, but the text could be aligned better.

Presently the text would look like this:

__Very Long
Block Tilte

(There is no __ but I had to use it here to demonstrate the alighnment)


But of course this perfectionist would much prefer it too look like this:

Very Long
Block Tilte


Do YOU have the solution as to which file to modify and where it is located in the directories?
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Aug 16, 2005 8:42 pm Reply with quote

It would be in your themes/(yourtheme)/theme.php, in the function themesidebox, which may have the HTML or may open an HTML file, but that will be obvious when you look at that function.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Steptoe
Involved
Involved



Joined: Oct 09, 2004
Posts: 293

PostPosted: Wed Aug 17, 2005 2:32 pm Reply with quote

I had the same problem to tidy the appearence up.
In Admin Cp/blocks/edit/title I added a few &nb sp; without the space to make spaces before and between the words to 'square' them up .
Trial and error as to how many and have to go thru each block one at a time.
 
View user's profile Send private message
tangoman







PostPosted: Wed Aug 17, 2005 2:42 pm Reply with quote

The exact solution to this depends on exactly how you do want the Block Title to be alighned, (i.e. to the left, to the right or in the centre).

I have resolved this issue by doing the following to align the Block Title text centrally:

The file to make adjustments in is theme.php located at:

/themes/'YOURTHEME'/theme.php


Find the code:


function themesidebox($title, $content) {

echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"

."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"

."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>$title</b></font>"



I deleted the instance of where you see the code string:


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


And I additionally entered the comand to centre align the text, thus the final replacement code was as follows:


function themesidebox($title, $content) {
echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
."<DIV ALIGN=\"CENTER\"><font color=\"#FFFFFF\"><b>$title</b></font></DIV>"
 
kguske







PostPosted: Wed Aug 17, 2005 2:51 pm Reply with quote

Great! Hopefully, you did that with a real text editor, rather than notepad...
 
tangoman







PostPosted: Wed Aug 17, 2005 2:59 pm Reply with quote

Actually, because I only needed to delete the &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string and add a <DIV ALIGN=\"CENTER\"> etc, I did it manually...By 'manually' I mean that I opened up the file in the hosting companies online editor 'panel'.
 
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 ©