Previous Thread
Next Thread
Print Thread
Rate Thread
#280478 10/06/2004 5:00 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Anyone know what file controls the words 'by Anonymous' under the last post column on postlist.php?

I thought it was under /languages/english/generic.php under $ubbt_lang['ANON_TEXT'], but I altered that and it had no effect.

I wish to change the words - and it has me stumped!


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
how about the postlist.php file in the language directory?

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks.

Nope - doesn't appear in that file - hence my thinking it was the generic option - weird.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
In 6.4 it is in generic.php
$ubbt_lang['ANON_TEXT'] = "Anonymous";

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
That is what I thought - but changing this has no effect - weird Will dig deeper to find out why. Thanks for confirming it.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Ian, if you're trying to change it for existing posts, it's probably stored in the database with the post.

Try this query for a post which still says anonymous.

SELECT B_AnonName FROM w3t_Posts WHERE B_Number = xxxxxxx

If it says Anonymous, then it's the name stored with the post. It'll display the name they enter when they made the post (the quick reply doesn't let them enter a name).

You can either reset these via SQL command, or turn off the option in the config file to allow users to choose a name, then it'll use the "anonymous" language string instead.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
realise that, but I am trying to change the words for new posts - I have now even made the string "" and still the word anonymous appears on new posts - therefore it must be pulling it from elsewhere. Really am not sure why it doesn't shut show the name that the guest puts in the name box - that would make more sense..

Thanks anyway.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
This is really a tough one, I searched all text within all files and the only one I could find it in was lang/generic.php

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
see these lines

Code
<br />		if ($Reged == "n") {<br />			// ------------------------------------------------------------------<br />			// If we aren't allowing anon users to choose their own username then<br />			// we display the basic anon user in the user's selected lang<br />			if (!$config['anonnames']){<br />				$Username = $ubbt_lang['ANON_TEXT'];<br />			}<br />			else {<br />				$Username = $anonname;<br />			}<br /><br />


what is reged set for and what is $config['anonnames'] set to?

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks Scroungr - am going to dive into this a bit more.

It would be nice to show the username/handle that the guest has chosen in the making the post, rather than just anonymous - looks unprofessional at the moment.

Will dive a little deeper.....

(Only snag is - I can't remember what I was going to put instead of anonymous LOL (assuming I can't figure out how to copy over the name entered by the user)


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)