Print Page | Close Window

Facebook Image

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz NewsPad
Forum Description: Support forum for the Web Wiz NewsPad application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30069
Printed Date: 29 March 2026 at 2:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Facebook Image
Posted By: Roberto Randall
Subject: Facebook Image
Date Posted: 27 December 2011 at 7:29pm
In post.asp
 
I want to put in "<meta property=""og:image"" content=""" & strFacebookImage & """/>" displays an image inserted in the text of the message.
 
If I create a text within the newsletter I put a picture I want this image to appear as "strFacebookImage." If no image appears like that is put into the database.
 
Can anyone help me?
 
I am looking for a code that only displays the full url Bulletin of the image. This also helps me to put it in Web Wiz Forum.
 
Thank you.


-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Replies:
Posted By: Roberto Randall
Date Posted: 27 December 2011 at 9:43pm
Example:

This text (source) I just want it to appear: "

 view-source:http://www.lanocion.es/uploads/pictures/fiesta_de_Nochevieja.jpg" rel="nofollow - http://www.lanocion.es/uploads/pictures/fiesta_de_Nochevieja.jpg 
"


<div class="msgBody" style="float:left; overflow:auto;">
       <P>La concejala de Fiestas y Tradiciones del Ayuntamiento de Fuengirola, Isabel Moreno, ha ofrecido esta mañana una rueda de prensa para in&#102;ormar de la tradicional Fiesta de Fin de Año, que este año por primera vez se celebrará en la plaza de España.</P>
<P>La edil ha explicado que "este año la Fiesta de Fin de Año, que tradicionalmente se venía celebrando en la plaza de la Constitución, cambia su ubicación y pasará a celebrarse en la plaza de España, donde se repartirán botellas de sidra, bolsas de cotillón y uvas de la suerte". En concreto, Moreno ha explicado que se van&nbsp; repartir más de 300 botellas de sidra, 600 bolsas de cotillón y 2.500 unidades de uvas de la suerte.</P>
<DIV align=center><IMG border=0 src=" view-source:http://www.lanocion.es/uploads/pictures/fiesta_de_Nochevieja.jpg" rel="nofollow - http://www.lanocion.es/uploads/pictures/fiesta_de_Nochevieja.jpg " width=448 height=322></DIV>
<DIV>&nbsp;</DIV>
<DIV>La Fiesta, que comenzará a las 23:00 horas, contará con la animación musical de la Orquesta Punto y Aparte, que amenizará por tercer año consecutivo la llegada del nuevo año con bailes hasta altas horas de la madrugada. Moreno ha explicado también que este año será el reloj del Ayuntamiento el que marcará las doce campanadas.</DIV>
<P>Por otra parte, el día 31 de diciembre todos los mayores del municipio que lo deseen están invitados a participar en la Gran Fiesta de Fin de Año de Tercera Edad, que este año se celebrará en el Hogar Social de Puebla Lucía. Como es habitual, los asistentes a la fiesta tendrán uvas, cava y cotillón para celebrar las campanadas.</P>
<P>Este año, la empresa concesionaria de este Hogar Social ha organizado también una cena de Fin de Año que dará comienzo a partir de las 19:30 horas y que tendrá un precio, fijado por la propia concesionaria, de 35 euros. </P>
<P>Las puertas del Hogar Social se abrirán a todo el mundo a partir de las 11:30 horas, cuando dará comienzo la Fiesta de Nochevieja de Tercera Edad, con entrada gratuita y uvas, cava y cotillón para todos.</P>
      </div>



-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat


Posted By: Paul_T
Date Posted: 28 December 2011 at 8:16am
Do you mean you want the image to be in the text of a post?



You need to use {IMG}http://www.lanocion.es/uploads/pictures/fiesta_de_Nochevieja.jpg{/IMG}

But replace the { with [


Posted By: Roberto Randall
Date Posted: 28 December 2011 at 10:14am
Sorry for my English but I do not know. I translated with google.

I just want all the text that I have in this field of database only shows the url of the image.

I think it is done with javascript. You must be a function that displays only what's between "src ="" and " ""


-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat


Posted By: Roberto Randall
Date Posted: 28 December 2011 at 3:02pm
I've created the code. I leave here for Web Wiz if they want a new update of Newspad and Forum.


On the top:

Dim lngStartPosf        'Holds search start postions
Dim lngEndPosf            'Holds end start postions


Put in the line 156


    'Image Facebook
    If InStr(1, strBlogPost, "src=", 1) > 0 AND InStr(1, strBlogPost, """", 1) > 0 Then

    'Get the start and end of the Facebook
    lngStartPosf = InStr(1, strBlogPost, "src=", 1) + 5
    lngEndPosf = InStr(lngStartPosf, strBlogPost, """", 1)

    'Get the original code to be replaced in the message
    strFacebookImage = Trim(Mid(strBlogPost, lngStartPosf, lngEndPosf-lngStartPosf))
   
    End If



-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net