inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 11, 2013 15:49:47 GMT -8
The code you had before was close, you just needed to loop through the items in your blocks array instead of accessing them directly.
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 11, 2013 16:37:49 GMT -8
Tim please treat me like a noob. Could you explain where I'm putting the blocks in my code and where to start the loop? Can I put the code in the main footer like I had it? Thanks
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 11, 2013 17:11:03 GMT -8
Literally take the code you had before, the line where you tried to access $[plugin.whatever.somevariable.blocks.somename] and replace it with a simple {foreach $[plugin.whatever.somevariable.blocks.somename]}$[plugin.whatever.somevariable.blocks.somename]{/foreach} type thing. I can't give you any specifics without seeing the actual code.
|
|
inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Dec 11, 2013 17:14:44 GMT -8
Tim please treat me like a noob. Could you explain where I'm putting the blocks in my code and where to start the loop? Can I put the code in the main footer like I had it? Thanks i'm gonna attempt to explain this based on my easy affiliate pluginmy auto forms variable ID is "affiliates" and each affiliate code is "affiliate_code" now on the components page on the right you'll notice "affiliates" and "affiliates.affiliate_code" you want to do a "foreach" statement to loop through the autoform: {foreach $[plugin.settings.affiliates]}stuff to be repeated (explained next) {/foreach}inside the "foreach" statement you want to put the variable for the "affiliate_code" element {foreach $[plugin.settings.affiliates]}$[plugin.settings.affiliates. affiliate_code] {/foreach}
now the "foreach" will automatically output whatever was entered in the autoforms "affiliate_code" inputs. let me know you get that much. i'll help you more if i can.
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 11, 2013 17:56:30 GMT -8
Richie,I set it up but will not except any url I put in. I used this: <a href="http://healthsense.proboards.com"><img src="https://dl.dropboxusercontent.com/u/94761670/mini.png"/img></a> Edit: never mind I figured it out. How do you get two tables side by side? I have the affiliate table and the admin affiliate table but I can't seem to get them side by side. any suggestions?
|
|
Former Member
inherit
guest@proboards.com
131621
0
Dec 1, 2024 16:27:47 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 11, 2013 22:58:03 GMT -8
It might be a good idea to wait to undertake such a large coding task for when you understand coding a bit more. Maybe utilize codeacademy.com and learn some more about what you're using. Or looking into one of the other Affiliate Plugins already made orrr just not using a plugin since you have a basic header/footer code and can easily do this without a plugin. Or maybe just posting this in Plugin Development since that is what this has become..
|
|