TinyPortal

Development => Support => Topic started by: vanguard on May 08, 2007, 04:39:16 PM

Title: TP front page options
Post by: vanguard on May 08, 2007, 04:39:16 PM
Hi,

I am currently using TP's front page options to show a forum category containing over 100 entries but can only show 50 on the front page. It shows 5 items per page, with 10 pages.

Is there any way to make it show all items without having all 100 on one page?

Thanks!

:)
Title: Re: TP front page options
Post by: vanguard on May 08, 2007, 05:40:49 PM
I guess 50 threads is enough but 100 would make my site the best of all ufo websites!!!
Title: Re: TP front page options
Post by: tick on May 08, 2007, 09:16:14 PM
mr. gray .   You may have seen this but check out this code snippit.  It may be able to do what you want if I understand you correctly.   http://www.tinyportal.net/index.php?topic=1234.0
Title: Re: TP front page options
Post by: vanguard on May 08, 2007, 10:30:02 PM
Thanks Tick but thats not it.

See my website and you'll understand.
Title: Re: TP front page options
Post by: vanguard on May 09, 2007, 04:25:51 AM
No ideas?

Should be a simple code thingie.

:)
Title: Re: TP front page options
Post by: vanguard on May 09, 2007, 08:04:59 AM
pmub
Title: Re: TP front page options
Post by: G6Cad on May 09, 2007, 08:59:32 AM
I can assure you that if it was easy, some one would have given you the answer allready ;)
Title: Re: TP front page options
Post by: vanguard on May 09, 2007, 09:17:46 AM
Have you looked at the code, G6?
Title: Re: TP front page options
Post by: G6Cad on May 09, 2007, 09:32:32 AM
Yes, but im not a coder so i have no clue on how to solve this for you  :-\
Title: Re: TP front page options
Post by: vanguard on May 09, 2007, 09:36:30 AM
Thank you!!!

You know I appreciate your time!
Title: Re: TP front page options
Post by: vanguard on June 17, 2007, 12:33:34 PM
Ok, I got it done:

I was able to put the code from the article into a center block so the full 50 videos would still be on the front page for visitors. Plus, the block is shrinkable so if they do go through all 13 pages of UFO ground observation videos they'll have the option of getting rid of the rather large nav system block that would have always been top-dead-center.

veni vidi vici
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 12:41:59 PM
i dont see anything on your home page ???

but how you get that new member thing on the colum

good looking site as well
Title: Re: TP front page options
Post by: vanguard on June 17, 2007, 04:08:31 PM
Just click on the 'Search' button in these forums and enter something like:

new member block





or...





Put this in a php block:

global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='left'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);


:up:
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 04:25:40 PM
chears thanks for that
going to see if i can make a default aviator for members now
Title: Re: TP front page options
Post by: vanguard on June 17, 2007, 06:42:03 PM
Good luck!

Let us know if it worked.

:)
Title: Re: TP front page options
Post by: sindy on June 17, 2007, 07:24:55 PM
Thanks, The newest Member avatar is nice , I make php block in my site.
How can I make one avatar for all New members who no have avatar after register
and then they can change it??
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 07:41:01 PM
Quote from: sindy on June 17, 2007, 07:24:55 PM
Thanks, The newest Member avatar is nice , I make php block in my site.
How can I make one avatar for all New members who no have avatar after register
and then they can change it??

i havn't been able to work it out as yet have you ???
Title: Re: TP front page options
Post by: sindy on June 17, 2007, 07:47:36 PM
Yes I have it and is OK, but I need one avatar for all new one rigister, who can chane it after.
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 07:49:52 PM
how / what settings did you use so they get allocated a av when they join ?
Title: Re: TP front page options
Post by: Zetan on June 17, 2007, 07:54:57 PM
They don't get allocated an Avatar to their profile. That image is just for the Latest Member block, so it's not empty.

You need to put an image somewhere on you're server and direct the image URL to it.
Then when a new member joins, that image is used.
If the new member then chooses their own avatar, that avatar is used in the block instead.
Title: Re: TP front page options
Post by: vanguard on June 17, 2007, 07:58:12 PM
There is a mod for smf or tp that lets the member choose an avatar when they join.

I use it and it's great.
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 08:00:20 PM
ok i think i get it create folder in cpanel>images put in a image
but how do i direct to a vsp ?
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 08:01:20 PM
members can choose a image but for them that cannot be bothered i wanted to assigne one so it wasnt showing a red x in new member block
Title: Re: TP front page options
Post by: vanguard on June 17, 2007, 08:20:37 PM
If you install the mod it gives them a prompt to choose an avatar right then and there instead of them having to go into profile and figure out where to set it up later.

I have never had a single person skip it. All of my members have avatars from day one. But I guess that won't help you at this point.

You could go into each profile and toggle an avatar for them but you may have far too many members to consider that angle.


There may be a mod that sets a default. I have just never seen or heard of it.


Good luck!
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 08:28:10 PM
i cant find one either and theres just over 100 to redo
might have to install that mod and see if they just do one when registering
thanks
Title: Re: TP front page options
Post by: vanguard on June 17, 2007, 08:49:13 PM
See these:

http://www.simplemachines.org/community/index.php?topic=19500.0

http://www.simplemachines.org/community/index.php?action=search2;search=default+avatar


Avatar select on reg mod:

http://custom.simplemachines.org/mods/index.php?mod=368
Title: Re: TP front page options
Post by: martinmarinekeeper on June 17, 2007, 08:55:42 PM
went for the mod
as for the rest i will just ask them to add one when there on or just give them told brucey lol

thanks much appr/ted