Thumbnail Images With Rollover Post Title
I'm trying to have alter a featured posts plugin on Wordpress. I'd like to have the thumbnail appear with the title appear when the user rolls over the image. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Getting Images To Rollover - Placement
I basically want to use a GET to find out which Template my customer has chosen and basically make a rollover from the Template Images they chose. The $id is the same name as the image, and $id-over.gif is the rollover image... Here's what i got Code:
View Replies !
Rollover Images Inside Include File
I have a navigation that uses javascript for image rollovers and I would like to place this navigation in an include file and include it on all of the site pages. I have the javascript functions in an external file located in a folder called "js". I have the included header file in a folder called "inc". Code:
View Replies !
Thumbnail Images
Does anyone have idea that how to thumbnail images, which are retrieved from database, then displaying them on webpage?
View Replies !
Best Way To Create A Thumbnail From JPG/GIF/PNG Images
What is the best way to create a thumbnail from JPG/GIF/PNG images that are uploaded and save them as a separate file. Here is what I would like to do. User uploads a JPG/GIF/PNG image. A thumbnail is made of that file. The original and thumbnail are both saved to a directory. I would like to specify that the thumbnail should be no more than 100px wide and have the height automatically adjust to the right proportion I.E. original image is 200 X 200 thumbnail image will be 100 X 100 Any ideas?
View Replies !
Creating Thumbnail Images
I have a script uploading photos. When the file is uploaded i am trying to create a thumbnail of that image. I want the thumbnail to keep the proportions of the original image. So if the image is larger than the thumbnail dimensions I specify it works just fine. However if one or both of the dimensions of the image uploaded is smaller than the thumbnail I want to create I run into trouble. Mostly when the images height is shorter than the intended thumbnails height, but wider. For example a image that is 110px tall x 90px wide causes the script to fail. Can anyone help me figure out what is going wrong here? Code:
View Replies !
Dropdown List Which Selects A Post A Title (to Edit)
I want to have a dropdown list which selects a post a title (to edit), then when you click submit I want to use POST to submit the data for that post (post title, username, subject, content) so that the edit pages form fields will already be filled with the posts data.
View Replies !
Generate A Thumbnail (100 X 75) Of The Images When They Are Uploaded?
The first script (submit.php) basically takes an image upload, along with some information provided by a form. It puts it in a directory and then creates an information file to display the title, description, etc. The second script (gallery.php) displays all the uploaded images as thumbnails which link to the full size version. To save my poor slow internet users a lot of time waiting for large images to download, is there a way I can get PHP to generate a thumbnail (100 x 75) of the images when they are uploaded?
View Replies !
Using NetPBM To Generate Thumbnail Images.
I need to be able to accept a gif/jpeg image upload and then: 1.) Save it into a database. 2.) Create a thumbnail of the uploaded image and save it to a database. I am able to upload an image directly into a database, but I'm having trouble trying to generate a thumbnail of the image. It just shows up as a broken image. Here is my test code that I'm using to try to develop this feature. You pass the id# of the image in the database and it should retrieve the image, make a thumbnail of it, and then display the thumbnail. All I get is a broken link though. Can somebody point out my mistakes? Code:
View Replies !
How Do I Create Clickable Thumbnail Images ?
I have 10 jpg files of about 500k each in a folder (called pix) on my server. I want to be able to create a php file so that anyone who clicks on a statement like say : Click here to see pictures. will get linked to a php file say http://www.abc.com/pix/birthday.php When they click on this, a thumbnail of all 10 picturesx will appear on screen. If they then click on any one the picture will expand to its full size of 500k. What i am currently doing is creating an index.html file in the pix folder and in that creating hyperlinks to each picture like http://www.abc.com/pix/bday1.jpg , http://www.abc.com/pix/bday2.jpg etc. As a result, no one knows what the picture is until they click on it and often people dont want to see the full picture unless they feature in it !! Another thing i would like to do is to be able to create a caption for each picture. How ? Can anyone suggest how i should go about both these?
View Replies !
Display Some Thumbnail Images In A Grid Of 4 Columns
I am wondering if somebody might be able to advise on the best way out to script the layout of my page. I want to display some thumbnail images in a grid of 4 columns across and upto 4 rows down. I will be displaying from the results of a query and with upto 12 records returned for each page display. How would be the best way to loop through the results so that I can display them in the desired way. Note also that I am trying to use CSS for layout the best I can instead of using tables.
View Replies !
$title Not Displaying In <title>$title</title>
For some reason $title will not display in the <title></title> using print or echo. I've tried modifying the if staments to ifelse, and even fiddled with $_GET to get this working. Tried dbl/single quotes, even changed the variable around thinking $title might be a global. nothing working yet. Any ideas? <?php $page == 'home' $title == "Welcome!"; if ($page == 'home') { $title == "Welcome!"; } elseif ($page == 'about') { $title == "about us"; } elseif ($page == 'products') { $title == "Products"; } elseif ($page == 'services') { $title == "Services"; } elseif ($page == 'repair') { $title == "Upgrades & Repairs"; } elseif ($page == 'network') { $title == "Network Solutions"; } ?> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>My Site - <?php print "$title";?></title> </head> <body bgcolor="#FFE0C1"> ...
View Replies !
Images To News Post Via Cms
I'm trying to figure out how I'm going to add images to my news posts, as in, what is the best (simplest) way to accomplish this. Security isn't a (really) major issue for me as I'll be the one doing the updating and it's secured through the login. I'd like to be able to do something where I could upload an image to be posted along with the news details or maybe upload images to a 'files' folder and then just pick from a dynamically generated list which image to associate with the post before I submit it to the db.
View Replies !
Display Article's Title In Title Tag
I want to show the article's title in the title tag. But I can't display the title from the article because the title tag is loaded first and the the rest of my page. I have a solution with javascript but if you haven't enable javascript, you'll see nothing so I want to do this with PHP, but how. Code:
View Replies !
Doing A Rollover Image
I basically want to use a GET to find out which Template my customer has chosen and basically make a rollover from the Template Images they chose. The $id is the same name as the image, and $id-over.gif is the rollover image.. Code:
View Replies !
Rollover $_GETs?
echo '<a href="?'; if ($_GET['sort']) echo 'sort='.$sort.'&'; if ($_GET['flow']) echo 'flow='.$flow.'&'; if ($_GET['game_id']) echo 'game_id='.$_GET['game_id'].'&'; if ($_GET['server_id']) echo 'server_id='.$_GET['server_id'].'&'; echo 'page='.$pagenext.'">NEXT»</a>'; Is there an easier way to construct a link while keeping all the set $_GET values?
View Replies !
Dynamic Rollover
I need to have a webpage that shows a list of information pulled from my database. I can manage this o.k, but what i need to do is the following. I have a dbase table with 2 fields. The contents of the first field will be shown on screen. Only certain entries in the dbase will have the 2nd field populated. What I would like the user to be able to do is to be able to tell which of the results on screen has info populating it's 2nd dbase field by the use of a different colour or something similar and finally when the user rolls over that object a popup appears showing the content of the 2nd field in the dbase. I've searched high and low on the net and am pulling my hair out.
View Replies !
Php Directory Rollover Script
I'm looking for a php rollover directory script. Basically I'd like it to work so when your inside the directory it stays on 1 image. If your outside the directory it's in it's natural rollover state.
View Replies !
Rollover Submit Button
I am using PHP for an email form on my site and I don't want to use the default submit button so I have designed my own. The problem I have is that I am unable to use a rollover image. I have tried setting the image up as <a href="........ onmouseover=".....> but I cannot get this to actually send the mail - the PHP function doesn't work. I am currently using <type="image"...... onclick="PHP function"....> this works but I cannot find a way to make the rollover work here!
View Replies !
Create Rollover Buttons From Database
I've just finished an online php course and now fighting with a site I'm trying to create (of course ) I am trying to create a table with rollover buttons. The buttons details are sitting in a table, but everything I try doesn't work. Here are some things I tried: Code:
View Replies !
Rollover Image - Alot Faster
I want to create a rollover image but when I do the site begins to load very slowly and it really bugs me because I want the website to be quick as a cat. I found a website where they include their image from a php file <a href="index.php?option=com_frontpage&Itemid=1" class="mainlevel" >Home</a> . How do I go about create one for myself. And what does that mean .
View Replies !
I Need Information From To ......
I have to retrive the title tag information? can you tell me. i am new to the php ........ can you give the example to get the information between <title> to </title> from the web page...... how shall i get it.
View Replies !
Convert ##TITLE## To $title
Im half way through making an article manager for a new site im launching. If i type ##TITLE## into a text box, when i display the artcile, how do i turn the placeholder ##TITLE## into $title of the article. i looked at str_replace but i dont think thats what i need... i need something that searched through the text of a var and if it finds anything within ##*## to convert the * into the $var.
View Replies !
Get Title?
How do you get the title of a(n) external webpage? Ive seen it done on the vBulletin's software. Anyone know how to exactly do this? Or is there a PHP function already added to the PHP software that I don't know about.
View Replies !
<title>
im trying to put the title of the page to my file and i keep getting headers sent messages ... i tried ob_start(); and it still wont work how would i go about putting <title>my title ... </title> to my file below? Code:
View Replies !
Title
Why doesn't the contents of the "title" field get displayed on the screen? <?php $con = mysql_connect("localhost","ODBC",""); if (!$con) { die(mysql_error()); } mysql_select_db("MP3", $con); $result = mysql_query("SELECT * FROM books"); echo $result['title']; mysql_close($con); ?>
View Replies !
Title,URL
I have the following example that will extract the TITLE from a web page successfully but how can I extract the TITLE from a "redirected" link. <?php $file = fopen ("http://www.example.com/", "r"); if (!$file) { echo "<p>Unable to open remote file. "; exit; } while (!feof ($file)) { $line = fgets ($file, 1024); /* This only works if the title and its tags are on one line */ if (eregi ("<title>(.*)</title>", $line, $out)) { $title = $out[1]; echo "$title"; break; } }fclose($file); ?>
View Replies !
Stamps/inserts Small Images (logos) Onto Larger Images.
It may be called image stamping or water marking but im not sure. Basically i want a script that prints/stamps a smaller image onto a larger one, the smaller mage being a logo. This will make it harder for people to steal my pictures as they will have my logo on them. An example of this is with ebay, when you submit a picture of the item your selling ebay will printe a small logo in the bottom right corner of the picture. Could anyone suggest a script for this, just a simple one then i can mess around with it and make it better.
View Replies !
How Can I Show A Title?
The script below is from a popup window that I have that displays projects, what I would like, is that the title of the window have the project title in it, Code:
View Replies !
Dates In Title?>
Would it go something like this <title>Title <?php date('Y') ;?> </title> to get the year in the title or isnt it possible?
View Replies !
Page Title
I have another post on here for this problem but I think I have overcomplicated the matter.. Ok in it's simplest form: Is there a way to retrieve the current page title and place it into a PHP variable? something like" $pagetitle = **** Title of the current page I'm viewing ****
View Replies !
Title Case
I haven't found a way to set title case in PHP... IE: test tItle => Test Title Is there a way to achieve this?
View Replies !
Match Title
I am trying to get a the title out of a html page, I have the html code loaded into a variable. The only thing is sometimes the title is not on the same line. <title>need this text</title> $title = preg_match(/<title>s</title>/i, $html); help me with this match syntax?
View Replies !
Title Of Page
On an arbitrary web page, I would like the code to return the web path to that page and including the title of that page. The purpose is to provide folks who might want to link to the page the actual code they need to make the link by cutting and pasting the code into their own site. Something like this: Code: <a href="http://www.phpbuilder.com/example.php">Page Title</a>
View Replies !
Title Tag In Mozilla
$varible is "3 lines text........................... ...................... ........................"; I have used echo "<img src="../images.gif" tilte="$variable"></img>"; But on tooltip all the 3 lines is shown in a single line with mozilla browser. In IE it is shown in separate lines. How to avoid the problem of displaying the tooltip in a single line with mozilla firefox.
View Replies !
Change The Title
I'm trying to change the title on just my home page. Can anyone help me where I should insert it and how I should insert it in this code. <title><?php if ( get_bloginfo('version') < ƈ' ) : echo wp_title('',false); if (!is_home() ) : echo ' - ' endif; elseif ( is_search() ) : echo wp_specialchars($s).' - ' elseif ( is_category() ) : single_cat_title(''); echo ' - ' elseif ( is_year() ) : echo get_the_time('F').' - ' elseif ( is_month() ) : echo get_the_time('F Y').' - ' elseif ( is_day() ) : echo get_the_time('F jS, Y').' - ' elseif ( is_404() ) : echo "Not found - "; elseif (!is_home() ) : if ( get_the_title() ){ the_title(); }else{ echo "Untitled"; }; echo " - "; endif // is_search()?> <?php bloginfo('name')?></title>
View Replies !
Accessing The Next Title
I access the current page title as $row['title']; which is within a while loop. Now how do i access the title of the next row in database? something like $row['title'+1]; gives me an output as 1 .
View Replies !
Add Html Title
How do you add a (html title) to this image? $Cat .= "<tr> <td style="padding:0px"> <caption align=center style="padding:0px"> <img src="myimages/pic1.gif" border="0" > </caption> </td> </tr>";
View Replies !
Dynamic Title With From Db
I use a header.php page and a content.php page. The header.php is of course just the header, the content.php is database driven. I want the article title on the content.php page to display in the Title bar. Code:
View Replies !
Preg_match For Title
I have a simple function that extracts the contents of <title> tag from the files in a given folder. function getTitle($filePath) { $content = file_get_contents($filePath); if(preg_match('#<title>(.+?)</title>#msi', $content, $matches)) { return $matches[1]; } return 'Untitled' } However, some pages contain the title as <title><? echo $thisPage; ?></title> and the function returns echo $thisPage; without interpretation. Could anyone help find out how to make this readable by preg_match?
View Replies !
In Page Title
I'm trying to put some php in a web page title (after the text part of the title), so that it will number each page differently in the title. Whats the best way to do it? Is there some sort of taboo against putting too much code in the <title></title> of the page? Or is it anything goes as long as it isn't too rediculous. Heres the part of the code that determines what page number it is. In the browsers output all I am getting is all this code in the title though, instead of just 1, 2, etc. or whatever page it is on. Whats the proper way to put Code:
View Replies !
Getting The Page Title
I'm trying to do is find a way of getting the page title (the bit between <title> and </title>) from a string that represents that contents of a webpage. I've spent an hour and 41 minutes researching this one on Google and can't find a solution.
View Replies !
How To Get Page Title, In Not An Easy Way
ok, here is the situation i have included header.php into index file but i have this in index.php: [php] switch($_GET['action']) { case 'page': $pages[0] = "news0.php"; $pages[1] = "news1.php"; . . if ($_GET['page'] != "") { $to_include = $_GET['page']; include ($pages[$to_include]); } break; default: include("news.php"); [php] i tried all sort off stuff like implode, pregmatch,ordinary passing $title variable, $_PHPSELF, and nothing seems to be working. all i want to do is to get title like domain.com-news. can anybody give me a tip what should i do?
View Replies !
Title Replace Problem
Here is some of my upload code i am using but i am having problems trying to insert the title into the database, the first is with spaces allowed and the second is without spaces and filled with _ instead, but it wont do it. I have this a value called $title and this is the title a user gives their submission, and i want to rename the file the same as the title but with the spaces replaced with _ u following me? I have done it do it does this but when it inserts the title into the database, the spaces are replaces with the _ instead of leaving it alone.
View Replies !
|