Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
JoshPet gave me some help with this some time ago.

I needed to change the New reply link in a specific forum to a Private Message link.

The code was for 6.1 and looked like this:
Code
      //------------------------------------------------------<br />      // Set up the link to send the user a Private Message -  by JoshPet<br />      <br />if ($Board == "supertest" or $Board == "test") {<br />    	  <br />            $postrow[$i]['replylinkstart'] = "<a href=\"{$config['phpurl']}/sendprivate.php?Cat=$Cat&amp;User=$EUsername\">";<br />            $postrow[$i]['replylinkstop'] = "</a>";<br />          }<br />else {<br />         <br />            $postrow[$i]['replylinkstart'] = "<a href=\"{$config['phpurl']}/newreply.php?Cat=$Cat&amp;Board=$Board&amp;Number=$Number&amp;page=$page&amp;view=$view&amp;what=showflat&amp;sb=$sb&amp;o=$o&amp;fpart=$fpart&amp;vc=1\">";<br />            $postrow[$i]['replylinkstop'] = "</a>";<br />         }  


How do I get this to work vist 6.2.2?

Sponsored Links
tubedogg_dup1 #237443 02/23/2003 4:17 AM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
This changes above is done in showflat.php and showthreaded.php.

But the problem, as I understad it, is the new user id system in 6.2.

What I´m building here is a forum where users can put personal ads. All replys should be PMs instead of normal forum replys.


tubedogg_dup1 #237444 02/23/2003 4:28 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Sorry, somehow I missed this before.
OK -
In showflat.php

Below this:

$postrow[$i]['Username'] = $Username;

Add this:

$postrow[$i]['usernum'] = $usernum;

Then in showflat.tmpl change $EUsername to {$postrow[$i]['usernum']

and that should take care of flat mode.



For threaded... all that should be needed is in showthreaded.tmpl change $EUsername to $usernum


Hope that works for you.



Daine #237445 03/02/2003 12:30 PM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
No problem, JoshPet. I´m just greatfull for all help I can get! I really want to get this fixed, so that I can upgrade my live 6.1 site (doing the changes on a 6.2.2 test site) asap.

Changing showflat.php was easy. But don´t I have do do something lite this in showthreaded.php as well?

I can´t find $EUsername anyware in showflat.tmpl or showthreaded.tmpl! What have I missed?


tubedogg_dup1 #237446 03/02/2003 12:59 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
$EUsername is in my instructions above. Make those changes to the instructions you pasted above, then apply them to 6.2 and all should be good.

[]For threaded... all that should be needed is in showthreaded.tmpl change $EUsername to $usernum
[/]

Again, apply the threaded change to my original instructions too. Then apply them to 6.2 and <fingers crossed> it should work for you.

Sponsored Links
Daine #237447 03/02/2003 2:49 PM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Ah! Ofcourse! That´s what you meant! Thanks! I´ll try it right away!

tubedogg_dup1 #237448 03/02/2003 6:02 PM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Worked just great! Thanks!


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)