How do I enable a new variable for a plugin?
Posted: 26 May 2005 12:53 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  836
Joined  04-17-2002

I’ve successfully retrieved the relevant value from the relevant tables. How do I enable those as variables to use within a plugin? Is there an accepted method? There seems to be more than one way to do it.

eg: I can get the thumb URL from one of the gallery tables in the database. How do I get from thumb_url in php to {thumb_url} in EE?

 Signature 

antipodean.org | uptheduff.org

Profile
 
 
Posted: 26 May 2005 08:32 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

In your PHP, what you’re really doing is looking through the content returned from within the tag and then if some certain string is found (say, “{thumb_url}”) then an action is taken or different content is inserted.

I’d suggest looking at a couple of the Plugins written by either Paul or Rick for examples.

 Signature 

Chris Curtis
chriscurtis.org

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: 64978 Total Logged-in Users: 25
Total Topics: 82014 Total Anonymous Users: 14
Total Replies: 440812 Total Guests: 187
Total Posts: 522826    
Members ( View Memberlist )