[howto] Remove links from Welcome block
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies
View previous topic :: View next topic  
Author Message
SmoothAl
Apprentice
Apprentice


Joined: 18 Jun 2004
Posts: 5
Location: CA, USA

PostPosted: Mon Jun 21, 2004 9:40 am    Post subject: [howto] Remove links from Welcome block Reply with quote

I just installed mx_tinies...LOVE IT! It's exactly what I was looking for, thank you!
My question is "Is it possible to remove some of the options that show up, after registering?" I would like to keep the "Posts since last visit", "View unread posts", and "Private Messages". If so, would I need to remove code? Next question, is what code would I have to remove?

I really do like the welcome block.

SmoothAl Cool
 
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Mon Jun 21, 2004 1:00 pm    Post subject: Re: Removing options Reply with quote

SmoothAl wrote:
"Is it possible to remove some of the options that show up, after registering?"
Yes, it is.

Though, it requires a bit of HTML knowledge Wink

First, as we are going to change the template used by the Welcome block, please, backup this file:
mxroot/modules/mx_tinies/templates/welcome_body.tpl

Then, open the file welcome_body.tpl and look at this code:
Code:
<!-- BEGIN welcome_user_logged_in -->
   <img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_UNREAD}" class="gensmall">{L_SEARCH_UNREAD}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_SELF_TOPICS}" class="gensmall">{L_SEARCH_SELF_TOPICS}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_SELF_POSTS}" class="gensmall">{L_SEARCH_SELF_POSTS}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<span class="gensmall">{L_SEARCH_LATEST}:&nbsp;<a
         href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a>&nbsp;<a
         href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a>&nbsp;<a
         href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_PRIVATE_MSGS}" class="gensmall">{L_PRIVATE_MSGS}</a>
<!-- END welcome_user_logged_in -->

Now, it's only a matter to comment out or remove the pieces you don't need. For instance, in your case:
Code:
<!-- BEGIN welcome_user_logged_in -->
   <img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_SEARCH_UNREAD}" class="gensmall">{L_SEARCH_UNREAD}</a><br /><img
      src="{IMG_ICON_DOT}" border="0" width="5" height="5" />&nbsp;<a
         href="{U_PRIVATE_MSGS}" class="gensmall">{L_PRIVATE_MSGS}</a>
<!-- END welcome_user_logged_in -->

I have not tested this myself, though. Be careful with typos.

HTH

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
SmoothAl
Apprentice
Apprentice


Joined: 18 Jun 2004
Posts: 5
Location: CA, USA

PostPosted: Tue Jun 22, 2004 3:27 am    Post subject: Re: [howto] Remove links from Welcome block Reply with quote

Beautiful, markus! Thanks. It worked exactly the way I was hoping.


SmoothAl Cool
 
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum