![]() |
Attn Programmers I Will Pay 25USD To Fix One Line Of Code (NEEDED ASAP)
I need help with a site. I will pay 25 usd to the first person who can help me with 1 line of code.
Here is a snippet of the code: Code:
<?php foreach ($query->result() as $row):?> <meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php?imagen=<?php echo $fila['imagen1']; ?>"/> when I run it through facebook debugger tool it only sees: <meta property="og:image" content="http://www.hiphopfind.com/upload/gallery.php?imagen="> It cant pick up the <?php echo $fila['imagen1'] Can someone tell me what line of code I can place before this for it to be able to read this? I will send 25usd to first person who can help me with this issue. Thanks In advance! If you need contact me on skype to fix go: Skype: seanleebiz |
Try changing
<meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php?imagen=<?php echo $fila['imagen1']; ?> to <meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php"?imagen="<?php echo $fila['imagen1']; ?>" |
Quote:
|
There really is not enough code there to be sure what the issue is but my guess would be that instead of echo $fila['imagen1']; You should have echo $row->imagen1; or some such. (I say thatbecause fila means row. It looks like someone modified a script and maybe missed changing up a var to me.
Without seeing what is in the database and what vars are coming from where all anyone can do is guess. . |
Quote:
|
Quote:
here is another snippet of code: <?php if ($numero_imagenes>0) { ?> <?php foreach ($data->result_array() as $fila) { ?> <?php if (!empty($fila['imagen1'])) { ?> <div class="d_al"><a href="<?php echo base_url()."upload/gallery.php?imagen=".$fila['imagen1']; ?>" rel="lightbox[gallery]" title="<?php echo $row->titulo; ?>" > <img src="<?php echo base_url(); ?>upload/image.php?imagen=<?php echo $fila['imagen1']; ?>" border="0"><br> Enlarge Picture</a></div> <?php } ?> when i put this line somewhere after this code it picks up the whole link: <meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php?imagen=<?php echo $fila['imagen1']; ?>"/> but i need it to pick it up earlier in the code in the header I know confusing especially since Im not revealing all code and the such |
did you solve the issue? if not, add me on skype (tamas.redler) or icq (320334087) and i'll help you fix this badboy ;)
|
That's because $fila['imagen1'] is empty in some instances.
It works when you place it in the "...php if(!empty..." block because that code would only run when $fila['imagen1'] is not empty. If you place your display code before the "...foreach ($data->result_array() as $fila)..." then it won't work because $fila hasn't been created yet. |
Quote:
|
Ok, so you posted this line, which doesn't seem to be working
Quote:
I would like to ask you to add this under this meta property line Quote:
So we can make sure the the array already exists! As you stated, that the code works below, I assume that the array is not created when you try to use it. To make it work, simply create the array before adding the meta property, so it will look like this Quote:
Try it and let's see if it works out for you. |
Quote:
|
Quote:
Thanks for your work!!!! Job complete!~ Im VERY happy and I think I just found a new programmer for my team!!!! Thanks Zerovic your the man!!!! (and you work super fast!) |
All times are GMT -7. The time now is 03:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123