Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Facebook Image
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedFacebook Image

 Post Reply Post Reply
Author
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post Topic: Facebook Image
    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
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2011 at 9:43pm
Example:

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

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="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
Back to Top
Paul_T View Drop Down
Groupie
Groupie
Avatar

Joined: 14 September 2010
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paul_T Quote  Post ReplyReply Direct Link To This Post 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 [
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.