vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

MacroPhotoPro 10-08-2013 09:19 PM

Adding a Comments Box to the Page

Once again, this is a great piece to add to my site, and a great tutorial.

I am using this basic page to display photographs, but I want to add a "Comments Box" to each generated page (like the default Blog and Articles pages have).

How would I go about doing this?

Can I just copy/paste the appropriate material from the blog.php or article.php, or do I have to use customization?

Thanks again!

Jack

Lynne 10-08-2013 10:51 PM

You would need to create a form in the template to do something with the comments and then you will need to write the php code to process any comment made. You will probably be able to copy alot of it from the blog/article page, but it will be different since you will be storing the data in a different table in the database.

MacroPhotoPro 10-10-2013 04:57 PM

Thank you.

smirkley 10-12-2013 03:09 AM

Just a statement,.. I will be posting my code, I just am covered up at the moment at home.

smirkley 10-14-2013 02:19 AM

Quote:

Originally Posted by smirkley (Post 2450055)
I love the way this mod works, and am building a functionality for my forum with it.

I have played with many variations of what I can do, but I found myself stuck in using my example.php page file to fill a variable array from a list in a custom database, and then get it to printout the list of database contents on the template form.

I will admit I havent read every page here (still workin on that lol), but I so far have not been able to figure this one out.

If anyone has sucessfully done something like this with this mod, throw me a clue of what I am not able to figure out. Thanks big time.

Ok, I am available now to address my intended integration of this tutorial into a custom product. (every time I tell my wife I want to do some coding, she always says "fine", but I always end up repainting a bedroom or remodeling a bathroom instead. I havent figured out how that works yet. lol)


This is what I have so far....

1 - I created a product xml that creates a database and supporting template very similar to the one posted by Lynne. The template has several if ($_REQUEST['do'] =='s installed for different page renderings depending on function desired. IE: home,list,add,edit,delete of database entries. So far, works perfectly.

Now I am working on the list part of the database. I have entered several rows of test data into the database manually through phpmyadmin. As I ventured into using if ($_REQUEST['do'] == 'history') in the php file I know that I have to build an array to send to the template (sorted by date).

Database structure: date field, data1, data2, data3, data4, data5, data6

I tried to build a loop to fill a variable array and it seemed that it was working, but I couldnt figure out how to list that array in the template. I am unsure if I have to register the variable, it is only used on this feature I am making.

When I tried to output the array in the template, it would print out one row of data (correctly), not the whole database, and it would be on the very top of my page above the header.

I am going to have to reconstruct it again to get to that point, I seemed to have trashed the experimental code in frustration of not getting it to work, and having to start the bedroom remodel. :(

Lynne 10-14-2013 09:51 PM

You can't use echo or it will end up on the top of the page. You need to take your data and output it to a variable:

$myvar = '';
start of loop
$myvar .= "html here";
end of loop
make sure to register $myvar for use in your template

and in the template, put
{vb:raw myvar}

smirkley 10-14-2013 10:42 PM

Thanks, will give that a try.

(I suppose you saw my error in stating that the multiple "do" functions were put in the template, I meant they were put in the php file, each one with a different template used.)

--------------- Added [DATE]1381803115[/DATE] at [TIME]1381803115[/TIME] ---------------

Ok, there is a reason I dont release mods here. Cous I seem to struggle with the obvious lol.

I have registered the variable,...
$templater->register('history', $history);

I thought I would just start simple and just have 1 row in my database. From there I will expand on it once I can get a simple read done.

This is my php query. (kinda found it while searching the forums and modified it to my purpose)

Code:

$result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "history");
 
while ($l_history = $vbulletin->db->fetch_row($result)){
    $history[] = $l_history[1];
}

But using {vb:raw history} in my template produces a blank whereas there is actual data in the database fields.

Lynne 10-15-2013 09:17 PM

I would use fetch_array in case you to later have multiple rows and you should specify the field you want. Assuming you want history.field, then:

PHP Code:

$result $db->query_read("SELECT * FROM " TABLE_PREFIX "history");
 
$l_history['field'] = '';
while (
$l_history $db->fetch_array($result)){
    
$history['field'] .= $l_history['field'];


and then in the template:
HTML Code:

{vb:raw history.field}

FBRN_Andrew 10-15-2013 10:49 PM

Quote:

Originally Posted by Zoul (Post 2448861)
Hello FBRN_Andrew

if I'm not mistaken, and I understand the question in the template created, you just add this before the tag
HTML Code:

</head>
Code:

<style type="text/css">
#navbar_notice_1 {
display: none;
}
</style>


thanks for the reply
Greetings I added the lines you included, the page looks much better, but still seems to be in a "not logged in" mode.

I'm not much of a PHP coder so I don't really know what code I should paste in to explain.

--------------- Added [DATE]1381881251[/DATE] at [TIME]1381881251[/TIME] ---------------

Also since the 4.2.2 patch I removed the tabs hack and changed to navigation manager, using "member" as the group to see most tabs. so when I go to the new page the menu(tabs) also switch to logged out mode. however clicking the home link, or back puts you back to logged in status.

smirkley 10-16-2013 02:50 AM

Quote:

Originally Posted by Lynne (Post 2453697)
I would use fetch_array in case you to later have multiple rows and you should specify the field you want. Assuming you want history.field, then:

PHP Code:

$result $db->query_read("SELECT * FROM " TABLE_PREFIX "history");
 
$l_history['field'] = '';
while (
$l_history $db->fetch_array($result)){
    
$history['field'] .= $l_history['field'];


and then in the template:
HTML Code:

{vb:raw history.field}

Lynne, I do appreciate your valued input.
I tried to make it work but I produced db errors in the process.

Info: I have one row now, but I anticipate in the future many rows, each one containing 7 columns. And in this routine I wish to list on my page all the rows.

So this is what I did with your suggestion....


Code:

$result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "history");
 
$l_history['field'] = '';
while ($l_history = $db->fetch_array($result)){
    $history['datefield','field1','field2','field3','field4','field5','field6'] .= $l_history['datefield','field1','field2','field3','field4','field5','field6'];
}

with the variable registered as stated.


But this doesnt work nicely with sql.

My apologies for being not so sql inclined, and I dont wish to burdon you with 'teaching' me how to make this work, but I am not so skilled at database manipulation.
(I am hoping to learn how to make this work so I wont be such a bother in the future)

--------------- Added [DATE]1381977398[/DATE] at [TIME]1381977398[/TIME] ---------------

I have decided I am going to do a crash course on sql. I need to be able to do more than hope someone here can hold my hand making something that would otherwise add several pages in this thread. The above responces have indeed helped me, but what I am trying to create is going to be propietary to my website, and I am stumped on just the first section of it out of several. It is my responsibility to educate myself so my questions remain more attached to the subject.

Lynne, you have been a great help especially with this tutorial.
This is in fact an amazing addition to anyone that wishes to do custom pages using templates, php, etc, on a forum setup.

Thanks again.

stevectaylor 10-19-2013 03:25 PM

Quote:

Originally Posted by Lynne (Post 2282882)
Did you try just adding them into the template after the headininclude template is called?

HTML Code:

<meta name="keywords" content="xxxx" />
<meta name="description" content="yyyy" />

and then change the condition in the headinclude template to not show those for your page:
HTML Code:

<vb:if condition="$show['threadinfo'] OR Your Condition">

<vb:elseif condition="$show['foruminfo']" />
other stuff....
        <meta name="keywords" content="{vb:raw vboptions.keywords}" />
        <meta name="description" content="{vb:raw vboptions.description}" />
</vb:if>


Hi Lynn,

A little stuck on this?

--------------- Added [DATE]1382201159[/DATE] at [TIME]1382201159[/TIME] ---------------

And if just by a little fairy dust of posting that if came too me what I did wrong. lol

MacroPhotoPro 10-20-2013 01:30 PM

1 Attachment(s)
Hello;

I am creating an image-hosting website for which I require custom pages. This page serves the purpose, but I notice that it does not automatically re-size like the other vBulletin pages (see attached).

For example, my main desktop monitor has 1920 screen resolution, whereas the ancient laptop I am on right now only has 1024 screen resolution.

When I view the vBulletin forum on the smaller screen, everything is automatically re-sized so that it fits my 1024 resolution screen. (it even gets re-sized to fit my smartphone screen.

However, my custom page does NOT automatically re-size, and so the excess images/text kind of "spills over" to the right (again see attachments for a comparison).

So my question is, how do I construct my custom pages so that they too automatically re-size to fit smaller screens?

Thanks for any help,

Jack

cellarius 10-20-2013 03:19 PM

My guess: Do you use a mobile style? If that is the case, you need to have a fitting template for your cutom page in your mobile style.

MacroPhotoPro 10-20-2013 04:13 PM

Quote:

Originally Posted by cellarius (Post 2454904)
My guess: Do you use a mobile style? If that is the case, you need to have a fitting template for your cutom page in your mobile style.

Thank you for answering, but it has nothing to do with the mobile style. It has to do with some kind of auto-resolving I think.

For example, there is no mobile style being used when I click the forum tab, yet the forum.php page automatically resolves to fit the resolution of my smaller screen ... yet this same thing does not happen when I click my ImageHosting tab and get my imagehosting.php page.

In no case have I employed my mobile style. I have used my own customized style, yet some kind of coding is in my forum.php page that is not in my custom php page, and that "something" is what I am inquiring about :)

Thanks again,

Jack

Digital Jedi 10-20-2013 04:47 PM

Quote:

Originally Posted by MacroPhotoPro (Post 2454884)
Hello;

I am creating an image-hosting website for which I require custom pages. This page serves the purpose, but I notice that it does not automatically re-size like the other vBulletin pages (see attached).

For example, my main desktop monitor has 1920 screen resolution, whereas the ancient laptop I am on right now only has 1024 screen resolution.

When I view the vBulletin forum on the smaller screen, everything is automatically re-sized so that it fits my 1024 resolution screen. (it even gets re-sized to fit my smartphone screen.

However, my custom page does NOT automatically re-size, and so the excess images/text kind of "spills over" to the right (again see attachments for a comparison).

So my question is, how do I construct my custom pages so that they too automatically re-size to fit smaller screens?

Thanks for any help,

Jack

What is the width parameters set for the large image displayed in the photo pages? Do you have a [minicode]max-width[/minicode] set, because that seems to be what's pushing the images off screen.

MacroPhotoPro 10-20-2013 04:56 PM

Quote:

Originally Posted by Digital Jedi (Post 2454920)
What is the width parameters set for the large image displayed in the photo pages? Do you have a [minicode]max-width[/minicode] set, because that seems to be what's pushing the images off screen.


I don't know. Possibly, yes. We have different-sized thumbnails: tiny, small, medium, large, jumbo (150 px, 400 px, 800 px, 1200 px, and 2500 px).

I just use the template, and so maybe there can be some kind of "flexible" coding employed that adjusts???

Thank you.

Lynne 10-20-2013 05:28 PM

Quote:

Originally Posted by MacroPhotoPro (Post 2454924)
I don't know. Possibly, yes. We have different-sized thumbnails: tiny, small, medium, large, jumbo (150 px, 400 px, 800 px, 1200 px, and 2500 px).

I just use the template, and so maybe there can be some kind of "flexible" coding employed that adjusts???

Thank you.

If you want images to automatically resize when you change the browser size, then you need to write some CSS to have it do this. The only way we can help with that is if you post a link to the custom page with the images on it.

Rudiere 10-23-2013 10:45 PM

Quote:

Originally Posted by Lynne (Post 2453358)
You can't use echo or it will end up on the top of the page. You need to take your data and output it to a variable:

$myvar = '';
start of loop
$myvar .= "html here";
end of loop
make sure to register $myvar for use in your template

and in the template, put
{vb:raw myvar}

Where do I put this code?

To perform within the models.

Lynne 10-24-2013 01:32 AM

Quote:

Originally Posted by Rudiere (Post 2455675)
Where do I put this code?

To perform within the models.

The top is php code, so it goes into your php file. The bottom is template code so it goes into your template. But that was in answer to a question and isn't going to help you much unless you understood the original question and what was going on.

MacroPhotoPro 11-09-2013 05:30 PM

One of the things I noticed on this "custom page" is that photographs which are put on the page do NOT display on Facebook ... whereas they DO display on default vBulletin pages.

For example, if I have a photo on a Forum post, or a Blog Post, or an Article post ... and if I place the URL to that post/article on Facebook ... I get a choice of photo thumbnails to choose from, to associate on Facebook, which includes the photos that I want displayed.

But that does not work for this custom page here. When I post the URL of any page I create with this template on FB, my choice of thumbnails only shows the vBulletin Logo or my Avatar ... any photos I post are not available. What do I have to do to change this?

When I have a photo on this custom page, and if I post the URL to it, I want my photos to be among the thumbnail choices I have.

How can I accomplish this?

Thanks,

Digital Jedi 11-10-2013 01:38 AM

That would be outside the scope of the article, since that's a Facebook thing. You would need to look at their documentation or articles such as this one for what you need to do control how thumbnails show up.

MacroPhotoPro 11-10-2013 11:13 PM

Quote:

Originally Posted by Digital Jedi (Post 2459580)
That would be outside the scope of the article, since that's a Facebook thing. You would need to look at their documentation or articles such as this one for what you need to do control how thumbnails show up.

Thank you.

Rudiere 11-10-2013 11:50 PM

So how do I pull a php file in the models. Why can not I use php code.

Morrus 11-14-2013 02:07 AM

First, thanks for the tutorial!

OK, this is probably a really silly question.

My template isn't fully parsing HTML. The test is fine, and a href links are fine. But line breaks and bullet points are being ignored.

Here's an example:

http://www.enworld.org/forum/features.php?styleid=14

It's ignring all the <ul>s and the <li>s. Any idea why that might be?

Lynne 11-14-2013 02:48 AM

Quote:

Originally Posted by Morrus (Post 2460562)

It's ignring all the <ul>s and the <li>s. Any idea why that might be?

Try a search in the thread because this has been covered several times already. :)

Morrus 11-14-2013 10:16 AM

Quote:

Originally Posted by Lynne (Post 2460573)
Try a search in the thread because this has been covered several times already. :)

The word "bullet" shows up in the search just once, and somewhat briefly ending with "but this goes outside the scope of this article".

--------------- Added [DATE]1384439034[/DATE] at [TIME]1384439034[/TIME] ---------------

OK, so a search for "HTML" gives a lot of results. The closest I can find is where yous ay to ad the following "to the custom CSS for your page". What does "the custom CSS for your page" mean? The only CSS stuff I'm familiar with is a bunch of CSS templates and a Main CSS editor thing. Where do I put the custom CSS for my page?

Quote:

<style type="text/css">
strong {font-weight:bold;}
ul.unordered li {list-style-type: disc;list-style-position:inside; display: list-item; margin-left: 2.5em; padding-left: 0;}

ul.unordered ul li {list-style-type: circle; display: list-item;margin-left: 2.5em; padding-left: 0;}
</style>
Plus, presumably, that's only one HTML thing? So to use HTML you need to pretty much code every HTML tag from scratch? Seems to rather defeat the point of an easy method of using HTML to create a custom page!

--------------- Added [DATE]1384452204[/DATE] at [TIME]1384452204[/TIME] ---------------

It's just occurred to me that I can accomplish the same effect with a CMS article in its own section. I'm not sure why that didn't occur to me before.

Digital Jedi 11-14-2013 07:15 PM

Quote:

Originally Posted by Morrus (Post 2460623)
The word "bullet" shows up in the search just once, and somewhat briefly ending with "but this goes outside the scope of this article".

--------------- Added [DATE]1384439034[/DATE] at [TIME]1384439034[/TIME] ---------------

OK, so a search for "HTML" gives a lot of results. The closest I can find is where yous ay to ad the following "to the custom CSS for your page". What does "the custom CSS for your page" mean? The only CSS stuff I'm familiar with is a bunch of CSS templates and a Main CSS editor thing. Where do I put the custom CSS for my page?



Plus, presumably, that's only one HTML thing? So to use HTML you need to pretty much code every HTML tag from scratch? Seems to rather defeat the point of an easy method of using HTML to create a custom page!

--------------- Added [DATE]1384452204[/DATE] at [TIME]1384452204[/TIME] ---------------

It's just occurred to me that I can accomplish the same effect with a CMS article in its own section. I'm not sure why that didn't occur to me before.

You would search for "list" rather. But yes, you need CSS defined for your lists in this area in order for the lists to work properly. If you decide to go that route, just take a look at W3Schools for some quick tutorials.

Morrus 11-15-2013 10:12 AM

Quote:

Originally Posted by Digital Jedi (Post 2460747)
You would search for "list" rather. But yes, you need CSS defined for your lists in this area in order for the lists to work properly. If you decide to go that route, just take a look at W3Schools for some quick tutorials.

I know how to write basic CSS elements; it's not CSS that's my problem, it's vbulletin. What I don't know is where "to the custom CSS for your page" is. Does that mean creating a new CSS template specially for the new page? Adding CSS elements to an existing template such as additional.css? Somewhere else entirely?

I've poked around, and while there are CSS templates for *some* pages, named xxxx.css in the styles/template manager, there obviously isn't one for the new page unless I create it myself. Plus there's a whole "Main CSS" option in the style manager.

That all said, I just went with the article approach in the end. It looks pretty tidy if you strip away a lot of the surrounding stuff.

Lynne 11-15-2013 07:08 PM

Just add your custom CSS for that page to the template for the page.

Morrus 11-17-2013 12:09 AM

Quote:

Originally Posted by Lynne (Post 2460994)
Just add your custom CSS for that page to the template for the page.

Oh, just right on the page template itself? That's simple enough. Thanks - I'll remember that for the future!

mort2412 11-27-2013 09:11 PM

How would I go about adding an external web link to appear in the page, similar to how panjo appears

thanks

BBNZowner 12-23-2013 11:08 PM

This is great. Just need to sort out my text coding and it will be sweet. Might even solve a few annoying errors I've had by using CMS articles as pages instead of custom pages.

usHealthy 02-05-2014 04:54 AM

Will love to see this working on v5

FelipeB 02-26-2014 06:01 PM

Hi, I'm new on this, and I'm having trouble to create a page out off the Forum root, inside the root everything is fine, but out side is without CSS...

My Forum is in:
/var/www/forum

My page is in:
/var/www/tests.php

This is my code...
Code:


// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT', 'TEST');
define('CSRF_PROTECTION', true); 
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('TEST',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
chdir('/var/www/forum/');
require_once('./global.php');


// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = construct_navbits(array('' => 'TEST'));
$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####

$pagetitle = 'TEST';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('TEST');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

and my tempate...
Code:


       
HTML Code:

       
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   

    <div class="blockbody">
      <div class="blockrow">
                TEST
          </div>
    </div>
   
    {vb:raw footer}
       
  </body>
</html>




Eq4bits 02-26-2014 06:31 PM

you need to set an 'include' phrase that 'points' to the location of your css file

FelipeB 02-26-2014 06:42 PM

Could you show me?? As I say, I'm new on this, and don't have idea where is the CSS of Vbulletin...

MacroPhotoPro 02-28-2014 11:54 PM

1 Attachment(s)
Quote:

Originally Posted by Digital Jedi (Post 2459580)
That would be outside the scope of the article, since that's a Facebook thing. You would need to look at their documentation or articles such as this one for what you need to do control how thumbnails show up.


Hello again,

I am creating a photography database application, so sharing pictures is an absolute must. When a person is on the "view pic" page, a facebook link is there as well so that the person can share the pic on facebook.

I am able to share the post to the person's wall, successfully, but instead of presenting a thumbnail of my desired photo, all that is being posted is a thumbnail of my forum logo. I cannot figure out how to override this and include the desired picture in the Facebook popup for posting. I tried to follow the instructions on your link, and it simply doesn't work. It's beyond a FB problem, it's intrinsic to vBulletin, and it's driving me nuts.

Before I make the dynamic solution to this problem, my goal is to first establish a static proof-of-concept. Here is the html I am using in the root directory. Notice I am intending on using the Facebook OpenGraph tool to a linked picture:

It is as if all the custom "meta" tags are being completely ignored by something inside vBulletin.

How can I include a custom pic in my Facebook Shares? Your help is greatly appreciated.

Code:

<html>
<head>
        <meta property='fb:app_id' content='473597412755690' />
        <meta property='og:site_name' content='Nature Photography Resource & Database' />
        <meta property='og:description' content='Online community for dedicated macro photographers worldwide.' />
        <meta property='og:url' content='http://www.macrophotopro.com' />
        <meta property='og:type' content='website' />
        <meta property='og:image' content='http://www.macrophotopro.com/thumbnails/1/1_thumb_0000000548_tiny.jpg'>
</head>
       
<body>
        <div id='fb-root'></div>
        <script>(function(d, s, id) {
                  var js, fjs = d.getElementsByTagName(s)[0];
                  if (d.getElementById(id)) return;
                  js = d.createElement(s); js.id = id;
                  js.src = '//connect.facebook.net/en_US/all.js#xfbml=1&appId=473597412755690';
                  fjs.parentNode.insertBefore(js, fjs);
        }
        (document, 'script', 'facebook-jssdk'));
        </script>
       
       
        <div class='fb-share-button' data-href='http://www.macrophotopro.com/' data-type='button_count'>
        </div>
</body>
</html>

A pic of what happens when I click the Facebook button is shown in the attached Pic (notice that other metatags are also being completely ignored.)

This is the picture that SHOULD be appearing on the Share:

http://www.macrophotopro.com/thumbna...00548_tiny.jpg

However, the attached below (my forum logo) is what's actually getting displayed. What do I have to do to get the desired pic to override the default posting of the logo?

Help is greatly appreciated!

Lynne 03-01-2014 05:07 PM

Right now, if I go to your site, you have it turned off. That means an Unregistered user may not see a thing. And, if you are testing your script while it is turned off, remember that Facebook is an Unregistered User and so the only image they can grab is your logo.

MacroPhotoPro 03-01-2014 09:48 PM

Quote:

Originally Posted by Lynne (Post 2484484)
Right now, if I go to your site, you have it turned off. That means an Unregistered user may not see a thing. And, if you are testing your script while it is turned off, remember that Facebook is an Unregistered User and so the only image they can grab is your logo.

Hi Lynne;

I am not sure I made myself clear.

What we're trying to do has nothing to do with a person being registered, logged-in, or anything like that. This has to do with a Facebook "share" button on our custom page NOT being able to share a desired image onto FB. A person should NOT have to be registered onto my site, at all, for the share button to work nor for the image to be displayed. The share button works, and the image should display because of the coding, but yet it is not.

I do understand what you're saying about the forum being turned off, but we did test the procedure with it turned on, and still got the logo, not the desired image. The meta content is structured so that the spider image should display, but yet only the logo displays.

I believe vBulletin has some static, overriding code to where only vBulletin's logo displays (or whatever logo is up there), and we are trying to circumvent or identify this code and change it.

It should have absolutely nothing to do with whether a person is logged in to our site or not. In fact, the whole idea is to advertise to NON customers of our site, to Facebook, so they can click on the FB image and be taken back to our site. These people will not be customers, so their being logged in should have no bearing on seeing the image or not.

We believe we have the coding correctly ... we have the reference to the correct thumbnail ... yet it's showing only the logo.

What overriding code to we need to get rid of to get what we want displayed, displayed?

Thanks and I hope this was clear :)

Jack

PS: Click this link, click the FB button, and see what I mean: http://www.macrophotopro.com/fb.html

MacroPhotoPro 03-03-2014 04:29 PM

Hello ...


All times are GMT. The time now is 05:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02727 seconds
  • Memory Usage 1,925KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (6)bbcode_html_printable
  • (2)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete