vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Question/Requests - View Topic
Topic Rating: *****
Printable View
This topic was locked 11th Apr 08 at 3:40pm by Michael
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
[F] Question/Requests (11th Apr 08 at 4:25am UTC)
Resolved
I was wondering if possible are you guys going to put the code the one you have for the last post that says "Please Login to view this board" in to the database ?
Or would i have to request one {Smile} .

If i do have to requests one then i am requesting it please {Grin} .

Thanks guys. {Smile}

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Question/Requests (11th Apr 08 at 6:43am UTC)
I'll get to this tonight if I have time! ^_^

You only want it for boards that have no posts in the last post column don't you? {Unsure}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Question/Requests (11th Apr 08 at 7:08am UTC)
Yes please Wrighty thanks {Smile} .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Question/Requests (11th Apr 08 at 1:37pm UTC)
This should do what you want! {Smile} If you want to, feel free to change the message at the top (part in red)

Any problems, let me know! ^_^

<script>
/*Guest last post column message
Created By Wrighty
Don't: Rip, Repost or Claim!*/

var message = "Please <a href='/action/login'>Login</a> or <a href='/action/register'>Register</a>";

var d = get('td','tag');

if(vf_username=='guest'){
    for(i=0;i<d.length;i++){
        if(/lastpost/i.test(d[i].className) && d[i].firstChild && d[i].firstChild.innerHTML == ''){
            d[i].firstChild.innerHTML = message;
        }
    }
}
</script>


Global Footer
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Question/Requests (11th Apr 08 at 2:59pm UTC)
It works fine thank you Wrighty {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Question/Requests (11th Apr 08 at 3:38pm UTC)
Welcome! {Cheesy}
 Printable View

All times are GMT+0 :: The current time is 12:25am
Page generated in 0.2707 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums