TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 20, 2024, 04:34:09 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,195
  • Total Topics: 21,220
  • Online today: 114
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 75
  • Total: 75

Multi-Functional Posts and Topics Snippet [Version 3.0 out!]

Started by Megaforum, October 14, 2007, 05:08:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FERNSIDEâ„¢

Has anyone implemented an alternative scroll function to this code?
Dragooon and I havent been successful to this point.

Thank You in advance. :)


warhonowicz

Great block.

One little thing that would (for me) make it even better. I use it in mode 2 and a filter would be fantastic, so each topic would show up only once

sorosh

How can i center it in the block must i add center tags and where?

Dragooon

In PostsTopicsSnippet.php
Find
<div style="width: 100%;',$scroll ? 'overflow: auto; height: 40ex;' : '','" class="smalltext">
And replace it with
<div style="width: 100%;',$scroll ? 'overflow: auto; height: 40ex;' : '','" class="smalltext" align="center">

sorosh

thanks but i get then this in my block:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/.../public_html/forum/Sources/PostsTopicsSnippet.php on line 261

Dragooon



Dragooon

You removed the '; after the line
This line
echo '
<div style="width: 100%;',$scroll ? 'overflow: auto; height: 40ex;' : '','" class="smalltext" align="center">

Should be
echo '
<div style="width: 100%;',$scroll ? 'overflow: auto; height: 40ex;' : '','" class="smalltext" align="center">';

sorosh

Thank you very much for your help Dragooon! It works!! And sorry for not reading your signature;)