The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

pun-visit 'welcome, user' instead of 'logged in as'

5 posters

Go down

Solved pun-visit 'welcome, user' instead of 'logged in as'

Post by blindbat1457 April 7th 2011, 11:05 pm

pun-visit 'welcome, user' instead of 'logged in as' I2lqnn

I went into the template and tried to change the text from:
Code:
<div id="pun-visit" class="clearfix">
   <ul>
       <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
       <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
      <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
      <li><a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a></li>
   </ul>
   <p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>

To this:
Code:
<div id="pun-visit" class="clearfix">
   <ul>
       <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
       <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
      <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
      <li><a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a></li>
   </ul>
   <p>Welcome back, {USERLINK} . {LAST_VISIT_DATE}</p>
</div>

Now when I publish it nothing shows up as far as name wise.
I know is a valid thing but why won't it work here? Only thing I can think of is I use on phpbb2 and this forum I am fixing up is punbb.


Last edited by blindbat1457 on April 10th 2011, 8:23 pm; edited 1 time in total
blindbat1457
blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by blindbat1457 April 8th 2011, 9:52 pm

/bump

wow forgot it was going to replace { USERLINK } with the name.
blindbat1457
blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by Gangstar15 April 8th 2011, 9:58 pm

Because this "{ USERLINK }" wont works in the templates.
Gangstar15
Gangstar15
Forumember

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by blindbat1457 April 8th 2011, 10:46 pm

Gangstar15 wrote:Because this "{ USERLINK }" wont works in the templates.

Say what! Lame sauce. Would there be a way to do what I want then or no?

Also gangstar you good with javascript?
blindbat1457
blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by Saxaca April 9th 2011, 10:11 am

I am good with javascript.
And, that's your solution!

Use innerHTML to replace the content.
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by blindbat1457 April 10th 2011, 6:27 am

Hey saxaca I sent you a PM.

Also could you help me with a code to replace 'Logged in as (user)" to "Welcome back (user)"

If not it isn't that big of a deal.
blindbat1457
blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by Nera. April 10th 2011, 11:27 am

Would welcome back with the users avatars display by it be OK? So you could put the JS there and it would display users avatars.
Or you can delete that part and use usercodes in homebox.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by blindbat1457 April 10th 2011, 8:22 pm

I figured it out, thanks.

blindbat1457
blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by Saxaca April 10th 2011, 8:40 pm

So my script worked?
Saxaca
Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Solved Re: pun-visit 'welcome, user' instead of 'logged in as'

Post by MrMario April 10th 2011, 10:04 pm

Solved => Locked
MrMario
MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1839
Language : test

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum