First off, i'm a complete newbie hack (otherwise known as a "Flash guy").
With that out of the way, i'd like to pose this question:
In each user's profile, i'm trying to get a block to show embedded videos (YouTube and the like). I created a custom content type called "embedvideos" that is basically just a title field and a "paste embed code here" field (i have full html input specified as default).
Question - could someone help me with the required php to place in the new block i'm creating? Basically, it just needs to reference the content page the user created from the embedvideos content submission form, and show up in a block at the bottom of the page.
The site i'm working on, btw, is www.gladiatorg.com/community .
Thanks!
Paul
Comments
Just use the Views contrib.
Just use the Views contrib. module, then you don't have to mess with php.
- Corey
Just installed it
...and i'm lost. My problem seems just out of reach...i'm so close. I have the content type submitting and working perfectly. I just can't figure out how to display it where I need to...that being in a block at the bottom of each user's profile.
Thank you for the suggestion, by the way...
P.
First things first. Have
First things first. Have you been able to set up a view to pull the information that you need?
- Corey
No sir
...and I think that's where I'm stuck. Once I know how to pull it, then i'm pretty sure i can get it in a block that's viewed by user/*
P.
Here's how it should
Here's how it should go:
This code is necessary when the view is displayed in a block (per this comment).
Let's see if that gets your view going.
- Corey
Ok...done
But now, i get the following error message at the "content top" of every page:
user warning: You have an error in your SQL syntax near 'LIMIT 0, 10' at line 1 query: LIMIT 0, 10 in /var/www/vhosts/gladiatorg.com/httpdocs/community/includes/database.mysql.inc on line 172.
Also, the block is pulling in photos from the "My Photos" block i created earlier. Hey - at least i'm closer than before...
P.
Ok...done
But now, i get the following error message at the "content top" of every page:
user warning: You have an error in your SQL syntax near 'LIMIT 0, 10' at line 1 query: LIMIT 0, 10 in /var/www/vhosts/gladiatorg.com/httpdocs/community/includes/database.mysql.inc on line 172.
Also, the block is pulling in photos from the "My Photos" block i created earlier. Hey - at least i'm closer than before...
P.
That's odd. According to
That's odd.
According to that error, your SQL statement is almost non-existent. Are you sure that you added the fields to be viewed in step 3?
- Corey