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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-02-2015, 08:22 AM   #1
SeanLEE
Confirmed User
 
SeanLEE's Avatar
 
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
:stop 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):?>
<!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']; ?>"/>
The line:
<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!
SeanLEE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:28 AM   #2
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,857
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']; ?>"
__________________

Custom Coding | Videochat Solutions | Age Verification | IT Help & Support
www.2Much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:30 AM   #3
SeanLEE
Confirmed User
 
SeanLEE's Avatar
 
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
Quote:
Originally Posted by ********** View Post
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']; ?>"
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!
SeanLEE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:34 AM   #4
sarettah
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!
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:35 AM   #5
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,078
Quote:
Originally Posted by SeanLEE View Post
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 do believe that facebook is failing to see it because $fila[] does not exist as such. Again, just a guess.
__________________
All cookies cleared!
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:42 AM   #6
SeanLEE
Confirmed User
 
SeanLEE's Avatar
 
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
Quote:
Originally Posted by sarettah View Post
I do believe that facebook is failing to see it because $fila[] does not exist as such. Again, just a guess.
Yes I didnt want to put the whole code..the file exist...

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!
SeanLEE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:51 AM   #7
zerovic
Confirmed User
 
zerovic's Avatar
 
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
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 08:54 AM   #8
tical
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
tical is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 09:00 AM   #9
SeanLEE
Confirmed User
 
SeanLEE's Avatar
 
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
Quote:
Originally Posted by tical View Post
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.
exactly... so can you write a line of code to fix this and ill pay you?
__________________
I spammed in threads!
SeanLEE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 09:01 AM   #10
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,093
Ok, so you posted this line, which doesn't seem to be working

Quote:
<meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php?imagen=<?php echo $fila['imagen1']; ?>
and what I see, is that the $fila['imagen1']; don't display anything.

I would like to ask you to add this under this meta property line
Quote:
<?php
if($_GET['dev']) {
print_r($fila);
}
?>
and call the same url adding ?dev=1 to the end of the url

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:
<?php foreach ($data->result_array() as $fila) { ?>
<?php if (!empty($fila['imagen1'])) { ?>
<meta property="og:image" content="<?php echo base_url(); ?>upload/gallery.php?imagen=<?php echo $fila['imagen1']; ?>
<?php } } ?>
What it does, is basically creates the array based on $data->result_array(), and when $fila['imagen1'] is available, it will display the meta property.

Try it and let's see if it works out for you.
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 09:02 AM   #11
SeanLEE
Confirmed User
 
SeanLEE's Avatar
 
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
Quote:
Originally Posted by zerovic View Post
did you solve the issue? if not, add me on skype (tamas.redler) or icq (320334087) and i'll help you fix this badboy ;)
sent you a message on skype... help me out
__________________
I spammed in threads!
SeanLEE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-02-2015, 10:18 AM   #12
SeanLEE
Confirmed User
 
SeanLEE's Avatar
 
Join Date: Feb 2006
Location: Miami, FL
Posts: 1,556
Quote:
Originally Posted by zerovic View Post
Ok, so you posted this line, which doesn't seem to be working



and what I see, is that the $fila['imagen1']; don't display anything.

I would like to ask you to add this under this meta property line


and call the same url adding ?dev=1 to the end of the url

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



What it does, is basically creates the array based on $data->result_array(), and when $fila['imagen1'] is available, it will display the meta property.

Try it and let's see if it works out for you.

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!
SeanLEE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
code, line, pay, usd, person, fix, 25usd, programmers, attn, asap, site



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.