Recent & Featur...
 
Notifications
Clear all

Recent & Featured blocks for 2 bridged efic sites

6 Posts
3 Users
0 Reactions
1,489 Views
(@Jennmc75)
Posts: 0
 

I'm still very new to any type of coding so bear with me if I'm wanting something that is just not possible.

I'm working on bridging 2 eFic sites.  I want to have a Recent and Featured block for each site on each index page.  Both sites will be in the same database.  One site will have no prefix on the table names and the other one will (example...  site 1 fanfiction_tablename and site 2 prefixfanfiction_tablename).  I want to modify a Recent and Featured block file and rename them Recent2 and Featured2.  I assume I will need to add an include folder in each of the new block files and that folder will need to contain a query to point the block to the proper table for the 2nd site.  I just am not sure exactly what code to add to the admin.php and recent2/featured2.php files to direct the program to that query file.  Is this at all possible?  If so, any help would be greatly appreciated.

Thanks!
~Jenn


 
Posted : 16/08/2010 12:05 pm
(@tammy)
Posts: 2577
Member Moderator
 

Why?  Are you wanting the recent and featured from Site A to appear in Site B?  That's the only reason you would need to do this.


 
Posted : 16/08/2010 5:45 pm
(@Jennmc75)
Posts: 0
 

That is exactly what I'm wanting to do.  I've been playing around all day and having no luck.


 
Posted : 16/08/2010 5:47 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Since there's an RSS feed for most recent that come with eFic, you could use the RSS Feed Block to display most recent from one eFic site on another with no bridging necessary. This won't help with featured, though.


 
Posted : 16/08/2010 9:27 pm
(@tammy)
Posts: 2577
Member Moderator
 

Probably the easiest thing would be to do a str_replace on the queries in the two blocks replacing the table name for site A with the table name for site B.  You should only need to copy and alter the folder for the specific block.


 
Posted : 22/08/2010 3:06 pm
(@Jennmc75)
Posts: 0
 

Thanks!  I'll give it a try.


 
Posted : 22/08/2010 4:14 pm
Share: