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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 349
  • Total: 350
  • tino

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;)

This website is proudly hosted on Crocweb Cloud Website Hosting.