Mover of the moment:

Now online:

1stMovers on Twitter

AutoTweet Community pierregrc has updated user data - more...
AutoTweet Community e_del is now friend with Ulli Storck - more...
Forum: Auto Tweet me url is generating incomplete - more...

Please read this before you post

I'm Ulli, the developer of 1stMover extensions. Most 1stMover extensions are free of charges or fees and this is the forum site where you can get free support for these extensions. The word "free" is important and it means too, that I'm doing these free things in my free time and sometime I'm not able to answer all the questions posted here. I would like to ask for your patience.

If you want to help me (writing manuals, answering the posts here) then this will be very appreciated.

Before posting new post, please read the documentation and the previous forum posts as answering the same questions takes a lot of time which is missing for developing and for answering not yet answered posts.

Thank you very much for your understanding, Ulli

 

Welcome, Guest
Please Login or Register.    Lost Password?
Forum is locked
Change Joomla URL for article links? Forum is locked
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Change Joomla URL for article links?
#1475
Change Joomla URL for article links? 1 Year, 9 Months ago Karma: 0
I have a site that is built on a hardware load balanced pair of servers. I have to log in to site A by IP address to make sure I am updating the primary site, and then the information is replicated to the second server. The purpose of the Load Balancer is to divide users among both servers. However, autotweet will post the url based upon the joomla url (which it should!). My problem is that when people click on the link they are going to the IP address and all hitting the same server - defeating the LB setup.

Is there a way to setup autotweet (even if I have to add a variable to the code) to use mysite.com as the default url instead of the physical joomla url?

Thanks
Mike

NOTE: Running Joomla 1.5.17 and Autotweet Pro 1.8
mbiolsi
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/04 17:51 By mbiolsi.Reason: provide system information.
The topic has been locked.
 
#1477
Re: Change Joomla URL for article links? 1 Year, 9 Months ago Karma: 33
I'm confused. AutoTweet uses the logical url returned by Joomla system routing.

Is your url looks like "123344565.com" or what do you mean?
ustorck
Administrator
Posts: 1916
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#1478
Re: Change Joomla URL for article links? 1 Year, 9 Months ago Karma: 0
THe url is 123.12.12.124/articlename [example} because I have to log into the IP address (they have 2 dedicated IP addresses). However, visitors to the site go to mysite.com to view the site. The load balancer will distribute visitors to the two different servers as long as they are going to mysite.com.

SO.. when I am logged in to the site it is at the IP address, but I need the link for the autotweet to be created with the .com link so that the visitor is still passed to the load balancer.

Basically, what i am looking for is a way to hardcode the logical url to be the .com address... instead of having the code grab the joomla created url.

Does that make more sense now?
mbiolsi
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#1481
Re: Change Joomla URL for article links? 1 Year, 9 Months ago Karma: 33
Ok, now I understand.

The normal way is to configure the URL in Joomla config file "configuration.php". Add (or change if the statement is allready there) the line "var $live_site = 'mysite.com'" in this file. I'm not sure if this works in your case, so you must test this.

If this does not work, you can do a hardcoded workaround: Go to the file "/administrator/components/com_autotweet/helpers/autotweetposthelper.php" and change the following line in the function "createURL($site_url)" at the end of the file.

Old:
Code:

return $base_url . $site_url;

New:
Code:

return 'http://mysite.com' . $site_url;


...and take care when you do an update...

Note: With upcomming version 2.0 the place of this function changes to the file "autotweetroutehelper.php".

Ulli
ustorck
Administrator
Posts: 1916
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#1482
Re: Change Joomla URL for article links? 1 Year, 9 Months ago Karma: 0
Thanks! I have changed the code. The site is live, so I will not know the effectiveness until they post the next article. I will fill you in on the results then. I appreciate the awesome support!
mbiolsi
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#1496
Re: Change Joomla URL for article links? 1 Year, 9 Months ago Karma: 33
For version 2.0 (since 2.0beta4) I have now integrated an option to set the base path manually. See the new parameter 'Overwrite base URL' in the component parameters.

This should solve problems like this.
ustorck
Administrator
Posts: 1916
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
Go to topPage: 1
Moderators: ustorck