31
kesikkafa
Shoutbox- i dont want a horizontal scroll bar
  • 2005/3/23 8:03

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


http://www.kesikkafa.com/xo

You see? left-bottom side..you see the the shout box and it has a horizontal scroll bar..how can i cancel it and how can i make messages to pass new line when the visible area finished?



32
kesikkafa
phpBB login form as Xoops Block?
  • 2005/3/23 7:01

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


i want to let my phpbb forum users to login to my phpbb forum via XOOPS block on my homepage. The code is here but when i try to copy and paste this code as a block the form is appear well but the page tuning-order to go bad-deformed.

<form action="http://www.kesikkafa.com/forum/login.php?sid=47352f3d89f67c361ec82fbd52c2f278" method="post" target="_top">

<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>

<td class="nav"><a href="index.php?sid=47352f3d89f67c361ec82fbd52c2f278">kesikkafa.com Forum Home Page</a></td>
</tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thhead" nowrap height="28">Enter Your Username And Password</th>
</tr>
<tr>
<td class="row1">
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="45%" align="right">User Name</td>
<td width="55%">
<input type="text" name="username" size="25" maxlength="40" value="" class="post" />
</td>
</tr>
<tr>
<td align="rightPassword</td>
<td>
<input type="password" name="password" size="25" maxlength="32" class="post" />
</td>
</tr>
<tr>
<td colspan="2" align="center">Remember Me
<input type="checkbox" name="autologin" />
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="hidden" name="redirect" value="" />
<input type="submit" name="login" class="mainoption" value="Login" />
</td>
</tr>
<tr>
<td colspan="2" class="gensmall" align="center"><a href="profile.php?mode=sendpassword&sid=47352f3d89f67c361ec82fbd52c2f278">Lost Password</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="catbottom" height="28">&nbsp;</td>
</tr>
</table>

</form>



33
kesikkafa
Re: how can i use this php code in a block
  • 2005/3/23 6:48

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


i did my friend..i did everything.This code is cursed :)



34
kesikkafa
Re: best homepage module?
  • 2005/3/23 6:06

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


No Digiegirl.i am already using news module on my home page but it is not google friendly.google cant find my news.

i wonder if a homepage module can solve this problem or not.



35
kesikkafa
Re: how can i use this php code in a block
  • 2005/3/23 5:58

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


no.what a code!!! it is working on a single php page but not on xoops.
my XOOPS is in the directoryhttp://www.kesikkafa.com/xo

and scroll.php is in /xo and kesikkafa.com main directory also...and the code of scroll.php is here:

<?php
//
// Basic Configuration
// How Many Topics you want to display?
$topicnumber = 20;
// Scrolling towards up or down?
$scroll = "up";
// Change this to your phpBB path
$urlPath = "http://www.kesikkafa.com/forum";

// Database Configuration (Where your phpBB config.php file is located
include 'forum/config.php';

// Connecting & Selecting Databases
$table_topics = $table_prefix. "topics";
$table_forums = $table_prefix. "forums";
$table_posts = $table_prefix. "posts";
$table_users = $table_prefix. "users";
$link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("Could not connect");
mysql_select_db("$dbname") or die("Could not select database");

// Perform Sql Query
$query = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
FROM $table_topics t, $table_forums f, $table_posts p, $table_users u
WHERE t.topic_id = p.topic_id AND
f.forum_id = t.forum_id AND
t.topic_status <> 2 AND
p.post_id = t.topic_last_post_id AND
p.poster_id = u.user_id
ORDER BY p.post_id DESC LIMIT $topicnumber";
$result = mysql_query($query) or die("Query failed");

// Outcome of the HTML
// Be carefull when you edit these!
print "<marquee id=\"recent_topics\" behavior=\"scroll\" direction=\"$scroll\" height=\"100\" scrolldelay=\"50\" scrollamount=\"2\" onMouseOver=\"document.all.recent_topics.stop()\" onMouseOut=\"document.all.recent_topics.start()\">
<table cellpadding='5' cellSpacing='5' width='200' align='center'>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "<tr valign='top'><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#cc0000\"><b><a href=\"$urlPath/viewtopic.php?topic=$row[topic_id]&forum=$row[forum_id]\">" .
$row["topic_title"] .
"</a></td></font></b><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#cc0000\">" .
"</td></tr></font>";
}
print "</table></marquee>";

// Free Result
mysql_free_result($result);

// Close the Connection
mysql_close($link);
?>



36
kesikkafa
best homepage module?
  • 2005/3/22 10:49

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


can you please write your comments



37
kesikkafa
Re: how can i use this php code in a block
  • 2005/3/22 10:31

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


no..does not work..the rest of block does not appear.



38
kesikkafa
Re: how can i use this php code in a block
  • 2005/3/22 9:01

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


i try

include("<{$xoops_url}>/scroll.php");

and it again failed..i see only the name of the block.but the rest dont appears.. but this code is ok.it works on a single php page as i mentioned on my first message



39
kesikkafa
Re: how can i use this php code in a block
  • 2005/3/21 9:14

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


you mean this.
<?php include("<{$xoops_url}>/scroll.php");?>

if yes it is not work

and i also try

<?php include("{$xoops_url}/scroll.php");?>

and

<?php include("http://www.kesikkafa.com/xo/scroll.php");?>

but i dont get success.



40
kesikkafa
how can i use this php code in a block
  • 2005/3/21 2:58

  • kesikkafa

  • Just popping in

  • Posts: 47

  • Since: 2005/2/6 2


<?php include("$DOCUMENT_ROOT/scroll.php");?>

This code is scrols last messages from phpbb forum on any where.
you can see the sample herehttp://www.kesikkafa.com/2.php




TopTop
« 1 2 3 (4) 5 »



Login

Who's Online

231 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

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

Latest GitHub Commits