![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
|
![]() 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):?> <!DOCTYPE html> <html lang="en"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes" /> <title><?php echo $row->titulo; ?> - <?php echo $ciudad; ?><?php echo $this->codigo; ?> - <?php echo $this->categoria_model->ObtenerNombreCategoria($row->categoria);?> - <?php echo $this->website; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="<?php echo dinv_extracto(strip_tags($row->descripcion),10); ?>"> <meta name="description" content="<?php echo dinv_extracto(strip_tags($row->descripcion),40); ?>"> <meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php?imagen=<?php echo $fila['imagen1']; ?>"/> <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
__________________
I spammed in threads! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,858
|
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']; ?>"
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
|
It looks like you wrote the same line? I understrand what your saying..but the problem is facebook cant read the <?php echo $fila['imagen1']
__________________
I spammed in threads! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,078
|
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. .
__________________
All cookies cleared! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,078
|
I do believe that facebook is failing to see it because $fila[] does not exist as such. Again, just a guess.
__________________
All cookies cleared! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
|
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
__________________
I spammed in threads! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Apr 2010
Posts: 1,093
|
did you solve the issue? if not, add me on skype (tamas.redler) or icq (320334087) and i'll help you fix this badboy ;)
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Feb 2002
Location: Las Vegas
Posts: 6,504
|
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.
__________________
112.020.756 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
|
Quote:
__________________
I spammed in threads! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |||
Confirmed User
Industry Role:
Join Date: Apr 2010
Posts: 1,093
|
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.
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com |
|||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
|
sent you a message on skype... help me out
__________________
I spammed in threads! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
|
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!)
__________________
I spammed in threads! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |