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

Recent

Welcome to TinyPortal. Please login or sign up.

March 27, 2023, 05:59:29 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 194,244
  • Total Topics: 21,146
  • Online today: 78
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 1
Guests: 54
Total: 55

[Discussion] Recent topics table with hover over previews.

Started by alhaudhie, September 14, 2009, 04:58:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurkalot

A question for Freddy, or anyone else who can help me. ;)

I'm using this block at the bottom of both my sites, which works great for my main site and testsite when using the SMF default theme.

But if you use a dark theme, like the one on my new site,  http://guitaristguild.com  the titles above each column are the wrong colour and get lost in the background.  Any ideas how I can change these please?  Need them to be white.  See it at bottom of page. ;)

Maxx1

OK bro in your index.css find this and change the color comment from #444444 to #FFFFFF:

.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td {
    background: url("../images/theme/main_block.png") no-repeat scroll -10px -200px transparent;
    color: #444444;   <!--- this color code to #FFF -->
    font-size: 1em;
    font-weight: normal;
}


looking good bro!

regards,
maxx
But Mama, That's Where all the fun is!

lurkalot

Quote from: Maxx1 on August 26, 2012, 07:36:25 PM
OK bro in your index.css find this and change the color comment from #444444 to #FFFFFF:

.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td {
    background: url("../images/theme/main_block.png") no-repeat scroll -10px -200px transparent;
    color: #444444;   <!--- this color code to #FFF -->
    font-size: 1em;
    font-weight: normal;
}


looking good bro!

regards,
maxx

Thanks Maxx, that fixed it.  O0  I looked at that code this morning in firebug, and even changed it on the fly to preview the changes, which did work.  Then I went to edit the actual css file and the code is different from what firebug shows.  That gave me a headache. lol..

This is my code


.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td

{

color: #FFF;

font-size: 1em;

font-weight: normal;

background: url(../images/theme/main_block.png) no-repeat -10px -200px;

}

Maxx1

But Mama, That's Where all the fun is!

MrCare

try to change
$num_recent = 8;

to

$num_recent = 100;

but its limit only to show 50

how to resolve this?

IchBin

I can only assume you are using the code from the first post since you didn't provide any information for us to know. This code uses an SSI function which is built into SMF. If there is any limit being imposed on the results, you'll likely have to modify the SMF code in SSI.php.

MrCare

How to add in every subject link... facebook share icon?

ZarPrime

Quote from: MrCare on February 04, 2014, 03:17:26 AM
How to add in every subject link... facebook share icon?

Huh?  MrCare, I have no idea what you are talking about.  As Ichbin said above ...

Quote from: IchBin™ on November 07, 2013, 03:50:10 PM
I can only assume you are using the code from the first post since you didn't provide any information for us to know.

MrCare, I don't mean to sound rude but you have been here long enough to know that none of the Team Members here are Clairvoyant or can read what is in the mind of members who ask us to help them do something.  It's not that we mind helping you because it's what we are here for, but it's difficult enough trying to do things to help people without having to decipher what they are asking for in the first place, especially since we are all volunteers here.  You can't possibly expect any of us to understand what "How to add in every subject link... facebook share icon?" means.  Let's start with this ...

Code (#1--> Answer these Questions !!!) Select
[b]Link to my forum:[/b] http://www.yourdomain.com/forum/
[b]SMF version:[/b] SMF ver. here
[b]TP version:[/b] TP ver. here
[b]Default Forum Language:[/b] Your Default Forum Language here
[b]Theme name and version:[/b] Theme name here
[b]Browser Name and Version: [/b] Browser name/version here
[b]Mods installed:[/b] Mods listed here
[b]Related Error messages:[/b] Error message here


Code (#2 --> Answer this Question !!!) Select
[b]What Code Are You Using?[/b]

Code (#3 --> Do This!!!) Select
[b]Create a screenshot mockup of exactly what it is you are trying to accomplish.[/b]

Code (#4 --> And, Finally, Answer this Question !!!) Select
[b]What exactly are you trying to accomplish, keeping in mind that "How to add in every subject link... facebook share icon?" tells us nothing?[/b]

Code (#5 --> Here's your Bonus Homework !!!) Select
Read the entire website linked right below this code box and the topic linked below that.  There will be a Pop Quiz later, to see what you have learned !!!


Help us to help you, ALWAYS !!!

MrCare

At the top of code i add

/ So add the code if we are not in a board
// OR When viewing a topic the board is also set,
// so we need to add the javascript then too...
echo  '<div style="width: 100%; height: 356px; overflow: auto">'; 
if (!isset($_GET['board']) || isset($_GET['topic']))

i want to change scrollbar style to custom one.
its look like from http://baijs.nl/tinyscrollbar/ or http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/scrollbar_themes_demo.html or etc... hope someone can help. tq

IchBin

That website shows you how to implement the scrollbar.
http://manos.malihu.gr/jquery-custom-content-scroller/#get-started-section

Put the code that into your block code. Then put content as class of section that you want to have a custom scrollbar. Not sure how well it will work, since it asks you to put stuff in the header. Since you can't do that, just put those lines at the top of your block code and see if they work.