Live Link - I must be an idiot
Posted: 11 September 2006 07:40 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006

So I’ve downloaded the Live Link extension, but I must be an idiot because I can’t seem to get it to do anything.  I’ve put the ext file in the extensions dir and the lang file in the languages dir.  I’ve modified the ext file to include one of my weblogs for testing - here’s the php. The weblog id is #4 in the database:

function settings()
    
{

        $settings
= array();
        
        
// template group and names with the weblog_id appended to
        // create separate options for each weblog
        //
        // Follow this pattern for each weblog, replacing the # with
        // the id of the weblog:
        //
        // $settings['tmpl_group_#'] = 'template_group';
        // $settings['tmpl_name_#'] = 'template_name';
        
$settings['tmpl_group_4'] = 'VR';
        
$settings['tmpl_name_4'] = 'profile';
        
        return
$settings;
    
}

So….  where is the ‘preview’ link supposed to show up when I go to edit an entry in this weblog?  The normal preview form button does the default preview (which is not using a template).  I can’t see any other preview link?

Thanks for the help.

EDIT: I’m on EE 1.4.2 and have disabled all my other extensions.

Profile
 
 
Posted: 11 September 2006 07:52 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Did you install the extension?

Admin > Utilities > Extension Manager

EDIT: your edit end my post crossed each other, I guess the answer is yes.

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 11 September 2006 07:54 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006

Yep did that.  I see my two vars when I click on the settings link - but the lines themselves are just blank with unlabeled text areas with my values in them:  “VR” on one line, and “profile” on the next.

Profile
 
 
Posted: 11 September 2006 01:39 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15823
Joined  06-03-2002

Did you edit the language file as well?  Also, are you clear on where the View link will show up?  It will be in the listing of entries in the Edit panel.

 Signature 
Profile
MSG
 
 
Posted: 11 September 2006 02:08 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006
Derek Jones - 11 September 2006 01:39 PM

Did you edit the language file as well?  Also, are you clear on where the View link will show up?  It will be in the listing of entries in the Edit panel.

Uhh actually no and no.  I’ve now modified the language file, but it’s still now showing the link in the edit panel (I do see the ‘live link’ column though). 

Language file now contains:

$L = array(

// Just as with the $settings array in ext.live_link.php
// you must have a pair of keys and values so your
// settings will be labeled properly.
//
// Follow this format, replacing # with the id of
// the weblog:
//
// "tmpl_group_#" =>
// "Name of Template Group",
//
// "tmpl_name_#" =>
// "Name of Template",

'tmpl_group_4'=>'VR',
'tmpl_name_4'=>'profile'
);

Profile
 
 
Posted: 11 September 2006 02:15 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15823
Joined  06-03-2002

Just to be sure that you’ve gotten everything, and as you don’t have anything going yet, disable your current Live Link extension, remove the files, and start over, following these instructions explicitly.

[edited to remove dead link]

 Signature 
Profile
MSG
 
 
Posted: 11 September 2006 02:35 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  780
Joined  07-18-2006

I went in and just hit submit in the settings section in the admin area and that hooked it.

Interestingly enough,  there is a / missing in the URL it is forming for the live link:

http://venusrisingmagazine.com/indexVR/profile/entry_name/

there should be a / between index and VR like so:

http://venusrisingmagazine.com/index/VR/profile/entry_name/

I see where I could put a / in the code to get it to complete my URL correctly (line 74), but does this mean that I’ve somehow got something set wrong with my site?

Profile
 
 
Posted: 11 September 2006 02:39 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15823
Joined  06-03-2002

It probably means that the author (me) was not thinking about all situations and didn’t use some of the nifty functions EE has to take care of URL building when he wrote this extension back in May. wink

 Signature 
Profile
MSG
 
 
Posted: 29 September 2006 02:29 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  316
Joined  04-11-2006

Useful thread

I’ve just installed Live Link as per instructions, and it works very nicely…  except I also get the missing ‘/’ that PieMan mentioned. Unfortunately I am not enough of a PHP wiz to ‘see’ your correction for line 74.

this is the old line 74

$site = $FNS->fetch_site_index(0,0).$fqs.‘URL=’.$FNS->fetch_site_index().$this->settings[‘tmpl_group_’.$row[‘weblog_id’]].’/’.$this->settings[‘tmpl_name_’.$row[‘weblog_id’]].’/’;

could you post the proper code?

Thanks in advance.

Jan

 Signature 

OakenPage website works - doing simple things well

Profile
 
 
Posted: 29 September 2006 07:46 AM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15823
Joined  06-03-2002

$site = $FNS->fetch_site_index(0,0).$fqs.'URL='.$FNS->fetch_site_index().'/'.$this->settings['tmpl_group_'.$row['weblog_id']].'/'.$this->settings['tmpl_name_'.$row['weblog_id']].'/';

 Signature 
Profile
MSG
 
 
Posted: 29 September 2006 07:52 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  316
Joined  04-11-2006

Thanks

Just what I wanted

Jan

 Signature 

OakenPage website works - doing simple things well

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64877 Total Logged-in Users: 70
Total Topics: 81804 Total Anonymous Users: 42
Total Replies: 439748 Total Guests: 305
Total Posts: 521552    
Members ( View Memberlist )
Newest Members:  dxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestravelerjcatoncvadrata