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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,019
  • Total Topics: 21,332
  • Online today: 1,062
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 869
  • Total: 869

question for the script gurus around here

Started by rbh, October 05, 2006, 09:56:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rbh

ok, i am making a website that doesnt need a forum, but i want to use tp and its blocks for my content management because i have gotten used to it and really like it. what i need to figure out is how to remove some things from the main screen that relates to a forum since this site will not have a forum. the tabs and such i can remove, but i want to remove the "welcome guest" section that has unread posts info and login stuff, and remove the news and search part. below is a picture of what i am talking about. if part of it cannot be removed, then i can remove all of it and use link navigation in a block instead of tabs but what i was looking to keep was forum name and logo area, the tabs, then remove where it says welcome jack show unread posts...etc etc, and remove news: and search part.

now, i know there are cms apps out there i could use instead but as mentioned i really like tp and i am not ruling out the possibility of a forum being added later so if there are edits i can do to remove these things then re add them later that would be great. any suggestions?


G6Cad

Tp will not work at all with out SMF forums, so my guess to your answer is No go at all.

rbh

i have smf installed as you can see by the picture. i want to use tp so i need smf installed but i want forum related stuff removed from the tp mainpage.

akulion

jus find the code for the forum button in index.template.php file and remove it

bearch for "button" until you see the forum button code

rbh

i know how to remove and add the tabs, what i want is the rest of it removed......the parts above the tabs and below the logo.

akulion

find and remove this


<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />



dont remove the '; at the end of this tag which exists in the file oki cos thats the closing statement for the echo' at the beginning so if u remove the '; then ull get a parse error

jacortina

Admin -> TinyPortal/Settings -> 'Show userinfo/news at the top' - No.

akulion

he will still have those links in his userbox on the side

he needs to get rid of those too - just keep the forum man :P

jacortina

#8
Quote from: rbh on October 05, 2006, 11:18:23 PM
i know how to remove and add the tabs, what i want is the rest of it removed......the parts above the tabs and below the logo.

This is what he asked for, though.  :)

And if he's using .95 he just unchecks the 'Unread replies/unread posts' box in the Edit User box.

akulion

#9
Edit....

folow what jocortina said :D

This website is proudly hosted on Crocweb Cloud Website Hosting.