I'm looking for a Block to welcome info for guests/members

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   I'm looking for a Block to welcome info for guests/members
kai1967
CZ Newbie
 Codezwiz Site Donator
kai1967 has been a member for over 20 year's 20 Year Member
germany.gif
Status: Offline
Joined: Jun 19, 2004
0.00 posts per day
Posts: 5
Points: 4,158
   
Hi all,

i'm a newbie in phpnuke but i want to learn it.

Last week i downloaded from here the theme paradise, it looks very nice.

My question is:
I look for a block in the middle of the homepage, where i can simply say hello user oder
member and i introduce my homepage shortly.
The text can wrote in html-code with an image, but it look in the paradise-structure. The headline is "WILLKOMMEN" in the header-form an the text "xxxxx" under the headline in a box normaly. In the miidle of the page you can find the news section, so is it ok.
The discribe is a little bit complicate.
Look at here: [ Register or login to view links on this board.]
Over the zdf-news is the block needed. At this time it look so.

Sorry my english is not so good, i write from germany, i need your help

thanks a lot

Kai



Back to top Reply with quote
#2   re: I'm looking for a Block to welcome info for guests/membe
kai1967
CZ Newbie
 Codezwiz Site Donator
kai1967 has been a member for over 20 year's 20 Year Member
germany.gif
Status: Offline
Joined: Jun 19, 2004
0.00 posts per day
Posts: 5
Points: 4,158
   
I'm glad to give me another way. Perhaps with an iframe or so on?
And we could i make this in the middle of the page ???

Thanks for your help



Back to top Reply with quote
#3   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Here try this one out.

Save as block-Welcome.php
<?php
/********************************************************/
/* Welcome Block for PHP-Nuke                           */
/* Version 1.0.0         6-22-04                        */
/* By: Telli (telli@codezwiz.com)                       */
/* http://codezwiz.com/                                 */
/* Copyright © 2000-2004 by Codezwiz                    */
/********************************************************/
if (eregi("block-Welcome.php",$_SERVER[PHP_SELF])) {
    Header("Location: ../index.php");
    die();
}
//Language Definitions
define("_CZWELCOME","Welcome to");
define("_CZWELCOMETEXT","Whatever you want here.");

global $user, $userinfo, $prefix, $sitename, $cookie;

      getusrinfo($user);
      cookiedecode($user);
      $uname = $cookie[1];
      $content = "<br />\n";
      $content .= "<table border=\"0\" cellpadding=\"5\" width=\"100%\"><tr>\n";
      $content .= "<td width=\"100%\" align=\"center\"><b>"._CZWELCOME." $sitename $uname!</b></td>";
      $content .= "</tr></table><br />\n";
      $content .= "<table border=\"0\" cellpadding=\"5\" width=\"100%\"><tr>\n";
      $content .= "<td width=\"100%\" align=\"left\">"._CZWELCOMETEXT."</td>";
      $content .= "</tr></table>\n";
?>




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#4   re: I'm looking for a Block to welcome info for guests/membe
kai1967
CZ Newbie
 Codezwiz Site Donator
kai1967 has been a member for over 20 year's 20 Year Member
germany.gif
Status: Offline
Joined: Jun 19, 2004
0.00 posts per day
Posts: 5
Points: 4,158
   
Hi Telli,

thanks for your great job - the block works, but not so perfekt for me.

How to i get the headline, for instance "Willkommen" , in the first line (row)?
Look at on the left part of page f.i. "Administration" - the word is on the first line (row HEADER) - so is it ok. Where can i chance the code, so is it the $sitename on the first line (row - HEADER).

can you look on my page [ Register or login to view links on this board. ]

thanks Kai



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
In the code above delete the <br /> from it. That should move it up.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: I'm looking for a Block to welcome info for guests/membe
kai1967
CZ Newbie
 Codezwiz Site Donator
kai1967 has been a member for over 20 year's 20 Year Member
germany.gif
Status: Offline
Joined: Jun 19, 2004
0.00 posts per day
Posts: 5
Points: 4,158
   
Hi Telli,
is it not what i mean. The text "willkommen" or another text should be standing in the header (with grafic: header.jpg) On the left side is it so ok. Could it be, the table on the left is smaller than the middle part of side?
In the middle at the news- or topic-term is the the title of box in the header. There is it ok - so i want it.

Perhaps is the theme not so good for my ideal.

Sorry for my question an my bad english

Kai



Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
I'm sorry I dont understand what you mean. You want to put this into the header?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: I'm looking for a Block to welcome info for guests/membe
kai1967
CZ Newbie
 Codezwiz Site Donator
kai1967 has been a member for over 20 year's 20 Year Member
germany.gif
Status: Offline
Joined: Jun 19, 2004
0.00 posts per day
Posts: 5
Points: 4,158
   
Ok, i want to write the headline into the first row (into the headergraphic) as the news or topics (paradise).

This is what i mean:

_________________________________
---- INFO/HEADLINE (headergraphic) ---- --> there is the name of the block
_________________________________

-- $titel or $sitename or nothing --

xxxxxxxtext/js/iframe xxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
_________________________________
_________________________________
copyright


I think i must chance the blocks.htm under the theme-folder.
This file is a standard-html-type. Can i chance it?

Finally the blocks in the middle of my page should be as the right or left blocks.

many thanks for your help.
Kai



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum